From a02056c184806e5502cbedcd556bf28b3edb40dc Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Thu, 17 Jan 2019 11:00:25 +0100 Subject: [PATCH] Scripts/FrozenHalls: fixed Well of Souls visual effect destinations in Devourer of Souls encounter in order to fix a visual in Jin'do the Godbreaker's encounter --- .../custom/custom_2019_01_17_01_world.sql.sql | 5 +++++ .../ForgeOfSouls/boss_devourer_of_souls.cpp | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 sql/updates/world/custom/custom_2019_01_17_01_world.sql.sql diff --git a/sql/updates/world/custom/custom_2019_01_17_01_world.sql.sql b/sql/updates/world/custom/custom_2019_01_17_01_world.sql.sql new file mode 100644 index 00000000000..ffc1acf3cbb --- /dev/null +++ b/sql/updates/world/custom/custom_2019_01_17_01_world.sql.sql @@ -0,0 +1,5 @@ +DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_devourer_of_souls_well_of_souls_periodic_visual_effect'; +INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES +(68857, 'spell_devourer_of_souls_well_of_souls_periodic_visual_effect'), +(68859, 'spell_devourer_of_souls_well_of_souls_periodic_visual_effect'), +(68860, 'spell_devourer_of_souls_well_of_souls_periodic_visual_effect'); diff --git a/src/server/scripts/Northrend/FrozenHalls/ForgeOfSouls/boss_devourer_of_souls.cpp b/src/server/scripts/Northrend/FrozenHalls/ForgeOfSouls/boss_devourer_of_souls.cpp index 2bfb59d245e..9356382a454 100644 --- a/src/server/scripts/Northrend/FrozenHalls/ForgeOfSouls/boss_devourer_of_souls.cpp +++ b/src/server/scripts/Northrend/FrozenHalls/ForgeOfSouls/boss_devourer_of_souls.cpp @@ -22,6 +22,7 @@ #include "MotionMaster.h" #include "Player.h" #include "ScriptedCreature.h" +#include "Spell.h" #include "SpellAuraEffects.h" #include "SpellInfo.h" #include "SpellScript.h" @@ -471,6 +472,21 @@ class spell_devourer_of_souls_mirrored_soul_target_selector : public SpellScript } }; +class spell_devourer_of_souls_well_of_souls_periodic_visual_effect : public SpellScript +{ + PrepareSpellScript(spell_devourer_of_souls_well_of_souls_periodic_visual_effect); + + void SetDest(SpellDestination& dest) + { + dest.RelocateOffset({ 0.0f, 0.0f, 20.0f, 0.0f }); + } + + void Register() + { + OnDestinationTargetSelect += SpellDestinationTargetSelectFn(spell_devourer_of_souls_well_of_souls_periodic_visual_effect::SetDest, EFFECT_0, TARGET_DEST_CASTER_RANDOM); + } +}; + class achievement_three_faced : public AchievementCriteriaScript { public: @@ -495,5 +511,6 @@ void AddSC_boss_devourer_of_souls() new spell_devourer_of_souls_mirrored_soul(); new spell_devourer_of_souls_mirrored_soul_proc(); new spell_devourer_of_souls_mirrored_soul_target_selector(); + RegisterSpellScript(spell_devourer_of_souls_well_of_souls_periodic_visual_effect); new achievement_three_faced(); }