mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 04:53:27 +02:00
Fixed #165, Fine tune fixes!
* Fixed an issue with the cooldown timing. * Fixed issue with 'right click' using items under players. * Some changes to the minimap control (ctrl + mouse wheel to change floors and tweaked the zoom/move speeds). * Fixed some bugs in the trade module. * Added new Spells table for spell related functions (Also added getSpellByName and getSpellByWords). * Fixed an issue with follow/attack cancelling (wasn't calling onFollowChanged for updates in battle, etc).
This commit is contained in:
@@ -862,7 +862,14 @@ void Game::cancelAttackAndFollow()
|
||||
if(!canPerformGameAction())
|
||||
return;
|
||||
|
||||
if(isFollowing())
|
||||
setFollowingCreature(nullptr);
|
||||
if(isAttacking())
|
||||
setAttackingCreature(nullptr);
|
||||
|
||||
m_protocolGame->sendCancelAttackAndFollow();
|
||||
|
||||
g_lua.callGlobalField("g_game", "onCancelAttackAndFollow");
|
||||
}
|
||||
|
||||
void Game::talk(const std::string& message)
|
||||
|
Reference in New Issue
Block a user