changed event
This commit is contained in:
parent
ac80962c9c
commit
ae2c5259d2
@ -163,7 +163,7 @@ end
|
||||
|
||||
-- Listens for cards entering the encounter deck or encounter discard, discards tokens on them,
|
||||
-- and resets the spawn state for the cards when they do.
|
||||
function tryObjectEnterContainer(container, object)
|
||||
function onObjectEnterContainer(container, object)
|
||||
local localPos = self.positionToLocal(container.getPosition())
|
||||
if inArea(localPos, ENCOUNTER_DECK_AREA) or inArea(localPos, ENCOUNTER_DISCARD_AREA) then
|
||||
tokenSpawnTrackerApi.resetTokensSpawned(object)
|
||||
|
@ -1335,7 +1335,7 @@ function spawnTokensOrShowHelper(card)
|
||||
end
|
||||
end
|
||||
|
||||
function tryObjectEnterContainer(container, object)
|
||||
function onObjectEnterContainer(container, object)
|
||||
if object.type ~= "Card" then return end
|
||||
|
||||
local localCardPos = self.positionToLocal(object.getPosition())
|
||||
|
Loading…
Reference in New Issue
Block a user