[9037] Cleanups in spellmode apply code.

* Add constructores for spellmode creating instead explcit fields init
* Use uint32 for family mask 2 instead unneded uint64

Also drop one from manual applies for uno-existed now spell.
This commit is contained in:
VladimirMangos 2009-12-20 19:23:54 +03:00
parent 9d0e943488
commit 15de428242
10 changed files with 70 additions and 127 deletions

View file

@ -1426,6 +1426,10 @@ struct SpellEntry
// helpers
int32 CalculateSimpleValue(uint8 eff) const { return EffectBasePoints[eff]+int32(EffectBaseDice[eff]); }
uint32 const* GetEffectSpellClassMask(uint8 effect) const
{
return EffectSpellClassMaskA + effect * 3;
}
private:
// prevent creating custom entries (copy data from original in fact)