diff --git a/include/config/battle.h b/include/config/battle.h index 7666de62c2..40ecdab3e1 100644 --- a/include/config/battle.h +++ b/include/config/battle.h @@ -128,7 +128,7 @@ #define B_ABSORBING_ABILITY_STRING GEN_LATEST // In Gen5+, the abilities that absorb moves of a certain type use a generic string for stat increases and decreases. #define B_LEAF_GUARD_PREVENTS_REST GEN_LATEST // In Gen5+, Leaf Guard prevents the use of Rest in harsh sunlight. #define B_SNOW_WARNING GEN_LATEST // In Gen9+, Snow Warning will summon snow instead of hail. -#define B_TRANSISTOR GEN_LATEST // In Gen9+, Transistor will only boost Electric-type moves by 1.3x as opposed to 1.5x. +#define B_TRANSISTOR_BOOST GEN_LATEST // In Gen9+, Transistor will only boost Electric-type moves by 1.3x as opposed to 1.5x. // Item settings #define B_HP_BERRIES GEN_LATEST // In Gen4+, berries which restore hp activate immediately after HP drops to half. In Gen3, the effect occurs at the end of the turn. diff --git a/src/battle_util.c b/src/battle_util.c index 794dcf5ce8..c19f6a863c 100644 --- a/src/battle_util.c +++ b/src/battle_util.c @@ -9013,7 +9013,7 @@ static inline u32 CalcMoveBasePowerAfterModifiers(u32 move, u32 battlerAtk, u32 break; case ABILITY_TRANSISTOR: if (moveType == TYPE_ELECTRIC) - #if B_TRANSISTOR >= GEN_9 + #if B_TRANSISTOR_BOOST >= GEN_9 modifier = uq4_12_multiply(modifier, UQ_4_12(5325 / 4096)); #else modifier = uq4_12_multiply(modifier, UQ_4_12(1.5)); diff --git a/test/battle/ability/transistor.c b/test/battle/ability/transistor.c index 3da12c8321..ab2509309a 100644 --- a/test/battle/ability/transistor.c +++ b/test/battle/ability/transistor.c @@ -27,7 +27,7 @@ SINGLE_BATTLE_TEST("Transistor increases Electric-type move damage", s16 damage) HP_BAR(opponent, captureDamage: &results[i].damage); } FINALLY { EXPECT_EQ(results[0].damage, results[1].damage); // Tackle should be unaffected - #if B_TRANSISTOR >= GEN_9 + #if B_TRANSISTOR_BOOST >= GEN_9 EXPECT_MUL_EQ(results[2].damage, Q_4_12(5325 / 4096), results[3].damage); // Wild Charge should be affected EXPECT_MUL_EQ(results[4].damage, Q_4_12(5325 / 4096), results[5].damage); // Thunder Shock should be affected #else