mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
Updated Toxic Status Counter
This commit is contained in:
parent
ba6aad5bcc
commit
96d190f5ad
@ -337,7 +337,7 @@ static bool8 ShouldSwitchIfGameStatePrompt(void)
|
||||
{
|
||||
//Toxic
|
||||
moduloChance = 2; //50%
|
||||
if (gBattleMons[gActiveBattler].status1 & (STATUS1_TOXIC_COUNTER > 2)
|
||||
if (((gBattleMons[gActiveBattler].status1 & STATUS1_TOXIC_COUNTER) >= STATUS1_TOXIC_TURN(2))
|
||||
&& gBattleMons[gActiveBattler].hp >= (gBattleMons[gActiveBattler].maxHP / 3)
|
||||
&& (Random() % (moduloChance*chanceReducer)) == 0)
|
||||
switchMon = TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user