diff options
author | offl <offl@users.noreply.github.com> | 2021-08-12 21:26:59 +0300 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-03-12 15:39:51 +0100 |
commit | 4a867dbf2da482ed0c8a4733fe1af0c8d61eea25 (patch) | |
tree | 78a416b4b67ed104e02ed61e76f33c1b87495995 /src | |
parent | 6302840892ee005354ce50ef9da3fa469320188f (diff) |
DB/Quest: Rework 'Relief for the Fallen' (12937)
(cherry picked from commit 1c174987c8114d7f2daf02140afa81a1cb01bd54)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Spells/spell_quest.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp index 62e87fedd1d..95ef83bf73d 100644 --- a/src/server/scripts/Spells/spell_quest.cpp +++ b/src/server/scripts/Spells/spell_quest.cpp @@ -615,45 +615,6 @@ class spell_q12851_going_bearback : public AuraScript } }; -// http://www.wowhead.com/quest=12937 Relief for the Fallen -enum Quest12937Data -{ - SPELL_TRIGGER_AID_OF_THE_EARTHEN = 55809, - NPC_FALLEN_EARTHEN_DEFENDER = 30035, -}; - -// 55804 - Healing Finished -class spell_q12937_relief_for_the_fallen : public SpellScript -{ - PrepareSpellScript(spell_q12937_relief_for_the_fallen); - - bool Load() override - { - return GetCaster()->GetTypeId() == TYPEID_PLAYER; - } - - bool Validate(SpellInfo const* /*spellEntry*/) override - { - return ValidateSpellInfo({ SPELL_TRIGGER_AID_OF_THE_EARTHEN }); - } - - void HandleDummy(SpellEffIndex /*effIndex*/) - { - Player* caster = GetCaster()->ToPlayer(); - if (Creature* target = GetHitCreature()) - { - caster->CastSpell(caster, SPELL_TRIGGER_AID_OF_THE_EARTHEN, true); - caster->KilledMonsterCredit(NPC_FALLEN_EARTHEN_DEFENDER); - target->DespawnOrUnsummon(); - } - } - - void Register() override - { - OnEffectHitTarget += SpellEffectFn(spell_q12937_relief_for_the_fallen::HandleDummy, EFFECT_0, SPELL_EFFECT_DUMMY); - } -}; - enum Whoarethey { SPELL_MALE_DISGUISE = 38080, @@ -2437,7 +2398,6 @@ void AddSC_quest_spell_scripts() RegisterSpellScript(spell_q12634_despawn_fruit_tosser); RegisterSpellScript(spell_q12683_take_sputum_sample); RegisterSpellScript(spell_q12851_going_bearback); - RegisterSpellScript(spell_q12937_relief_for_the_fallen); RegisterSpellScript(spell_q10041_q10040_who_are_they); RegisterSpellScript(spell_q12659_ahunaes_knife); RegisterSpellScript(spell_q9874_liquid_fire); |