Add PokeBattle_Battler#isSpecies?

This commit is contained in:
jonisavo
2020-09-06 07:42:36 +03:00
parent 6c4670eaa3
commit 7fb1281eab

View File

@@ -271,6 +271,10 @@ class PokeBattle_Battler
return ret
end
def isSpecies?(species)
return @pokemon && @pokemon.isSpecies?(species)
end
# Returns the active types of this Pokémon. The array should not include the
# same type more than once, and should not include any invalid type numbers
# (e.g. -1).