*Fix amount calculation for spell effect with EffectDieSides set to 0.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-07-22 12:21:11 +02:00
parent 50e459b5c5
commit 13a2a1afc6
5 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -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);