Updated Toxic Status Counter

This commit is contained in:
Ct11217 2022-09-12 20:39:21 -06:00
parent ba6aad5bcc
commit 96d190f5ad

View File

@ -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;