Merge pull request #12160 from Trisjdc/petai

Core/PetAI: Pin should not be interrupted if the victim has a breakable aura
This commit is contained in:
jackpoz
2014-05-29 19:45:48 +02:00

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;