mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Spell: Remove some leftover hack code from ::EffectSanctuary pertaining to vanish. None of this code did anything anymore.
(cherry picked from commit 3a536260f8)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user