From a665f4dd4643668c482e36922acf084e5b95d2a2 Mon Sep 17 00:00:00 2001 From: Necrovoice Date: Tue, 31 Jan 2017 10:53:40 -0500 Subject: [PATCH] Rogue Stealth corrections A few corrections to the rogue stealth. --- src/game/Object/AggressorAI.cpp | 1 - src/game/Object/GuardAI.cpp | 1 - src/game/Object/PetAI.cpp | 1 - src/game/WorldHandlers/Spell.cpp | 2 +- 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/game/Object/AggressorAI.cpp b/src/game/Object/AggressorAI.cpp index de27c98d..1c0c7a0a 100644 --- a/src/game/Object/AggressorAI.cpp +++ b/src/game/Object/AggressorAI.cpp @@ -58,7 +58,6 @@ void AggressorAI::MoveInLineOfSight(Unit* u) if (!m_creature->getVictim()) { AttackStart(u); - u->RemoveSpellsCausingAura(SPELL_AURA_MOD_STEALTH); } else if (sMapStore.LookupEntry(m_creature->GetMapId())->IsDungeon()) { diff --git a/src/game/Object/GuardAI.cpp b/src/game/Object/GuardAI.cpp index 94db6653..077f2ed7 100644 --- a/src/game/Object/GuardAI.cpp +++ b/src/game/Object/GuardAI.cpp @@ -54,7 +54,6 @@ void GuardAI::MoveInLineOfSight(Unit* u) { // Need add code to let guard support player AttackStart(u); - u->RemoveSpellsCausingAura(SPELL_AURA_MOD_STEALTH); } } } diff --git a/src/game/Object/PetAI.cpp b/src/game/Object/PetAI.cpp index 9d759f0a..e2aa3f20 100644 --- a/src/game/Object/PetAI.cpp +++ b/src/game/Object/PetAI.cpp @@ -67,7 +67,6 @@ void PetAI::MoveInLineOfSight(Unit* u) if (m_creature->IsWithinLOSInMap(u)) { AttackStart(u); - u->RemoveSpellsCausingAura(SPELL_AURA_MOD_STEALTH); } } } diff --git a/src/game/WorldHandlers/Spell.cpp b/src/game/WorldHandlers/Spell.cpp index 42e610b7..1227fef9 100644 --- a/src/game/WorldHandlers/Spell.cpp +++ b/src/game/WorldHandlers/Spell.cpp @@ -1165,7 +1165,7 @@ void Spell::DoSpellHitOnUnit(Unit* unit, uint32 effectMask, bool isReflected) } // not break stealth by cast targeting - if (!m_spellInfo->HasAttribute(SPELL_ATTR_EX_NOT_BREAK_STEALTH)) + if(!(m_spellInfo->AttributesEx & SPELL_ATTR_EX_NOT_BREAK_STEALTH) && m_spellInfo->Id != 51690 && m_spellInfo->Id != 53055) { unit->RemoveSpellsCausingAura(SPELL_AURA_MOD_STEALTH); } // can cause back attack (if detected), stealth removed at Spell::cast if spell break it