From 3855b92237191f9e83af2c4263da50dfdc6e5ef4 Mon Sep 17 00:00:00 2001 From: Matthew Olker Date: Wed, 5 Jun 2024 15:41:04 -0400 Subject: [PATCH] fix weird luck when catching a fused mon --- 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 3e711efc76b..0a7b86e3e2b 100755 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -2462,7 +2462,7 @@ export class PostTurnStatusHealAbAttr extends PostTurnAbAttr { * @returns Returns true if healed from status, false if not */ applyPostTurn(pokemon: Pokemon, passive: boolean, args: any[]): boolean | Promise { - if (this.effects.includes(pokemon.status.effect)) { + if (this.effects.includes(pokemon.status?.effect)) { if (pokemon.getMaxHp() !== pokemon.hp) { const scene = pokemon.scene; const abilityName = (!passive ? pokemon.getAbility() : pokemon.getPassiveAbility()).name;