Fix multiple turn moves staying after hitting no target

This commit is contained in:
DizzyEggg 2020-08-05 12:35:51 +02:00
parent 9bc4395212
commit a42bd3f37d

View file

@ -1105,6 +1105,8 @@ static void Cmd_attackcanceler(void)
if (NoTargetPresent(gCurrentMove))
{
gBattlescriptCurrInstr = BattleScript_ButItFailedAtkStringPpReduce;
if (!IsTwoTurnsMove(gCurrentMove) || (gBattleMons[gBattlerAttacker].status2 & STATUS2_MULTIPLETURNS))
CancelMultiTurnMoves(gBattlerAttacker);
return;
}