Scripts/Misc: Add missing override
This commit is contained in:
1 parent
9dac2dbca9
commit
ed8b9fe1c4
4 files changed
+28
-28
No files matched your search
@@ -283,7 +283,7 @@ class spell_mage_blizzard : public SpellScriptLoader
|
||||
{
|
||||
PrepareSpellScript(spell_mage_blizzard_SpellScript);
|
||||
|
||||
bool Validate(SpellInfo const* /*spellInfo*/)
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_MAGE_CHILLED_R1))
|
||||
return false;
|
||||
@@ -304,13 +304,13 @@ class spell_mage_blizzard : public SpellScriptLoader
|
||||
}
|
||||
}
|
||||
|
||||
void Register()
|
||||
void Register() override
|
||||
{
|
||||
OnEffectHitTarget += SpellEffectFn(spell_mage_blizzard_SpellScript::AddChillEffect, EFFECT_0, SPELL_EFFECT_SCHOOL_DAMAGE);
|
||||
}
|
||||
};
|
||||
|
||||
SpellScript* GetSpellScript() const
|
||||
SpellScript* GetSpellScript() const override
|
||||
{
|
||||
return new spell_mage_blizzard_SpellScript();
|
||||
}
|
||||
@@ -733,7 +733,7 @@ class spell_mage_living_bomb : public SpellScriptLoader
|
||||
{
|
||||
PrepareAuraScript(spell_mage_living_bomb_AuraScript);
|
||||
|
||||
bool Validate(SpellInfo const* spellInfo)
|
||||
bool Validate(SpellInfo const* spellInfo) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(uint32(spellInfo->Effects[EFFECT_1].CalcValue())))
|
||||
return false;
|
||||
@@ -791,7 +791,7 @@ class spell_mage_ice_barrier : public SpellScriptLoader
|
||||
GetTarget()->CastSpell(GetTarget(), SPELL_MAGE_SHATTERED_BARRIER_FREEZE_R2, true);
|
||||
}
|
||||
|
||||
void Register()
|
||||
void Register() override
|
||||
{
|
||||
DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_mage_ice_barrier_AuraScript::CalculateAmount, EFFECT_0, SPELL_AURA_SCHOOL_ABSORB);
|
||||
AfterEffectRemove += AuraEffectRemoveFn(spell_mage_ice_barrier_AuraScript::AfterRemove, EFFECT_0, SPELL_AURA_SCHOOL_ABSORB, AURA_EFFECT_HANDLE_REAL);
|
||||
@@ -1109,7 +1109,7 @@ class spell_mage_polymorph : public SpellScriptLoader
|
||||
}
|
||||
|
||||
private:
|
||||
Unit* _caster;
|
||||
Unit* _caster = nullptr;
|
||||
};
|
||||
|
||||
AuraScript* GetAuraScript() const override
|
||||
@@ -1186,7 +1186,7 @@ class spell_mage_replenish_mana : public SpellScriptLoader
|
||||
{
|
||||
PrepareSpellScript(spell_mage_replenish_mana_SpellScript);
|
||||
|
||||
bool Validate(SpellInfo const* /*spellInfo*/)
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_MAGE_IMPROVED_MANA_GEM_TRIGGERED))
|
||||
return false;
|
||||
@@ -1202,13 +1202,13 @@ class spell_mage_replenish_mana : public SpellScriptLoader
|
||||
}
|
||||
}
|
||||
|
||||
void Register()
|
||||
void Register() override
|
||||
{
|
||||
AfterCast += SpellCastFn(spell_mage_replenish_mana_SpellScript::HandleImprovedManaGem);
|
||||
}
|
||||
};
|
||||
|
||||
SpellScript* GetSpellScript() const
|
||||
SpellScript* GetSpellScript() const override
|
||||
{
|
||||
return new spell_mage_replenish_mana_SpellScript();
|
||||
}
|
||||
@@ -1419,7 +1419,7 @@ class spell_mage_water_elemental_freeze : public SpellScriptLoader
|
||||
{
|
||||
PrepareSpellScript(spell_mage_water_elemental_freeze_SpellScript);
|
||||
|
||||
bool Validate(SpellInfo const* /*spellInfo*/)
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_MAGE_FINGERS_OF_FROST))
|
||||
return false;
|
||||
@@ -1447,7 +1447,7 @@ class spell_mage_water_elemental_freeze : public SpellScriptLoader
|
||||
}
|
||||
}
|
||||
|
||||
void Register()
|
||||
void Register() override
|
||||
{
|
||||
OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_mage_water_elemental_freeze_SpellScript::CountTargets, EFFECT_0, TARGET_UNIT_DEST_AREA_ENEMY);
|
||||
AfterCast += SpellCastFn(spell_mage_water_elemental_freeze_SpellScript::HandleImprovedFreeze);
|
||||
@@ -1457,7 +1457,7 @@ class spell_mage_water_elemental_freeze : public SpellScriptLoader
|
||||
bool _didHit;
|
||||
};
|
||||
|
||||
SpellScript* GetSpellScript() const
|
||||
SpellScript* GetSpellScript() const override
|
||||
{
|
||||
return new spell_mage_water_elemental_freeze_SpellScript();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user