Shared Power: Fix bug

This commit is contained in:
Kris Johnson
2021-04-15 18:58:07 -06:00
parent e9e58c9f99
commit 284b8f2df0
2 changed files with 3 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ export const Scripts: ModdedBattleScriptsData = {
(this.battle.gen >= 5 && !this.isActive) ||
((this.volatiles['gastroacid'] ||
(neutralizinggas && (this.ability !== ('neutralizinggas' as ID) ||
this.m.abils?.some((k: string) => k === 'ability:neutralizinggas'))
this.m.abils?.includes('ability:neutralizinggas'))
)) && !this.getAbility().isPermanent
)
);