Permalink
Browse files

Core/Spells: add the value calculation for all three spell effects on…

… the triggered spell. thx shauren
  • Loading branch information...
1 parent e2444c0 commit bd5dcf492741b6c7dbde3294dbc27e1d726f84fc @Star-lion Star-lion committed Apr 3, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/server/game/Spells/SpellEffects.cpp
@@ -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

2 comments on commit bd5dcf4

Member

joschiwald commented on bd5dcf4 Apr 3, 2013

next commit incoming? :P

ew code style

Please sign in to comment.