Merge branch 'ability/unburden' of https://github.com/musdraws/pokerogue into ability/unburden

This commit is contained in:
muscode13 2024-11-03 13:13:42 -06:00
commit f5102c4a60
2 changed files with 2 additions and 2 deletions

View File

@ -5008,7 +5008,7 @@ export function applyPostFaintAbAttrs(attrType: Constructor<PostFaintAbAttr>,
}
export function applyPostItemLostAbAttrs(attrType: Constructor<PostItemLostAbAttr>,
pokemon: Pokemon, passive: boolean, simulated: boolean = false, args: any[]): Promise<void> {
pokemon: Pokemon, passive: boolean, simulated: boolean = false, ...args: any[]): Promise<void> {
return applyAbAttrsInternal<PostItemLostAbAttr>(attrType, pokemon, (attr, passive) => attr.applyPostItemLost(pokemon, passive, simulated, args), args);
}

View File

@ -972,7 +972,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;