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

@@ -1760,7 +1760,7 @@ class PokemonStorageScreen
end
if box>=0
@heldpkmn.formTime = nil if @heldpkmn.respond_to?("formTime")
@heldpkmn.form = 0 if isConst?(@heldpkmn.species,PBSpecies,:SHAYMIN)
@heldpkmn.form = 0 if @heldpkmn.isSpecies?(:SHAYMIN)
@heldpkmn.heal
end
@scene.pbPlace(selected,@heldpkmn)
@@ -1789,7 +1789,7 @@ class PokemonStorageScreen
end
if box>=0
@heldpkmn.formTime = nil if @heldpkmn.respond_to?("formTime")
@heldpkmn.form = 0 if isConst?(@heldpkmn.species,PBSpecies,:SHAYMIN)
@heldpkmn.form = 0 if @heldpkmn.isSpecies?(:SHAYMIN)
@heldpkmn.heal
end
@scene.pbSwap(selected,@heldpkmn)