diff options
author | QAston <none@none> | 2009-06-28 15:13:56 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-06-28 15:13:56 +0200 |
commit | d529ab76c5a414c115a8a6605fde9b43a19db18a (patch) | |
tree | 148001ad262a614969bf871eae2ebf4b56478e9b /src/game/SpellMgr.cpp | |
parent | 26dfd9df17a032820df269b41f94e092ea3dbbe1 (diff) |
*Do not allow periodic aoe auras to stack.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r-- | src/game/SpellMgr.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index a5d5033284e..8110c5a3a1d 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -2826,6 +2826,11 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2, bool for(uint32 i = 0; i < 3; ++i) if (spellInfo_1->Effect[i] == SPELL_EFFECT_APPLY_AURA || spellInfo_1->Effect[i] == SPELL_EFFECT_PERSISTENT_AREA_AURA) + { + // not channeled AOE effects can stack + if(IsAreaEffectTarget[spellInfo_1->EffectImplicitTargetA[i]] || IsAreaEffectTarget[spellInfo_1->EffectImplicitTargetB[i]] + && !IsChanneledSpell(spellInfo_1)) + continue; // not area auras (shaman totem) switch(spellInfo_1->EffectApplyAuraName[i]) { @@ -2844,6 +2849,7 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2, bool default: break; } + } } spellId_2 = GetLastSpellInChain(spellId_2); |