Guest User

Untitled

a guest
Jun 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. src/game/SpellAuras.cpp | 13 +++++++++++++
  2. 1 files changed, 13 insertions(+), 0 deletions(-)
  3.  
  4. diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
  5. index 4838721..5fddaaf 100644
  6. --- a/src/game/SpellAuras.cpp
  7. +++ b/src/game/SpellAuras.cpp
  8. @@ -793,6 +793,19 @@ void AreaAura::Update(uint32 diff)
  9.  
  10. if(SpellEntry const *actualSpellInfo = sSpellMgr.SelectAuraRankForLevel(GetSpellProto(), (*tIter)->getLevel()))
  11. {
  12. + bool canAdd = true;
  13. + Unit::AuraList const& uAuraList = (*tIter)->GetAurasByType(AuraType(actualSpellInfo->EffectApplyAuraName[0]));
  14. + for (Unit::AuraList::const_iterator itr = uAuraList.begin(); itr != uAuraList.end(); ++itr)
  15. + {
  16. + if (sSpellMgr.IsRankSpellDueToSpell(actualSpellInfo, (*itr)->GetId()))
  17. + {
  18. + canAdd = false;
  19. + break;
  20. + }
  21. + }
  22. + if (!canAdd)
  23. + continue;
  24. +
  25. int32 actualBasePoints = m_currentBasePoints;
  26. // recalculate basepoints for lower rank (all AreaAura spell not use custom basepoints?)
  27. if(actualSpellInfo != GetSpellProto())
Add Comment
Please, Sign In to add comment