mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
Death grip should now check see if creature is immune to silence spells before interrupting
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user