Core/Spells: Renamed EnsureSpellInfo to AssertSpellInfo to minimize differences between branches
This commit is contained in:
1 parent
eaf9d524e8
commit
3f0c7f6b2f
21 files changed
+32
-32
No files matched your search
@@ -1267,7 +1267,7 @@ class spell_gen_defend : public SpellScriptLoader
|
||||
|
||||
void Register() override
|
||||
{
|
||||
SpellInfo const* spell = sSpellMgr->EnsureSpellInfo(m_scriptSpellId);
|
||||
SpellInfo const* spell = sSpellMgr->AssertSpellInfo(m_scriptSpellId);
|
||||
|
||||
// Defend spells cast by NPCs (add visuals)
|
||||
if (spell->Effects[EFFECT_0].ApplyAuraName == SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN)
|
||||
@@ -1990,7 +1990,7 @@ class spell_gen_mounted_charge: public SpellScriptLoader
|
||||
|
||||
void Register() override
|
||||
{
|
||||
SpellInfo const* spell = sSpellMgr->EnsureSpellInfo(m_scriptSpellId);
|
||||
SpellInfo const* spell = sSpellMgr->AssertSpellInfo(m_scriptSpellId);
|
||||
|
||||
if (spell->HasEffect(SPELL_EFFECT_SCRIPT_EFFECT))
|
||||
OnEffectHitTarget += SpellEffectFn(spell_gen_mounted_charge_SpellScript::HandleScriptEffect, EFFECT_FIRST_FOUND, SPELL_EFFECT_SCRIPT_EFFECT);
|
||||
|
||||
Reference in new issue
Block a user