Skip to content

Commit

Permalink
Fix Neutralizing Gas self-suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
innerthunder committed May 31, 2024
1 parent 99e17c9 commit de33291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/field/pokemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
}
if (this.isOnField() && !ability.hasAttr(SuppressFieldAbilitiesAbAttr)) {
const suppressed = new Utils.BooleanHolder(false);
this.scene.getField(true).map(p => {
this.scene.getField(true).filter(p => p !== this).map(p => {
if (p.getAbility().hasAttr(SuppressFieldAbilitiesAbAttr) && p.canApplyAbility()) {
p.getAbility().getAttrs(SuppressFieldAbilitiesAbAttr).map(a => a.apply(this, false, suppressed, [ability]));
}
Expand Down

0 comments on commit de33291

Please sign in to comment.