From ac48209796b992a9f26f36f6f2c2ab4d7e31af37 Mon Sep 17 00:00:00 2001 From: muscode Date: Sun, 3 Nov 2024 12:06:56 -0600 Subject: [PATCH 1/2] Update src/data/ability.ts Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com> --- src/data/ability.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index a82083bbe76..1b2effe001b 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -4909,7 +4909,7 @@ export function applyPostFaintAbAttrs(attrType: Constructor, } export function applyPostItemLostAbAttrs(attrType: Constructor, - pokemon: Pokemon, passive: boolean, simulated: boolean = false, args: any[]): Promise { + pokemon: Pokemon, passive: boolean, simulated: boolean = false, ...args: any[]): Promise { return applyAbAttrsInternal(attrType, pokemon, (attr, passive) => attr.applyPostItemLost(pokemon, passive, simulated, args), args); } From 95711f4ee4a3e21078eb58bb6e97e63ca5daff25 Mon Sep 17 00:00:00 2001 From: muscode Date: Sun, 3 Nov 2024 12:09:36 -0600 Subject: [PATCH 2/2] add neut gas check Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com> --- src/field/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 2d9313e972a..1e2a81529d5 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -945,7 +945,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { if (this.status && this.status.effect === StatusEffect.PARALYSIS) { ret >>= 1; } - if (this.getTag(BattlerTagType.UNBURDEN)) { + if (this.getTag(BattlerTagType.UNBURDEN) && !this.scene.getField(true).some(pokemon => pokemon !== this && pokemon.hasAbilityWithAttr(SuppressFieldAbilitiesAbAttr))) { ret *= 2; } break;