Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. SpellModifier* GetSpellModifier() const { return m_spellmod; }
  2.  
  3. for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
  4. if (AuraEffect* aurEff = GetEffect(i))
  5. if ((aurEff->GetAuraType() == SPELL_AURA_ADD_FLAT_MODIFIER) || (aurEff->GetAuraType() == SPELL_AURA_ADD_PCT_MODIFIER))
  6. if (SpellModifier* mod = aurEff->GetSpellModifier())
  7. mod->charges = GetCharges();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement