Core/Spells: apply coding standards to Mirror Image handling

This commit is contained in:
Ovahlord
2018-07-23 14:45:20 +02:00
parent b689dfc0bf
commit ae12bcc74f
2 changed files with 6 additions and 6 deletions

View File

@@ -1,10 +1,10 @@
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_mage_mirror_image',
'spell_initialize_images');
'spell_mage_initialize_images');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(55342, 'spell_mage_mirror_image'),
(58836, 'spell_initialize_images');
(58836, 'spell_mage_initialize_images');
UPDATE `creature_template` SET `unit_class`= 8, `ScriptName`= 'npc_pet_mage_mirror_image' WHERE `entry` IN (47244, 47243, 31216);

View File

@@ -2089,9 +2089,9 @@ class SummonerCheck
Unit* summoner;
};
class spell_initialize_images : public SpellScript
class spell_mage_initialize_images : public SpellScript
{
PrepareSpellScript(spell_initialize_images);
PrepareSpellScript(spell_mage_initialize_images);
void FilterTargets(std::list<WorldObject*>& targets)
{
@@ -2103,7 +2103,7 @@ class spell_initialize_images : public SpellScript
void Register() override
{
OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_initialize_images::FilterTargets, EFFECT_0, TARGET_UNIT_SRC_AREA_ENTRY);
OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_mage_initialize_images::FilterTargets, EFFECT_0, TARGET_UNIT_SRC_AREA_ENTRY);
}
};
@@ -2127,7 +2127,7 @@ void AddSC_mage_spell_scripts()
new spell_mage_ice_barrier();
new spell_mage_ignite();
new spell_mage_improved_hot_streak();
RegisterSpellScript(spell_initialize_images);
RegisterSpellScript(spell_mage_initialize_images);
new spell_mage_glyph_of_ice_block();
new spell_mage_glyph_of_icy_veins();
new spell_mage_glyph_of_polymorph();