Fix Aftermath on fainted
This commit is contained in:
parent
14daa9f4a5
commit
1ad76ff3d2
1 changed files with 3 additions and 1 deletions
|
@ -3730,6 +3730,7 @@ u8 AbilityBattleEffects(u8 caseID, u8 battler, u8 ability, u8 special, u16 moveA
|
|||
if (!IsAbilityOnField(ABILITY_DAMP)
|
||||
&& !(gMoveResultFlags & MOVE_RESULT_NO_EFFECT)
|
||||
&& gBattleMons[gBattlerTarget].hp == 0
|
||||
&& IsBattlerAlive(gBattlerAttacker)
|
||||
&& IsMoveMakingContact(move, gBattlerAttacker))
|
||||
{
|
||||
gBattleMoveDamage = gBattleMons[gBattlerAttacker].maxHP / 4;
|
||||
|
@ -3742,7 +3743,8 @@ u8 AbilityBattleEffects(u8 caseID, u8 battler, u8 ability, u8 special, u16 moveA
|
|||
break;
|
||||
case ABILITY_INNARDS_OUT:
|
||||
if (!(gMoveResultFlags & MOVE_RESULT_NO_EFFECT)
|
||||
&& gBattleMons[gBattlerTarget].hp == 0)
|
||||
&& gBattleMons[gBattlerTarget].hp == 0
|
||||
&& IsBattlerAlive(gBattlerAttacker))
|
||||
{
|
||||
gBattleMoveDamage = gSpecialStatuses[gBattlerTarget].dmg;
|
||||
BattleScriptPushCursor();
|
||||
|
|
Loading…
Reference in a new issue