From 7aa18548f084230420df3d862bdb9b18136dbb49 Mon Sep 17 00:00:00 2001 From: Lucy <44952533+Skyliegirl33@users.noreply.github.com> Date: Tue, 24 Jan 2023 06:38:33 +0100 Subject: [PATCH] Fix battle actor control --- src/world/Actor/Player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/world/Actor/Player.cpp b/src/world/Actor/Player.cpp index 57bbaee1..ed689ffd 100644 --- a/src/world/Actor/Player.cpp +++ b/src/world/Actor/Player.cpp @@ -1282,14 +1282,14 @@ const std::map< uint32_t, uint8_t >& Player::getActorIdToHateSlotMap() void Player::onMobAggro( const BNpc& bnpc ) { hateListAdd( bnpc ); - queuePacket( makeActorControl( getId(), SetBattle, 1 ) ); + queuePacket( makeActorControl( getId(), SetBattle, 1, 0, 0 ) ); } void Player::onMobDeaggro( const BNpc& bnpc ) { hateListRemove( bnpc ); if( m_actorIdTohateSlotMap.empty() ) - queuePacket( makeActorControl( getId(), SetBattle ) ); + queuePacket( makeActorControl( getId(), SetBattle, 0, 0, 0 ) ); } bool Player::isLogin() const