dont unexhaust right of the asset area

This commit is contained in:
Chr1Z93 2023-01-01 18:08:09 +01:00
parent 13ed44058e
commit b9a2339b80

View File

@ -237,9 +237,9 @@ function doUpkeep(_, color, alt_click)
local obj = v.hit_object
if obj.getDescription() == "Action Token" and obj.is_face_down then
obj.flip()
elseif obj.tag == "Card" and not obj.is_face_down then
elseif obj.tag == "Card" and not obj.is_face_down and self.positionToLocal(obj.getPosition()).x > -0.75 then
local cardMetadata = JSON.decode(obj.getGMNotes()) or {}
if not doNotReady(obj) and cardMetadata.type ~= "Investigator" then
if not doNotReady(obj) then
obj.setRotation(PLAY_ZONE_ROTATION)
end
if cardMetadata.id == "08031" then