diff options
Diffstat (limited to 'src/server/game/Spells/SpellMgr.cpp')
-rw-r--r-- | src/server/game/Spells/SpellMgr.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index 57eff46b809..78fe53bb051 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -2925,7 +2925,6 @@ void SpellMgr::LoadSpellInfoCustomAttributes() continue; } - // TODO: validate attributes for (SpellInfo const& spellInfo : spells) { if (attributes & SPELL_ATTR0_CU_SHARE_DAMAGE) @@ -3079,9 +3078,6 @@ void SpellMgr::LoadSpellInfoCustomAttributes() break; } } - - if (!spellInfoMutable->_IsPositiveEffect(effect->EffectIndex, false)) - spellInfoMutable->NegativeEffects[effect->EffectIndex] = true; } // spells ignoring hit result should not be binary @@ -3167,6 +3163,8 @@ void SpellMgr::LoadSpellInfoCustomAttributes() spellInfoMutable->AttributesCu |= SPELL_ATTR0_CU_SCHOOLMASK_NORMAL_WITH_MAGIC; } + spellInfoMutable->_InitializeSpellPositivity(); + if (talentSpells.count(spellInfoMutable->Id)) spellInfoMutable->AttributesCu |= SPELL_ATTR0_CU_IS_TALENT; |