From 60b566f8b6bdce0b97af4380ccd97619cb831091 Mon Sep 17 00:00:00 2001 From: LOuroboros Date: Wed, 31 Mar 2021 20:17:05 -0300 Subject: [PATCH] Fixed Defeatist's check --- src/battle_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle_util.c b/src/battle_util.c index f1f5ffd10..080782d4f 100644 --- a/src/battle_util.c +++ b/src/battle_util.c @@ -7351,7 +7351,7 @@ static u32 CalcAttackStat(u16 move, u8 battlerAtk, u8 battlerDef, u8 moveType, b MulModifier(&modifier, UQ_4_12(1.5)); break; case ABILITY_DEFEATIST: - if (gBattleMons[battlerAtk].hp <= (gBattleMons[battlerDef].maxHP / 2)) + if (gBattleMons[battlerAtk].hp <= (gBattleMons[battlerAtk].maxHP / 2)) MulModifier(&modifier, UQ_4_12(0.5)); break; case ABILITY_FLASH_FIRE: