From cef74026773c0bef383740cae54c1551f27cfabb Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sat, 15 Jul 2023 13:37:55 +0800 Subject: [PATCH] pet attack status fix --- src/strategy/actions/AttackAction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strategy/actions/AttackAction.cpp b/src/strategy/actions/AttackAction.cpp index b0876ac7..3246dde0 100644 --- a/src/strategy/actions/AttackAction.cpp +++ b/src/strategy/actions/AttackAction.cpp @@ -106,12 +106,12 @@ bool AttackAction::Attack(Unit* target, bool with_pet /*true*/) { if (with_pet) { pet->SetTarget(target->GetGUID()); - pet->GetCharmInfo()->SetCommandState(COMMAND_ATTACK); + // pet->GetCharmInfo()->SetCommandState(COMMAND_ATTACK); pet->GetCharmInfo()->SetIsCommandAttack(true); pet->AI()->AttackStart(target); pet->SetReactState(REACT_DEFENSIVE); } else { - pet->GetCharmInfo()->SetCommandState(COMMAND_FOLLOW); + // pet->GetCharmInfo()->SetCommandState(COMMAND_FOLLOW); pet->GetCharmInfo()->SetIsCommandFollow(true); pet->GetCharmInfo()->IsReturning(); pet->GetMotionMaster()->MoveFollow(bot, PET_FOLLOW_DIST, pet->GetFollowAngle());