Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Script/Spells: Drop obsolete Pain and Suffering Script.
Browse files Browse the repository at this point in the history
Signed-off-by: AriDEV <aridev666@gmail.com>
  • Loading branch information
AriDEV committed Jul 4, 2019
1 parent 1e9a542 commit 77643bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
1 change: 1 addition & 0 deletions sql/updates/world/2019_07_04_02_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DELETE FROM spell_script_names WHERE ScriptName LIKE 'spell_pri_pain_and_suffering_proc';
31 changes: 0 additions & 31 deletions src/server/scripts/Spells/spell_priest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,36 +338,6 @@ class spell_pri_mind_sear : public SpellScriptLoader
}
};

// 47948 - Pain and Suffering (Proc)
class spell_pri_pain_and_suffering_proc : public SpellScriptLoader
{
public:
spell_pri_pain_and_suffering_proc() : SpellScriptLoader("spell_pri_pain_and_suffering_proc") { }

class spell_pri_pain_and_suffering_proc_SpellScript : public SpellScript
{
PrepareSpellScript(spell_pri_pain_and_suffering_proc_SpellScript);

void HandleEffectScriptEffect(SpellEffIndex /*effIndex*/)
{
// Refresh Shadow Word: Pain on target
if (Unit* unitTarget = GetHitUnit())
if (AuraEffect* aur = unitTarget->GetAuraEffect(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_PRIEST, 0x8000, 0, 0, GetCaster()->GetGUID()))
aur->GetBase()->RefreshDuration();
}

void Register() OVERRIDE
{
OnEffectHitTarget += SpellEffectFn(spell_pri_pain_and_suffering_proc_SpellScript::HandleEffectScriptEffect, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
}
};

SpellScript* GetSpellScript() const OVERRIDE
{
return new spell_pri_pain_and_suffering_proc_SpellScript;
}
};

// 47540 - Penance
class spell_pri_penance : public SpellScriptLoader
{
Expand Down Expand Up @@ -825,7 +795,6 @@ void AddSC_priest_spell_scripts()
new spell_pri_lightwell_renew();
new spell_pri_mana_leech();
new spell_pri_mind_sear();
new spell_pri_pain_and_suffering_proc();
new spell_pri_penance();
new spell_pri_phantasm();
new spell_pri_power_word_shield();
Expand Down

0 comments on commit 77643bf

Please sign in to comment.