mirror of
https://github.com/pret/pokeemerald.git
synced 2026-10-01 06:17:43 -05:00
Fix anger shell activating when fainted (#2945)
Co-authored-by: ghoulslash <pokevoyager0@gmail.com>
This commit is contained in:
@@ -5767,6 +5767,7 @@ u8 AbilityBattleEffects(u8 caseID, u8 battler, u16 ability, u8 special, u16 move
|
||||
if (!(gMoveResultFlags & MOVE_RESULT_NO_EFFECT)
|
||||
&& !gProtectStructs[gBattlerAttacker].confusionSelfDmg
|
||||
&& TARGET_TURN_DAMAGED
|
||||
&& IsBattlerAlive(gBattlerTarget)
|
||||
&& (gBattleMons[gBattlerTarget].hp <= gBattleMons[gBattlerTarget].maxHP / 2)
|
||||
&& !(TestSheerForceFlag(gBattlerAttacker, gCurrentMove)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user