changed event

This commit is contained in:
Chr1Z93 2024-11-19 09:26:19 +01:00
parent ac80962c9c
commit ae2c5259d2
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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())