[Misc] Remove redundant `AddBattlerTagAttr` sub-classes (#3224)

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

View File

@ -4327,34 +4327,6 @@ export class IgnoreAccuracyAttr extends AddBattlerTagAttr {
} }
} }
export class AlwaysGetHitAttr extends AddBattlerTagAttr {
constructor() {
super(BattlerTagType.ALWAYS_GET_HIT, true, false, 0, 0, true);
}
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
if (!super.apply(user, target, move, args)) {
return false;
}
return true;
}
}
export class ReceiveDoubleDamageAttr extends AddBattlerTagAttr {
constructor() {
super(BattlerTagType.RECEIVE_DOUBLE_DAMAGE, true, false, 0, 0, true);
}
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
if (!super.apply(user, target, move, args)) {
return false;
}
return true;
}
}
export class FaintCountdownAttr extends AddBattlerTagAttr { export class FaintCountdownAttr extends AddBattlerTagAttr {
constructor() { constructor() {
super(BattlerTagType.PERISH_SONG, false, true, 4); super(BattlerTagType.PERISH_SONG, false, true, 4);
@ -8495,8 +8467,8 @@ export function initMoves() {
new AttackMove(Moves.ICE_SPINNER, Type.ICE, MoveCategory.PHYSICAL, 80, 100, 15, -1, 0, 9) new AttackMove(Moves.ICE_SPINNER, Type.ICE, MoveCategory.PHYSICAL, 80, 100, 15, -1, 0, 9)
.attr(ClearTerrainAttr), .attr(ClearTerrainAttr),
new AttackMove(Moves.GLAIVE_RUSH, Type.DRAGON, MoveCategory.PHYSICAL, 120, 100, 5, -1, 0, 9) new AttackMove(Moves.GLAIVE_RUSH, Type.DRAGON, MoveCategory.PHYSICAL, 120, 100, 5, -1, 0, 9)
.attr(AlwaysGetHitAttr) .attr(AddBattlerTagAttr, BattlerTagType.ALWAYS_GET_HIT, true, false, 0, 0, true)
.attr(ReceiveDoubleDamageAttr), .attr(AddBattlerTagAttr, BattlerTagType.RECEIVE_DOUBLE_DAMAGE, true, false, 0, 0, true),
new StatusMove(Moves.REVIVAL_BLESSING, Type.NORMAL, -1, 1, -1, 0, 9) new StatusMove(Moves.REVIVAL_BLESSING, Type.NORMAL, -1, 1, -1, 0, 9)
.triageMove() .triageMove()
.attr(RevivalBlessingAttr) .attr(RevivalBlessingAttr)