mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-09 13:15:07 +01:00
Update battle_main.c
This commit is contained in:
parent
a32ac0d290
commit
76136c4858
@ -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 New Issue
Block a user