From 76b6f624ad53a8552cb461d4406607c49cab8d28 Mon Sep 17 00:00:00 2001 From: Dean Date: Fri, 21 Feb 2025 22:05:55 -0800 Subject: [PATCH] Fix using id instead of battlerindex in queueAbilityDisplay --- src/battle-scene.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle-scene.ts b/src/battle-scene.ts index adb716f4f9c..464d9edb8ce 100644 --- a/src/battle-scene.ts +++ b/src/battle-scene.ts @@ -3147,7 +3147,7 @@ export default class BattleScene extends SceneBase { * @param show Whether to show or hide the bar */ public queueAbilityDisplay(pokemon: Pokemon, passive: boolean, show: boolean): void { - this.unshiftPhase((show) ? new ShowAbilityPhase(pokemon.id, passive) : new HideAbilityPhase(pokemon.id, passive)); + this.unshiftPhase((show) ? new ShowAbilityPhase(pokemon.getBattlerIndex(), passive) : new HideAbilityPhase(pokemon.getBattlerIndex(), passive)); this.clearPhaseQueueSplice(); }