Skip to content

Commit

Permalink
Fix Cloud Nine/Air Lock not re-activiating if the pokemon swaps back in
Browse files Browse the repository at this point in the history
I plan to write a more comprehensive patch for abilities ending later, but for now this fixes the abilities.
  • Loading branch information
HoeenCoder committed Mar 18, 2024
1 parent 9f19d9e commit c1eeb7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/abilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const Abilities: {[abilityid: string]: AbilityData} = {
},
onStart(pokemon) {
// Air Lock does not activate when Skill Swapped or when Neutralizing Gas leaves the field
pokemon.abilityState.ending = false; // Clear the ending flag
if (this.effectState.switchingIn) {
this.add('-ability', pokemon, 'Air Lock');
this.effectState.switchingIn = false;
Expand Down Expand Up @@ -538,6 +539,7 @@ export const Abilities: {[abilityid: string]: AbilityData} = {
},
onStart(pokemon) {
// Cloud Nine does not activate when Skill Swapped or when Neutralizing Gas leaves the field
pokemon.abilityState.ending = false; // Clear the ending flag
if (this.effectState.switchingIn) {
this.add('-ability', pokemon, 'Cloud Nine');
this.effectState.switchingIn = false;
Expand Down

0 comments on commit c1eeb7e

Please sign in to comment.