diff --git a/config.lua b/config.lua index 1f5b5f9..c692d20 100644 --- a/config.lua +++ b/config.lua @@ -54,7 +54,7 @@ timeBetweenExActions = 1000 -- Map -- NOTE: set mapName WITHOUT .otbm at the end -mapName = "map" +mapName = "mymap" mapAuthor = "CipSoft" -- MySQL diff --git a/src/creature.cpp b/src/creature.cpp index cc4570c..ad329a0 100644 --- a/src/creature.cpp +++ b/src/creature.cpp @@ -277,6 +277,13 @@ void Creature::addEventWalk(bool firstStep) g_game.checkCreatureWalk(getID()); } + if (const Monster* monster = getMonster()) { + Creature* creature = monster->getFollowCreature(); + if (!creature) { + ticks = ticks * 1.25; + } + } + eventWalk = g_scheduler.addEvent(createSchedulerTask(ticks, std::bind(&Game::checkCreatureWalk, &g_game, getID()))); }