78#define MAX_Y_COORD_OH_NOVOS -771.95f
217 for (
uint8 i = 0; i < 4; i++)
227 crystalChannelTarget->AI()->Reset();
235 for (
uint8 i = 0; i < 4; i++)
252 crystalChannelTarget->CastStop();
258 for (
uint8 i = 0; i < 4; i++)
345 novos->AI()->JustSummoned(summon);
373 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
@ 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
@ ACTION_ACTIVATE_CRYSTAL
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
virtual void MoveInLineOfSight(Unit *)
void Repeat(Milliseconds time)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
void SetGoState(GOState state)
virtual ObjectGuid GetGuidData(uint32 type) const override
void MovePath(uint32 pathId, bool repeatable)
static Creature * ToCreature(Object *o)
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 HasUnitFlag(UnitFlags flags) const
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
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
bool OnCheck(Player *, Unit *target) override
PrepareSpellScript(spell_novos_summon_minions)
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)
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
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)