mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[9701] Fix basepoints calculation
Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
parent
f39cdc66a6
commit
53486545b5
8 changed files with 21 additions and 19 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue