diff --git a/src/strategy/actions/AttackAction.cpp b/src/strategy/actions/AttackAction.cpp index 1cff464c..7625eb3f 100644 --- a/src/strategy/actions/AttackAction.cpp +++ b/src/strategy/actions/AttackAction.cpp @@ -104,13 +104,15 @@ bool AttackAction::Attack(Unit* target, bool with_pet /*true*/) if (Pet* pet = bot->GetPet()) { - pet->SetReactState(REACT_PASSIVE); + if (with_pet) { + pet->SetReactState(REACT_DEFENSIVE); pet->SetTarget(target->GetGUID()); pet->GetCharmInfo()->SetCommandState(COMMAND_ATTACK); pet->GetCharmInfo()->SetIsCommandAttack(true); pet->AI()->AttackStart(target); } else { + pet->SetReactState(REACT_PASSIVE); pet->GetCharmInfo()->SetCommandState(COMMAND_FOLLOW); pet->GetCharmInfo()->SetIsCommandFollow(true); pet->GetCharmInfo()->IsReturning();