From c5fff74ec454506054b7cb64df77dd15347147bd Mon Sep 17 00:00:00 2001 From: surskitty Date: Fri, 5 Sep 2025 16:41:40 -0400 Subject: [PATCH] Toxic thread uses light screen's scoring.... (#7674) --- src/battle_ai_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/battle_ai_main.c b/src/battle_ai_main.c index 0623faf864..ad573604e0 100644 --- a/src/battle_ai_main.c +++ b/src/battle_ai_main.c @@ -1702,7 +1702,9 @@ static s32 AI_CheckBadMove(u32 battlerAtk, u32 battlerDef, u32 move, s32 score) case EFFECT_TOXIC_THREAD: if (!CanLowerStat(battlerAtk, battlerDef, aiData, STAT_SPEED)) ADJUST_SCORE(-1); // may still want to just poison - //fallthrough + if (!AI_CanPoison(battlerAtk, battlerDef, aiData->abilities[battlerDef], move, aiData->partnerMove)) + ADJUST_SCORE(-10); + break; case EFFECT_LIGHT_SCREEN: if (gSideStatuses[GetBattlerSide(battlerAtk)] & (SIDE_STATUS_LIGHTSCREEN | SIDE_STATUS_AURORA_VEIL) || (HasPartner(battlerAtk) && AreMovesEquivalent(battlerAtk, BATTLE_PARTNER(battlerAtk), move, aiData->partnerMove)))