added sealed bless stack XML drawing check to token detaching function
This commit is contained in:
parent
a8a67872de
commit
6da1e2434e
@ -2884,7 +2884,7 @@ function handleTokenDetaching(params)
|
||||
pickedCard.tooltip = pickedCardSetting["tooltip"]
|
||||
cardSetting[pickedCard] = nil
|
||||
end
|
||||
|
||||
|
||||
local removedTokens = pickedCard.removeAttachments()
|
||||
for _, token in ipairs(removedTokens) do
|
||||
if token.getPosition().y < pickedCard.getPosition().y then
|
||||
@ -2892,4 +2892,11 @@ function handleTokenDetaching(params)
|
||||
token.setPosition(token.getPosition():setAt("y", posY))
|
||||
end
|
||||
end
|
||||
|
||||
if pickedCard.hasTag("CardThatSeals") then
|
||||
local func = pickedCard.getVar("updateStackSize") -- make sure function exists
|
||||
if func ~= nil then
|
||||
pickedCard.call("updateStackSize")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user