93 static uint32 const MechanicImmunityList =
107 static std::list<AuraType>
const AuraImmunityList =
119 for (
AuraType type : AuraImmunityList)
131 if (guard->IsAlive())
146 if (guard->IsAlive() && !guard->HealthAbovePct(75))
std::chrono::milliseconds Milliseconds
Milliseconds shorthand typedef.
std::chrono::seconds Seconds
Seconds shorthand typedef.
@ SPELL_AURA_MOD_DECREASE_SPEED
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
void JustReachedHome() override
void SetCanDualWield(bool value) override
virtual ObjectGuid GetGuidData(uint32 type) const override
TaskContext & Repeat(TaskScheduler::duration_t duration)
TaskScheduler & CancelAll()
TaskScheduler & Schedule(duration_t time, task_handler_t task)
TaskScheduler & Update()
Update the scheduler to the current time.
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
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
npc_erekem_guard(Creature *creature)
void JustEngagedWith(Unit *) override
void UpdateAI(uint32 diff) override
#define RegisterVioletHoldCreatureAI(ai_name)