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

Public Member Functions

 boss_novos (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 SummonedCreatureDies (Creature *summon, Unit *) override
 
void SummonMovementInform (Creature *summon, uint32 movementType, uint32 pathId) override
 Called when a summon reaches a waypoint or point movement finished.
 
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 OnSpellCastFinished (SpellInfo const *spell, SpellFinishReason reason) 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, bool allowedWhileCasting=true)
 Executes a function once the creature reaches the defined health point percent.
 
void ScheduleHealthCheckEvent (std::initializer_list< uint8 > healthPct, std::function< void()> exec, bool allowedWhileCasting=true)
 
void ProcessHealthCheck ()
 
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=0ms, uint32 uniqueId=0)
 
void ScheduleTimedEvent (Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0ms, 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=0ms)
 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 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 ()
 
int32 VisualizeBoundary (uint32 duration, Unit *owner=nullptr, bool fill=false, bool checkZ=false) const
 
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)
 
virtual void DistancingStarted ()
 
virtual void DistancingEnded ()
 
- 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 const &, 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 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_novos()

boss_novos::boss_novos ( Creature creature)
inline
76: BossAI(creature, DATA_NOVOS) { }
Definition ScriptedCreature.h:482
@ DATA_NOVOS
Definition drak_tharon_keep.h:30

Member Function Documentation

◆ CheckEvadeIfOutOfCombatArea()

bool boss_novos::CheckEvadeIfOutOfCombatArea ( ) const
inlineoverridevirtual

Reimplemented from ScriptedAI.

268 {
269 return !SelectTargetFromPlayerList(80.0f);
270 }
Player * SelectTargetFromPlayerList(float maxdist, uint32 excludeAura=0, bool mustBeInLOS=false) const
Definition ScriptedCreature.cpp:581

References ScriptedAI::SelectTargetFromPlayerList().

◆ GetData()

uint32 boss_novos::GetData ( uint32  data) const
inlineoverridevirtual

Reimplemented from UnitAI.

96 {
97 if (data == me->GetEntry())
98 return uint32(_achievement);
99 return 0;
100 }
std::uint32_t uint32
Definition Define.h:107
uint32 GetEntry() const
Definition Object.h:116
Creature * me
Definition ScriptedCreature.h:281
bool _achievement
Definition boss_novos.cpp:278

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

◆ JustDied()

void boss_novos::JustDied ( Unit killer)
inlineoverridevirtual

Reimplemented from CreatureAI.

201 {
203 BossAI::JustDied(killer);
205 }
@ DONE
Definition InstanceScript.h:61
@ SAY_DEATH
Definition boss_novos.cpp:29
InstanceScript *const instance
Definition ScriptedCreature.h:489
void JustDied(Unit *) override
Definition ScriptedCreature.h:522
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::JustEngagedWith ( Unit )
inlineoverridevirtual

Called for reaction when initially engaged.

Reimplemented from CreatureAI.

111 {
115
116 ScheduleTimedEvent(3s, [&] {
118 trigger->CastSpell(trigger, SPELL_SUMMON_FETID_TROLL_CORPSE, true, nullptr, nullptr, me->GetGUID());
119 }, 3s);
120
121 ScheduleTimedEvent(9s, [&] {
123 trigger->CastSpell(trigger, SPELL_SUMMON_RISEN_SHADOWCASTER, true, nullptr, nullptr, me->GetGUID());
124 }, 10s);
125
126 ScheduleTimedEvent(30s, [&] {
128 trigger->CastSpell(trigger, SPELL_SUMMON_HULKING_CORPSE, true, nullptr, nullptr, me->GetGUID());
129 }, 30s);
130
131 scheduler.Schedule(70s, [this](TaskContext context) {
133 {
134 context.Repeat(2s);
135 return;
136 }
137
139
142
143 scheduler.SetValidator([this] {
145 });
146
147 ScheduleTimedEvent(5s, 10s, [&] {
149 }, 12s, 25s);
150
151 ScheduleTimedEvent(5s, 10s, [&] {
153 }, 8s, 16s);
154
155 if (IsHeroic())
156 {
157 ScheduleTimedEvent(10s, [&] {
159 }, 37s, 55s);
160 }
161 });
162
163 for (Seconds timer : { 16s, 32s, 48s, 64s })
164 {
169 target->CastSpell(target, SPELL_SUMMON_CRYSTAL_HANDLER, true, nullptr, nullptr, me->GetGUID());
170 _stage = _stage ? 0 : 1;
171 }, timer);
172 }
173
177
181
182 for (auto& itr : npcSummon)
183 {
184 uint32 summonEntry;
185 Position summonPos;
186 std::tie(summonEntry, summonPos) = itr.second;
187 if (Creature* creature = me->SummonCreature(summonEntry, summonPos))
188 switch (itr.first)
189 {
190 case ROOM_LEFT:
191 _summonTargetLeftGUID = creature->GetGUID();
192 break;
193 case ROOM_RIGHT:
194 _summonTargetRightGUID = creature->GetGUID();
195 break;
196 }
197 }
198 }
std::chrono::seconds Seconds
Seconds shorthand typedef.
Definition Duration.h:30
@ UNIT_STATE_CASTING
Definition UnitDefines.h:185
@ UNIT_FLAG_NON_ATTACKABLE
Definition UnitDefines.h:255
@ UNIT_FLAG_NOT_SELECTABLE
Definition UnitDefines.h:279
@ UNIT_FIELD_TARGET
Definition UpdateFields.h:92
@ NPC_CRYSTAL_CHANNEL_TARGET
Definition boss_novos.cpp:55
@ ROOM_LEFT
Definition boss_novos.cpp:62
@ ROOM_RIGHT
Definition boss_novos.cpp:61
@ SAY_AGGRO
Definition boss_novos.cpp:27
@ EMOTE_SUMMONING_ADDS
Definition boss_novos.cpp:32
@ SAY_SUMMONING_ADDS
Definition boss_novos.cpp:30
std::unordered_map< uint32, std::tuple< uint32, Position > > const npcSummon
Definition boss_novos.cpp:66
@ SPELL_SUMMON_CRYSTAL_HANDLER
Definition boss_novos.cpp:43
@ SPELL_SUMMON_FETID_TROLL_CORPSE
Definition boss_novos.cpp:40
@ SPELL_ARCANE_FIELD
Definition boss_novos.cpp:39
@ SPELL_BLIZZARD
Definition boss_novos.cpp:48
@ SPELL_BEAM_CHANNEL
Definition boss_novos.cpp:37
@ SPELL_DESPAWN_CRYSTAL_HANDLER
Definition boss_novos.cpp:44
@ SPELL_SUMMON_RISEN_SHADOWCASTER
Definition boss_novos.cpp:42
@ SPELL_SUMMON_MINIONS
Definition boss_novos.cpp:46
@ SPELL_ARCANE_BLAST
Definition boss_novos.cpp:38
@ SPELL_WRATH_OF_MISERY
Definition boss_novos.cpp:50
@ SPELL_SUMMON_HULKING_CORPSE
Definition boss_novos.cpp:41
void JustEngagedWith(Unit *) override
Called for reaction when initially engaged.
Definition ScriptedCreature.h:520
SummonList summons
Definition ScriptedCreature.h:534
TaskScheduler scheduler
Definition CreatureAI.h:76
Definition Creature.h:47
void AddEventAtOffset(BasicEvent *event, Milliseconds offset, uint8 eventGroup=0)
Definition EventProcessor.h:108
static ObjectGuid const Empty
Definition ObjectGuid.h:120
void SetGuidValue(uint16 index, ObjectGuid value)
Definition Object.cpp:712
static ObjectGuid GetGUID(Object const *o)
Definition Object.h:113
Creature * GetCreatureWithEntry(uint32 entry) const
Definition ScriptedCreature.cpp:133
Definition TaskScheduler.h:421
TaskContext & Repeat(std::chrono::duration< _Rep, _Period > const &duration)
Definition TaskScheduler.h:493
TaskScheduler & CancelAll()
Definition TaskScheduler.cpp:45
TaskScheduler & Schedule(std::chrono::duration< _Rep, _Period > const &time, task_handler_t const &task)
Definition TaskScheduler.h:232
TaskScheduler & ClearValidator()
Clears the validator which is asked if tasks are allowed to be executed.
Definition TaskScheduler.cpp:21
TaskScheduler & SetValidator(P &&predicate)
Sets a validator which is asked if tasks are allowed to be executed.
Definition TaskScheduler.h:197
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.
Definition UnitAI.cpp:295
SpellCastResult DoCastAOE(uint32 spellId, bool triggered=false)
Definition UnitAI.cpp:284
SpellCastResult DoCastSelf(uint32 spellId, bool triggered=false)
Definition UnitAI.h:391
virtual ObjectGuid GetGUID(int32=0) const
Definition UnitAI.h:221
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true, bool bySelf=false)
Definition Unit.cpp:4180
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition Unit.cpp:5851
bool HasUnitState(const uint32 f) const
Definition Unit.h:726
void RemoveAllAuras()
Definition Unit.cpp:5449
void SetUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition Unit.h:738
void RemoveUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition Unit.h:739
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:2352
EventProcessor m_Events
Definition Object.h:730
Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition ObjectAccessor.cpp:210
Definition Position.h:27
bool IsHeroic() const
Definition ScriptedCreature.h:380
void ScheduleTimedEvent(Milliseconds timerMin, Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0ms, uint32 uniqueId=0)
Definition ScriptedCreature.cpp:339
ObjectGuid _summonTargetLeftGUID
Definition boss_novos.cpp:276
ObjectGuid _summonTargetRightGUID
Definition boss_novos.cpp:275
uint8 _stage
Definition boss_novos.cpp:274

References _stage, _summonTargetLeftGUID, _summonTargetRightGUID, EventProcessor::AddEventAtOffset(), TaskScheduler::CancelAll(), TaskScheduler::ClearValidator(), UnitAI::DoCastAOE(), UnitAI::DoCastRandomTarget(), UnitAI::DoCastSelf(), EMOTE_SUMMONING_ADDS, ObjectGuid::Empty, ObjectAccessor::GetCreature(), SummonList::GetCreatureWithEntry(), Object::GetGUID(), Unit::HasAura(), Unit::HasUnitState(), Unit::InterruptNonMeleeSpells(), ScriptedAI::IsHeroic(), BossAI::JustEngagedWith(), WorldObject::m_Events, ScriptedAI::me, NPC_CRYSTAL_CHANNEL_TARGET, npcSummon, Unit::RemoveAllAuras(), Unit::RemoveUnitFlag(), TaskContext::Repeat(), ROOM_LEFT, ROOM_RIGHT, SAY_AGGRO, SAY_SUMMONING_ADDS, TaskScheduler::Schedule(), CreatureAI::scheduler, ScriptedAI::ScheduleTimedEvent(), Object::SetGuidValue(), Unit::SetUnitFlag(), TaskScheduler::SetValidator(), SPELL_ARCANE_BLAST, SPELL_ARCANE_FIELD, SPELL_BEAM_CHANNEL, SPELL_BLIZZARD, SPELL_DESPAWN_CRYSTAL_HANDLER, SPELL_SUMMON_CRYSTAL_HANDLER, SPELL_SUMMON_FETID_TROLL_CORPSE, SPELL_SUMMON_HULKING_CORPSE, SPELL_SUMMON_MINIONS, SPELL_SUMMON_RISEN_SHADOWCASTER, SPELL_WRATH_OF_MISERY, WorldObject::SummonCreature(), BossAI::summons, UNIT_FIELD_TARGET, UNIT_FLAG_NON_ATTACKABLE, UNIT_FLAG_NOT_SELECTABLE, and UNIT_STATE_CASTING.

◆ JustSummoned()

void boss_novos::JustSummoned ( Creature summon)
inlineoverridevirtual

Reimplemented from CreatureAI.

217 {
218 summons.Summon(summon);
219
220 // Phase 1
222 {
223 if (summon->GetEntry() != NPC_CRYSTAL_CHANNEL_TARGET && summon->GetEntry() != NPC_CRYSTAL_HANDLER)
225
226 if (summon->GetEntry() == NPC_FETID_TROLL_CORPSE)
227 summon->GetMotionMaster()->MovePoint(1, -373.56f, -770.86f, 28.59f);
228
229 if (summon->EntryEquals(NPC_CRYSTAL_HANDLER))
230 summon->SetInCombatWithZone();
231 }
232 // Phase 2
233 else if (summon->GetEntry() != NPC_CRYSTAL_CHANNEL_TARGET)
234 summon->SetInCombatWithZone();
235 }
@ REACT_DEFENSIVE
Definition Unit.h:556
@ NPC_CRYSTAL_HANDLER
Definition boss_novos.cpp:56
void SetInCombatWithZone()
Set in combat all units in the dungeon/raid. Affect only units with IsAIEnabled.
Definition Creature.cpp:2777
void SetReactState(ReactStates state)
A creature can have 3 ReactStates : Agressive, Passive, Neutral.
Definition Creature.h:99
void MovePoint(uint32 id, const Position &pos, ForcedMovement forcedMovement=FORCED_MOVEMENT_NONE, float speed=0.f, bool generatePath=true, bool forceDestination=true, std::optional< AnimTier > animTier=std::nullopt)
Definition MotionMaster.h:238
bool EntryEquals(T... entries) const
Definition Object.h:233
void Summon(Creature const *summon)
Definition ScriptedCreature.h:88
MotionMaster * GetMotionMaster()
Definition Unit.h:1738
bool HasUnitFlag(UnitFlags flags) const
Definition Unit.h:737
@ NPC_FETID_TROLL_CORPSE
Definition drak_tharon_keep.h:42

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

◆ KilledUnit()

void boss_novos::KilledUnit ( Unit )
inlineoverridevirtual

Reimplemented from CreatureAI.

208 {
209 if (!events.HasTimeUntilEvent(EVENT_KILL_TALK))
210 {
211 Talk(SAY_KILL);
212 events.ScheduleEvent(EVENT_KILL_TALK, 6s);
213 }
214 }
@ EVENT_KILL_TALK
Definition boss_novos.cpp:59
@ SAY_KILL
Definition boss_novos.cpp:28
events
Definition boss_sartura.cpp:43

References EVENT_KILL_TALK, and SAY_KILL.

◆ MoveInLineOfSight()

void boss_novos::MoveInLineOfSight ( Unit )
inlineoverridevirtual

Reimplemented from CreatureAI.

108{ }

◆ Reset()

void boss_novos::Reset ( )
inlineoverridevirtual

◆ SetData()

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

Reimplemented from UnitAI.

103 {
104 if (type == me->GetEntry())
105 _achievement = false;
106 }

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

◆ SummonedCreatureDies()

void boss_novos::SummonedCreatureDies ( Creature summon,
Unit  
)
inlineoverridevirtual

Reimplemented from CreatureAI.

238 {
239 if (summon->GetEntry() == NPC_FETID_TROLL_CORPSE)
240 summon->DespawnOrUnsummon(10s);
241 }
void DespawnOrUnsummon(Milliseconds msTimeToDespawn=0ms, Seconds forcedRespawnTimer=0s)
Definition Creature.cpp:2130

References Creature::DespawnOrUnsummon(), Object::GetEntry(), and NPC_FETID_TROLL_CORPSE.

◆ SummonMovementInform()

void boss_novos::SummonMovementInform ( Creature ,
uint32  ,
uint32   
)
inlineoverridevirtual

Called when a summon reaches a waypoint or point movement finished.

Reimplemented from UnitAI.

244 {
245 if (movementType == POINT_MOTION_TYPE && pathId == 1)
246 {
247 if (summon->GetEntry() == NPC_FETID_TROLL_CORPSE)
248 {
249 DoZoneInCombat(summon);
250 _achievement = false;
251 }
252 }
253 }
@ POINT_MOTION_TYPE
Definition MotionMaster.h:48
void DoZoneInCombat(Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
Definition CreatureAI.cpp:103

References _achievement, CreatureAI::DoZoneInCombat(), Object::GetEntry(), NPC_FETID_TROLL_CORPSE, and POINT_MOTION_TYPE.

◆ UpdateAI()

void boss_novos::UpdateAI ( uint32  )
inlineoverridevirtual

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

Implements UnitAI.

256 {
257 if (!UpdateVictim())
258 return;
259
260 scheduler.Update(diff);
261 events.Update(diff);
262
265 }
@ SPELL_FROSTBOLT
Definition boss_novos.cpp:49
bool UpdateVictim()
Definition CreatureAI.cpp:277
TaskScheduler & Update(success_t const &callback=EmptyCallback)
Definition TaskScheduler.cpp:27
bool DoSpellAttackIfReady(uint32 spell)
Definition UnitAI.cpp:74

References UnitAI::DoSpellAttackIfReady(), Unit::HasUnitFlag(), ScriptedAI::me, CreatureAI::scheduler, SPELL_FROSTBOLT, UNIT_FLAG_NOT_SELECTABLE, TaskScheduler::Update(), and CreatureAI::UpdateVictim().

Member Data Documentation

◆ _achievement

bool boss_novos::_achievement
private

◆ _crystalCounter

uint8 boss_novos::_crystalCounter
private

Referenced by Reset().

◆ _stage

uint8 boss_novos::_stage
private

Referenced by JustEngagedWith(), and Reset().

◆ _summonTargetLeftGUID

ObjectGuid boss_novos::_summonTargetLeftGUID
private

Referenced by JustEngagedWith(), and Reset().

◆ _summonTargetRightGUID

ObjectGuid boss_novos::_summonTargetRightGUID
private

Referenced by JustEngagedWith(), and Reset().


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