From 2dabb07641b0b9dd16a59916afce7d53b87f4512 Mon Sep 17 00:00:00 2001 From: ry Date: Wed, 22 Apr 2026 03:31:51 -0500 Subject: [PATCH] fix gmaxfinale --- server/chat-plugins/datasearch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/chat-plugins/datasearch.ts b/server/chat-plugins/datasearch.ts index 1707f843c7..33220307ef 100644 --- a/server/chat-plugins/datasearch.ts +++ b/server/chat-plugins/datasearch.ts @@ -2159,7 +2159,7 @@ function runMovesearch(target: string, cmd: string, message: string, isTest: boo break; } } else if (flag === 'heal') { - if (!move.heal === !alts.flags[flag] || moveid === 'gmaxfinale') { + if (!(move.heal || moveid === 'gmaxfinale') === !alts.flags[flag]) { matched = true; break; } @@ -2180,7 +2180,7 @@ function runMovesearch(target: string, cmd: string, message: string, isTest: boo for (const recoveryType in alts.other) { let hasRecovery = false; if (recoveryType === "recovery") { - hasRecovery = !!move.drain || !!move.flags.heal; + hasRecovery = !!move.drain || !!move.flags.heal || moveid === 'gmaxfinale'; } else if (recoveryType === "zrecovery") { hasRecovery = (move.zMove?.effect === 'heal'); }