139 launcher = launcher1;
141 launcher = launcher2;
143 launcher = launcher3;
145 launcher = launcher4;
154 launcher = launcher1;
156 launcher = launcher2;
158 launcher = launcher3;
287 float displacement = 0.7f;
288 for (
uint8 i = 0; i < 4; i++)
406 trap->RemoveFromWorld();
409 trap->RemoveFromWorld();
412 omen->DespawnOrUnsummon();
@ TEMPSUMMON_CORPSE_TIMED_DESPAWN
float frand(float min, float max)
uint32 urand(uint32 min, uint32 max)
#define RegisterCreatureAI(ai_name)
#define RegisterSpellScript(spell_script)
GameObject * GetClosestGameObjectWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool spawnedOnly=true)
@ SPELL_EFFECT_SCRIPT_EFFECT
@ SPELL_EFFECT_SUMMON_OBJECT_WILD
#define SpellEffectFn(F, I, N)
void SetHomePosition(float x, float y, float z, float o)
void SetImmuneToPC(bool apply) override
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void RescheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
void MovePoint(uint32 id, Position const &pos, bool generatePath=true, Optional< float > finalOrient={})
SpellEffectInfo const & GetEffect(SpellEffIndex index) const
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
void DoMeleeAttackIfReady()
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
Unit * SelectTarget(SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
SpellCastResult DoCast(uint32 spellId)
MotionMaster * GetMotionMaster()
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)
GameObject * FindNearestGameObject(uint32 entry, float range, bool spawnedOnly=true) const
Player * SelectNearestPlayer(float distance) const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
TempSummon * SummonCreature(uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
float GetDistance2d(WorldObject const *obj) const
GameObject * SummonGameObject(uint32 entry, Position const &pos, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
PrepareSpellScript(spell_lunar_festival_elune_candle)
bool Validate(SpellInfo const *) override
void HandleScript(SpellEffIndex)
PrepareSpellScript(spell_lunar_festival_elunes_blessing)
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *) override
@ SPELL_ELUNES_BLESSING_QUEST_CREDIT
@ ANIM_GO_LAUNCH_FIREWORK
@ NPC_FIREWORK_BIG_YELLOW
@ NPC_FIREWORK_BIG_PURPLE
@ SPELL_ROCKET_BIG_YELLOW
@ SPELL_ROCKET_BIG_PURPLE
void AddSC_event_lunar_festival()
@ SPELL_OMEN_SUMMON_SPOTLIGHT
@ SPELL_ELUNE_CANDLE_OMEN_HAND_R
@ SPELL_ELUNE_CANDLE_NORMAL
@ SPELL_ELUNE_CANDLE_OMEN_HEAD
@ SPELL_ELUNE_CANDLE_OMEN_CHEST
@ SPELL_ELUNE_CANDLE_OMEN_HAND_L
float GetPositionZ() const
float GetOrientation() const
void SetOrientation(float orientation)
float GetPositionX() const
void GetPosition(float &x, float &y) const
float GetPositionY() const
void AttackStart(Unit *) override
GameObject * FindNearestLauncher()
uint32 GetFireworkGameObjectId()
uint32 GetFireworkSpell(uint32 entry)
npc_firework(Creature *creature)
npc_giant_spotlight(Creature *creature)
void UpdateAI(uint32 diff) override
void JustDied(Unit *) override
void SpellHit(WorldObject *, SpellInfo const *spellInfo) override
void MovementInform(uint32 type, uint32 pointId) override
void JustEngagedWith(Unit *) override
npc_omen(Creature *creature)
void UpdateAI(uint32 diff) override