mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-31 06:07:37 +01:00
Scripts/Spells: Get rid of some database spell scripts (#30915)
This commit is contained in:
@@ -663,6 +663,32 @@ class spell_brewfest_botm_empty_bottle_throw_resolve : public SpellScript
|
||||
}
|
||||
};
|
||||
|
||||
enum MoleMachine
|
||||
{
|
||||
SPELL_PORT_TO_GRIM_GUZZLER = 47523
|
||||
};
|
||||
|
||||
// 49466 - Mole Machine Portal Schedule
|
||||
class spell_brewfest_mole_machine_portal_schedule : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_brewfest_mole_machine_portal_schedule);
|
||||
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
return ValidateSpellInfo({ SPELL_PORT_TO_GRIM_GUZZLER });
|
||||
}
|
||||
|
||||
void HandleScript(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
GetHitUnit()->CastSpell(GetHitUnit(), SPELL_PORT_TO_GRIM_GUZZLER);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectHitTarget += SpellEffectFn(spell_brewfest_mole_machine_portal_schedule::HandleScript, EFFECT_1, SPELL_EFFECT_SCRIPT_EFFECT);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_event_brewfest()
|
||||
{
|
||||
RegisterSpellScript(spell_brewfest_giddyup);
|
||||
@@ -683,4 +709,5 @@ void AddSC_event_brewfest()
|
||||
RegisterSpellScript(spell_brewfest_botm_teach_language);
|
||||
RegisterSpellScript(spell_brewfest_botm_weak_alcohol);
|
||||
RegisterSpellScript(spell_brewfest_botm_empty_bottle_throw_resolve);
|
||||
RegisterSpellScript(spell_brewfest_mole_machine_portal_schedule);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user