From 1b2cb1de00234a728a278b21ba5a6469927c9bdb Mon Sep 17 00:00:00 2001 From: Bertie690 <136088738+Bertie690@users.noreply.github.com> Date: Sun, 3 Aug 2025 20:35:46 -0400 Subject: [PATCH] Update move.ts Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --- src/data/moves/move.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/moves/move.ts b/src/data/moves/move.ts index 5c6b361c533..9dacd392c6c 100644 --- a/src/data/moves/move.ts +++ b/src/data/moves/move.ts @@ -1308,7 +1308,7 @@ export class MoveEffectAttr extends MoveAttr { * @returns true if basic application of the ability attribute should be possible */ canApply(user: Pokemon, target: Pokemon, move: Move, _args?: any[]) { - return (this.selfTarget ? user : target).hp > 0 + return !(this.selfTarget ? user : target).isFainted(); } /** Applies move effects so long as they are able based on {@linkcode canApply} */