Use PokeBattle_Battler#isSpecies? instead of isConst?

This commit is contained in:
jonisavo
2020-09-06 08:41:27 +03:00
parent 7fb1281eab
commit afd7b090b9
13 changed files with 53 additions and 55 deletions

View File

@@ -2627,7 +2627,7 @@ class PokeBattle_AI
score += avg/2
#---------------------------------------------------------------------------
when "13B"
if !isConst?(user.species,PBSpecies,:HOOPA) || user.form!=1
if !user.isSpecies?(:HOOPA) || user.form!=1
score -= 100
else
score += 20 if target.stages[PBStats::DEFENSE]>0