From 791da540a9ae94ece9dabfc994333e503e74ed65 Mon Sep 17 00:00:00 2001 From: Render Date: Thu, 25 May 2017 06:08:49 -0400 Subject: [PATCH] Core/Spells: Touch of Zanzil now prevents stealth. (#481) --- src/game/Spells/SpellInfo.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/game/Spells/SpellInfo.cpp b/src/game/Spells/SpellInfo.cpp index 1927b2d3d..be189de05 100644 --- a/src/game/Spells/SpellInfo.cpp +++ b/src/game/Spells/SpellInfo.cpp @@ -2013,9 +2013,19 @@ AuraStateType SpellInfo::LoadAuraState() const // Faerie Fire (druid versions) if (SpellFamilyName == SPELLFAMILY_DRUID && SpellFamilyFlags[0] & 0x400) return AURA_STATE_FAERIE_FIRE; + + // Any Spells that prevent spells can be added here. + uint32 StealthPreventionSpellList[] = { 9991, 35331, 9806, 35325 }; + + // Goes through each of the spells and identifies them as Stealth Prevention Spell. + for (int i = 0; i < sizeof(StealthPreventionSpellList) / sizeof(uint32); i++) { + if (Id == StealthPreventionSpellList[i]) { + return AURA_STATE_FAERIE_FIRE; + } + } // Sting (hunter's pet ability) - if (GetCategory() == 1133 || Id == 35325) + if (GetCategory() == 1133) return AURA_STATE_FAERIE_FIRE; // Victorious