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

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-17 16:07:37 -05:00
parent 83b1cd857f
commit c31a744771
+9 -2
View File
@@ -3806,10 +3806,17 @@ bool Unit::RemoveNoStackAurasDueToAura(Aura *Aur)
}
bool is_triggered_by_spell = false;
// prevent triggered aura of removing aura that triggered it
// prevent triggering aura of removing aura that triggered it
// prevent triggered aura of removing aura that triggering it (triggered effect early some aura of parent spell
for(uint8 j = 0; j < MAX_SPELL_EFFECTS; ++j)
if (i_spellProto->EffectTriggerSpell[j] == spellProto->Id)
{
if (i_spellProto->EffectTriggerSpell[j] == spellProto->Id
|| spellProto->EffectTriggerSpell[j] == i_spellProto->Id) // I do not know what is this for
{
is_triggered_by_spell = true;
break;
}
}
// check if they can stack