mirror of
https://github.com/pret/pokeemerald.git
synced 2026-10-01 22:38:10 -05:00
Fix Life Orb fainting an already fainted mon
This commit is contained in:
@@ -4760,6 +4760,7 @@ static void Cmd_moveend(void)
|
||||
break;
|
||||
case MOVEEND_LIFE_ORB:
|
||||
if (GetBattlerHoldEffect(gBattlerAttacker, TRUE) == HOLD_EFFECT_LIFE_ORB
|
||||
&& IsBattlerAlive(gBattlerAttacker)
|
||||
&& !(GetBattlerAbility(gBattlerAttacker) == ABILITY_SHEER_FORCE && gBattleMoves[gCurrentMove].flags & FLAG_SHEER_FORCE_BOOST)
|
||||
&& GetBattlerAbility(gBattlerAttacker) != ABILITY_MAGIC_GUARD
|
||||
&& gSpecialStatuses[gBattlerAttacker].damagedMons)
|
||||
|
||||
Reference in New Issue
Block a user