Created
September 12, 2015 23:38
-
-
Save HimeWorks/675fb008f17a2bac754a to your computer and use it in GitHub Desktop.
Remove States on Death
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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)} | |
th_remove_states_on_death_die | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment