Skip to content

Instantly share code, notes, and snippets.

@residentkrm
Created July 17, 2013 16:20
Show Gist options
  • Save residentkrm/6022105 to your computer and use it in GitHub Desktop.
Save residentkrm/6022105 to your computer and use it in GitHub Desktop.
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 5ed1a1b..51fb3d7 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -5166,6 +5166,13 @@ void Aura::HandleAuraModStun(bool apply, bool Real)
if (apply)
{
+ // remove stealth for set target
+ if (GetSpellProto()->SpellFamilyName == SPELLFAMILY_ROGUE && GetSpellProto()->SpellFamilyFlags.test<CF_ROGUE_SAP>())
+ {
+ if (target->HasStealthAura())
+ target->RemoveSpellsCausingAura(SPELL_AURA_MOD_STEALTH);
+ }
+
// Frost stun aura -> freeze/unfreeze target
if (GetSpellSchoolMask(GetSpellProto()) & SPELL_SCHOOL_MASK_FROST)
target->ModifyAuraState(AURA_STATE_FROZEN, apply);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment