[8372] Prevent remove triggered spell auras by later applied parent spell auras.

This commit is contained in:
VladimirMangos 2009-08-14 18:45:58 +04:00
parent 9b0f5dba76
commit a6503ac0a4
2 changed files with 8 additions and 3 deletions

View file

@ -3603,9 +3603,14 @@ bool Unit::RemoveNoStackAurasDueToAura(Aura *Aur)
if(i_spellId == spellId) continue;
bool is_triggered_by_spell = false;
// prevent triggered aura of removing aura that triggered it
// prevent triggering aura of removing aura that triggered it
for(int j = 0; j < 3; ++j)
if (i_spellProto->EffectTriggerSpell[j] == spellProto->Id)
if (i_spellProto->EffectTriggerSpell[j] == spellId)
is_triggered_by_spell = true;
// prevent triggered aura of removing aura that triggering it (triggered effect early some aura of parent spell
for(int j = 0; j < 3; ++j)
if (spellProto->EffectTriggerSpell[j] == i_spellId)
is_triggered_by_spell = true;
if (is_triggered_by_spell)