mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 15:22:19 +02:00
Fix using id instead of battlerindex in queueAbilityDisplay
This commit is contained in:
parent
4ffbc5e81f
commit
76b6f624ad
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user