*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
@@ -7916,7 +7916,7 @@ void Player::CastItemUseSpell(Item *item,SpellCastTargets const& targets,uint8 c
Spell *spell = new Spell(this, spellInfo,false);
spell->m_CastItem = item;
spell->m_cast_count = cast_count; //set count of casts
spell->m_currentBasePoints[0] = SpellMgr::CalculateSpellEffectBaseAmount(learning_spell_id);
spell->m_currentBasePoints[0] = SpellMgr::CalculateSpellEffectBaseAmount(learning_spell_id, spellInfo, 0);
spell->prepare(&targets);
return;
}