[10446] Small fix for single target auras: remove caster only auras

Avoid remove different caster aura if target have similar diff caster auras
in case when auras from diff casters allowed for spell.
This commit is contained in:
VladimirMangos 2010-09-05 08:50:37 +04:00
parent dfc9966d3b
commit 425375687c
2 changed files with 3 additions and 3 deletions

View file

@ -4526,7 +4526,7 @@ void Unit::RemoveNotOwnSingleTargetAuras(uint32 newPhase)
// remove from target if target found
if (Unit* itr_target = GetMap()->GetUnit(itr_targetGuid))
itr_target->RemoveAurasDueToSpell(itr_spellEntry->Id);
itr_target->RemoveAurasByCasterSpell(itr_spellEntry->Id, GetGUID());
itr = scTargets.begin(); // list can be changed at remove aura
continue;
@ -4540,7 +4540,7 @@ void Unit::RemoveNotOwnSingleTargetAuras(uint32 newPhase)
// remove from target if target found
if (itr_target)
itr_target->RemoveAurasDueToSpell(itr_spellEntry->Id);
itr_target->RemoveAurasByCasterSpell(itr_spellEntry->Id, GetGUID());
itr = scTargets.begin(); // list can be changed at remove aura
continue;