updated condition

This commit is contained in:
Chr1Z93 2024-07-08 13:11:45 +02:00
parent abbc8d5ff2
commit 181caf025d

View File

@ -557,7 +557,7 @@ function doDiscardOne()
local md = JSON.decode(hand[i].getGMNotes())
if md ~= nil and (not md.weakness and not md.hidden and md.type ~= "Enemy") then
table.insert(choices, i)
else
elseif md == nil then
broadcastToColor(hand[i].getName() .. " is missing metadata and won't be discarded.", messageColor, "Orange")
end
end