From a2aa43c77dd100a324cdb02c951a966bb8758314 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 16 Apr 2021 15:26:00 -0400 Subject: [PATCH] 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) --- Source/Game/Spells/SpellEffects.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Source/Game/Spells/SpellEffects.cs b/Source/Game/Spells/SpellEffects.cs index 40b240e4f..22584fdfc 100644 --- a/Source/Game/Spells/SpellEffects.cs +++ b/Source/Game/Spells/SpellEffects.cs @@ -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)]