Advertisement
FlipelyFlip

FFS - Prevent Enemy Revive Battle End

Sep 10th, 2024 (edited)
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.86 KB | None | 0 0
  1. #==============================================================================
  2. # ** Game_Battler
  3. #------------------------------------------------------------------------------
  4. #  A battler class with methods for sprites and actions added. This class
  5. # is used as a super class of the Game_Actor class and Game_Enemy class.
  6. #==============================================================================
  7. class Game_Battler < Game_BattlerBase
  8.   #--------------------------------------------------------------------------
  9.   # * Remove State
  10.   #--------------------------------------------------------------------------
  11.   def remove_state(state_id)
  12.     if state?(state_id)
  13.       revive if state_id == death_state_id && !($game_temp.battle_end && enemy?)
  14.       erase_state(state_id)
  15.       refresh
  16.       @result.removed_states.push(state_id).uniq!
  17.     end
  18.   end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement