mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-08 03:37:45 +00:00
Fix battle actor control
This commit is contained in:
parent
f5d16ee916
commit
7aa18548f0
1 changed files with 2 additions and 2 deletions
|
@ -1282,14 +1282,14 @@ const std::map< uint32_t, uint8_t >& Player::getActorIdToHateSlotMap()
|
||||||
void Player::onMobAggro( const BNpc& bnpc )
|
void Player::onMobAggro( const BNpc& bnpc )
|
||||||
{
|
{
|
||||||
hateListAdd( bnpc );
|
hateListAdd( bnpc );
|
||||||
queuePacket( makeActorControl( getId(), SetBattle, 1 ) );
|
queuePacket( makeActorControl( getId(), SetBattle, 1, 0, 0 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::onMobDeaggro( const BNpc& bnpc )
|
void Player::onMobDeaggro( const BNpc& bnpc )
|
||||||
{
|
{
|
||||||
hateListRemove( bnpc );
|
hateListRemove( bnpc );
|
||||||
if( m_actorIdTohateSlotMap.empty() )
|
if( m_actorIdTohateSlotMap.empty() )
|
||||||
queuePacket( makeActorControl( getId(), SetBattle ) );
|
queuePacket( makeActorControl( getId(), SetBattle, 0, 0, 0 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Player::isLogin() const
|
bool Player::isLogin() const
|
||||||
|
|
Loading…
Add table
Reference in a new issue