mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Core/Spells: Fixed Cloak of Shadows dispel (removed old hack)
Closes #8758 Serverside spell (35729) already handle with it
This commit is contained in:
@@ -821,27 +821,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user