[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.
This commit is contained in:
Olion 2015-09-29 09:57:29 +03:00 committed by Antz
parent c62e27a816
commit 438eaf9d18

View File

@ -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();