From dc4d05c8f26cadb57ebaee69b6a33603e982235b Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 19 Dec 2017 20:36:06 +0100 Subject: Core/Spells: Removed outdated disengage script - it can be cast out of combat Closes #19193 --- src/server/scripts/Spells/spell_hunter.cpp | 32 ------------------------------ 1 file changed, 32 deletions(-) (limited to 'src') 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(); -- cgit v1.2.3