mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +00:00
fix(Script/Spell): Dark Reckoning (#9024)
Co-Authored-By: Lucas Nascimento <keader.android@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1636293158309628100');
|
||||||
|
|
||||||
|
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_deathwhisper_dark_reckoning';
|
||||||
|
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
|
||||||
|
(69483,'spell_deathwhisper_dark_reckoning');
|
||||||
@@ -1143,6 +1143,32 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 69483 - Dark Reckoning
|
||||||
|
class spell_deathwhisper_dark_reckoning : public AuraScript
|
||||||
|
{
|
||||||
|
PrepareAuraScript(spell_deathwhisper_dark_reckoning);
|
||||||
|
|
||||||
|
bool Validate(SpellInfo const* spell) override
|
||||||
|
{
|
||||||
|
return ValidateSpellInfo({ spell->Effects[EFFECT_0].TriggerSpell });
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnPeriodic(AuraEffect const* aurEff)
|
||||||
|
{
|
||||||
|
PreventDefaultAction();
|
||||||
|
if (Unit* caster = GetCaster())
|
||||||
|
{
|
||||||
|
uint32 spellId = GetSpellInfo()->Effects[EFFECT_0].TriggerSpell;
|
||||||
|
caster->CastSpell(GetTarget(), spellId, aurEff);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Register() override
|
||||||
|
{
|
||||||
|
OnEffectPeriodic += AuraEffectPeriodicFn(spell_deathwhisper_dark_reckoning::OnPeriodic, EFFECT_0, SPELL_AURA_PERIODIC_DUMMY);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
class at_lady_deathwhisper_entrance : public AreaTriggerScript
|
class at_lady_deathwhisper_entrance : public AreaTriggerScript
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -1161,11 +1187,17 @@ public:
|
|||||||
|
|
||||||
void AddSC_boss_lady_deathwhisper()
|
void AddSC_boss_lady_deathwhisper()
|
||||||
{
|
{
|
||||||
|
// Creatures
|
||||||
new boss_lady_deathwhisper();
|
new boss_lady_deathwhisper();
|
||||||
new npc_cult_fanatic();
|
new npc_cult_fanatic();
|
||||||
new npc_cult_adherent();
|
new npc_cult_adherent();
|
||||||
new npc_vengeful_shade();
|
new npc_vengeful_shade();
|
||||||
new npc_darnavan();
|
new npc_darnavan();
|
||||||
|
|
||||||
|
// Spells
|
||||||
new spell_deathwhisper_mana_barrier();
|
new spell_deathwhisper_mana_barrier();
|
||||||
|
RegisterSpellScript(spell_deathwhisper_dark_reckoning);
|
||||||
|
|
||||||
|
// AreaTriggers
|
||||||
new at_lady_deathwhisper_entrance();
|
new at_lady_deathwhisper_entrance();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user