From cd7ef557d96c852f2154fabe366bc40b72d8519c Mon Sep 17 00:00:00 2001 From: Bertie690 Date: Wed, 30 Jul 2025 22:33:34 -0400 Subject: [PATCH] fixed wish condition --- src/data/positional-tags/positional-tag.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/positional-tags/positional-tag.ts b/src/data/positional-tags/positional-tag.ts index 4b6fbd036a1..041e66f9e38 100644 --- a/src/data/positional-tags/positional-tag.ts +++ b/src/data/positional-tags/positional-tag.ts @@ -163,11 +163,11 @@ export class WishTag extends PositionalTag implements WishArgs { globalScene.phaseManager.unshiftNew("PokemonHealPhase", this.targetIndex, this.healHp, null, true, false); } - public shouldTrigger(): boolean { + override shouldTrigger(): boolean { // Disappear if no target or target is fainted. // The source need not exist at the time of activation (since all we need is a simple message) // TODO: Verify whether Wish shows a message if the Pokemon it would affect is KO'd on the turn of activation const target = this.getTarget(); - return !target || target.isFainted(); + return !!target && !target.isFainted(); } }