mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Core/Spells: apply coding standards to Mirror Image handling
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user