Update move-phase.ts

This commit is contained in:
Bertie690 2025-06-23 08:42:59 -04:00 committed by GitHub
parent 5069ee303c
commit 1f5c901cdd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -314,7 +314,7 @@ export class MovePhase extends BattlePhase {
}
// Check if the move has any attributes that can interrupt its own use **before** displaying text.
applyMoveAttrs("PreUseInterruptAttr", this.pokemon, targets[0], move);
// TODO: This should not rely on direct return values
let failed = move.getAttrs("PreUseInterruptAttr").some(attr => attr.apply(this.pokemon, targets[0], move));
if (failed) {
this.failMove(false);