mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 20:17:38 +01:00
Fix Surf taking 3 pp
This commit is contained in:
parent
fcf5870062
commit
cafb0c3b6a
@ -4693,6 +4693,7 @@ static void Cmd_moveend(void)
|
||||
|
||||
if (gBattleMoves[gCurrentMove].target == MOVE_TARGET_FOES_AND_ALLY)
|
||||
{
|
||||
gHitMarker |= HITMARKER_NO_PPDEDUCT;
|
||||
for (battlerId = gBattlerTarget + 1; battlerId < gBattlersCount; battlerId++)
|
||||
{
|
||||
if (battlerId == gBattlerAttacker)
|
||||
@ -4720,6 +4721,7 @@ static void Cmd_moveend(void)
|
||||
else
|
||||
{
|
||||
gHitMarker |= HITMARKER_NO_ATTACKSTRING;
|
||||
gHitMarker &= ~(HITMARKER_NO_PPDEDUCT);
|
||||
}
|
||||
}
|
||||
gBattleScripting.moveendState++;
|
||||
|
Loading…
Reference in New Issue
Block a user