mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Update move-phase.ts
This commit is contained in:
parent
5069ee303c
commit
1f5c901cdd
@ -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.
|
// 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));
|
let failed = move.getAttrs("PreUseInterruptAttr").some(attr => attr.apply(this.pokemon, targets[0], move));
|
||||||
if (failed) {
|
if (failed) {
|
||||||
this.failMove(false);
|
this.failMove(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user