From 7fb1281eab305b39e4efe93267e564933160d02d Mon Sep 17 00:00:00 2001 From: jonisavo Date: Sun, 6 Sep 2020 07:42:36 +0300 Subject: [PATCH] Add PokeBattle_Battler#isSpecies? --- Data/Scripts/012_Battle/001_Battler/001_PokeBattle_Battler.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Data/Scripts/012_Battle/001_Battler/001_PokeBattle_Battler.rb b/Data/Scripts/012_Battle/001_Battler/001_PokeBattle_Battler.rb index 4820daa84..70cd9dfbc 100644 --- a/Data/Scripts/012_Battle/001_Battler/001_PokeBattle_Battler.rb +++ b/Data/Scripts/012_Battle/001_Battler/001_PokeBattle_Battler.rb @@ -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).