#=============================================================================== # # Yanfly Engine RD - Enemy Reappear Fix # Last Date Updated: 2009.05.18 # Level: Easy # # In the event that a state is applied to a monster and that monster dies, if # the state's timer runs out, a message appears that the monster is suddenly # cured of poison or whatever. Not only does the message appear, the monster's # sprite reappears in battle, too. The monster, however, is not selectable. This # script will fix that problem by halting the automatic state removal process. # #=============================================================================== # Updates: # ---------------------------------------------------------------------------- # o 2009.05.18 - Started script. #=============================================================================== # Instructions #=============================================================================== # # Just put it somewhere above Main. # #=============================================================================== # # Compatibility # - Alias: Game_Battler: hp=, remove_states_auto # #=============================================================================== $imported = {} if $imported == nil $imported["EnemyReappearFix"] = true #=============================================================================== # Editting anything past this point may potentially result in causing computer # damage, incontinence, explosion of user's head, coma, death, and/or halitosis. # Therefore, edit at your own risk. #=============================================================================== #=============================================================================== # Game_Battler #=============================================================================== class Game_Battler #-------------------------------------------------------------------------- # alias remove_states_auto #-------------------------------------------------------------------------- alias remove_states_auto_erf remove_states_auto unless $@ def remove_states_auto return if self.dead? remove_states_auto_erf end end #=============================================================================== # # END OF FILE # #===============================================================================