Core/Spells/Auras: fix the way we handle spells that use SPELL_EFFECT_TRIGGER_SPELL_WITH_VALUE and SPELL_AURA_PERIODIC_TRIGGER_SPELL_WITH_VALUE Closes #7622
This commit is contained in:
1 parent
e277f0401b
commit
e2444c04e2
2 files changed
+3
-4
No files matched your search
@@ -939,9 +939,8 @@ void Spell::EffectTriggerSpell(SpellEffIndex effIndex)
|
||||
if (m_spellInfo->Effects[effIndex].Effect == SPELL_EFFECT_TRIGGER_SPELL_WITH_VALUE)
|
||||
{
|
||||
// maybe need to set value only when basepoints == 0?
|
||||
values.AddSpellMod(SPELLVALUE_BASE_POINT0, damage);
|
||||
values.AddSpellMod(SPELLVALUE_BASE_POINT1, damage);
|
||||
values.AddSpellMod(SPELLVALUE_BASE_POINT2, damage);
|
||||
if (m_spellInfo->Effects[effIndex].BasePoints == 0)
|
||||
values.AddSpellMod((SpellValueMod)effIndex, damage);
|
||||
}
|
||||
|
||||
// Remove spell cooldown (not category) if spell triggering spell with cooldown and same category
|
||||
|
||||
Reference in new issue
Block a user