212 aur->SetMaxDuration(std::min(3600000, aur->GetMaxDuration() + 180000));
213 aur->RefreshDuration();
299 uint32 torchShadowSpellID = 0;
301 if (distance <= 1.5f)
307 else if (distance <= 10.0f)
312 else if (distance <= 20.0f)
407 if (
GetCaster()->GetExactDist2d(pos) > 3.0f)
451 uint8 requiredCatches = 0;
459 if (requiredCatches == 0)
@ QUEST_STATUS_INCOMPLETE
#define RegisterSpellScript(spell_script)
#define RegisterSpellScriptWithArgs(spell_script, script_name,...)
@ SPELL_EFFECT_SCRIPT_EFFECT
@ SPELL_EFFECT_TRIGGER_MISSILE
@ TARGET_UNIT_DEST_AREA_ENTRY
@ AURA_EFFECT_HANDLE_REAPPLY
@ AURA_EFFECT_HANDLE_REAL
@ SPELL_AURA_DETECT_AMORE
@ SPELL_AURA_PERIODIC_DUMMY
@ SPELL_AURA_PERIODIC_TRIGGER_SPELL
#define SpellEffectFn(F, I, N)
#define SpellObjectAreaTargetSelectFn(F, I, N)
#define AuraEffectPeriodicFn(F, I, N)
#define AuraEffectApplyFn(F, I, N, M)
#define AuraEffectRemoveFn(F, I, N, M)
HookList< EffectApplyHandler > AfterEffectRemove
HookList< EffectPeriodicHandler > OnEffectPeriodic
HookList< EffectApplyHandler > AfterEffectApply
void Remove(AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
uint8 GetStackAmount() const
static ObjectGuid GetGUID(Object const *o)
QuestStatus GetQuestStatus(uint32 quest_id) const
WorldLocation * GetHitDest() const
Player * GetHitPlayer() const
HookList< EffectHandler > OnEffectHit
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
void PreventHitEffect(SpellEffIndex effIndex)
WorldLocation const * GetExplTargetDest() const
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
Aura * GetAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
void RemoveAura(AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
uint32 GetAuraCount(uint32 spellId) const
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Position GetFirstCollisionPosition(float dist, float angle)
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
bool Validate(SpellInfo const *) override
PrepareAuraScript(spell_midsummer_braziers_hit)
void HandleEffectApply(AuraEffect const *, AuraEffectHandleModes)
spell_midsummer_cleansing_flames(CleansingFlames triggeredSpell)
void HandleDummy(SpellEffIndex)
PrepareSpellScript(spell_midsummer_cleansing_flames)
bool Validate(SpellInfo const *) override
void HandleScriptEffect(SpellEffIndex)
PrepareSpellScript(spell_midsummer_fling_torch_catch)
bool Validate(SpellInfo const *) override
void FilterTargets(std::list< WorldObject * > &targets)
PrepareSpellScript(spell_midsummer_fling_torch_missed)
void HandleTriggerMissile(SpellEffIndex effIndex)
bool Validate(SpellInfo const *) override
PrepareSpellScript(spell_midsummer_fling_torch_triggered)
bool Validate(SpellInfo const *) override
void HandleDummy(SpellEffIndex)
PrepareSpellScript(spell_midsummer_fling_torch)
PrepareSpellScript(spell_midsummer_juggle_torch)
void HandleDummy(SpellEffIndex)
bool Validate(SpellInfo const *) override
PrepareSpellScript(spell_midsummer_remove_torches)
void HandleDummy(SpellEffIndex)
bool Validate(SpellInfo const *) override
PrepareAuraScript(spell_midsummer_ribbon_pole_periodic_visual)
bool Validate(SpellInfo const *) override
void PeriodicTick(AuraEffect const *)
bool Validate(SpellInfo const *) override
PrepareSpellScript(spell_midsummer_stamp_out_bonfire_event)
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *) override
void AfterApply(AuraEffect const *, AuraEffectHandleModes)
PrepareAuraScript(spell_midsummer_stamp_out_bonfire_quest_complete)
PrepareAuraScript(spell_midsummer_test_ribbon_pole_channel)
void PeriodicTick(AuraEffect const *)
bool Validate(SpellInfo const *) override
void HandleRemove(AuraEffect const *, AuraEffectHandleModes)
void HandleDummy(SpellEffIndex)
bool Validate(SpellInfo const *) override
PrepareSpellScript(spell_midsummer_torch_catch)
bool Validate(SpellInfo const *) override
void HandleScript(SpellEffIndex)
PrepareSpellScript(spell_midsummer_torch_target_picker)
PrepareSpellScript(spell_midsummer_torch_toss_land)
bool Validate(SpellInfo const *) override
void HandleScript(SpellEffIndex)
PrepareAuraScript(spell_midsummer_torch_tossing_training_practice)
void AfterRemove(AuraEffect const *, AuraEffectHandleModes)
bool Validate(SpellInfo const *) override
void AfterApply(AuraEffect const *, AuraEffectHandleModes)
@ SPELL_TORCH_TOSSING_TRAINING_SUCCESS_2
@ SPELL_TARGET_INDICATOR_COSMETIC
@ SPELL_TORCH_TOSSING_TRAINING
@ SPELL_TORCH_TOSSING_TRAINING_SUCCESS_1
@ SPELL_TARGET_DETECT_INVISIBILITY
@ SPELL_TORCH_TOSSING_PRACTICE
@ SPELL_JUGGLE_TORCH_MISSED
@ SPELL_TORCH_CATCHING_SUCCESS_ALLIANCE
@ SPELL_FLING_TORCH_SHADOW
@ SPELL_TORCH_CATCHING_REMOVE_TORCHES
@ SPELL_TORCH_CATCHING_SUCCESS_HORDE
@ SPELL_FLING_TORCH_TRIGGERED
@ SPELL_STAMP_OUT_BONFIRE_DUMMY
@ SPELL_STAMP_OUT_BONFIRE_ART_KIT
@ SPELL_STAMP_OUT_BONFIRE_EVENT
void AddSC_event_midsummer()
@ SPELL_TEST_RIBBON_POLE_2
@ SPELL_RIBBON_POLE_PERIODIC_VISUAL
@ SPELL_BURNING_HOT_POLE_DANCE
@ SPELL_HAS_FULL_MIDSUMMER_SET
@ SPELL_TEST_RIBBON_POLE_1
@ SPELL_TEST_RIBBON_POLE_3
@ SPELL_JUGGLE_TORCH_SHADOW_SLOW
@ QUEST_MORE_TORCH_CATCHING_A
@ SPELL_JUGGLE_TORCH_SELF
@ SPELL_JUGGLE_TORCH_SHADOW_FAST
@ SPELL_JUGGLE_TORCH_SLOW
@ SPELL_JUGGLE_TORCH_SHADOW_MEDIUM
@ SPELL_JUGGLE_TORCH_SHADOW_SELF
@ QUEST_MORE_TORCH_CATCHING_H
@ SPELL_JUGGLE_TORCH_FAST
@ SPELL_JUGGLE_TORCH_MEDIUM
@ SPELL_CREATE_FLAME_OF_DARNASSUS
@ SPELL_CREATE_FLAME_OF_THE_EXODAR
@ SPELL_CREATE_FLAME_OF_IRONFORGE
@ SPELL_CREATE_FLAME_OF_STORMWIND
@ SPELL_CREATE_FLAME_OF_THE_UNDERCITY
@ SPELL_CREATE_FLAME_OF_ORGRIMMAR
@ SPELL_CREATE_FLAME_OF_THUNDER_BLUFF
@ SPELL_CREATE_FLAME_OF_SILVERMOON
float GetExactDist2d(const float x, const float y) const
float GetPositionX() const
void GetPosition(float &x, float &y) const
float GetPositionY() const