Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # ** Game_Battler
- #------------------------------------------------------------------------------
- # A battler class with methods for sprites and actions added. This class
- # is used as a super class of the Game_Actor class and Game_Enemy class.
- #==============================================================================
- class Game_Battler < Game_BattlerBase
- #--------------------------------------------------------------------------
- # * Remove State
- #--------------------------------------------------------------------------
- def remove_state(state_id)
- if state?(state_id)
- revive if state_id == death_state_id && !($game_temp.battle_end && enemy?)
- erase_state(state_id)
- refresh
- @result.removed_states.push(state_id).uniq!
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement