Insert move failure check sequence part 4 into move phase

This commit is contained in:
Sirz Benjie 2025-08-19 00:11:17 -05:00
parent d5c59218a6
commit 61015bd363
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -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;