*Fix amount calculation for spell effect with EffectDieSides set to 0.
--HG-- branch : trunk
This commit is contained in:
@@ -1222,7 +1222,7 @@ class SpellMgr
|
||||
bool IsSkillBonusSpell(uint32 spellId) const;
|
||||
bool IsSkillTypeSpell(uint32 spellId, SkillType type) const;
|
||||
static int32 CalculateSpellEffectAmount(SpellEntry const * spellEntry, uint8 effIndex, Unit const * caster = NULL, int32 const * basePoints = NULL, Unit const * target = NULL);
|
||||
static int32 CalculateSpellEffectBaseAmount(int32 value) {return value-1;};
|
||||
static int32 CalculateSpellEffectBaseAmount(int32 value, SpellEntry const * spellEntry, uint8 effIndex);
|
||||
|
||||
// Spell correctess for client using
|
||||
static bool IsSpellValid(SpellEntry const * spellInfo, Player* pl = NULL, bool msg = true);
|
||||
|
||||
Reference in New Issue
Block a user