Merge pull request #1976 from kleeenexfeu/patch-2

[battle_engine]  Moxie interaction with spread move/follow me fix
This commit is contained in:
ghoulslash 2022-01-16 10:58:50 -05:00 committed by GitHub
commit f3b9e6bb63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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