Guest User

Untitled

a guest
May 19th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.70 KB | None | 0 0
  1. +
  2. +    if (isMovingOrTurning())
  3. +    {
  4. +        for (AuraMap::iterator iter = m_Auras.begin(); iter != m_Auras.end();)
  5. +        {
  6. +            Aura* aura = iter->second;
  7. +            if (!aura)
  8. +            {
  9. +                ++iter;
  10. +                continue;
  11. +            }
  12. +            SpellEntry const *spell = aura->GetSpellProto();
  13. +            if ((spell->Attributes & (SPELL_ATTR_CASTABLE_WHILE_SITTING|SPELL_ATTR_UNK8|SPELL_ATTR_CANT_USED_IN_COMBAT))
  14. +            && (aura->GetModifier()->m_auraname == SPELL_AURA_MOD_POWER_REGEN || aura->GetModifier()->m_auraname == SPELL_AURA_MOD_REGEN))
  15. +                RemoveAura(iter);
  16. +            else
  17. +                ++iter;
  18. +        }
  19. +    }
Add Comment
Please, Sign In to add comment