mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-27 11:57:45 +00:00
Set player in/out of combat when updating the hate list.
This commit is contained in:
parent
dd3af7e689
commit
3624b9e30b
1 changed files with 3 additions and 0 deletions
|
@ -1417,6 +1417,8 @@ void Sapphire::Entity::Player::hateListAdd( BNpcPtr pBNpc )
|
||||||
m_actorIdTohateSlotMap[ pBNpc->getId() ] = hateId;
|
m_actorIdTohateSlotMap[ pBNpc->getId() ] = hateId;
|
||||||
sendHateList();
|
sendHateList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setInCombat(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sapphire::Entity::Player::hateListRemove( BNpcPtr pBNpc )
|
void Sapphire::Entity::Player::hateListRemove( BNpcPtr pBNpc )
|
||||||
|
@ -1431,6 +1433,7 @@ void Sapphire::Entity::Player::hateListRemove( BNpcPtr pBNpc )
|
||||||
m_freeHateSlotQueue.push( hateSlot );
|
m_freeHateSlotQueue.push( hateSlot );
|
||||||
m_actorIdTohateSlotMap.erase( it );
|
m_actorIdTohateSlotMap.erase( it );
|
||||||
sendHateList();
|
sendHateList();
|
||||||
|
setInCombat( !m_actorIdTohateSlotMap.empty() );
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue