diff --git a/mods/game_bot/executor.lua b/mods/game_bot/executor.lua index b834c0c48c..6c7c53a6bb 100644 --- a/mods/game_bot/executor.lua +++ b/mods/game_bot/executor.lua @@ -139,6 +139,7 @@ function executeBot(config, storage, tabs, msgCallback, saveConfigCallback, relo openUrl = g_platform.openUrl, openDir = g_platform.openDir, } + context.g_clock = g_clock context.Item = Item context.Creature = Creature diff --git a/src/client/attachedeffect.h b/src/client/attachedeffect.h index 4e8e5eebb3..9ad628ecba 100644 --- a/src/client/attachedeffect.h +++ b/src/client/attachedeffect.h @@ -36,6 +36,8 @@ class AttachedEffect final : public LuaObject uint16_t getId() { return m_id; } + uint16_t getThingId() { return m_thingId; } + AttachedEffectPtr clone(); float getSpeed() { return m_speed / 100.f; }