correctly rotates cards when placing them
This commit is contained in:
parent
bf2352f79b
commit
ac5788ef75
@ -270,7 +270,9 @@ function placeCard(card)
|
|||||||
local name = card.getName() or "Unnamed card"
|
local name = card.getName() or "Unnamed card"
|
||||||
for i = 1, 10 do
|
for i = 1, 10 do
|
||||||
if fullSlots[i] ~= true then
|
if fullSlots[i] ~= true then
|
||||||
|
local rot = { 0, 270, card.getRotation().z }
|
||||||
card.setPositionSmooth(positions[i], false, true)
|
card.setPositionSmooth(positions[i], false, true)
|
||||||
|
card.setRotation(rot)
|
||||||
broadcastToAll("Victory Display: " .. name .. " placed into slot " .. i .. ".", "Green")
|
broadcastToAll("Victory Display: " .. name .. " placed into slot " .. i .. ".", "Green")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user