Core/Spells: Fixed Cloak of Shadows dispel (removed old hack)

Closes #8758
Serverside spell (35729) already handle with it
This commit is contained in:
Keader
2017-09-23 10:49:44 -03:00
committed by Aokromes
parent 9b8a2457fa
commit 6020c66fbf

View File

@@ -673,27 +673,6 @@ void Spell::EffectTriggerSpell(SpellEffIndex effIndex)
m_caster->CastSpell(unitTarget, spell->Id, true);
return;
}
// Cloak of Shadows
case 35729:
{
uint32 dispelMask = SpellInfo::GetDispelMask(DISPEL_ALL);
Unit::AuraApplicationMap& Auras = unitTarget->GetAppliedAuras();
for (Unit::AuraApplicationMap::iterator iter = Auras.begin(); iter != Auras.end();)
{
// remove all harmful spells on you...
SpellInfo const* spell = iter->second->GetBase()->GetSpellInfo();
if (((spell->DmgClass == SPELL_DAMAGE_CLASS_MAGIC && spell->GetSchoolMask() != SPELL_SCHOOL_MASK_NORMAL) // only affect magic spells
|| (spell->GetDispelMask() & dispelMask)) &&
// ignore positive and passive auras
!iter->second->IsPositive() && !iter->second->GetBase()->IsPassive())
{
m_caster->RemoveAura(iter);
}
else
++iter;
}
return;
}
}
}