mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-24 15:33:29 +02:00
Insert move failure check sequence part 4 into move phase
This commit is contained in:
parent
d5c59218a6
commit
61015bd363
@ -289,6 +289,9 @@ export class MovePhase extends PokemonPhase {
|
||||
failed = cancelled.value;
|
||||
}
|
||||
|
||||
// TODO: Move this to the Move effect phase where it belongs.
|
||||
failed ||= !move.applyConditions(user, targets[0], 4);
|
||||
|
||||
if (failed) {
|
||||
this.failMove(failedDueToTerrain);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user