Jump to content

[fix] spell_aura_mod_stealth


Guest Most_Mangos

Recommended Posts

What bug does the patch fix? What features does the patch add?

1038, 33206, 29858, 32375 not break stealth by cast targeting

Who has been writing this patch? Please include either forum user names or email addresses.

Me

diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 717e0c2..d935c33 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1219,7 +1219,7 @@ void Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask)
            }

            // not break stealth by cast targeting
-            if (!(m_spellInfo->AttributesEx & SPELL_ATTR_EX_NOT_BREAK_STEALTH) && m_spellInfo->Id != 3600)
+            if (!(m_spellInfo->AttributesEx & SPELL_ATTR_EX_NOT_BREAK_STEALTH) && m_spellInfo->Id != 53055 && m_spellInfo->Id != 3600 && m_spellInfo->Id != 44416 && m_spellInfo->SpellIconID != 1954 && m_spellInfo->SpellIconID != 2267)
                unit->RemoveSpellsCausingAura(SPELL_AURA_MOD_STEALTH);

            // can cause back attack (if detected), stealth removed at Spell::cast if spell break it

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use