Core/Auras: Move code which uses polymorphism out of Aura constructor.

This commit is contained in:
QAston
2011-02-06 13:17:29 +01:00
parent 1d36febab2
commit b5e78bf208
4 changed files with 11 additions and 4 deletions
@@ -85,6 +85,7 @@ class Aura
static Aura * TryCreate(SpellEntry const* spellproto, WorldObject * owner, Unit * caster, int32 *baseAmount = NULL, Item * castItem = NULL, uint64 casterGUID = 0);
static Aura * Create(SpellEntry const* spellproto, uint8 effMask, WorldObject * owner, Unit * caster, int32 *baseAmount = NULL, Item * castItem = NULL, uint64 casterGUID = 0);
explicit Aura(SpellEntry const* spellproto, uint8 effMask, WorldObject * owner, Unit * caster, int32 *baseAmount, Item * castItem, uint64 casterGUID);
void _InitEffects(uint8 effMask, Unit * caster, int32 *baseAmount);
~Aura();
SpellEntry const* GetSpellProto() const { return m_spellProto; }