diff --git a/src/data/ability.ts b/src/data/ability.ts index a49f4ff54..a23ed4c1d 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -1283,7 +1283,7 @@ function canApplyAttr(pokemon: Pokemon, attr: AbAttr): boolean { } function queueShowAbility(pokemon: Pokemon): void { - pokemon.scene.unshiftPhase(new ShowAbilityPhase(pokemon.scene, pokemon.getBattlerIndex())); + pokemon.scene.unshiftPhase(new ShowAbilityPhase(pokemon.scene, pokemon.id)); pokemon.scene.clearPhaseQueueSplice(); } diff --git a/src/data/battler-tags.ts b/src/data/battler-tags.ts index 33fda2405..8ed038c29 100644 --- a/src/data/battler-tags.ts +++ b/src/data/battler-tags.ts @@ -640,7 +640,7 @@ export class TruantTag extends AbilityBattlerTag { if (lastMove && lastMove.move !== Moves.NONE) { (pokemon.scene.getCurrentPhase() as MovePhase).cancel(); - pokemon.scene.unshiftPhase(new ShowAbilityPhase(pokemon.scene, pokemon.getBattlerIndex())); + pokemon.scene.unshiftPhase(new ShowAbilityPhase(pokemon.scene, pokemon.id)); pokemon.scene.queueMessage(getPokemonMessage(pokemon, ' is\nloafing around!')); }