*Change remove mode from stack to default for single-caster-aura-removal and non-stackable-aura-removal.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-06-13 13:05:58 -05:00
1 parent 73d8980717
commit d55cc087ee
2 files changed
+53 -53

No files matched your search

+2 -2
View File
@@ -3900,7 +3900,7 @@ bool Unit::AddAura(Aura *Aur, bool handleEffects)
if( (*itr)->GetTarget() != Aur->GetTarget() &&
IsSingleTargetSpells((*itr)->GetSpellProto(),aurSpellInfo) )
{
(*itr)->GetTarget()->RemoveAurasDueToSpell((*itr)->GetId(), caster->GetGUID(), AURA_REMOVE_BY_STACK);
(*itr)->GetTarget()->RemoveAurasDueToSpell((*itr)->GetId(), caster->GetGUID(), AURA_REMOVE_BY_DEFAULT);
restart = true;
break;
}
@@ -4010,7 +4010,7 @@ bool Unit::RemoveNoStackAurasDueToAura(Aura *Aur)
return false;
// Remove all auras by aura caster
RemoveAura(i, AURA_REMOVE_BY_STACK);
RemoveAura(i, AURA_REMOVE_BY_DEFAULT);
if(i == m_Auras.end())
break;
remove = true;