mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Spells: Removed outdated disengage script - it can be cast out of combat
Closes #19193
This commit is contained in:
1
sql/updates/world/master/2017_12_19_00_world.sql
Normal file
1
sql/updates/world/master/2017_12_19_00_world.sql
Normal file
@@ -0,0 +1 @@
|
||||
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_hun_disengage';
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user