Use PokeBattle_Pokemon#isSpecies? instead of isConst?

This commit is contained in:
jonisavo
2020-09-06 08:42:58 +03:00
parent afd7b090b9
commit 1473d83a31
5 changed files with 34 additions and 35 deletions

View File

@@ -193,7 +193,7 @@ end
#===============================================================================
def pbIsPurifiable?(pkmn)
return false if !pkmn
return false if isConst?(pkmn.species,PBSpecies,:LUGIA)
return false if pkmn.isSpecies?(:LUGIA)
return false if !pkmn.shadowPokemon? || pkmn.heartgauge>0
return true
end