Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove States on Death
# By default, when a battler dies, the game simply clears out the states.
# However, sometimes we might want them to be actually "removed" through the
# appropriate remove_state method
class Game_Battler < Game_BattlerBase
alias :th_remove_states_on_death_die :die
def die
@states.each {|id| remove_state(id)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.