diff options
| author | Vincent-Michael <Vincent_Michael@gmx.de> | 2013-07-26 03:28:24 +0200 |
|---|---|---|
| committer | Vincent-Michael <Vincent_Michael@gmx.de> | 2013-07-26 03:28:24 +0200 |
| commit | 37c3e5897429171266386b3e5b805daac93d6228 (patch) | |
| tree | 179bcefd1f6a0c9702833c747d490fb1ec0e384f | |
| parent | c764e3e1c0ca68bda689fe91d5cacaca6703ffbc (diff) | |
Core/Spells: Remove spell scripts for "Hand of Salvation" - is no longer required
| -rw-r--r-- | sql/updates/world/2013_07_26_03_world_spell_script_names_434.sql | 1 | ||||
| -rw-r--r-- | src/server/scripts/Spells/spell_paladin.cpp | 34 |
2 files changed, 1 insertions, 34 deletions
diff --git a/sql/updates/world/2013_07_26_03_world_spell_script_names_434.sql b/sql/updates/world/2013_07_26_03_world_spell_script_names_434.sql new file mode 100644 index 00000000000..f62fd1f66ea --- /dev/null +++ b/sql/updates/world/2013_07_26_03_world_spell_script_names_434.sql @@ -0,0 +1 @@ +DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_pal_hand_of_salvation'; diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp index 69d3191b9fe..1a7dd7fb54d 100644 --- a/src/server/scripts/Spells/spell_paladin.cpp +++ b/src/server/scripts/Spells/spell_paladin.cpp @@ -451,39 +451,6 @@ class spell_pal_hand_of_sacrifice : public SpellScriptLoader } }; -// 1038 - Hand of Salvation -class spell_pal_hand_of_salvation : public SpellScriptLoader -{ - public: - spell_pal_hand_of_salvation() : SpellScriptLoader("spell_pal_hand_of_salvation") { } - - class spell_pal_hand_of_salvation_AuraScript : public AuraScript - { - PrepareAuraScript(spell_pal_hand_of_salvation_AuraScript); - - void CalculateAmount(AuraEffect const* /*aurEff*/, int32& amount, bool& /*canBeRecalculated*/) - { - if (Unit* caster = GetCaster()) - { - // Glyph of Salvation - if (caster->GetGUID() == GetUnitOwner()->GetGUID()) - if (AuraEffect const* aurEff = caster->GetAuraEffect(SPELL_PALADIN_GLYPH_OF_SALVATION, EFFECT_0)) - amount -= aurEff->GetAmount(); - } - } - - void Register() OVERRIDE - { - DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_pal_hand_of_salvation_AuraScript::CalculateAmount, EFFECT_1, SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN); - } - }; - - AuraScript* GetAuraScript() const OVERRIDE - { - return new spell_pal_hand_of_salvation_AuraScript(); - } -}; - // 37705 - Healing Discount class spell_pal_item_healing_discount : public SpellScriptLoader { @@ -869,7 +836,6 @@ void AddSC_paladin_spell_scripts() new spell_pal_exorcism_and_holy_wrath_damage(); new spell_pal_eye_for_an_eye(); new spell_pal_hand_of_sacrifice(); - new spell_pal_hand_of_salvation(); new spell_pal_item_healing_discount(); new spell_pal_holy_shock(); new spell_pal_lay_on_hands(); |
