99 static uint32 const MechanicImmunityList =
113 static std::list<AuraType>
const AuraImmunityList =
125 for (
AuraType type : AuraImmunityList)
137 if (guard->IsAlive())
152 if (guard->IsAlive() && !guard->HealthAbovePct(75))
std::chrono::seconds Seconds
Seconds shorthand typedef.
std::chrono::milliseconds Milliseconds
Milliseconds shorthand typedef.
@ SPELL_AURA_MOD_DECREASE_SPEED
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
void JustReachedHome() override
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
void SetCanDualWield(bool value) override
virtual ObjectGuid GetGuidData(uint32 type) const override
TaskContext & Repeat(std::chrono::duration< Rep, Period > duration)
TaskScheduler & CancelAll()
TaskScheduler & Schedule(std::chrono::duration< Rep, Period > time, task_handler_t task)
TaskScheduler & Update(success_t const &callback=nullptr)
bool DoSpellAttackIfReady(uint32 spellId)
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 DoCastAOE(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCast(uint32 spellId)
bool HasAuraType(AuraType auraType) const
void SetFacingTo(float const ori, bool force=true)
bool HasAuraWithMechanic(uint64 mechanicMask) const
virtual void SetData(uint32, uint32)
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Unit * DoSelectLowestHpFriendly(float range, uint32 minHPDiff=1)
bool HealthBelowPct(uint32 pct) const
bool CheckGuardAlive() const
void JustEngagedWith(Unit *who) override
boss_erekem(Creature *creature)
void JustReachedHome() override
Unit * GetChainHealTarget() const
void UpdateAI(uint32 diff) override
bool CheckGuardAuras(Creature *guard) const
void ScheduleTasks() override
void JustDied(Unit *) override
void KilledUnit(Unit *victim) override
void MovementInform(uint32 type, uint32 pointId) override
npc_erekem_guard(Creature *creature)
void JustEngagedWith(Unit *) override
void UpdateAI(uint32 diff) override
#define RegisterVioletHoldCreatureAI(ai_name)