Core/Spell: Remove some leftover hack code from ::EffectSanctuary pertaining to vanish. None of this code did anything anymore.

Port From (https://github.com/TrinityCore/TrinityCore/commit/76b2d37259c8beb3cc1b698eb28fd7e068366724)
This commit is contained in:
hondacrx
2021-04-16 15:26:00 -04:00
parent 4ce89c9508
commit a2aa43c77d
-12
View File
@@ -3255,18 +3255,6 @@ namespace Game.Spells
}
unitTarget.LastSanctuaryTime = GameTime.GetGameTimeMS();
// Vanish allows to remove all threat and cast regular stealth so other spells can be used
if (m_caster.IsTypeId(TypeId.Player)
&& m_spellInfo.SpellFamilyName == SpellFamilyNames.Rogue
&& m_spellInfo.SpellFamilyFlags[0].HasAnyFlag(0x00000800u))
{
m_caster.ToPlayer().RemoveAurasByType(AuraType.ModRoot);
m_caster.ToPlayer().RemoveAurasByType(AuraType.ModRoot2);
// Overkill
if (m_caster.ToPlayer().HasSpell(58426))
m_caster.CastSpell(m_caster, 58427, true);
}
}
[SpellEffectHandler(SpellEffectName.Duel)]