mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 07:37:02 +00:00
[7583] Use instead BasePoints+1 hardcoded formula more correct BasePoint+BaseDice hide in special helper function.
This commit is contained in:
parent
ab7491e0e1
commit
f38283eba6
5 changed files with 18 additions and 14 deletions
|
|
@ -1289,6 +1289,9 @@ struct SpellEntry
|
|||
uint32 runeCostID; // 229 m_runeCostID
|
||||
//uint32 spellMissileID; // 230 m_spellMissileID not used
|
||||
|
||||
// helpers
|
||||
int32 CalculateSimpleValue(uint8 eff) const { return EffectBasePoints[eff]+int32(EffectBaseDice[eff]); }
|
||||
|
||||
private:
|
||||
// prevent creating custom entries (copy data from original in fact)
|
||||
SpellEntry(SpellEntry const&); // DON'T must have implementation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue