mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/Spells: add the value calculation for all three spell effects on the triggered spell. thx shauren
This commit is contained in:
@@ -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