mirror of
https://github.com/edubart/otclient.git
synced 2025-12-22 16:27:10 +01:00
Some improvements to some things.
This commit is contained in:
@@ -1597,10 +1597,12 @@ void Game::setClientVersion(int version)
|
||||
|
||||
void Game::setAttackingCreature(const CreaturePtr& creature)
|
||||
{
|
||||
CreaturePtr oldCreature = m_attackingCreature;
|
||||
m_attackingCreature = creature;
|
||||
if(creature != m_attackingCreature) {
|
||||
CreaturePtr oldCreature = m_attackingCreature;
|
||||
m_attackingCreature = creature;
|
||||
|
||||
g_lua.callGlobalField("g_game", "onAttackingCreatureChange", creature, oldCreature);
|
||||
g_lua.callGlobalField("g_game", "onAttackingCreatureChange", creature, oldCreature);
|
||||
}
|
||||
}
|
||||
|
||||
void Game::setFollowingCreature(const CreaturePtr& creature)
|
||||
|
||||
Reference in New Issue
Block a user