Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SpellModifier* GetSpellModifier() const { return m_spellmod; }
- for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
- if (AuraEffect* aurEff = GetEffect(i))
- if ((aurEff->GetAuraType() == SPELL_AURA_ADD_FLAT_MODIFIER) || (aurEff->GetAuraType() == SPELL_AURA_ADD_PCT_MODIFIER))
- if (SpellModifier* mod = aurEff->GetSpellModifier())
- mod->charges = GetCharges();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement