Merge pull request #170 from argonui/discard-bugfix

Playmat: Discarding playercards bugfix
This commit is contained in:
Buhallin 2023-01-08 16:48:32 -08:00 committed by GitHub
commit f130dc5e52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)