mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Scripts/Blackfathom Deeps: Subjugator Korul - Darkness Calls
Closes #15316 Closes #16557
This commit is contained in:
4
sql/updates/world/6.x/2016_07_16_03_world.sql
Normal file
4
sql/updates/world/6.x/2016_07_16_03_world.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
-- spell_subjugator_korul_darkness_calls
|
||||
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_subjugator_korul_darkness_calls';
|
||||
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
|
||||
(151159,'spell_subjugator_korul_darkness_calls');
|
||||
@@ -238,10 +238,40 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
// 151159 - Darkness Calls
|
||||
class spell_subjugator_korul_darkness_calls : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_subjugator_korul_darkness_calls() : SpellScriptLoader("spell_subjugator_korul_darkness_calls") { }
|
||||
|
||||
class spell_subjugator_korul_darkness_calls_SpellScript : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_subjugator_korul_darkness_calls_SpellScript);
|
||||
|
||||
void HandleScript(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (Unit* hitUnit = GetHitUnit())
|
||||
GetCaster()->CastSpell(hitUnit, uint32(GetEffectValue()), true);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectHitTarget += SpellEffectFn(spell_subjugator_korul_darkness_calls_SpellScript::HandleScript, EFFECT_0, SPELL_EFFECT_DUMMY);
|
||||
OnEffectHitTarget += SpellEffectFn(spell_subjugator_korul_darkness_calls_SpellScript::HandleScript, EFFECT_1, SPELL_EFFECT_DUMMY);
|
||||
}
|
||||
};
|
||||
|
||||
SpellScript* GetSpellScript() const override
|
||||
{
|
||||
return new spell_subjugator_korul_darkness_calls_SpellScript();
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_blackfathom_deeps()
|
||||
{
|
||||
new go_blackfathom_altar();
|
||||
new go_blackfathom_fire();
|
||||
new npc_blackfathom_deeps_event();
|
||||
new npc_morridune();
|
||||
new spell_subjugator_korul_darkness_calls();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user