diff --git a/src/core/PlayArea.ttslua b/src/core/PlayArea.ttslua index b2589d5d..42efb6c2 100644 --- a/src/core/PlayArea.ttslua +++ b/src/core/PlayArea.ttslua @@ -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 ---------------------------------------------------------