aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2017-12-24 13:54:15 +0100
committerfunjoker <funjoker109@gmail.com>2021-04-15 05:53:27 +0200
commit76b2d37259c8beb3cc1b698eb28fd7e068366724 (patch)
treec9c1249bab1fcd4b0a846ccbec8512974edb3bff
parent8f0e0c77ea8cf6bfa106068f218acdd4c5cdacdb (diff)
Core/Spell: Remove some leftover hack code from ::EffectSanctuary pertaining to vanish. None of this code did anything anymore.
(cherry picked from commit 3a536260f8cd6565726bf82e56dcb58b513b6331)
-rw-r--r--src/server/game/Spells/SpellEffects.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index 619297d91ed..d39479ccd5a 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -3483,18 +3483,6 @@ void Spell::EffectSanctuary(SpellEffIndex /*effIndex*/)
}
unitTarget->m_lastSanctuaryTime = GameTime::GetGameTimeMS();
-
- // Vanish allows to remove all threat and cast regular stealth so other spells can be used
- if (m_caster->GetTypeId() == TYPEID_PLAYER
- && m_spellInfo->SpellFamilyName == SPELLFAMILY_ROGUE
- && (m_spellInfo->SpellFamilyFlags[0] & SPELLFAMILYFLAG0_ROGUE_VANISH))
- {
- m_caster->ToPlayer()->RemoveAurasByType(SPELL_AURA_MOD_ROOT);
- m_caster->ToPlayer()->RemoveAurasByType(SPELL_AURA_MOD_ROOT_2);
- // Overkill
- if (m_caster->ToPlayer()->HasSpell(58426))
- m_caster->CastSpell(m_caster, 58427, true);
- }
}
void Spell::EffectDuel(SpellEffIndex effIndex)