From c4348ac20e47953fe38ca49a8f35f1955e1d51c4 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 15 Jul 2023 10:15:45 +0200 Subject: [PATCH] Chess: Fix broken promotion --- src/chess.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/src/chess.lua b/src/chess.lua index b856743..84cd0d6 100644 --- a/src/chess.lua +++ b/src/chess.lua @@ -2054,6 +2054,7 @@ function realchess.fields(pos, _, fields, sender) "queen_black", "rook_black", "bishop_black", "knight_black", } for p=1, #promotions do + local gameResult = meta:get_string("gameResult") if gameResult ~= "" then return end