mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 13:03:27 +02:00
fix scroll, container item size, tradewindow scroll, questlog window alignment, stop attacking same creature
This commit is contained in:
@@ -691,9 +691,14 @@ void Game::refreshContainer()
|
||||
|
||||
void Game::attack(const CreaturePtr& creature)
|
||||
{
|
||||
if(!canPerformGameAction() || creature == m_localPlayer || creature == m_attackingCreature)
|
||||
if(!canPerformGameAction() || creature == m_localPlayer)
|
||||
return;
|
||||
|
||||
if(creature == m_attackingCreature) {
|
||||
cancelAttack();
|
||||
return;
|
||||
}
|
||||
|
||||
m_localPlayer->lockWalk();
|
||||
|
||||
if(creature && isFollowing())
|
||||
@@ -1106,4 +1111,4 @@ void Game::setFollowingCreature(const CreaturePtr& creature)
|
||||
m_followingCreature = creature;
|
||||
|
||||
g_lua.callGlobalField("g_game", "onFollowingCreatureChange", creature, oldCreature);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user