Advertisement
dsiver144

FIX SELF KILL ACTOR BUG

Mar 17th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #===============================================================================
  2. # FIX SELF KILL ACTOR BUG
  3. # Put this between: CARDGAME SKILL/BATTLE SYSTEM and CARDGAME CARDSHOP
  4. #===============================================================================
  5. class Scene_Battle
  6. #-----------------------------------------------------------------------------
  7. # * overwrite method: use_item
  8. #-----------------------------------------------------------------------------
  9. def use_item
  10. pc27_cardgame_scenebattle_use_item
  11. if @subject.is_a?(Game_Actor) && @subject.current_action
  12. effect_name = @subject.current_action.item.impact
  13. invoke_card_impact(effect_name) if effect_name
  14. @subject.grave += @subject.stack
  15. @subject.stack = []
  16. restore_taken_cards(:proceed)
  17. elsif @subject.is_a?(Game_Actor)
  18. BattleManager.actor.hand += BattleManager.actor.stack
  19. end
  20. end
  21. end # Scene_Battle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement