Fix using id instead of battlerindex in queueAbilityDisplay

This commit is contained in:
Dean 2025-02-21 22:05:55 -08:00
parent 4ffbc5e81f
commit 76b6f624ad

View File

@ -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();
}