78 std::list<Creature*> crystals;
82 creature->Respawn(
true);
125 std::list<Creature*> crystals;
152 if (CrystalChosen && CrystalChosen->
IsAlive())
206 if (CrystalChosen && CrystalChosen->
IsAlive())
std::chrono::milliseconds Milliseconds
Milliseconds shorthand typedef.
Milliseconds randtime(Milliseconds min, Milliseconds max)
@ UNIT_FLAG_UNINTERACTIBLE
void AddSC_boss_selin_fireheart()
@ SPELL_FEL_CRYSTAL_DUMMY
void JustEngagedWith(Unit *who) override
bool IsInPhase(PhaseIndex phase) const
void SetPhase(PhaseIndex phase)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
void MoveChase(Unit *target, Optional< ChaseRange > dist={}, Optional< ChaseAngle > angle={})
void MovePoint(uint32 id, Position const &pos, bool generatePath=true, Optional< float > finalOrient={})
virtual void DoAction(int32)
void DoMeleeAttackIfReady()
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)
void KillSelf(bool durabilityLoss=true)
MotionMaster * GetMotionMaster()
float GetCombatReach() const override
bool SetWalk(bool enable)
bool HasUnitState(const uint32 f) const
float GetPowerPct(Powers power) const
void RemoveUnitFlag(UnitFlags flags)
InstanceScript * GetInstanceScript() const
void GetCreatureListWithEntryInGrid(Container &creatureContainer, uint32 entry, float maxSearchRange=250.0f) const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
#define RegisterMagistersTerraceCreatureAI(ai_name)
TC_GAME_API Unit * GetUnit(WorldObject const &, ObjectGuid const &guid)
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
void AttackStart(Unit *) override
void KilledUnit(Unit *victim) override
void SelectNearestCrystal()
void MovementInform(uint32 type, uint32 id) override
void UpdateAI(uint32 diff) override
void JustDied(Unit *) override
void JustEngagedWith(Unit *who) override
boss_selin_fireheart(Creature *creature)
void ShatterRemainingCrystals()
void DoAction(int32 action) override
void JustDied(Unit *) override
npc_fel_crystal(Creature *creature)