mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-12 07:35:00 +00:00
Use PokeBattle_Battler#isSpecies? instead of isConst?
This commit is contained in:
@@ -108,7 +108,7 @@ class PokeBattle_Battler
|
||||
end
|
||||
# These effects are passed on if Baton Pass is used, but they need to be
|
||||
# cancelled in certain circumstances anyway
|
||||
@effects[PBEffects::Telekinesis] = 0 if isConst?(@species,PBSpecies,:GENGAR) && mega?
|
||||
@effects[PBEffects::Telekinesis] = 0 if isSpecies?(:GENGAR) && mega?
|
||||
@effects[PBEffects::GastroAcid] = false if nonNegatableAbility?
|
||||
else
|
||||
# These effects are passed on if Baton Pass is used
|
||||
|
||||
Reference in New Issue
Block a user