From c38db592ba1f3d4cb8329d14c3441cc950da32d4 Mon Sep 17 00:00:00 2001 From: DiSlord Date: Wed, 14 Jan 2009 20:43:44 +0300 Subject: [PATCH] Fix Night Elf race ability on stealth path by Kirix Signed-off-by: DiSlord --- src/game/SpellAuras.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 79358118c..959dc5503 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -3434,8 +3434,8 @@ void Aura::HandleModStealth(bool apply, bool Real) m_target->SetVisibility(VISIBILITY_GROUP_STEALTH); } - // for RACE_NIGHTELF stealth - if(m_target->GetTypeId()==TYPEID_PLAYER && GetId()==20580) + // (RACE_NIGHTELF stealth apply also Elusiveness) + if(m_target->getRace() == RACE_NIGHTELF) m_target->CastSpell(m_target, 21009, true, NULL, this); } } @@ -3444,8 +3444,8 @@ void Aura::HandleModStealth(bool apply, bool Real) // only at real aura remove if(Real) { - // for RACE_NIGHTELF stealth - if(m_target->GetTypeId()==TYPEID_PLAYER && GetId()==20580) + // (RACE_NIGHTELF stealth remove Elusiveness) + if(m_target->getRace() == RACE_NIGHTELF) m_target->RemoveAurasDueToSpell(21009); // if last SPELL_AURA_MOD_STEALTH and no GM invisibility