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

This commit is contained in:
Ovahlord
2019-01-17 11:00:25 +01:00
parent d2ae3f43d2
commit a02056c184
2 changed files with 22 additions and 0 deletions

View File

@@ -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');

View File

@@ -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();
}