updated feedback message

This commit is contained in:
Chr1Z93 2024-08-15 17:04:08 +02:00
parent b860db3e32
commit d56301ab24

View File

@ -530,8 +530,7 @@ function readyCards(player, clickType)
return
end
broadcastToAll("Readied cards in Play Area")
local count = 0
local rot = self.getRotation()
for _, obj in ipairs(zone.getObjects()) do
if obj.type == "Card" and obj.locked == false and not (obj.getVar("do_not_ready") or obj.hasTag("DoNotReady")) then
@ -554,11 +553,14 @@ function readyCards(player, clickType)
-- highlighting for readied cards
if cardRotY == rot.y and roundedRotY ~= rot.y then
obj.highlightOn({ r = 0.8, g = 1, b = 0.05 }, 2)
count = count + 1
end
obj.setRotation(cardRotation:setAt("y", cardRotY))
end
end
broadcastToAll("Readied " .. count .. " card(s) in Play Area")
end
---------------------------------------------------------