aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Events
diff options
context:
space:
mode:
authorMykhailo Redko <ovitnez@gmail.com>2025-02-10 15:57:11 +0200
committerGitHub <noreply@github.com>2025-02-10 14:57:11 +0100
commit52af034225e12c5b4d0c9fc437dad3d409b66d5e (patch)
tree489662174df3cf8a0da1516e2dc837a9734a66bf /src/server/scripts/Events
parenta5d4c460035ee3fa338879c5326aa68ee786c98c (diff)
Core/Spells: Added missing DBC data for some food effects. (#30679)
Diffstat (limited to 'src/server/scripts/Events')
-rw-r--r--src/server/scripts/Events/pilgrims_bounty.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/server/scripts/Events/pilgrims_bounty.cpp b/src/server/scripts/Events/pilgrims_bounty.cpp
index b61bb81f6e0..b078fbf0d40 100644
--- a/src/server/scripts/Events/pilgrims_bounty.cpp
+++ b/src/server/scripts/Events/pilgrims_bounty.cpp
@@ -33,36 +33,6 @@ enum PilgrimsBountyBuffFood
SPELL_WELL_FED_SPIRIT_TRIGGER = 65415
};
-class spell_pilgrims_bounty_buff_food : public AuraScript
-{
- PrepareAuraScript(spell_pilgrims_bounty_buff_food);
-private:
- uint32 const _triggeredSpellId;
-
-public:
- spell_pilgrims_bounty_buff_food(uint32 triggeredSpellId) : AuraScript(), _triggeredSpellId(triggeredSpellId)
- {
- _handled = false;
- }
-
- void HandleTriggerSpell(AuraEffect const* /*aurEff*/)
- {
- PreventDefaultAction();
- if (_handled)
- return;
-
- _handled = true;
- GetTarget()->CastSpell(GetTarget(), _triggeredSpellId, true);
- }
-
- void Register() override
- {
- OnEffectPeriodic += AuraEffectPeriodicFn(spell_pilgrims_bounty_buff_food::HandleTriggerSpell, EFFECT_2, SPELL_AURA_PERIODIC_TRIGGER_SPELL);
- }
-
- bool _handled;
-};
-
enum FeastOnSpells
{
FEAST_ON_TURKEY = 61784,
@@ -449,11 +419,6 @@ private:
void AddSC_event_pilgrims_bounty()
{
- RegisterSpellScriptWithArgs(spell_pilgrims_bounty_buff_food, "spell_gen_slow_roasted_turkey", SPELL_WELL_FED_AP_TRIGGER);
- RegisterSpellScriptWithArgs(spell_pilgrims_bounty_buff_food, "spell_gen_cranberry_chutney", SPELL_WELL_FED_ZM_TRIGGER);
- RegisterSpellScriptWithArgs(spell_pilgrims_bounty_buff_food, "spell_gen_spice_bread_stuffing", SPELL_WELL_FED_HIT_TRIGGER);
- RegisterSpellScriptWithArgs(spell_pilgrims_bounty_buff_food, "spell_gen_pumpkin_pie", SPELL_WELL_FED_SPIRIT_TRIGGER);
- RegisterSpellScriptWithArgs(spell_pilgrims_bounty_buff_food, "spell_gen_candied_sweet_potato", SPELL_WELL_FED_HASTE_TRIGGER);
RegisterSpellScript(spell_pilgrims_bounty_feast_on);
RegisterSpellScriptWithArgs(spell_pilgrims_bounty_well_fed, "spell_pilgrims_bounty_well_fed_turkey", SPELL_WELL_FED_AP_TRIGGER);
RegisterSpellScriptWithArgs(spell_pilgrims_bounty_well_fed, "spell_pilgrims_bounty_well_fed_cranberry", SPELL_WELL_FED_ZM_TRIGGER);