Merge pull request #1435 from LOuroboros/defeatist

Fixed Defeatist's check
This commit is contained in:
Eduardo Quezada D'Ottone 2021-04-04 13:59:34 -04:00 committed by GitHub
commit 8bc91f9d23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7350,7 +7350,7 @@ static u32 CalcAttackStat(u16 move, u8 battlerAtk, u8 battlerDef, u8 moveType, b
MulModifier(&modifier, UQ_4_12(1.5)); MulModifier(&modifier, UQ_4_12(1.5));
break; break;
case ABILITY_DEFEATIST: 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)); MulModifier(&modifier, UQ_4_12(0.5));
break; break;
case ABILITY_FLASH_FIRE: case ABILITY_FLASH_FIRE: