From 3db8a9b09be4fe8e93cb53c5a19baf05f7c98069 Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Tue, 6 Apr 2021 14:23:30 +0200 Subject: [PATCH] =?UTF-8?q?fix(Core/PetAI):=20Fixed=20logic=20in=20PetAI?= =?UTF-8?q?=20to=20determine=20if=20pet=20can=20cast=20co=E2=80=A6=20(#503?= =?UTF-8?q?8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/AI/CoreAI/PetAI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/game/AI/CoreAI/PetAI.cpp b/src/server/game/AI/CoreAI/PetAI.cpp index 46fcbf4f4..c513759a7 100644 --- a/src/server/game/AI/CoreAI/PetAI.cpp +++ b/src/server/game/AI/CoreAI/PetAI.cpp @@ -245,8 +245,8 @@ void PetAI::UpdateAI(uint32 diff) { if (spellInfo->CanBeUsedInCombat()) { - // Check if we're in combat or commanded to attack - if (!me->IsInCombat() && !me->GetCharmInfo()->IsCommandAttack()) + // Check if we're in combat or commanded to attack (exlude auras with infinity duration) + if (!me->IsInCombat() && !me->GetCharmInfo()->IsCommandAttack() && spellInfo->GetMaxDuration() != -1) continue; }