Core/Spells: Removed outdated disengage script - it can be cast out of combat
This commit is contained in:
@@ -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
|
[Script] // 109304 - Exhilaration
|
||||||
class spell_hun_exhilaration : SpellScript
|
class spell_hun_exhilaration : SpellScript
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_hun_disengage';
|
||||||
Reference in New Issue
Block a user