HandleAction_UseMove minor cleanup (#8214)

This commit is contained in:
Martin Griffin 2025-11-12 21:54:34 +00:00 committed by GitHub
parent 16d80e9bb1
commit 30f6f1f8c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -542,7 +542,7 @@ void HandleAction_UseMove(void)
}
else
{
gBattlerTarget = *(gBattleStruct->moveTarget + gBattlerAttacker);
gBattlerTarget = gBattleStruct->moveTarget[gBattlerAttacker];
if (!IsBattlerAlive(gBattlerTarget)
&& moveTarget != MOVE_TARGET_OPPONENTS_FIELD
&& (!IsBattlerAlly(gBattlerAttacker, gBattlerTarget)))