From 8f3c1ecd58b61a212e5e939d9fac8e00c28a134d Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Mon, 18 Dec 2023 17:16:30 +0800 Subject: [PATCH] pet attack --- src/strategy/actions/AttackAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/actions/AttackAction.cpp b/src/strategy/actions/AttackAction.cpp index 08ad2e2d..42731021 100644 --- a/src/strategy/actions/AttackAction.cpp +++ b/src/strategy/actions/AttackAction.cpp @@ -106,7 +106,7 @@ bool AttackAction::Attack(Unit* target, bool with_pet /*true*/) context->GetValue("available loot")->Get()->Add(guid); /* prevent pet dead immediately in group */ - if (bot->GetGroup() && !target->IsInCombat()) { + if (bot->GetMap()->IsDungeon() && bot->GetGroup() && !target->IsInCombat()) { with_pet = false; } if (Pet* pet = bot->GetPet())