fix(Core/PetAI): Fixed logic in PetAI to determine if pet can cast co… (#5038)
This commit is contained in:
@@ -245,8 +245,8 @@ void PetAI::UpdateAI(uint32 diff)
|
|||||||
{
|
{
|
||||||
if (spellInfo->CanBeUsedInCombat())
|
if (spellInfo->CanBeUsedInCombat())
|
||||||
{
|
{
|
||||||
// Check if we're in combat or commanded to attack
|
// Check if we're in combat or commanded to attack (exlude auras with infinity duration)
|
||||||
if (!me->IsInCombat() && !me->GetCharmInfo()->IsCommandAttack())
|
if (!me->IsInCombat() && !me->GetCharmInfo()->IsCommandAttack() && spellInfo->GetMaxDuration() != -1)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user