Skip to content

Commit

Permalink
Fix Neutralizing Gas self-suppression (pagefaultgames#1662)
Browse files Browse the repository at this point in the history
  • Loading branch information
innerthunder authored and Korwai committed Jun 14, 2024
1 parent ca35c74 commit 1082623
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 1082623

Please sign in to comment.