diff options
| author | megamage <none@none> | 2009-08-17 16:07:37 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-08-17 16:07:37 -0500 |
| commit | c31a7447711f367fd69d8d5f3c212e0cb742fc00 (patch) | |
| tree | 80d996e106c11dd4e814ab1f09cd53aecf1b5a82 /src | |
| parent | 83b1cd857f736a957638da94a0cfa2548afe4045 (diff) | |
[8372] Prevent remove triggered spell auras by later applied parent spell auras. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Unit.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index a5d2acfd008..8053944f9ea 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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 |
