Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- src/game/SpellAuras.cpp | 13 +++++++++++++
- 1 files changed, 13 insertions(+), 0 deletions(-)
- diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
- index 4838721..5fddaaf 100644
- --- a/src/game/SpellAuras.cpp
- +++ b/src/game/SpellAuras.cpp
- @@ -793,6 +793,19 @@ void AreaAura::Update(uint32 diff)
- if(SpellEntry const *actualSpellInfo = sSpellMgr.SelectAuraRankForLevel(GetSpellProto(), (*tIter)->getLevel()))
- {
- + bool canAdd = true;
- + Unit::AuraList const& uAuraList = (*tIter)->GetAurasByType(AuraType(actualSpellInfo->EffectApplyAuraName[0]));
- + for (Unit::AuraList::const_iterator itr = uAuraList.begin(); itr != uAuraList.end(); ++itr)
- + {
- + if (sSpellMgr.IsRankSpellDueToSpell(actualSpellInfo, (*itr)->GetId()))
- + {
- + canAdd = false;
- + break;
- + }
- + }
- + if (!canAdd)
- + continue;
- +
- int32 actualBasePoints = m_currentBasePoints;
- // recalculate basepoints for lower rank (all AreaAura spell not use custom basepoints?)
- if(actualSpellInfo != GetSpellProto())
Add Comment
Please, Sign In to add comment