Merge pull request #424 from argonui/tokengroup-spawning

Token Group Spawning: fixed shiftdown vector
This commit is contained in:
Entrox-Licher 2023-10-20 09:31:24 -04:00 committed by GitHub
commit 64b408ee76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -221,9 +221,11 @@ do
-- Copy the offsets to make sure we don't change the static values
local baseOffsets = offsets
offsets = { }
-- get a vector for the shifting (downwards local to the card)
local shiftDownVector = Vector(0, 0, shiftDown):rotateOver("y", card.getRotation().y)
for i, baseOffset in ipairs(baseOffsets) do
offsets[i] = baseOffset
offsets[i][3] = offsets[i][3] + shiftDown
offsets[i] = baseOffset + shiftDownVector
end
end