Update battle_main.c
This commit is contained in:
parent
a32ac0d290
commit
76136c4858
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue