[Misc] Remove redundant BattlerTag sub-classes (#3223)
This commit is contained in:
parent
95242e463c
commit
e190de7ff2
|
@ -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 {
|
export class SaltCuredTag extends BattlerTag {
|
||||||
private sourceIndex: number;
|
private sourceIndex: number;
|
||||||
|
|
||||||
|
@ -1769,15 +1745,13 @@ export function getBattlerTag(tagType: BattlerTagType, turnCount: number, source
|
||||||
case BattlerTagType.CRIT_BOOST:
|
case BattlerTagType.CRIT_BOOST:
|
||||||
return new CritBoostTag(tagType, sourceMove);
|
return new CritBoostTag(tagType, sourceMove);
|
||||||
case BattlerTagType.ALWAYS_CRIT:
|
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:
|
case BattlerTagType.NO_CRIT:
|
||||||
return new BattlerTag(tagType, BattlerTagLapseType.AFTER_MOVE, turnCount, sourceMove);
|
return new BattlerTag(tagType, BattlerTagLapseType.AFTER_MOVE, turnCount, sourceMove);
|
||||||
case BattlerTagType.IGNORE_ACCURACY:
|
|
||||||
return new IgnoreAccuracyTag(sourceMove);
|
|
||||||
case BattlerTagType.ALWAYS_GET_HIT:
|
case BattlerTagType.ALWAYS_GET_HIT:
|
||||||
return new AlwaysGetHitTag(sourceMove);
|
|
||||||
case BattlerTagType.RECEIVE_DOUBLE_DAMAGE:
|
case BattlerTagType.RECEIVE_DOUBLE_DAMAGE:
|
||||||
return new ReceiveDoubleDamageTag(sourceMove);
|
return new BattlerTag(tagType, BattlerTagLapseType.PRE_MOVE, 1, sourceMove);
|
||||||
case BattlerTagType.BYPASS_SLEEP:
|
case BattlerTagType.BYPASS_SLEEP:
|
||||||
return new BattlerTag(BattlerTagType.BYPASS_SLEEP, BattlerTagLapseType.TURN_END, turnCount, sourceMove);
|
return new BattlerTag(BattlerTagType.BYPASS_SLEEP, BattlerTagLapseType.TURN_END, turnCount, sourceMove);
|
||||||
case BattlerTagType.IGNORE_FLYING:
|
case BattlerTagType.IGNORE_FLYING:
|
||||||
|
|
Loading…
Reference in New Issue