mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-10 05:35:05 +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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (gProtectStructs[battlerId].quash == 1)
|
||||||
|
{
|
||||||
|
priority = -8;
|
||||||
|
}
|
||||||
|
|
||||||
return priority;
|
return priority;
|
||||||
}
|
}
|
||||||
@ -4636,6 +4640,7 @@ static void TurnValuesCleanUp(bool8 var0)
|
|||||||
gProtectStructs[gActiveBattler].spikyShielded = FALSE;
|
gProtectStructs[gActiveBattler].spikyShielded = FALSE;
|
||||||
gProtectStructs[gActiveBattler].kingsShielded = FALSE;
|
gProtectStructs[gActiveBattler].kingsShielded = FALSE;
|
||||||
gProtectStructs[gActiveBattler].banefulBunkered = FALSE;
|
gProtectStructs[gActiveBattler].banefulBunkered = FALSE;
|
||||||
|
gProtectStructs[gBattlerTarget].quash = FALSE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user