55 if (!spellClickHandled)
144 if (
urand(1, 100) < 30)
147 honey->DespawnOrUnsummon();
189 honey->DespawnOrUnsummon();
@ TEMPSUMMON_TIMED_DESPAWN
uint32 urand(uint32 min, uint32 max)
bool roll_chance_i(int chance)
@ SPELL_EFFECT_SCRIPT_EFFECT
@ SPELL_FAILED_OUT_OF_RANGE
#define SpellCheckCastFn(F)
#define SpellEffectFn(F, I, N)
@ UNIT_NPC_FLAG_SPELLCLICK
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
void MoveRandom(float wanderDistance=0.0f, Optional< Milliseconds > duration={}, MovementSlot slot=MOTION_SLOT_DEFAULT)
void SetEntry(uint32 entry)
static Player * ToPlayer(Object *o)
HookList< CheckCastHandler > OnCheckCast
Player * GetHitPlayer() const
HookList< EffectHandler > OnEffectHitTarget
void SetFaction(uint32 faction) override
MotionMaster * GetMotionMaster()
void RemoveNpcFlag(NPCFlags flags)
void SetUninteractible(bool apply)
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
CreatureAI * GetAI(Creature *creature) const override
void HandleScriptEffect(SpellEffIndex)
SpellScript * GetSpellScript() const override
void HandleScriptEffect(SpellEffIndex)
spell_ruumbos_silly_dance()
SpellScript * GetSpellScript() const override
void HandleDummy(SpellEffIndex)
SpellCastResult CheckTarget()
SpellScript * GetSpellScript() const override
void OnSpellClick(Unit *clicker, bool spellClickHandled) override
npc_whisperwind_lasherAI(Creature *creature)
void UpdateAI(uint32 diff) override
Position const FerliSpawnPos
Position const DrizzleSpawnPos