mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
Fix auto chase override
This commit is contained in:
@@ -499,9 +499,9 @@ void Game::walk(Otc::Direction direction)
|
||||
return;
|
||||
}
|
||||
|
||||
forceWalk(direction);
|
||||
|
||||
g_lua.callGlobalField("g_game", "onWalk", direction);
|
||||
|
||||
forceWalk(direction);
|
||||
}
|
||||
|
||||
void Game::autoWalk(const std::vector<Otc::Direction>& dirs)
|
||||
@@ -529,9 +529,9 @@ void Game::autoWalk(const std::vector<Otc::Direction>& dirs)
|
||||
m_localPlayer->preWalk(direction);
|
||||
}
|
||||
|
||||
m_protocolGame->sendAutoWalk(dirs);
|
||||
|
||||
g_lua.callGlobalField("g_game", "onAutoWalk", dirs);
|
||||
|
||||
m_protocolGame->sendAutoWalk(dirs);
|
||||
}
|
||||
|
||||
void Game::forceWalk(Otc::Direction direction)
|
||||
|
Reference in New Issue
Block a user