Core/Spells: add the value calculation for all three spell effects on the triggered spell. thx shauren
This commit is contained in:
1 parent
e2444c04e2
commit
bd5dcf4927
1 file changed
+5
-2
@@ -938,9 +938,12 @@ void Spell::EffectTriggerSpell(SpellEffIndex effIndex)
|
||||
// set basepoints for trigger with value effect
|
||||
if (m_spellInfo->Effects[effIndex].Effect == SPELL_EFFECT_TRIGGER_SPELL_WITH_VALUE)
|
||||
{
|
||||
// maybe need to set value only when basepoints == 0?
|
||||
if (m_spellInfo->Effects[effIndex].BasePoints == 0)
|
||||
values.AddSpellMod((SpellValueMod)effIndex, damage);
|
||||
{
|
||||
values.AddSpellMod(SPELLVALUE_BASE_POINT0, damage);
|
||||
values.AddSpellMod(SPELLVALUE_BASE_POINT1, damage);
|
||||
values.AddSpellMod(SPELLVALUE_BASE_POINT2, damage);
|
||||
}
|
||||
}
|
||||
|
||||
// Remove spell cooldown (not category) if spell triggering spell with cooldown and same category
|
||||
|
||||
Reference in new issue
Block a user