AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
boss_novos::boss_novosAI Struct Reference
Inheritance diagram for boss_novos::boss_novosAI:
BossAI ScriptedAI CreatureAI UnitAI

Public Member Functions

 boss_novosAI (Creature *creature)
 
void Reset () override
 
uint32 GetData (uint32 data) const override
 
void SetData (uint32 type, uint32) override
 
void MoveInLineOfSight (Unit *) override
 
void JustEngagedWith (Unit *who) override
 Called for reaction when initially engaged.
 
void JustDied (Unit *killer) override
 
void KilledUnit (Unit *) override
 
void JustSummoned (Creature *summon) override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
bool CheckEvadeIfOutOfCombatArea () const override
 
- Public Member Functions inherited from BossAI
 BossAI (Creature *creature, uint32 bossId)
 
 ~BossAI () override
 
bool CanRespawn () override
 
void DamageTaken (Unit *attacker, uint32 &damage, DamageEffectType damagetype, SpellSchoolMask damageSchoolMask) override
 Called at any Damage from any attacker (before damage apply)
 
void JustSummoned (Creature *summon) override
 
void SummonedCreatureDespawn (Creature *summon) override
 
void SummonedCreatureDespawnAll () override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
void ScheduleHealthCheckEvent (uint32 healthPct, std::function< void()> exec)
 Executes a function once the creature reaches the defined health point percent.
 
void ScheduleHealthCheckEvent (std::initializer_list< uint8 > healthPct, std::function< void()> exec)
 
void ScheduleEnrageTimer (uint32 spellId, Milliseconds timer, uint8 textId=0)
 
virtual void ExecuteEvent (uint32)
 
virtual void ScheduleTasks ()
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged.
 
void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER) override
 
void JustDied (Unit *) override
 
void JustReachedHome () override
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
 ~ScriptedAI () override
 
void AttackStartNoMove (Unit *target)
 
void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask) override
 Called at any Damage from any attacker (before damage apply)
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
void JustDied (Unit *) override
 
void KilledUnit (Unit *) override
 
void JustSummoned (Creature *) override
 
void SummonedCreatureDespawn (Creature *) override
 
void SpellHit (Unit *, SpellInfo const *) override
 
void SpellHitTarget (Unit *, SpellInfo const *) override
 
void MovementInform (uint32, uint32) override
 
void OnPossess (bool)
 
bool IsInRoom (const Position *pos, Axis axis, bool above)
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged.
 
void AttackStart (Unit *) override
 
void DoStartMovement (Unit *target, float distance=0.0f, float angle=0.0f)
 
void DoStartNoMovement (Unit *target)
 
void DoStopAttack ()
 
void DoCastSpell (Unit *target, SpellInfo const *spellInfo, bool triggered=false)
 
void DoPlaySoundToSet (WorldObject *source, uint32 soundId)
 
void DoPlayMusic (uint32 soundId, bool zone)
 
void DoAddThreat (Unit *unit, float amount)
 
void DoModifyThreatByPercent (Unit *unit, int32 pct)
 
void DoResetThreat (Unit *unit)
 
void DoResetThreatList ()
 
float DoGetThreat (Unit *unit)
 
void DoTeleportPlayer (Unit *unit, float x, float y, float z, float o)
 
void DoTeleportPlayer (Unit *unit, Position pos)
 
void DoTeleportAll (float x, float y, float z, float o)
 
UnitDoSelectLowestHpFriendly (float range, uint32 minHPDiff=1)
 
std::list< Creature * > DoFindFriendlyCC (float range)
 
std::list< Creature * > DoFindFriendlyMissingBuff (float range, uint32 spellId)
 
PlayerGetPlayerAtMinimumRange (float minRange)
 
CreatureDoSpawnCreature (uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, uint32 type, uint32 despawntime)
 
bool IsUniqueTimedEventDone (uint32 id) const
 
void SetUniqueTimedEventDone (uint32 id)
 
void ResetUniqueTimedEvent (uint32 id)
 
void ClearUniqueTimedEventsDone ()
 
void ScheduleTimedEvent (Milliseconds timerMin, Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0s, uint32 uniqueId=0)
 
void ScheduleTimedEvent (Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0s, uint32 uniqueId=0)
 
void ScheduleUniqueTimedEvent (Milliseconds timer, std::function< void()> exec, uint32 uniqueId)
 
bool HealthBelowPct (uint32 pct) const
 
bool HealthAbovePct (uint32 pct) const
 
SpellInfo const * SelectSpell (Unit *target, uint32 school, uint32 mechanic, SelectTargetType targets, uint32 powerCostMin, uint32 powerCostMax, float rangeMin, float rangeMax, SelectEffect effect)
 
void SetEquipmentSlots (bool loadDefault, int32 mainHand=EQUIP_NO_CHANGE, int32 offHand=EQUIP_NO_CHANGE, int32 ranged=EQUIP_NO_CHANGE)
 
bool IsHeroic () const
 
Difficulty GetDifficulty () const
 
bool Is25ManRaid () const
 
template<class T >
const T & DUNGEON_MODE (const T &normal5, const T &heroic10) const
 
template<class T >
const T & RAID_MODE (const T &normal10, const T &normal25) const
 
template<class T >
const T & RAID_MODE (const T &normal10, const T &normal25, const T &heroic10, const T &heroic25) const
 
PlayerSelectTargetFromPlayerList (float maxdist, uint32 excludeAura=0, bool mustBeInLOS=false) const
 
void SetInvincibility (bool apply)
 
bool IsInvincible () const
 
void SetAutoAttackAllowed (bool allow)
 
bool IsAutoAttackAllowed () const
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0s)
 Causes the creature to talk/say the text assigned to their entry in the creature_text database table.
 
void Talk (uint8 id, Milliseconds delay)
 
WorldObjectGetSummoner () const
 Returns the summoner creature/object, if the creature is a temporary summon.
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At =================================
 
void TriggerAlert (Unit const *who) const
 
virtual void IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureEvade (Creature *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void PathEndReached (uint32)
 
void OnCharmed (bool apply) override
 Called when unit is charmed.
 
void DoZoneInCombat (Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *)
 
virtual void OwnerAttacked (Unit *)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ==================
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields =======================================
 
virtual bool BeforeSpellClick (Unit *)
 
virtual void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
virtual bool CanBeSeen (Player const *)
 
virtual bool CanAlwaysBeDetectable (WorldObject const *)
 
virtual void PetStopAttack ()
 
virtual bool CheckInRoom ()
 
CreatureBoundary const * GetBoundary () const
 
void SetBoundary (CreatureBoundary const *boundary, bool negativeBoundaries=false)
 
bool IsInBoundary (Position const *who=nullptr) const
 
virtual void CalculateThreat (Unit *, float &, SpellInfo const *)
 
virtual bool OnTeleportUnreacheablePlayer (Player *)
 
virtual void OnAuraRemove (AuraApplication *, AuraRemoveMode)
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void InitializeAI ()
 
virtual void DoAction (int32)
 
virtual void SetGUID (ObjectGuid, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
UnitSelectTarget (SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 Select the best (up to) <num> targets (in <targetType> order) from the threat list that fulfill the following:
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
virtual void JustEnteredCombat (Unit *)
 Called when the unit enters combat.
 
virtual void JustExitedCombat ()
 Called when the unit leaves combat.
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage to any victim (before damage apply)
 
virtual void HealReceived (Unit *, uint32 &)
 Called when the creature receives heal.
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 Called when the creature power updates.
 
virtual void HealDone (Unit *, uint32 &)
 Called when the unit heals.
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 Called during damage calculations.
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 Called during calculation when receiving periodic healing or damage (DoT or HoT)
 
void AttackStartCaster (Unit *victim, float dist)
 
SpellCastResult DoAddAuraToAllHostilePlayers (uint32 spellid)
 
SpellCastResult DoCast (uint32 spellId)
 
SpellCastResult DoCast (Unit *victim, uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastSelf (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastToAllHostilePlayers (uint32 spellid, bool triggered=false)
 To specify the caster as target if the spell is self-cast.
 
SpellCastResult DoCastVictim (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastAOE (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastRandomTarget (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false, bool withTank=true)
 Cast the spell on a random unit from the threat list.
 
SpellCastResult DoCastMaxThreat (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false)
 Cast spell on the top threat target, which may not be the current victim.
 
float DoGetSpellMaxRange (uint32 spellId, bool positive=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spell)
 
void DoSpellAttackToRandomTargetIfReady (uint32 spell, uint32 threatTablePosition=0, float dist=0.f, bool playerOnly=true)
 
virtual void SummonMovementInform (Creature *, uint32, uint32)
 Called when a summon reaches a waypoint or point movement finished.
 
virtual void sGossipHello (Player *)
 
virtual void sGossipSelect (Player *, uint32, uint32)
 
virtual void sGossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual void sQuestAccept (Player *, Quest const *)
 
virtual void sQuestSelect (Player *, Quest const *)
 
virtual void sQuestComplete (Player *, Quest const *)
 
virtual void sQuestReward (Player *, Quest const *, uint32)
 
virtual void sOnGameEvent (bool, uint16)
 
virtual std::string GetDebugInfo () const
 

Private Attributes

uint8 _crystalCounter
 
uint8 _stage
 
ObjectGuid _summonTargetRightGUID
 
ObjectGuid _summonTargetLeftGUID
 
bool _achievement
 

Additional Inherited Members

- Public Types inherited from ScriptedAI
enum class  Axis {
  AXIS_X ,
  AXIS_Y
}
 
- Public Types inherited from CreatureAI
enum  EvadeReason {
  EVADE_REASON_NO_HOSTILES ,
  EVADE_REASON_BOUNDARY ,
  EVADE_REASON_SEQUENCE_BREAK ,
  EVADE_REASON_NO_PATH ,
  EVADE_REASON_OTHER
}
 
- Static Public Member Functions inherited from CreatureAI
static bool IsInBounds (CreatureBoundary const &boundary, Position const *who)
 
- Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
 
- Public Attributes inherited from BossAI
float callForHelpRange
 
InstanceScript *const instance
 
- Public Attributes inherited from ScriptedAI
Creatureme
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from BossAI
void _Reset ()
 
void _JustEngagedWith ()
 
void _JustDied ()
 
void _JustReachedHome ()
 
void _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
void TeleportCheaters ()
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
bool UpdateVictimWithGaze ()
 
void SetGazeOn (Unit *target)
 
CreatureDoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from BossAI
SummonList summons
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
TaskScheduler scheduler
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ boss_novosAI()

boss_novos::boss_novosAI::boss_novosAI ( Creature creature)
inline
87 : BossAI(creature, DATA_NOVOS)
88 {
89 }
Definition ScriptedCreature.h:467
@ DATA_NOVOS
Definition drak_tharon_keep.h:30

Member Function Documentation

◆ CheckEvadeIfOutOfCombatArea()

bool boss_novos::boss_novosAI::CheckEvadeIfOutOfCombatArea ( ) const
inlineoverridevirtual

Reimplemented from ScriptedAI.

253 {
254 return !SelectTargetFromPlayerList(80.0f);
255 }
Player * SelectTargetFromPlayerList(float maxdist, uint32 excludeAura=0, bool mustBeInLOS=false) const
Definition ScriptedCreature.cpp:571

References ScriptedAI::SelectTargetFromPlayerList().

◆ GetData()

uint32 boss_novos::boss_novosAI::GetData ( uint32  data) const
inlineoverridevirtual

Reimplemented from UnitAI.

109 {
110 if (data == me->GetEntry())
111 return uint32(_achievement);
112 return 0;
113 }
std::uint32_t uint32
Definition Define.h:107
uint32 GetEntry() const
Definition Object.h:115
Creature * me
Definition ScriptedCreature.h:280
bool _achievement
Definition boss_novos.cpp:263

References _achievement, Object::GetEntry(), and ScriptedAI::me.

◆ JustDied()

void boss_novos::boss_novosAI::JustDied ( Unit killer)
inlineoverridevirtual

Reimplemented from CreatureAI.

162 {
164 BossAI::JustDied(killer);
166 }
@ DONE
Definition InstanceScript.h:61
@ SAY_DEATH
Definition boss_novos.cpp:29
InstanceScript *const instance
Definition ScriptedCreature.h:474
void JustDied(Unit *) override
Definition ScriptedCreature.h:505
virtual bool SetBossState(uint32 id, EncounterState state)
Definition InstanceScript.cpp:385
@ DATA_NOVOS_CRYSTALS
Definition drak_tharon_keep.h:31
Talk
Definition hyjal.cpp:82

References DATA_NOVOS_CRYSTALS, DONE, BossAI::instance, BossAI::JustDied(), SAY_DEATH, and InstanceScript::SetBossState().

◆ JustEngagedWith()

void boss_novos::boss_novosAI::JustEngagedWith ( Unit )
inlineoverridevirtual

Called for reaction when initially engaged.

Reimplemented from CreatureAI.

124 {
127
128 events.ScheduleEvent(EVENT_SUMMON_FETID_TROLL, 3s);
129 events.ScheduleEvent(EVENT_SUMMON_SHADOWCASTER, 9s);
130 events.ScheduleEvent(EVENT_SUMMON_HULKING_CORPSE, 30s);
131 events.ScheduleEvent(EVENT_SUMMON_CRYSTAL_HANDLER, 20s);
132 events.ScheduleEvent(EVENT_CHECK_PHASE, 80s);
133
137
138 for (auto& itr : npcSummon)
139 {
140 uint32 summonEntry;
141 Position summonPos;
142 std::tie(summonEntry, summonPos) = itr.second;
143 if (Creature* creature = me->SummonCreature(summonEntry, summonPos))
144 switch (itr.first)
145 {
146 case ROOM_LEFT:
147 _summonTargetLeftGUID = creature->GetGUID();
148 break;
149 case ROOM_RIGHT:
150 _summonTargetRightGUID = creature->GetGUID();
151 break;
152 }
153 }
154
159 }
@ UNIT_FLAG_NON_ATTACKABLE
Definition UnitDefines.h:251
@ UNIT_FLAG_NOT_SELECTABLE
Definition UnitDefines.h:275
@ UNIT_FIELD_TARGET
Definition UpdateFields.h:92
@ ROOM_LEFT
Definition boss_novos.cpp:69
@ EVENT_SUMMON_FETID_TROLL
Definition boss_novos.cpp:59
@ ROOM_RIGHT
Definition boss_novos.cpp:68
@ EVENT_CHECK_PHASE
Definition boss_novos.cpp:65
@ EVENT_SUMMON_CRYSTAL_HANDLER
Definition boss_novos.cpp:62
@ EVENT_SUMMON_SHADOWCASTER
Definition boss_novos.cpp:60
@ EVENT_SUMMON_HULKING_CORPSE
Definition boss_novos.cpp:61
@ SAY_AGGRO
Definition boss_novos.cpp:27
std::unordered_map< uint32, std::tuple< uint32, Position > > const npcSummon
Definition boss_novos.cpp:73
@ SPELL_ARCANE_FIELD
Definition boss_novos.cpp:39
@ SPELL_DESPAWN_CRYSTAL_HANDLER
Definition boss_novos.cpp:44
@ SPELL_ARCANE_BLAST
Definition boss_novos.cpp:38
events
Definition boss_sartura.cpp:43
void JustEngagedWith(Unit *) override
Called for reaction when initially engaged.
Definition ScriptedCreature.h:503
Definition Creature.h:43
static ObjectGuid const Empty
Definition ObjectGuid.h:120
void SetGuidValue(uint16 index, ObjectGuid value)
Definition Object.cpp:723
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition Unit.cpp:1178
void RemoveAllAuras()
Definition Unit.cpp:5351
void SetUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition Unit.h:719
TempSummon * SummonCreature(uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const
Definition Object.cpp:2368
Definition Position.h:27
ObjectGuid _summonTargetLeftGUID
Definition boss_novos.cpp:261
ObjectGuid _summonTargetRightGUID
Definition boss_novos.cpp:260

References _summonTargetLeftGUID, _summonTargetRightGUID, Unit::CastSpell(), ObjectGuid::Empty, EVENT_CHECK_PHASE, EVENT_SUMMON_CRYSTAL_HANDLER, EVENT_SUMMON_FETID_TROLL, EVENT_SUMMON_HULKING_CORPSE, EVENT_SUMMON_SHADOWCASTER, BossAI::JustEngagedWith(), ScriptedAI::me, npcSummon, Unit::RemoveAllAuras(), ROOM_LEFT, ROOM_RIGHT, SAY_AGGRO, Object::SetGuidValue(), Unit::SetUnitFlag(), SPELL_ARCANE_BLAST, SPELL_ARCANE_FIELD, SPELL_DESPAWN_CRYSTAL_HANDLER, WorldObject::SummonCreature(), UNIT_FIELD_TARGET, UNIT_FLAG_NON_ATTACKABLE, and UNIT_FLAG_NOT_SELECTABLE.

◆ JustSummoned()

void boss_novos::boss_novosAI::JustSummoned ( Creature summon)
inlineoverridevirtual

Reimplemented from CreatureAI.

178 {
179 summons.Summon(summon);
182 else if (summon->GetEntry() != NPC_CRYSTAL_CHANNEL_TARGET)
183 summon->SetInCombatWithZone();
184 }
@ REACT_DEFENSIVE
Definition Unit.h:549
@ NPC_CRYSTAL_CHANNEL_TARGET
Definition boss_novos.cpp:55
@ NPC_CRYSTAL_HANDLER
Definition boss_novos.cpp:56
SummonList summons
Definition ScriptedCreature.h:517
void SetInCombatWithZone()
Set in combat all units in the dungeon/raid. Affect only units with IsAIEnabled.
Definition Creature.cpp:2828
void SetReactState(ReactStates state)
A creature can have 3 ReactStates : Agressive, Passive, Neutral.
Definition Creature.h:95
void Summon(Creature const *summon)
Definition ScriptedCreature.h:88
bool HasUnitFlag(UnitFlags flags) const
Definition Unit.h:718

References Object::GetEntry(), Unit::HasUnitFlag(), ScriptedAI::me, NPC_CRYSTAL_CHANNEL_TARGET, NPC_CRYSTAL_HANDLER, REACT_DEFENSIVE, Creature::SetInCombatWithZone(), Creature::SetReactState(), SummonList::Summon(), BossAI::summons, and UNIT_FLAG_NOT_SELECTABLE.

◆ KilledUnit()

void boss_novos::boss_novosAI::KilledUnit ( Unit )
inlineoverridevirtual

Reimplemented from CreatureAI.

169 {
170 if (events.GetNextEventTime(EVENT_KILL_TALK) == 0)
171 {
172 Talk(SAY_KILL);
173 events.ScheduleEvent(EVENT_KILL_TALK, 6s);
174 }
175 }
@ EVENT_KILL_TALK
Definition boss_novos.cpp:64
@ SAY_KILL
Definition boss_novos.cpp:28

References EVENT_KILL_TALK, and SAY_KILL.

◆ MoveInLineOfSight()

void boss_novos::boss_novosAI::MoveInLineOfSight ( Unit )
inlineoverridevirtual

Reimplemented from CreatureAI.

121{ }

◆ Reset()

void boss_novos::boss_novosAI::Reset ( )
inlineoverridevirtual

Reimplemented from UnitAI.

92 {
99 _stage = 0;
100
104
105 _achievement = true;
106 }
@ IN_PROGRESS
Definition InstanceScript.h:59
@ NOT_STARTED
Definition InstanceScript.h:58
@ UNIT_FLAG_DISABLE_MOVE
Definition UnitDefines.h:252
void Reset() override
Definition ScriptedCreature.h:502
void Clear()
Definition ObjectGuid.h:138
void RemoveUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition Unit.h:720
uint8 _stage
Definition boss_novos.cpp:259
uint8 _crystalCounter
Definition boss_novos.cpp:258

References _achievement, _crystalCounter, _stage, _summonTargetLeftGUID, _summonTargetRightGUID, ObjectGuid::Clear(), DATA_NOVOS_CRYSTALS, IN_PROGRESS, BossAI::instance, ScriptedAI::me, NOT_STARTED, Unit::RemoveUnitFlag(), BossAI::Reset(), InstanceScript::SetBossState(), Unit::SetUnitFlag(), UNIT_FLAG_DISABLE_MOVE, UNIT_FLAG_NON_ATTACKABLE, and UNIT_FLAG_NOT_SELECTABLE.

◆ SetData()

void boss_novos::boss_novosAI::SetData ( uint32  type,
uint32   
)
inlineoverridevirtual

Reimplemented from UnitAI.

116 {
117 if (type == me->GetEntry())
118 _achievement = false;
119 }

References _achievement, Object::GetEntry(), and ScriptedAI::me.

◆ UpdateAI()

void boss_novos::boss_novosAI::UpdateAI ( uint32  )
inlineoverridevirtual

Use to start attacking a target. Called just before JustEngagedWith()

Implements UnitAI.

187 {
188 if (!UpdateVictim())
189 return;
190
191 events.Update(diff);
192 switch (events.ExecuteEvent())
193 {
196 trigger->CastSpell(trigger, SPELL_SUMMON_FETID_TROLL_CORPSE, true, nullptr, nullptr, me->GetGUID());
197 events.ScheduleEvent(EVENT_SUMMON_FETID_TROLL, 3s);
198 break;
201 trigger->CastSpell(trigger, SPELL_SUMMON_HULKING_CORPSE, true, nullptr, nullptr, me->GetGUID());
202 events.ScheduleEvent(EVENT_SUMMON_HULKING_CORPSE, 30s);
203 break;
206 trigger->CastSpell(trigger, SPELL_SUMMON_RISEN_SHADOWCASTER, true, nullptr, nullptr, me->GetGUID());
207 events.ScheduleEvent(EVENT_SUMMON_SHADOWCASTER, 10s);
208 break;
210 if (_crystalCounter++ < 4)
211 {
215 target->CastSpell(target, SPELL_SUMMON_CRYSTAL_HANDLER, true, nullptr, nullptr, me->GetGUID());
216 _stage = _stage ? 0 : 1;
217 events.ScheduleEvent(EVENT_SUMMON_CRYSTAL_HANDLER, 20s);
218 }
219 break;
222 {
223 events.ScheduleEvent(EVENT_CHECK_PHASE, 2s);
224 break;
225 }
226 events.Reset();
227 events.ScheduleEvent(EVENT_CAST_OFFENSIVE_SPELL, 3s);
228 events.ScheduleEvent(EVENT_SPELL_SUMMON_MINIONS, 10s);
232 break;
235 if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 100, true))
237
238 events.ScheduleEvent(EVENT_CAST_OFFENSIVE_SPELL, 500ms);
239 break;
242 {
244 events.ScheduleEvent(EVENT_SPELL_SUMMON_MINIONS, 15s);
245 break;
246 }
247 events.ScheduleEvent(EVENT_SPELL_SUMMON_MINIONS, 500ms);
248 break;
249 }
250 }
static First const & RAND(First const &first, Second const &second, Rest const &... rest)
Definition CreatureAIImpl.h:25
@ UNIT_STATE_CASTING
Definition UnitDefines.h:185
@ EVENT_SPELL_SUMMON_MINIONS
Definition boss_novos.cpp:66
@ EVENT_CAST_OFFENSIVE_SPELL
Definition boss_novos.cpp:63
@ EMOTE_SUMMONING_ADDS
Definition boss_novos.cpp:32
@ SAY_SUMMONING_ADDS
Definition boss_novos.cpp:30
@ SPELL_FROSTBOLT
Definition boss_novos.cpp:49
@ SPELL_SUMMON_CRYSTAL_HANDLER
Definition boss_novos.cpp:43
@ SPELL_SUMMON_FETID_TROLL_CORPSE
Definition boss_novos.cpp:40
@ SPELL_BLIZZARD
Definition boss_novos.cpp:48
@ SPELL_BEAM_CHANNEL
Definition boss_novos.cpp:37
@ SPELL_TOUCH_OF_MISERY
Definition boss_novos.cpp:50
@ SPELL_SUMMON_RISEN_SHADOWCASTER
Definition boss_novos.cpp:42
@ SPELL_SUMMON_MINIONS
Definition boss_novos.cpp:46
@ SPELL_SUMMON_HULKING_CORPSE
Definition boss_novos.cpp:41
bool UpdateVictim()
Definition CreatureAI.cpp:280
static ObjectGuid GetGUID(Object const *o)
Definition Object.h:112
Creature * GetCreatureWithEntry(uint32 entry) const
Definition ScriptedCreature.cpp:132
virtual ObjectGuid GetGUID(int32=0) const
Definition UnitAI.h:216
Unit * SelectTarget(SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
Definition UnitAI.cpp:110
Definition Unit.h:636
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true, bool bySelf=false)
Definition Unit.cpp:4161
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition Unit.cpp:5753
bool HasUnitState(const uint32 f) const
Definition Unit.h:707
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition ObjectAccessor.cpp:210

References _crystalCounter, _stage, _summonTargetLeftGUID, _summonTargetRightGUID, Unit::CastSpell(), EMOTE_SUMMONING_ADDS, EVENT_CAST_OFFENSIVE_SPELL, EVENT_CHECK_PHASE, EVENT_SPELL_SUMMON_MINIONS, EVENT_SUMMON_CRYSTAL_HANDLER, EVENT_SUMMON_FETID_TROLL, EVENT_SUMMON_HULKING_CORPSE, EVENT_SUMMON_SHADOWCASTER, ObjectAccessor::GetCreature(), SummonList::GetCreatureWithEntry(), Object::GetGUID(), Unit::HasAura(), Unit::HasUnitState(), Unit::InterruptNonMeleeSpells(), ScriptedAI::me, NPC_CRYSTAL_CHANNEL_TARGET, RAND(), Random, Unit::RemoveUnitFlag(), SAY_SUMMONING_ADDS, UnitAI::SelectTarget(), SPELL_BEAM_CHANNEL, SPELL_BLIZZARD, SPELL_FROSTBOLT, SPELL_SUMMON_CRYSTAL_HANDLER, SPELL_SUMMON_FETID_TROLL_CORPSE, SPELL_SUMMON_HULKING_CORPSE, SPELL_SUMMON_MINIONS, SPELL_SUMMON_RISEN_SHADOWCASTER, SPELL_TOUCH_OF_MISERY, BossAI::summons, UNIT_FLAG_NON_ATTACKABLE, UNIT_FLAG_NOT_SELECTABLE, UNIT_STATE_CASTING, and CreatureAI::UpdateVictim().

Member Data Documentation

◆ _achievement

bool boss_novos::boss_novosAI::_achievement
private

Referenced by GetData(), Reset(), and SetData().

◆ _crystalCounter

uint8 boss_novos::boss_novosAI::_crystalCounter
private

Referenced by Reset(), and UpdateAI().

◆ _stage

uint8 boss_novos::boss_novosAI::_stage
private

Referenced by Reset(), and UpdateAI().

◆ _summonTargetLeftGUID

ObjectGuid boss_novos::boss_novosAI::_summonTargetLeftGUID
private

Referenced by JustEngagedWith(), Reset(), and UpdateAI().

◆ _summonTargetRightGUID

ObjectGuid boss_novos::boss_novosAI::_summonTargetRightGUID
private

Referenced by JustEngagedWith(), Reset(), and UpdateAI().


The documentation for this struct was generated from the following file: