Death grip should now check see if creature is immune to silence spells before interrupting

This commit is contained in:
talamortis
2017-11-26 20:03:35 +00:00
parent d87134b8ea
commit ebb2ce6b38

View File

@@ -1564,7 +1564,9 @@ class spell_dk_death_grip : public SpellScriptLoader
if (caster != target) if (caster != target)
{ {
caster->CastSpell(target, 49560, true); caster->CastSpell(target, 49560, true);
target->InterruptNonMeleeSpells(true); const SpellInfo* spellInfo = sSpellMgr->GetSpellInfo(1766); // Rogue kick
if (!target->IsImmunedToSpellEffect(spellInfo, EFFECT_0))
target->InterruptNonMeleeSpells(true);
} }
else else
baseTarget->CastSpell(caster, 49560, true); baseTarget->CastSpell(caster, 49560, true);