mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Fix crash in Disguise effectiveness handler out of move sequences
This commit is contained in:
parent
3ce65953be
commit
7b7ec0846e
|
|
@ -709,6 +709,7 @@ exports.BattleAbilities = {
|
|||
}
|
||||
},
|
||||
onEffectiveness: function (typeMod, type, move) {
|
||||
if (!this.activeTarget) return;
|
||||
let pokemon = this.activeTarget;
|
||||
if (pokemon.template.speciesid !== 'mimikyu' || pokemon.transformed) return;
|
||||
if (!pokemon.runImmunity(move.type)) return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user