various fixes

This commit is contained in:
infinitefusion
2022-10-29 17:27:55 -04:00
parent 49f7edb06a
commit cd906e7f1c
52 changed files with 40802 additions and 39072 deletions

View File

@@ -222,12 +222,12 @@ class Pokemon
end
def form=(value)
oldForm = @form
@form = value
@ability = nil
MultipleForms.call("onSetForm", self, value, oldForm)
calc_stats
$Trainer.pokedex.register(self)
# oldForm = @form
# @form = value
# @ability = nil
# MultipleForms.call("onSetForm", self, value, oldForm)
# calc_stats
# $Trainer.pokedex.register(self)
end
# The same as def form=, but yields to a given block in the middle so that a