87 if (
Unit* target = vehicle->GetPassenger(0))
91 caster->
CastSpell(player, _spellId, player->GetGUID());
96 if (aura->GetStackAmount() == 1)
98 aura->ModStackAmount(-1);
133 if (!target || !caster)
141 switch (aura->GetStackAmount())
199 if (aura->GetStackAmount() == 5)
294 if (
Vehicle* table = vehBase->GetVehicle())
308 if (
Vehicle* holder = holderUnit->GetVehicleKit())
309 if (
Unit* plate = holder->GetPassenger(seat))
319 if (!target || caster == target)
323 if (!table || table !=
GetTable(target))
329 if (casterPlr == target)
403 if (
Vehicle* holder = holderUnit->GetVehicleKit())
#define RegisterSpellScript(spell_script)
#define RegisterSpellScriptWithArgs(spell_script, script_name,...)
@ SPELL_EFFECT_SCRIPT_EFFECT
@ AURA_EFFECT_HANDLE_REAL
#define SpellEffectFn(F, I, N)
#define AuraEffectApplyFn(F, I, N, M)
#define AuraEffectRemoveFn(F, I, N, M)
HookList< EffectApplyHandler > AfterEffectApply
HookList< EffectApplyHandler > OnEffectRemove
uint8 GetStackAmount() const
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
static Creature * ToCreature(Object *o)
static Player * ToPlayer(Object *o)
Player * GetHitPlayer() const
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Unit * GetHitUnit() const
int32 GetEffectValue() const
HookList< EffectHandler > OnEffectHitTarget
SpellInfo const * GetSpellInfo() const
Vehicle * GetVehicle() const
Aura * GetAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Unit * GetVehicleBase() const
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Vehicle * GetVehicleKit() const
Unit * GetPassenger(int8 seatId) const
Gets a passenger on specified seat.
int8 GetTransSeat() const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
bool Validate(SpellInfo const *) override
void OnRemove(AuraEffect const *aurEff, AuraEffectHandleModes)
spell_pilgrims_bounty_a_serving_of(uint32 triggeredSpellId)
void HandlePlate(Unit *target, bool apply)
PrepareAuraScript(spell_pilgrims_bounty_a_serving_of)
void OnApply(AuraEffect const *aurEff, AuraEffectHandleModes)
PrepareSpellScript(spell_pilgrims_bounty_feast_on)
void HandleDummy(SpellEffIndex)
uint32 _triggeredSpellId2
bool Validate(SpellInfo const *) override
spell_pilgrims_bounty_on_plate(uint32 triggeredSpellId1, uint32 triggeredSpellId2, uint32 triggeredSpellId3, uint32 triggeredSpellId4)
PrepareSpellScript(spell_pilgrims_bounty_on_plate)
uint32 _triggeredSpellId3
Unit * GetPlateInSeat(Vehicle *table, uint8 seat)
uint32 _triggeredSpellId1
Vehicle * GetTable(Unit *target)
uint32 _triggeredSpellId4
void HandleDummy(SpellEffIndex)
PrepareSpellScript(spell_pilgrims_bounty_turkey_tracker)
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *) override
void HandleScript(SpellEffIndex effIndex)
PrepareSpellScript(spell_pilgrims_bounty_well_fed)
bool Validate(SpellInfo const *) override
spell_pilgrims_bounty_well_fed(uint32 triggeredSpellId)
@ SPELL_WELL_FED_SPIRIT_TRIGGER
@ SPELL_WELL_FED_HIT_TRIGGER
@ SPELL_WELL_FED_ZM_TRIGGER
@ SPELL_WELL_FED_AP_TRIGGER
@ SPELL_WELL_FED_HASTE_TRIGGER
@ EMOTE_TURKEY_DOMINATION
@ SPELL_KILL_COUNTER_VISUAL_MAX
@ SPELL_KILL_COUNTER_VISUAL
@ SPELL_A_SERVING_OF_PIE_PLATE
@ SPELL_ON_PLATE_VISUAL_POTATOES
@ SPELL_A_SERVING_OF_STUFFING_CHAIR
@ SPELL_ON_PLATE_VISUAL_STUFFING
@ SPELL_PASS_THE_SWEET_POTATOES
@ SPELL_ON_PLATE_VISUAL_TURKEY
@ SPELL_ON_PLATE_SWEET_POTATOES
@ SPELL_PASS_THE_CRANBERRIES
@ SPELL_A_SERVING_OF_STUFFING_PLATE
@ SPELL_A_SERVING_OF_SWEET_POTATOES_CHAIR
@ SPELL_A_SERVING_OF_CRANBERRIES_CHAIR
@ SPELL_A_SERVING_OF_TURKEY_CHAIR
@ SPELL_ON_PLATE_VISUAL_PIE
@ SPELL_A_SERVING_OF_SWEET_POTATOES_PLATE
@ SPELL_ON_PLATE_CRANBERRIES
@ SPELL_A_SERVING_OF_TURKEY_PLATE
@ SPELL_PASS_THE_STUFFING
@ SPELL_A_SERVING_OF_CRANBERRIES_PLATE
@ SPELL_ON_PLATE_STUFFING
@ SPELL_A_SERVING_OF_PIE_CHAIR
@ SPELL_ON_PLATE_VISUAL_CRANBERRIES
@ SPELL_ON_PLATE_EAT_VISUAL
@ SPELL_SWEET_POTATO_HELPINS
@ SPELL_CRANBERRY_HELPINS
@ FEAST_ON_SWEET_POTATOES
@ SPELL_THE_SPIRIT_OF_SHARING
void AddSC_event_pilgrims_bounty()