Skip to content
Permalink
Browse files

Script/Spells: Drop obsolete Butchery Script.

Signed-off-by: AriDEV <aridev666@gmail.com>
  • Loading branch information...
AriDEV committed Jul 6, 2019
1 parent 319a3c5 commit 37f750c54798d18af21d3c83460e414b0ad90391
Showing with 1 addition and 38 deletions.
  1. +1 −0 sql/updates/world/2019_07_06_00_world.sql
  2. +0 −38 src/server/scripts/Spells/spell_dk.cpp
@@ -0,0 +1 @@
DELETE FROM spell_script_names WHERE ScriptName LIKE 'spell_dk_butchery';
@@ -37,7 +37,6 @@ enum DeathKnightSpells
SPELL_DK_BLOOD_PRESENCE_TRIGGERED = 61261,
SPELL_DK_BLOOD_SHIELD_MASTERY = 77513,
SPELL_DK_BLOOD_SHIELD_ABSORB = 77535,
SPELL_DK_BUTCHERY = 50163,
SPELL_DK_CORPSE_EXPLOSION_TRIGGERED = 43999,
SPELL_DK_CORPSE_EXPLOSION_VISUAL = 51270,
SPELL_DK_DEATH_COIL_DAMAGE = 47632,
@@ -521,42 +520,6 @@ class spell_dk_blood_gorged : public SpellScriptLoader
}
};

// -48979 - Butchery
class spell_dk_butchery : public SpellScriptLoader
{
public:
spell_dk_butchery() : SpellScriptLoader("spell_dk_butchery")
{ }

class spell_dk_blood_gorged_AuraScript : public AuraScript
{
PrepareAuraScript(spell_dk_blood_gorged_AuraScript);

bool Validate(SpellInfo const* /*spellInfo*/) OVERRIDE
{
if (!sSpellMgr->GetSpellInfo(SPELL_DK_BUTCHERY))
return false;
return true;
}

void HandleProc(AuraEffect const* aurEff, ProcEventInfo& /*eventInfo*/)
{
PreventDefaultAction();
GetTarget()->CastCustomSpell(SPELL_DK_BUTCHERY, SPELLVALUE_BASE_POINT0, aurEff->GetAmount(), GetTarget(), true, NULL, aurEff);
}

void Register() OVERRIDE
{
OnEffectProc += AuraEffectProcFn(spell_dk_blood_gorged_AuraScript::HandleProc, EFFECT_0, SPELL_AURA_DUMMY);
}
};

AuraScript* GetAuraScript() const OVERRIDE
{
return new spell_dk_blood_gorged_AuraScript();
}
};

// 47541, 52375, 59134, -62900 - Death Coil
class spell_dk_death_coil : public SpellScriptLoader
{
@@ -1470,7 +1433,6 @@ void AddSC_deathknight_spell_scripts()
new spell_dk_anti_magic_zone();
new spell_dk_blood_boil();
new spell_dk_blood_gorged();
new spell_dk_butchery();
new spell_dk_death_coil();
new spell_dk_death_gate();
new spell_dk_death_grip();

0 comments on commit 37f750c

Please sign in to comment.
You can’t perform that action at this time.