Core/Spells: Removed outdated disengage script - it can be cast out of combat

Closes #19193
This commit is contained in:
Shauren
2017-12-19 20:36:06 +01:00
parent e86a2c439a
commit dc4d05c8f2
2 changed files with 1 additions and 32 deletions

View File

@@ -0,0 +1 @@
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_hun_disengage';

View File

@@ -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();