correctly rotates cards when placing them

This commit is contained in:
Chr1Z93 2023-05-16 10:33:53 +02:00
parent bf2352f79b
commit ac5788ef75

View File

@ -270,7 +270,9 @@ function placeCard(card)
local name = card.getName() or "Unnamed card"
for i = 1, 10 do
if fullSlots[i] ~= true then
local rot = { 0, 270, card.getRotation().z }
card.setPositionSmooth(positions[i], false, true)
card.setRotation(rot)
broadcastToAll("Victory Display: " .. name .. " placed into slot " .. i .. ".", "Green")
return
end