From 438eaf9d18e83a69c0eaec7c146291690cba4775 Mon Sep 17 00:00:00 2001 From: Olion Date: Tue, 29 Sep 2015 09:57:29 +0300 Subject: [PATCH] [Spell] Warrior - Sweeping Strikes, do not drop aura when stance changes A crude but efficient hack. TODO Find a criteria allowing to group the spells with Stances>0 checking the stance: while cast and while stance change, then rewrite Aura::HandleShapeshiftBoosts() respectively. --- src/game/WorldHandlers/SpellAuras.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/WorldHandlers/SpellAuras.cpp b/src/game/WorldHandlers/SpellAuras.cpp index ad66ab10..5ccd0c6a 100644 --- a/src/game/WorldHandlers/SpellAuras.cpp +++ b/src/game/WorldHandlers/SpellAuras.cpp @@ -4122,7 +4122,7 @@ void Aura::HandleShapeshiftBoosts(bool apply) Unit::SpellAuraHolderMap& tAuras = target->GetSpellAuraHolderMap(); for (Unit::SpellAuraHolderMap::iterator itr = tAuras.begin(); itr != tAuras.end();) { - if (itr->second->IsRemovedOnShapeLost() || itr->second->GetSpellProto()->Id == 24864) // Feline Swiftness Passive 2a + if ((itr->second->IsRemovedOnShapeLost() && itr->second->GetSpellProto()->Id != 12292) || itr->second->GetSpellProto()->Id == 24864) // Feline Swiftness Passive 2a drop, Sweeping Strikes keep TODO { target->RemoveAurasDueToSpell(itr->second->GetId()); itr = tAuras.begin();