[Beta Bug] Prevent duplicate move failure message (#4662)

This commit is contained in:
NightKev 2024-10-14 14:47:23 -07:00 committed by GitHub
parent e7a4d4055f
commit e962ac1f18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -128,7 +128,9 @@ export class MovePhase extends BattlePhase {
this.lapsePreMoveAndMoveTags(); this.lapsePreMoveAndMoveTags();
this.resolveFinalPreMoveCancellationChecks(); if (!(this.failed || this.cancelled)) {
this.resolveFinalPreMoveCancellationChecks();
}
if (this.cancelled || this.failed) { if (this.cancelled || this.failed) {
this.handlePreMoveFailures(); this.handlePreMoveFailures();