Misc spell fixes
Port From (https://github.com/TrinityCore/TrinityCore)
This commit is contained in:
@@ -379,24 +379,6 @@ namespace Game.Spells
|
|||||||
m_caster.CastSpell(unitTarget, spell.Id, true);
|
m_caster.CastSpell(unitTarget, spell.Id, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Cloak of Shadows
|
|
||||||
case 35729:
|
|
||||||
{
|
|
||||||
uint dispelMask = SpellInfo.GetDispelMask(DispelType.ALL);
|
|
||||||
foreach (var iter in unitTarget.GetAppliedAuras())
|
|
||||||
{
|
|
||||||
// remove all harmful spells on you...
|
|
||||||
SpellInfo spell = iter.Value.GetBase().GetSpellInfo();
|
|
||||||
if ((spell.DmgClass == SpellDmgClass.Magic // only affect magic spells
|
|
||||||
|| (Convert.ToBoolean(spell.GetDispelMask() & dispelMask))
|
|
||||||
// ignore positive and passive auras
|
|
||||||
&& !iter.Value.IsPositive() && !iter.Value.GetBase().IsPassive()))
|
|
||||||
{
|
|
||||||
m_caster.RemoveAura(iter);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3058,9 +3058,6 @@ namespace Game.Entities
|
|||||||
break;
|
break;
|
||||||
// Coldflame (Lord Marrowgar)
|
// Coldflame (Lord Marrowgar)
|
||||||
case 69146:
|
case 69146:
|
||||||
case 70823:
|
|
||||||
case 70824:
|
|
||||||
case 70825:
|
|
||||||
spellInfo.AttributesEx4 &= ~SpellAttr4.IgnoreResistances;
|
spellInfo.AttributesEx4 &= ~SpellAttr4.IgnoreResistances;
|
||||||
break;
|
break;
|
||||||
case 71169: // Shadow's Fate
|
case 71169: // Shadow's Fate
|
||||||
|
|||||||
Reference in New Issue
Block a user