keep scenarioName intact

This commit is contained in:
Chr1Z93 2023-04-18 09:36:04 +02:00
parent ba6bd5e222
commit 500ddf6d9c

View File

@ -82,10 +82,9 @@ function onCollisionExit(collisionInfo)
if not collisionEnabled then return end
local object = collisionInfo.collision_object
-- reset data if scenario reference card is removed
-- reset token metadata if scenario reference card is removed
if object.getName() == "Scenario" then
tokenData = {}
currentScenario = nil
useFrontData = nil
fireTokenDataChangedEvent()
end