diff options
author | jackpoz <giacomopoz@gmail.com> | 2014-05-29 19:45:48 +0200 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2014-05-29 19:45:48 +0200 |
commit | fabceddacbff254bdded1044901bc1740d110aef (patch) | |
tree | c4eb9baf2e7b938386337eea483fa674e3212058 /src | |
parent | 1b47f3270ec0c02ececb6cf96da957aa96a739dc (diff) | |
parent | 9f50dd3bd63ea432fb83e3fbca63002ff3525301 (diff) |
Merge pull request #12160 from Trisjdc/petai
Core/PetAI: Pin should not be interrupted if the victim has a breakable aura
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/AI/CoreAI/PetAI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/AI/CoreAI/PetAI.cpp b/src/server/game/AI/CoreAI/PetAI.cpp index f0a75403c8c..7c640f9a66d 100644 --- a/src/server/game/AI/CoreAI/PetAI.cpp +++ b/src/server/game/AI/CoreAI/PetAI.cpp @@ -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; |