mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-25 19:17: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;
|
||||
sendHateList();
|
||||
}
|
||||
|
||||
setInCombat(true);
|
||||
}
|
||||
|
||||
void Sapphire::Entity::Player::hateListRemove( BNpcPtr pBNpc )
|
||||
|
@ -1431,6 +1433,7 @@ void Sapphire::Entity::Player::hateListRemove( BNpcPtr pBNpc )
|
|||
m_freeHateSlotQueue.push( hateSlot );
|
||||
m_actorIdTohateSlotMap.erase( it );
|
||||
sendHateList();
|
||||
setInCombat( !m_actorIdTohateSlotMap.empty() );
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue