Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +
- + if (isMovingOrTurning())
- + {
- + for (AuraMap::iterator iter = m_Auras.begin(); iter != m_Auras.end();)
- + {
- + Aura* aura = iter->second;
- + if (!aura)
- + {
- + ++iter;
- + continue;
- + }
- + SpellEntry const *spell = aura->GetSpellProto();
- + if ((spell->Attributes & (SPELL_ATTR_CASTABLE_WHILE_SITTING|SPELL_ATTR_UNK8|SPELL_ATTR_CANT_USED_IN_COMBAT))
- + && (aura->GetModifier()->m_auraname == SPELL_AURA_MOD_POWER_REGEN || aura->GetModifier()->m_auraname == SPELL_AURA_MOD_REGEN))
- + RemoveAura(iter);
- + else
- + ++iter;
- + }
- + }
Add Comment
Please, Sign In to add comment