aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/updates/world/master/2017_12_19_00_world.sql1
-rw-r--r--src/server/scripts/Spells/spell_hunter.cpp32
2 files changed, 1 insertions, 32 deletions
diff --git a/sql/updates/world/master/2017_12_19_00_world.sql b/sql/updates/world/master/2017_12_19_00_world.sql
new file mode 100644
index 00000000000..e33545dea4b
--- /dev/null
+++ b/sql/updates/world/master/2017_12_19_00_world.sql
@@ -0,0 +1 @@
+DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_hun_disengage';
diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp
index e29a2d40400..2a56168a720 100644
--- a/src/server/scripts/Spells/spell_hunter.cpp
+++ b/src/server/scripts/Spells/spell_hunter.cpp
@@ -269,37 +269,6 @@ class spell_hun_cobra_shot : public SpellScriptLoader
}
};
-// 781 - Disengage
-class spell_hun_disengage : public SpellScriptLoader
-{
- public:
- spell_hun_disengage() : SpellScriptLoader("spell_hun_disengage") { }
-
- class spell_hun_disengage_SpellScript : public SpellScript
- {
- PrepareSpellScript(spell_hun_disengage_SpellScript);
-
- SpellCastResult CheckCast()
- {
- Unit* caster = GetCaster();
- if (caster->GetTypeId() == TYPEID_PLAYER && !caster->IsInCombat())
- return SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW;
-
- return SPELL_CAST_OK;
- }
-
- void Register() override
- {
- OnCheckCast += SpellCheckCastFn(spell_hun_disengage_SpellScript::CheckCast);
- }
- };
-
- SpellScript* GetSpellScript() const override
- {
- return new spell_hun_disengage_SpellScript();
- }
-};
-
// 109304 - Exhilaration
class spell_hun_exhilaration : public SpellScriptLoader
{
@@ -1141,7 +1110,6 @@ void AddSC_hunter_spell_scripts()
new spell_hun_aspect_cheetah();
new spell_hun_chimera_shot();
new spell_hun_cobra_shot();
- new spell_hun_disengage();
new spell_hun_exhilaration();
new spell_hun_hunting_party();
new spell_hun_improved_mend_pet();