From 9937d1e421ce04c3b0663a221ea9ce91e90247da Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 19 Dec 2017 15:01:09 -0500 Subject: [PATCH] Core/Spells: Removed outdated disengage script - it can be cast out of combat --- Source/Scripts/Spells/Hunter.cs | 19 ------------------- .../world/master/2017_12_19_00_world.sql | 1 + 2 files changed, 1 insertion(+), 19 deletions(-) create mode 100644 sql/updates/world/master/2017_12_19_00_world.sql diff --git a/Source/Scripts/Spells/Hunter.cs b/Source/Scripts/Spells/Hunter.cs index f7a3247a8..4f6b9c8c1 100644 --- a/Source/Scripts/Spells/Hunter.cs +++ b/Source/Scripts/Spells/Hunter.cs @@ -134,25 +134,6 @@ namespace Scripts.Spells.Hunter } } - // 781 - Disengage - [Script] - class spell_hun_disengage : SpellScript - { - SpellCastResult CheckCast() - { - Unit caster = GetCaster(); - if (caster.IsTypeId(TypeId.Player) && !caster.IsInCombat()) - return SpellCastResult.CantDoThatRightNow; - - return SpellCastResult.SpellCastOk; - } - - public override void Register() - { - OnCheckCast.Add(new CheckCastHandler(CheckCast)); - } - } - [Script] // 109304 - Exhilaration class spell_hun_exhilaration : SpellScript { 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 000000000..e33545dea --- /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';