Fix palaceUnableToUseMove falling through to change battle script (#7912)

Co-authored-by: ghoulslash <pokevoyager0@gmail.com>
This commit is contained in:
ghoulslash 2025-10-10 14:30:49 -04:00 committed by GitHub
parent 66965e3d68
commit 77ec4cd6eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -529,8 +529,7 @@ void HandleAction_UseMove(void)
gBattlescriptCurrInstr = BattleScript_MoveUsedLoafingAround;
}
}
if (IsBattlerAlly(gBattlerAttacker, gBattlerTarget) && !IsBattlerAlive(gBattlerTarget))
else if (IsBattlerAlly(gBattlerAttacker, gBattlerTarget) && !IsBattlerAlive(gBattlerTarget))
{
gBattlescriptCurrInstr = BattleScript_FailedFromAtkCanceler;
}