355 solarian->AI()->JustSummoned(
me);
425 solarian->AI()->JustSummoned(
me);
std::vector< ObjectGuid > GuidVector
#define RegisterSpellScript(spell_script)
@ AURA_EFFECT_HANDLE_REAL
@ SPELL_AURA_PERIODIC_TRIGGER_SPELL
#define AuraEffectRemoveFn(F, I, N, M)
static constexpr std::array< uint32, 4 > SplitLargeRadiusSpells2
void AddSC_boss_high_astromancer_solarian()
@ EVENT_WRATH_OF_THE_ASTROMANCER
static constexpr std::array< uint32, 4 > SplitLargeRadiusSpells1
@ SPELL_ASTROMANCER_SPLIT_LARGE_5
@ SPELL_ASTROMANCER_SPLIT_LARGE_4
@ SPELL_ASTROMANCER_SPLIT_SMALL_2
@ SPELL_SOLARIAN_TRANSFORM
@ SPELL_ASTROMANCER_SPLIT_LARGE_8
@ SPELL_ASTROMANCER_SPLIT_LARGE_6
@ SPELL_ASTROMANCER_SPLIT_LARGE_1
@ SPELL_SUMMON_ASTROMANCER_SOLARIAN
@ SPELL_ASTROMANCER_SPLIT_LARGE_3
@ SPELL_ASTROMANCER_SPLIT_SMALL_4
@ SPELL_SUMMON_ASTROMANCER_PRIEST
@ SPELL_SUMMON_ASTROMANCER_ADDS
@ SPELL_ASTROMANCER_SPLIT_SMALL_3
@ SPELL_ASTROMANCER_SPLIT_SMALL_1
@ SPELL_WRATH_OF_THE_ASTROMANCER
@ SPELL_ASTROMANCER_SPLIT_LARGE_2
@ SPELL_ASTROMANCER_SPLIT_LARGE_7
static constexpr std::array< uint32, 4 > SplitSmallRadiusSpells
static constexpr std::array< uint32, 3 > SpotlightSummonSpells
AuraApplication const * GetTargetApplication() const
HookList< EffectApplyHandler > AfterEffectRemove
SpellEffectInfo const & GetEffectInfo(SpellEffIndex effIndex) const
ObjectGuid const & GetGUID() const
void JustEngagedWith(Unit *who) override
void CallForHelp(float fRadius)
void GetHomePosition(float &x, float &y, float &z, float &ori) const
void SetReactState(ReactStates st)
void SetRegenerateHealth(bool value)
ReactStates GetReactState() const
void SetCorpseDelay(uint32 delay, bool ignoreCorpseDecayRatio=false)
void Repeat(Milliseconds time)
void CancelEvent(EventId eventId)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
Creature * GetCreature(uint32 type)
int32 CalcValueAsInt(WorldObject const *caster=nullptr, SpellEffectValue const *basePoints=nullptr, Unit const *target=nullptr, float *variance=nullptr, uint32 castItemId=0, int32 itemLevel=-1) const
SpellEffectInfo const & GetEffect(SpellEffIndex index) const
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
static bool ValidateSpellEffect(std::initializer_list< std::pair< uint32, SpellEffIndex > > effects)
void Summon(Creature const *summon)
TaskContext & Repeat(TaskScheduler::duration_t duration)
TaskScheduler & CancelAll()
TaskScheduler & SetValidator(P &&predicate)
Sets a validator which is asked if tasks are allowed to be executed.
TaskScheduler & Update()
Update the scheduler to the current time.
void AttackStartCaster(Unit *victim, float dist)
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
virtual void InitializeAI()
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 DoCast(uint32 spellId)
void SetArmor(int32 val, int32 bonusVal)
bool HealthBelowPctDamaged(float pct, uint32 damage) const
void NearTeleportTo(TeleportLocation const &target, bool casting=false)
bool HasUnitState(const uint32 f) const
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
bool Validate(SpellInfo const *spellInfo) override
void AfterRemove(AuraEffect const *, AuraEffectHandleModes)
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
void RandomShuffle(Iterator begin, Iterator end)
Reorder the elements of the iterator range randomly.
auto SelectRandomContainerElement(C const &container) -> std::add_const_t< decltype(*std::ranges::begin(container))> &
Unit * DoSelectLowestHpFriendly(float range, uint32 minHPDiff=1)
void AddThreat(Unit *victim, float amount, Unit *who=nullptr)
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
void UpdateAI(uint32 diff) override
void KilledUnit(Unit *) override
void JustDied(Unit *) override
GuidVector _spotlightsGuidVector
boss_high_astromancer_solarian(Creature *creature)
bool _isSecondPhaseStarted
void JustEngagedWith(Unit *who) override
void JustSummoned(Creature *summon) override
InstanceScript * _instance
void InitializeAI() override
npc_solarium_agent(Creature *creature)
void JustAppeared() override
void UpdateAI(uint32 diff) override
InstanceScript * _instance
void InitializeAI() override
npc_solarium_priest(Creature *creature)
void JustEngagedWith(Unit *) override
void AttackStart(Unit *who) override
== Triggered Actions Requested ==================
void JustAppeared() override
#define RegisterTheEyeCreatureAI(ai_name)