Rewrote AI calculations for move effects that raise the user's stats, fixed Sea of Fire effect lasting forever

This commit is contained in:
Maruno17
2022-09-04 17:46:59 +01:00
parent db215a71d6
commit b8c61a6038
15 changed files with 622 additions and 829 deletions

View File

@@ -540,7 +540,7 @@ class Pokemon
# @return [Boolean] whether this Pokémon has a particular nature or a nature
# at all
def hasNature?(check_nature = nil)
return !@nature_id.nil? if check_nature.nil?
return !@nature.nil? if check_nature.nil?
return self.nature == check_nature
end