*Backport a crash fix of petai.
--HG-- branch : trunk
This commit is contained in:
@@ -123,6 +123,9 @@ void PetAI::UpdateAI(const uint32 diff)
|
||||
}
|
||||
}
|
||||
|
||||
if(!me->GetCharmInfo())
|
||||
return;
|
||||
|
||||
if (i_pet.GetGlobalCooldown() == 0 && !i_pet.hasUnitState(UNIT_STAT_CASTING))
|
||||
{
|
||||
bool inCombat = me->getVictim();
|
||||
|
||||
Reference in New Issue
Block a user