fixing position

This commit is contained in:
Chr1Z93 2023-01-08 22:25:47 +01:00
parent d2db6a49d9
commit 31e6dbf969

View File

@ -175,7 +175,7 @@ function makeDiscardHandlerFor(searchPosition, discardPosition)
local obj = hitObj.hit_object local obj = hitObj.hit_object
if obj.tag == "Deck" or obj.tag == "Card" then if obj.tag == "Deck" or obj.tag == "Card" then
if obj.hasTag("PlayerCard") then if obj.hasTag("PlayerCard") then
obj.setPositionSmooth(DISCARD_PILE_POSITION, false, true) obj.setPositionSmooth(self.positionToWorld(DISCARD_PILE_POSITION), false, true)
obj.setRotation(PLAY_ZONE_ROTATION) obj.setRotation(PLAY_ZONE_ROTATION)
else else
obj.setPositionSmooth(discardPosition, false, true) obj.setPositionSmooth(discardPosition, false, true)