From d720a80e5c3820e317152fe9aa339b9bd2a860cb Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 22 Nov 2008 14:33:32 -0600 Subject: *Let Mass Dispel dispel immune auras. By QAston. --HG-- branch : trunk --- src/game/Spell.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src') diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 0c1f25964a9..70a9ca94560 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -928,6 +928,23 @@ void Spell::DoAllEffectOnTarget(TargetInfo *target) return; SpellMissInfo missInfo = target->missCondition; + + //if target is immune to spell + if (missInfo == SPELL_MISS_IMMUNE) + { + uint32 t_mask =0; + for (uint32 i=0;i<3;i++) + //and this spell triggers another spell (not aura) + if (m_spellInfo->Effect[i]==SPELL_EFFECT_TRIGGER_SPELL) + t_mask |=1<