pet attack

This commit is contained in:
Yunfan Li
2023-12-18 17:16:30 +08:00
parent 93cdd79718
commit 8f3c1ecd58

View File

@@ -106,7 +106,7 @@ bool AttackAction::Attack(Unit* target, bool with_pet /*true*/)
context->GetValue<LootObjectStack*>("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())