diff options
author | offl <offl@users.noreply.github.com> | 2021-08-11 00:49:55 +0300 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-03-12 15:09:46 +0100 |
commit | 2642cf3666d2628470ad881758adebf36de27491 (patch) | |
tree | db98a2be882de07fc09b085dc67ff04f95ae613e /src | |
parent | ebff10056957b2ee189a0a54cc8928a1dd1359ef (diff) |
DB/Quest: Rework 'The Tome of Divinity' (1783,1786)
(cherry picked from commit 2d2b73c90588d7b7899989636db42f8da1d4b8e9)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Spells/spell_quest.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp index 886223d16ea..62e87fedd1d 100644 --- a/src/server/scripts/Spells/spell_quest.cpp +++ b/src/server/scripts/Spells/spell_quest.cpp @@ -687,37 +687,6 @@ class spell_q10041_q10040_who_are_they : public SpellScript } }; -enum symboloflife -{ - SPELL_PERMANENT_FEIGN_DEATH = 29266, -}; - -// 8593 - Symbol of Life (Dummy) -class spell_symbol_of_life_dummy : public SpellScript -{ - PrepareSpellScript(spell_symbol_of_life_dummy); - - void HandleDummy(SpellEffIndex /*effIndex*/) - { - if (Creature* target = GetHitCreature()) - { - if (target->HasAura(SPELL_PERMANENT_FEIGN_DEATH)) - { - target->RemoveAurasDueToSpell(SPELL_PERMANENT_FEIGN_DEATH); - target->SetDynamicFlags(0); - target->SetUnitFlags2(UnitFlags2(0)); - target->SetHealth(target->GetMaxHealth() / 2); - target->SetPower(POWER_MANA, uint32(target->GetMaxPower(POWER_MANA) * 0.75f)); - } - } - } - - void Register() override - { - OnEffectHitTarget += SpellEffectFn(spell_symbol_of_life_dummy::HandleDummy, EFFECT_0, SPELL_EFFECT_DUMMY); - } -}; - // http://www.wowhead.com/quest=12659 Scalps! enum Quest12659Data { @@ -2470,7 +2439,6 @@ void AddSC_quest_spell_scripts() RegisterSpellScript(spell_q12851_going_bearback); RegisterSpellScript(spell_q12937_relief_for_the_fallen); RegisterSpellScript(spell_q10041_q10040_who_are_they); - RegisterSpellScript(spell_symbol_of_life_dummy); RegisterSpellScript(spell_q12659_ahunaes_knife); RegisterSpellScript(spell_q9874_liquid_fire); RegisterSpellScript(spell_q12805_lifeblood_dummy); |