*Remove m_currentBasePoints from spell class, use m_spellValue instead.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-08-27 06:40:23 +02:00
parent bed85f565b
commit c1ac063ba1
4 changed files with 7 additions and 17 deletions
+1 -1
View File
@@ -7947,7 +7947,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, spellInfo, 0);
spell->SetSpellValue(SPELLVALUE_BASE_POINT0, learning_spell_id);
spell->prepare(&targets);
return;
}