Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================================================
- # FIX SELF KILL ACTOR BUG
- # Put this between: CARDGAME SKILL/BATTLE SYSTEM and CARDGAME CARDSHOP
- #===============================================================================
- class Scene_Battle
- #-----------------------------------------------------------------------------
- # * overwrite method: use_item
- #-----------------------------------------------------------------------------
- def use_item
- pc27_cardgame_scenebattle_use_item
- if @subject.is_a?(Game_Actor) && @subject.current_action
- effect_name = @subject.current_action.item.impact
- invoke_card_impact(effect_name) if effect_name
- @subject.grave += @subject.stack
- @subject.stack = []
- restore_taken_cards(:proceed)
- elsif @subject.is_a?(Game_Actor)
- BattleManager.actor.hand += BattleManager.actor.stack
- end
- end
- end # Scene_Battle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement