Created
July 17, 2013 16:20
-
-
Save residentkrm/6022105 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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