Additional #isSpecies? and #hasItem? refactoring

This commit is contained in:
jonisavo
2020-09-06 20:58:13 +03:00
parent 6252407160
commit 0b1bab3b5c
8 changed files with 13 additions and 17 deletions

View File

@@ -182,7 +182,7 @@ class PurifyChamber # German: der Kryptorbis
return false if !shadow
return false if shadow.heartgauge!=0
# Define an exception for Lugia
if isConst?(shadow.species,PBSpecies,:LUGIA)
if shadow.isSpecies?(:LUGIA)
maxtempo=PurifyChamber.maximumTempo()
for i in 0...NUMSETS
return false if @sets[i].tempo!=maxtempo