Core/Spells: Implement using different difficulty data from all spell related db2s, not just SpellEffect and SpellPower
This commit is contained in:
@@ -1976,9 +1976,9 @@ class spell_gen_mounted_charge: public SpellScriptLoader
|
||||
|
||||
void Register() override
|
||||
{
|
||||
SpellInfo const* spell = sSpellMgr->AssertSpellInfo(m_scriptSpellId);
|
||||
SpellInfo const* spell = sSpellMgr->AssertSpellInfo(m_scriptSpellId, DIFFICULTY_NONE);
|
||||
|
||||
if (spell->HasEffect(DIFFICULTY_NONE, SPELL_EFFECT_SCRIPT_EFFECT))
|
||||
if (spell->HasEffect(SPELL_EFFECT_SCRIPT_EFFECT))
|
||||
OnEffectHitTarget += SpellEffectFn(spell_gen_mounted_charge_SpellScript::HandleScriptEffect, EFFECT_FIRST_FOUND, SPELL_EFFECT_SCRIPT_EFFECT);
|
||||
|
||||
if (spell->GetEffect(EFFECT_0)->Effect == SPELL_EFFECT_CHARGE)
|
||||
|
||||
Reference in New Issue
Block a user