From 401e3d63f1c502136c618739be4b91368a4e8c7f Mon Sep 17 00:00:00 2001 From: Sean <93678452+wtfseanscool@users.noreply.github.com> Date: Wed, 18 Oct 2023 14:39:41 -0400 Subject: [PATCH 1/3] Update modify_move.py - terablast physical/special correction --- showdown/engine/special_effects/moves/modify_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/showdown/engine/special_effects/moves/modify_move.py b/showdown/engine/special_effects/moves/modify_move.py index 86931e82..a3269f0b 100644 --- a/showdown/engine/special_effects/moves/modify_move.py +++ b/showdown/engine/special_effects/moves/modify_move.py @@ -369,7 +369,7 @@ def terablast(attacking_side, attacking_move, defending_move, attacking_pokemon, boosted_stats = attacking_pokemon.calculate_boosted_stats() if boosted_stats[constants.SPECIAL_ATTACK] > boosted_stats[constants.ATTACK]: - attacking_move[constants.CATEGORY] = constants.PHYSICAL + attacking_move[constants.CATEGORY] = constants.SPECIAL return attacking_move From a33a3bf8e1b61348b52c068d798c038388bf67a0 Mon Sep 17 00:00:00 2001 From: Sean <93678452+wtfseanscool@users.noreply.github.com> Date: Wed, 18 Oct 2023 14:46:16 -0400 Subject: [PATCH 2/3] Update modify_move.py - Fix terablast category Default category is special, so we check if our attack > our special attack, if it is then terablasts category becomes physical --- showdown/engine/special_effects/moves/modify_move.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/showdown/engine/special_effects/moves/modify_move.py b/showdown/engine/special_effects/moves/modify_move.py index a3269f0b..ab2a23f7 100644 --- a/showdown/engine/special_effects/moves/modify_move.py +++ b/showdown/engine/special_effects/moves/modify_move.py @@ -368,8 +368,8 @@ def terablast(attacking_side, attacking_move, defending_move, attacking_pokemon, boosted_stats = attacking_pokemon.calculate_boosted_stats() - if boosted_stats[constants.SPECIAL_ATTACK] > boosted_stats[constants.ATTACK]: - attacking_move[constants.CATEGORY] = constants.SPECIAL + if boosted_stats[constants.ATTACK] > boosted_stats[constants.SPECIAL_ATTACK]: + attacking_move[constants.CATEGORY] = constants.ATTACK return attacking_move From 58f9d9335c0b1308a2976bc7dbfc13ade47a8423 Mon Sep 17 00:00:00 2001 From: Sean <93678452+wtfseanscool@users.noreply.github.com> Date: Wed, 18 Oct 2023 14:54:45 -0400 Subject: [PATCH 3/3] terablast category typo fix --- showdown/engine/special_effects/moves/modify_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/showdown/engine/special_effects/moves/modify_move.py b/showdown/engine/special_effects/moves/modify_move.py index ab2a23f7..59c6330c 100644 --- a/showdown/engine/special_effects/moves/modify_move.py +++ b/showdown/engine/special_effects/moves/modify_move.py @@ -369,7 +369,7 @@ def terablast(attacking_side, attacking_move, defending_move, attacking_pokemon, boosted_stats = attacking_pokemon.calculate_boosted_stats() if boosted_stats[constants.ATTACK] > boosted_stats[constants.SPECIAL_ATTACK]: - attacking_move[constants.CATEGORY] = constants.ATTACK + attacking_move[constants.CATEGORY] = constants.PHYSICAL return attacking_move