25 me->SetCanMelee(
false);
36 me->SetCanMelee(
false);
78 me->SetCanMelee(
false,
true);
std::chrono::milliseconds Milliseconds
Milliseconds shorthand typedef.
@ UNIT_NPC_FLAG_SPELLCLICK
ObjectGuid const & GetGUID() const
virtual void EnterEvadeMode(EvadeReason why=EvadeReason::Other)
void StartDefaultCombatMovement(Unit *victim, Optional< float > range={}, Optional< float > angle={})
uint32 m_spells[MAX_CREATURE_SPELLS]
bool IsEngaged() const override
void JustEngagedWith(Unit *) override
void UpdateAI(uint32 diff) override
CritterAI(Creature *creature, uint32 scriptId={}) noexcept
static int32 Permissible(Creature const *creature)
NullCreatureAI(Creature *creature, uint32 scriptId={}) noexcept
static int32 Permissible(Creature const *creature)
void RemoveDynamicFlag(uint32 flag)
PassiveAI(Creature *creature, uint32 scriptId={}) noexcept
void UpdateAI(uint32) override
void AttackStart(Unit *target) override
== Triggered Actions Requested ==================
void UpdateAI(uint32) override
PossessedAI(Creature *creature, uint32 scriptId={}) noexcept
void JustDied(Unit *) override
void IsSummonedBy(WorldObject *summoner) override
static int32 Permissible(Creature const *creature)
bool Attack(Unit *victim, bool meleeAttack)
bool HasNpcFlag(NPCFlags flags) const
uint32 HasUnitTypeMask(uint32 mask) const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
bool IsValidAttackTarget(WorldObject const *target, SpellInfo const *bySpell=nullptr) const
@ CONFIG_CREATURE_FAMILY_FLEE_DELAY