Merge pull request #291 from argonui/clue-hotkey
"Take a clue" hotkey: handling for stacked clues
This commit is contained in:
commit
5906f91076
@ -108,8 +108,13 @@ function takeClueFromLocation(playerColor, hoveredObject)
|
||||
cardName = "nameless card"
|
||||
end
|
||||
|
||||
-- check if found clue is a stack or single token
|
||||
if clue.getQuantity() > 1 then
|
||||
clue.takeObject({position = pos, rotation = rot})
|
||||
else
|
||||
clue.setPositionSmooth(pos)
|
||||
clue.setRotation(rot)
|
||||
end
|
||||
|
||||
if cardName then
|
||||
broadcastToAll(playerName .. " took one clue from " .. cardName .. ".", playerColor)
|
||||
|
Loading…
Reference in New Issue
Block a user