From 76136c48589037ba6af78c90c76276521d8c9d15 Mon Sep 17 00:00:00 2001 From: SonikkuA-DatH <58025603+SonikkuA-DatH@users.noreply.github.com> Date: Fri, 3 Dec 2021 18:07:35 -0800 Subject: [PATCH] Update battle_main.c --- src/battle_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/battle_main.c b/src/battle_main.c index 766736048..4d52adc73 100644 --- a/src/battle_main.c +++ b/src/battle_main.c @@ -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 {