78#define MAX_Y_COORD_OH_NOVOS -771.95f
214 for (
uint8 i = 0; i < 4; i++)
224 crystalChannelTarget->AI()->Reset();
232 for (
uint8 i = 0; i < 4; i++)
249 crystalChannelTarget->CastStop();
255 for (
uint8 i = 0; i < 4; i++)
341 novos->AI()->JustSummoned(summon);
378 for (
uint8 i = 0; i < 2; ++i)
First const & RAND(First const &first, Second const &second, Rest const &... rest)
#define RegisterSpellScript(spell_script)
@ SPELL_EFFECT_SCRIPT_EFFECT
#define SpellEffectFn(F, I, N)
@ UNIT_FLAG_NON_ATTACKABLE
@ ACTION_ACTIVATE_CRYSTAL
@ SPELL_SUMMON_CRYSTAL_HANDLER
@ SPELL_SUMMON_FETID_TROLL_CORPSE
@ SPELL_SUMMON_RISEN_SHADOWCASTER
@ SPELL_SUMMON_COPY_OF_MINIONS
@ SPELL_SUMMON_HULKING_CORPSE
const SummonerInfo summoners[]
#define MAX_Y_COORD_OH_NOVOS
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
virtual void MoveInLineOfSight(Unit *)
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
void SetGoState(GOState state)
virtual ObjectGuid GetGuidData(uint32 type) const override
void MovePath(uint32 pathId, bool repeatable, Optional< Milliseconds > duration={}, Optional< float > speed={}, MovementWalkRunSpeedSelectionMode speedSelectionMode=MovementWalkRunSpeedSelectionMode::Default, Optional< std::pair< Milliseconds, Milliseconds > > waitTimeRangeAtPathEnd={}, Optional< float > wanderDistanceAtPathEnds={}, Optional< bool > followPathBackwardsFromEndToStart={}, bool generatePath=true)
static Creature * ToCreature(Object *o)
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
HookList< EffectHandler > OnEffectHitTarget
void Summon(Creature const *summon)
virtual uint32 GetData(uint32) const
Unit * SelectTarget(SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
SpellCastResult DoCast(uint32 spellId)
void CastStop(uint32 except_spellid=0)
MotionMaster * GetMotionMaster()
bool Attack(Unit *victim, bool meleeAttack)
bool HasUnitState(const uint32 f) const
void SetUnitFlag(UnitFlags flags)
void RemoveUnitFlag(UnitFlags flags)
InstanceScript * GetInstanceScript() const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
bool OnCheck(Player *, Unit *target) override
bool Validate(SpellInfo const *) override
void HandleScript(SpellEffIndex)
#define RegisterDrakTharonKeepCreatureAI(ai_name)
@ NPC_CRYSTAL_CHANNEL_TARGET
@ ACTION_CRYSTAL_HANDLER_DIED
TC_GAME_API GameObject * GetGameObject(WorldObject const &u, ObjectGuid const &guid)
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
constexpr float GetPositionY() const
void DoStartNoMovement(Unit *target)
void UpdateAI(uint32 diff) override
void CrystalHandlerDied()
uint8 _crystalHandlerCount
void JustDied(Unit *) override
void KilledUnit(Unit *who) override
void AttackStart(Unit *target) override
== Triggered Actions Requested ==================
uint32 GetData(uint32 type) const override
void SetCrystalsStatus(bool active)
void JustSummoned(Creature *summon) override
void DoAction(int32 action) override
void MoveInLineOfSight(Unit *who) override
void SetSummonerStatus(bool active)
void JustEngagedWith(Unit *who) override
boss_novos(Creature *creature)
void SetCrystalStatus(GameObject *crystal, bool active)
void SetBubbled(bool state)
void JustSummoned(Creature *summon) override
void SetData(uint32 id, uint32 value) override
void UpdateAI(uint32 diff) override
npc_crystal_channel_target(Creature *creature)