Update battle_main.c

This commit is contained in:
SonikkuA-DatH 2021-12-03 18:07:35 -08:00 committed by GitHub
parent a32ac0d290
commit 76136c4858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4412,6 +4412,10 @@ s8 GetMovePriority(u32 battlerId, u16 move)
break;
}
}
if (gProtectStructs[battlerId].quash == 1)
{
priority = -8;
}
return priority;
}
@ -4636,6 +4640,7 @@ static void TurnValuesCleanUp(bool8 var0)
gProtectStructs[gActiveBattler].spikyShielded = FALSE;
gProtectStructs[gActiveBattler].kingsShielded = FALSE;
gProtectStructs[gActiveBattler].banefulBunkered = FALSE;
gProtectStructs[gBattlerTarget].quash = FALSE;
}
else
{