[9701] Fix basepoints calculation

Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
VladimirMangos 2010-04-08 23:15:10 +03:00 committed by Laise
parent f39cdc66a6
commit 53486545b5
8 changed files with 21 additions and 19 deletions

View file

@ -3023,7 +3023,8 @@ void Spell::finish(bool ok)
SpellEntry const *auraSpellInfo = (*i)->GetSpellProto();
SpellEffectIndex auraSpellIdx = (*i)->GetEffIndex();
// Calculate chance at that moment (can be depend for example from combo points)
int32 chance = m_caster->CalculateSpellDamage(auraSpellInfo, auraSpellIdx, (*i)->GetBasePoints(),unit);
int32 auraBasePoints = (*i)->GetBasePoints();
int32 chance = m_caster->CalculateSpellDamage(unit, auraSpellInfo, auraSpellIdx, &auraBasePoints);
if(roll_chance_i(chance))
m_caster->CastSpell(unit, auraSpellInfo->EffectTriggerSpell[auraSpellIdx], true, NULL, (*i));
}