shows ability bar if immune

pull/238/head
shayebeadlingkl 2024-05-09 12:45:52 -04:00
parent 56ead255d0
commit 523af9ac82
1 changed files with 3 additions and 0 deletions

View File

@ -4564,6 +4564,9 @@ export class PartyStatusCurePhase extends BattlePhase {
if (!pokemon.hasAbility(this.abilityCondition)) { if (!pokemon.hasAbility(this.abilityCondition)) {
pokemon.resetStatus(); pokemon.resetStatus();
pokemon.updateInfo(true); pokemon.updateInfo(true);
} else {
// Manually show ability bar, since we're not hooked into the targeting system
pokemon.scene.unshiftPhase(new ShowAbilityPhase(pokemon.scene, pokemon.id, pokemon.getPassiveAbility()?.id === this.abilityCondition));
} }
} }
} }