mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[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:
parent
dfc9966d3b
commit
425375687c
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue