From e190de7ff2da02bab31eb68bb886435c7b9bf85c Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Mon, 29 Jul 2024 14:12:23 -0700 Subject: [PATCH] [Misc] Remove redundant BattlerTag sub-classes (#3223) --- src/data/battler-tags.ts | 32 +++----------------------------- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/src/data/battler-tags.ts b/src/data/battler-tags.ts index 97c42fed514..6c19be27fae 100644 --- a/src/data/battler-tags.ts +++ b/src/data/battler-tags.ts @@ -1413,30 +1413,6 @@ export class CritBoostTag extends BattlerTag { } } -export class AlwaysCritTag extends BattlerTag { - constructor(sourceMove: Moves) { - super(BattlerTagType.ALWAYS_CRIT, BattlerTagLapseType.TURN_END, 2, sourceMove); - } -} - -export class IgnoreAccuracyTag extends BattlerTag { - constructor(sourceMove: Moves) { - super(BattlerTagType.IGNORE_ACCURACY, BattlerTagLapseType.TURN_END, 2, sourceMove); - } -} - -export class AlwaysGetHitTag extends BattlerTag { - constructor(sourceMove: Moves) { - super(BattlerTagType.ALWAYS_GET_HIT, BattlerTagLapseType.PRE_MOVE, 1, sourceMove); - } -} - -export class ReceiveDoubleDamageTag extends BattlerTag { - constructor(sourceMove: Moves) { - super(BattlerTagType.RECEIVE_DOUBLE_DAMAGE, BattlerTagLapseType.PRE_MOVE, 1, sourceMove); - } -} - export class SaltCuredTag extends BattlerTag { private sourceIndex: number; @@ -1769,15 +1745,13 @@ export function getBattlerTag(tagType: BattlerTagType, turnCount: number, source case BattlerTagType.CRIT_BOOST: return new CritBoostTag(tagType, sourceMove); case BattlerTagType.ALWAYS_CRIT: - return new AlwaysCritTag(sourceMove); + case BattlerTagType.IGNORE_ACCURACY: + return new BattlerTag(tagType, BattlerTagLapseType.TURN_END, 2, sourceMove); case BattlerTagType.NO_CRIT: return new BattlerTag(tagType, BattlerTagLapseType.AFTER_MOVE, turnCount, sourceMove); - case BattlerTagType.IGNORE_ACCURACY: - return new IgnoreAccuracyTag(sourceMove); case BattlerTagType.ALWAYS_GET_HIT: - return new AlwaysGetHitTag(sourceMove); case BattlerTagType.RECEIVE_DOUBLE_DAMAGE: - return new ReceiveDoubleDamageTag(sourceMove); + return new BattlerTag(tagType, BattlerTagLapseType.PRE_MOVE, 1, sourceMove); case BattlerTagType.BYPASS_SLEEP: return new BattlerTag(BattlerTagType.BYPASS_SLEEP, BattlerTagLapseType.TURN_END, turnCount, sourceMove); case BattlerTagType.IGNORE_FLYING: