Core/PetAI: Pin should not be interrupted if the victim has a breakable aura

This commit is contained in:
Trisjdc
2014-05-28 21:52:01 +01:00
parent 01b33a6772
commit 9f50dd3bd6

View File

@@ -89,7 +89,8 @@ void PetAI::UpdateAI(uint32 diff)
if (me->GetVictim() && me->EnsureVictim()->IsAlive())
{
// is only necessary to stop casting, the pet must not exit combat
if (me->EnsureVictim()->HasBreakableByDamageCrowdControlAura(me))
if (!me->GetCurrentSpell(CURRENT_CHANNELED_SPELL) && // ignore channeled spells (Pin, Seduction)
me->EnsureVictim()->HasBreakableByDamageCrowdControlAura(me))
{
me->InterruptNonMeleeSpells(false);
return;