[Refactor] Remove single-use EndureAttr (#3260)

This commit is contained in:
NightKev 2024-07-30 21:09:50 -07:00 committed by GitHub
parent 78c3906088
commit 54ee2f3f10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4427,12 +4427,6 @@ export class ProtectAttr extends AddBattlerTagAttr {
} }
} }
export class EndureAttr extends ProtectAttr {
constructor() {
super(BattlerTagType.ENDURING);
}
}
export class IgnoreAccuracyAttr extends AddBattlerTagAttr { export class IgnoreAccuracyAttr extends AddBattlerTagAttr {
constructor() { constructor() {
super(BattlerTagType.IGNORE_ACCURACY, true, false, 2); super(BattlerTagType.IGNORE_ACCURACY, true, false, 2);
@ -6549,7 +6543,7 @@ export function initMoves() {
.attr(HitHealAttr) .attr(HitHealAttr)
.triageMove(), .triageMove(),
new SelfStatusMove(Moves.ENDURE, Type.NORMAL, -1, 10, -1, 4, 2) new SelfStatusMove(Moves.ENDURE, Type.NORMAL, -1, 10, -1, 4, 2)
.attr(EndureAttr), .attr(ProtectAttr, BattlerTagType.ENDURING),
new StatusMove(Moves.CHARM, Type.FAIRY, 100, 20, -1, 0, 2) new StatusMove(Moves.CHARM, Type.FAIRY, 100, 20, -1, 0, 2)
.attr(StatChangeAttr, BattleStat.ATK, -2), .attr(StatChangeAttr, BattleStat.ATK, -2),
new AttackMove(Moves.ROLLOUT, Type.ROCK, MoveCategory.PHYSICAL, 30, 90, 20, -1, 0, 2) new AttackMove(Moves.ROLLOUT, Type.ROCK, MoveCategory.PHYSICAL, 30, 90, 20, -1, 0, 2)