*Correctly set basepoints of Learn spells - patch by Toni.Shocker.

*Make sure that Spell::m_currentBasePoints are used correctly in any other place of the code.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-07-15 23:20:41 +02:00
parent d2b4ffbec3
commit 0252202504
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -7845,7 +7845,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] = learning_spell_id;
spell->m_currentBasePoints[0] = SpellMgr::CalculateSpellEffectBaseAmount(learning_spell_id);
spell->prepare(&targets);
return;
}