mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 01:14:19 +01:00
Merge pull request #1976 from kleeenexfeu/patch-2
[battle_engine] Moxie interaction with spread move/follow me fix
This commit is contained in:
commit
f3b9e6bb63
@ -5323,7 +5323,7 @@ static void Cmd_moveend(void)
|
||||
|
||||
if (IsBattlerAlive(battlerId))
|
||||
{
|
||||
gBattlerTarget = battlerId;
|
||||
gBattleStruct->moveTarget[gBattlerAttacker] = gBattlerTarget = battlerId; // Fix for moxie spread moves
|
||||
gBattleScripting.moveendState = 0;
|
||||
MoveValuesCleanUp();
|
||||
gBattleScripting.moveEffect = gBattleScripting.savedMoveEffect;
|
||||
|
@ -313,7 +313,7 @@ void HandleAction_UseMove(void)
|
||||
&& gBattleMoves[gCurrentMove].target == MOVE_TARGET_SELECTED
|
||||
&& GetBattlerSide(gBattlerAttacker) != GetBattlerSide(gSideTimers[side].followmeTarget))
|
||||
{
|
||||
gBattlerTarget = gSideTimers[side].followmeTarget;
|
||||
gBattleStruct->moveTarget[gBattlerAttacker] = gBattlerTarget = gSideTimers[side].followmeTarget; // follow me moxie fix
|
||||
}
|
||||
else if ((gBattleTypeFlags & BATTLE_TYPE_DOUBLE)
|
||||
&& gSideTimers[side].followmeTimer == 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user