[Misc] Remove redundant BattlerTag sub-classes (#3223)

This commit is contained in:
NightKev 2024-07-29 14:12:23 -07:00 committed by GitHub
parent 95242e463c
commit e190de7ff2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 29 deletions

View File

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