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

Public Member Functions

 boss_sindragosaAI (Creature *creature)
 
void Reset () override
 
void MoveInLineOfSight (Unit *who) override
 
void JustDied (Unit *) override
 
void JustEngagedWith (Unit *who) override
 Called for reaction when initially engaged. More...
 
bool CanAIAttack (Unit const *target) const override
 
void EnterEvadeMode (EvadeReason why) override
 
void KilledUnit (Unit *victim) override
 
void DoAction (int32 action) override
 
uint32 GetData (uint32 type) const override
 
void MovementInform (uint32 type, uint32 point) override
 
void DamageTaken (Unit *, uint32 &damage, DamageEffectType, SpellSchoolMask) override
 Called at any Damage from any attacker (before damage apply) More...
 
void JustSummoned (Creature *summon) override
 
void SummonedCreatureDespawn (Creature *summon) override
 
void SpellHitTarget (Unit *target, SpellInfo const *spell) override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
- 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) More...
 
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() More...
 
void ScheduleHealthCheckEvent (uint32 healthPct, std::function< void()> exec)
 Executes a function once the creature reaches the defined health point percent. More...
 
void ScheduleHealthCheckEvent (std::initializer_list< uint8 > healthPct, std::function< void()> exec)
 
virtual void ExecuteEvent (uint32)
 
virtual void ScheduleTasks ()
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged. More...
 
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) More...
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
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. More...
 
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)
 
virtual bool CheckEvadeIfOutOfCombatArea () const
 
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
 
- 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. More...
 
void Talk (uint8 id, Milliseconds delay)
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At ================================= More...
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
virtual void JustEngagedWith (Unit *)
 Called for reaction when initially engaged. More...
 
virtual void JustDied (Unit *)
 
virtual void KilledUnit (Unit *)
 
virtual void JustSummoned (Creature *)
 
virtual void IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDespawn (Creature *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureDespawnAll ()
 
virtual void SummonedCreatureEvade (Creature *)
 
virtual void SpellHit (Unit *, SpellInfo const *)
 
virtual void SpellHitTarget (Unit *, SpellInfo const *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void MovementInform (uint32, uint32)
 
virtual void PathEndReached (uint32)
 
void OnCharmed (bool apply) override
 Called when unit is charmed. More...
 
virtual void JustReachedHome ()
 
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 ================== More...
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields ======================================= More...
 
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 AttackStart (Unit *)
 
virtual void UpdateAI (uint32)=0
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void OnCharmed (bool apply)=0
 Called when unit is charmed. More...
 
virtual void DoAction (int32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
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: More...
 
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. More...
 
virtual void JustExitedCombat ()
 Called when the unit leaves combat. More...
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 Called at any Damage to any victim (before damage apply) More...
 
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage from any attacker (before damage apply) More...
 
virtual void HealReceived (Unit *, uint32 &)
 Called when the creature receives heal. More...
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 Called when the creature power updates. More...
 
virtual void HealDone (Unit *, uint32 &)
 Called when the unit heals. More...
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 Called during damage calculations. More...
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 Called during calculation when receiving periodic healing or damage (DoT or HoT) More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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 _bombCount
 
uint8 _mysticBuffetStack
 
bool _isBelow20Pct
 
bool _isThirdPhase
 
bool _isInAirPhase
 
bool _isLanding
 

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)
 
virtual void MoveInLineOfSight (Unit *)
 
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_sindragosaAI()

boss_sindragosa::boss_sindragosaAI::boss_sindragosaAI ( Creature creature)
inline
278 : BossAI(creature, DATA_SINDRAGOSA)
279 {
281 }
@ DATA_SINDRAGOSA
Definition: icecrown_citadel.h:102
@ IMMUNITY_STATE
Definition: SharedDefines.h:1395
@ SPELL_AURA_HASTE_SPELLS
Definition: SpellAuraDefines.h:279
Creature * me
Definition: ScriptedCreature.h:280
Definition: ScriptedCreature.h:457
void ApplySpellImmune(uint32 spellId, uint32 op, uint32 type, bool apply, SpellImmuneBlockType blockType=SPELL_BLOCK_TYPE_ALL)
Definition: Unit.cpp:13372

References Unit::ApplySpellImmune(), IMMUNITY_STATE, ScriptedAI::me, and SPELL_AURA_HASTE_SPELLS.

Member Function Documentation

◆ CanAIAttack()

bool boss_sindragosa::boss_sindragosaAI::CanAIAttack ( Unit const *  target) const
inlineoverridevirtual

Reimplemented from UnitAI.

352 {
353 return me->IsVisible() && target->GetEntry() != NPC_CROK_SCOURGEBANE;
354 }
@ NPC_CROK_SCOURGEBANE
Definition: icecrown_citadel.h:295
bool IsVisible() const
Definition: Unit.h:1495

References Object::GetEntry(), Unit::IsVisible(), ScriptedAI::me, and NPC_CROK_SCOURGEBANE.

◆ DamageTaken()

void boss_sindragosa::boss_sindragosaAI::DamageTaken ( Unit ,
uint32 ,
DamageEffectType  ,
SpellSchoolMask   
)
inlineoverridevirtual

Called at any Damage from any attacker (before damage apply)

Note
It use for recalculation damage or special reaction at damage for attack reaction use AttackedBy called for non DOT damage in Unit::DealDamage also

Reimplemented from BossAI.

451 {
452 if (!damage || me->IsInEvadeMode())
453 return;
454
455 if (!_isThirdPhase)
456 {
457 if (!HealthAbovePct(35))
458 {
459 _isThirdPhase = true;
460 events.CancelEvent(EVENT_AIR_PHASE);
461 events.ScheduleEvent(EVENT_THIRD_PHASE_CHECK, 1s);
462 }
463 }
464 else if (!_isBelow20Pct)
465 {
466 if (!HealthAbovePct(20))
467 {
468 _isBelow20Pct = true;
471 }
472 }
473 }
Talk
Definition: hyjal.cpp:82
events
Definition: boss_sartura.cpp:43
@ DATA_WEEKLY_QUEST_ID
Definition: icecrown_citadel.h:142
@ QUEST_RESPITE_FOR_A_TORMENTED_SOUL_10
Definition: icecrown_citadel.h:556
@ EMOTE_WEAKENING
Definition: boss_sindragosa.cpp:44
@ EVENT_AIR_PHASE
Definition: boss_sindragosa.cpp:116
@ EVENT_THIRD_PHASE_CHECK
Definition: boss_sindragosa.cpp:122
bool HealthAbovePct(uint32 pct) const
Definition: ScriptedCreature.h:365
InstanceScript *const instance
Definition: ScriptedCreature.h:464
bool IsInEvadeMode() const
Definition: Creature.h:137
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:52
bool _isThirdPhase
Definition: boss_sindragosa.cpp:672
bool _isBelow20Pct
Definition: boss_sindragosa.cpp:671

References _isBelow20Pct, _isThirdPhase, DATA_WEEKLY_QUEST_ID, EMOTE_WEAKENING, EVENT_AIR_PHASE, EVENT_THIRD_PHASE_CHECK, ZoneScript::GetData(), ScriptedAI::HealthAbovePct(), BossAI::instance, Creature::IsInEvadeMode(), ScriptedAI::me, and QUEST_RESPITE_FOR_A_TORMENTED_SOUL_10.

◆ DoAction()

void boss_sindragosa::boss_sindragosaAI::DoAction ( int32  action)
inlineoverridevirtual

Reimplemented from UnitAI.

369 {
370 if (action == ACTION_START_FROSTWYRM && !_isLanding)
371 {
372 _isLanding = true;
373
374 if (TempSummon* summon = me->ToTempSummon())
375 summon->SetTempSummonType(TEMPSUMMON_DEAD_DESPAWN);
376
377 if (me->isDead())
378 return;
379
380 me->setActive(true);
381 me->SetDisableGravity(true);
383 me->SetSpeed(MOVE_RUN, 4.28571f);
384 float moveTime = me->GetExactDist(&SindragosaFlyInPos) / (me->GetSpeed(MOVE_RUN) * 0.001f);
387
389 {
391 }
392 }
393 }
std::uint64_t uint64
Definition: Define.h:106
@ ACTION_START_FROSTWYRM
Definition: icecrown_citadel.h:539
@ DATA_SINDRAGOSA_INTRO
Definition: icecrown_citadel.h:147
Position const SindragosaFlyInPos
Definition: boss_sindragosa.cpp:169
@ SPELL_SINDRAGOSA_S_FURY
Definition: boss_sindragosa.cpp:50
@ POINT_FROSTWYRM_FLY_IN
Definition: boss_sindragosa.cpp:155
Position const SindragosaLandPos
Definition: boss_sindragosa.cpp:170
@ TEMPSUMMON_DEAD_DESPAWN
Definition: Object.h:51
@ MOVE_RUN
Definition: UnitDefines.h:329
@ UNIT_FLAG_NON_ATTACKABLE
Definition: UnitDefines.h:230
void AddEvent(BasicEvent *Event, uint64 e_time, bool set_addtime=true)
Definition: EventProcessor.h:103
uint64 CalculateTime(uint64 t_offset) const
Definition: EventProcessor.cpp:159
SpellCastResult DoCastAOE(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:248
bool SetDisableGravity(bool disable, bool packetOnly=false, bool updateAnimationTier=true) override
Enable or disable the creature's fly mode by adding or removing: MOVEMENTFLAG_FLYING....
Definition: Creature.cpp:3204
Definition: TemporarySummon.h:40
void setActive(bool isActiveObject)
Definition: Object.cpp:1085
float GetExactDist(float x, float y, float z) const
Definition: Position.h:178
float GetSpeed(UnitMoveType mtype) const
Definition: Unit.cpp:14407
MotionMaster * GetMotionMaster()
Definition: Unit.h:1615
TempSummon * ToTempSummon()
Definition: Unit.h:1730
EventProcessor m_Events
Definition: Unit.h:1809
void SetSpeed(UnitMoveType mtype, float rate, bool forced=false)
Definition: Unit.cpp:14412
void SetUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition: Unit.h:683
bool isDead() const
Definition: Unit.h:1218
void MovePoint(uint32 id, const Position &pos, bool generatePath=true, bool forceDestination=true)
Definition: MotionMaster.h:211
Definition: boss_sindragosa.cpp:175
bool _isLanding
Definition: boss_sindragosa.cpp:674

References _isLanding, ACTION_START_FROSTWYRM, EventProcessor::AddEvent(), EventProcessor::CalculateTime(), DATA_SINDRAGOSA_INTRO, UnitAI::DoCastAOE(), ZoneScript::GetData(), Position::GetExactDist(), Unit::GetMotionMaster(), Unit::GetSpeed(), BossAI::instance, Unit::isDead(), Unit::m_Events, ScriptedAI::me, MOVE_RUN, MotionMaster::MovePoint(), POINT_FROSTWYRM_FLY_IN, WorldObject::setActive(), Creature::SetDisableGravity(), Unit::SetSpeed(), Unit::SetUnitFlag(), SindragosaFlyInPos, SindragosaLandPos, SPELL_SINDRAGOSA_S_FURY, TEMPSUMMON_DEAD_DESPAWN, Unit::ToTempSummon(), and UNIT_FLAG_NON_ATTACKABLE.

◆ EnterEvadeMode()

void boss_sindragosa::boss_sindragosaAI::EnterEvadeMode ( EvadeReason  why)
inlineoverridevirtual

Reimplemented from BossAI.

357 {
360 }
@ FAIL
Definition: InstanceScript.h:59
void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER) override
Definition: ScriptedCreature.h:488
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:351

References DATA_SINDRAGOSA, BossAI::EnterEvadeMode(), FAIL, BossAI::instance, and InstanceScript::SetBossState().

Referenced by JustEngagedWith().

◆ GetData()

uint32 boss_sindragosa::boss_sindragosaAI::GetData ( uint32  type) const
inlineoverridevirtual

Reimplemented from UnitAI.

396 {
397 if (type == DATA_MYSTIC_BUFFET_STACK)
398 return _mysticBuffetStack;
399 return 0xFFFFFFFF;
400 }
@ DATA_MYSTIC_BUFFET_STACK
Definition: boss_sindragosa.cpp:146
uint8 _mysticBuffetStack
Definition: boss_sindragosa.cpp:670

References _mysticBuffetStack, and DATA_MYSTIC_BUFFET_STACK.

◆ JustDied()

void boss_sindragosa::boss_sindragosaAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

303 {
304 _JustDied();
306
309
316 }
@ SPELL_SHADOWS_FATE
Definition: icecrown_citadel.h:68
@ SPELL_ICE_TOMB_DAMAGE
Definition: boss_sindragosa.cpp:69
@ SPELL_ICE_TOMB_TARGET
Definition: boss_sindragosa.cpp:66
@ SPELL_ICE_TOMB_UNTARGETABLE
Definition: boss_sindragosa.cpp:68
@ SPELL_ASPHYXIATION
Definition: boss_sindragosa.cpp:70
@ SPELL_FROST_BEACON
Definition: boss_sindragosa.cpp:65
@ SPELL_ICE_TOMB_DUMMY
Definition: boss_sindragosa.cpp:67
@ SAY_DEATH
Definition: boss_sindragosa.cpp:42
@ SPELL_FROST_INFUSION_CREDIT
Definition: boss_sindragosa.cpp:97
bool Is25ManRaid() const
Definition: ScriptedCreature.h:385
void _JustDied()
Definition: ScriptedCreature.cpp:631
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5695
void DoRemoveAurasDueToSpellOnPlayers(uint32 spell)
Definition: InstanceScript.cpp:639

References BossAI::_JustDied(), UnitAI::DoCastAOE(), InstanceScript::DoRemoveAurasDueToSpellOnPlayers(), Unit::HasAura(), BossAI::instance, ScriptedAI::Is25ManRaid(), ScriptedAI::me, SAY_DEATH, SPELL_ASPHYXIATION, SPELL_FROST_BEACON, SPELL_FROST_INFUSION_CREDIT, SPELL_ICE_TOMB_DAMAGE, SPELL_ICE_TOMB_DUMMY, SPELL_ICE_TOMB_TARGET, SPELL_ICE_TOMB_UNTARGETABLE, and SPELL_SHADOWS_FATE.

◆ JustEngagedWith()

void boss_sindragosa::boss_sindragosaAI::JustEngagedWith ( Unit )
inlineoverridevirtual

Called for reaction when initially engaged.

Reimplemented from BossAI.

319 {
320 if (!instance->CheckRequiredBosses(DATA_SINDRAGOSA, who->ToPlayer()) || !me->IsVisible())
321 {
324 return;
325 }
326
327 _isBelow20Pct = false;
328 _isThirdPhase = false;
329 _bombCount = 0;
331
333 events.Reset();
334 events.ScheduleEvent(EVENT_BERSERK, 10min);
335 events.ScheduleEvent(EVENT_AIR_PHASE, 50s);
336 events.ScheduleEvent(EVENT_CLEAVE, 10s, EVENT_GROUP_LAND_PHASE);
338 events.ScheduleEvent(EVENT_FROST_BREATH, 8s, 12s, EVENT_GROUP_LAND_PHASE);
339 events.ScheduleEvent(EVENT_UNCHAINED_MAGIC, 9s, 14s, EVENT_GROUP_LAND_PHASE);
340 events.ScheduleEvent(EVENT_ICY_GRIP, 33s + 500ms, EVENT_GROUP_LAND_PHASE);
341
342 me->setActive(true);
345
349 }
@ LIGHT_S_HAMMER_TELEPORT
Definition: icecrown_citadel.h:79
@ SPELL_PERMAEATING_CHILL
Definition: boss_sindragosa.cpp:54
@ SPELL_FROST_AURA
Definition: boss_sindragosa.cpp:53
@ SAY_AGGRO
Definition: boss_sindragosa.cpp:31
@ EVENT_TAIL_SMASH
Definition: boss_sindragosa.cpp:109
@ EVENT_FROST_BREATH
Definition: boss_sindragosa.cpp:110
@ EVENT_GROUP_LAND_PHASE
Definition: boss_sindragosa.cpp:141
@ EVENT_UNCHAINED_MAGIC
Definition: boss_sindragosa.cpp:112
@ EVENT_BERSERK
Definition: boss_sindragosa.cpp:107
@ EVENT_ICY_GRIP
Definition: boss_sindragosa.cpp:113
@ EVENT_CLEAVE
Definition: boss_sindragosa.cpp:108
@ IN_PROGRESS
Definition: InstanceScript.h:58
@ EVADE_REASON_OTHER
Definition: CreatureAI.h:93
void DespawnAll(uint32 delay=0)
Definition: ScriptedCreature.cpp:71
SummonList summons
Definition: ScriptedCreature.h:501
void SetInCombatWithZone()
Set in combat all units in the dungeon/raid. Affect only units with IsAIEnabled.
Definition: Creature.cpp:2810
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:1167
void DoCastSpellOnPlayers(uint32 spell)
Definition: InstanceScript.cpp:650
virtual bool CheckRequiredBosses(uint32, Player const *=nullptr) const
Definition: InstanceScript.h:248
uint8 _bombCount
Definition: boss_sindragosa.cpp:669
void EnterEvadeMode(EvadeReason why) override
Definition: boss_sindragosa.cpp:356

References _bombCount, _isBelow20Pct, _isThirdPhase, _mysticBuffetStack, Unit::CastSpell(), InstanceScript::CheckRequiredBosses(), DATA_SINDRAGOSA, SummonList::DespawnAll(), InstanceScript::DoCastSpellOnPlayers(), EnterEvadeMode(), CreatureAI::EVADE_REASON_OTHER, EVENT_AIR_PHASE, EVENT_BERSERK, EVENT_CLEAVE, EVENT_FROST_BREATH, EVENT_GROUP_LAND_PHASE, EVENT_ICY_GRIP, EVENT_TAIL_SMASH, EVENT_UNCHAINED_MAGIC, IN_PROGRESS, BossAI::instance, Unit::IsVisible(), LIGHT_S_HAMMER_TELEPORT, ScriptedAI::me, SAY_AGGRO, WorldObject::setActive(), InstanceScript::SetBossState(), Creature::SetInCombatWithZone(), SPELL_FROST_AURA, SPELL_PERMAEATING_CHILL, BossAI::summons, and Object::ToPlayer().

◆ JustSummoned()

void boss_sindragosa::boss_sindragosaAI::JustSummoned ( Creature summon)
inlineoverridevirtual

Reimplemented from BossAI.

476 {
477 summons.Summon(summon);
478 if (summon->GetEntry() == NPC_FROST_BOMB)
479 summon->m_Events.AddEvent(new FrostBombExplosion(summon, me->GetGUID()), summon->m_Events.CalculateTime(5500));
480 }
@ NPC_FROST_BOMB
Definition: icecrown_citadel.h:336
void Summon(Creature const *summon)
Definition: ScriptedCreature.h:88
uint32 GetEntry() const
Definition: Object.h:112
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
Definition: boss_sindragosa.cpp:191

References EventProcessor::AddEvent(), EventProcessor::CalculateTime(), Object::GetEntry(), Object::GetGUID(), Unit::m_Events, ScriptedAI::me, NPC_FROST_BOMB, SummonList::Summon(), and BossAI::summons.

◆ KilledUnit()

void boss_sindragosa::boss_sindragosaAI::KilledUnit ( Unit victim)
inlineoverridevirtual

Reimplemented from ScriptedAI.

363 {
364 if (victim->IsPlayer())
365 Talk(SAY_KILL);
366 }
@ SAY_KILL
Definition: boss_sindragosa.cpp:39
bool IsPlayer() const
Definition: Object.h:197

References Object::IsPlayer(), and SAY_KILL.

◆ MoveInLineOfSight()

void boss_sindragosa::boss_sindragosaAI::MoveInLineOfSight ( Unit who)
inlineoverridevirtual

Reimplemented from CreatureAI.

297 {
300 }
@ MOVEMENTFLAG_CAN_FLY
Definition: UnitDefines.h:368
virtual void MoveInLineOfSight(Unit *)
Definition: CreatureAI.cpp:158
bool HasUnitMovementFlag(uint32 f) const
Definition: Unit.h:1627

References Unit::HasUnitMovementFlag(), ScriptedAI::me, CreatureAI::MoveInLineOfSight(), and MOVEMENTFLAG_CAN_FLY.

◆ MovementInform()

void boss_sindragosa::boss_sindragosaAI::MovementInform ( uint32  type,
uint32  point 
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

403 {
404 if (type != POINT_MOTION_TYPE && type != EFFECT_MOTION_TYPE)
405 return;
406
407 switch (point)
408 {
410 me->setActive(false);
411 me->SetDisableGravity(false);
415
416 // Sindragosa enters combat as soon as she lands
418 break;
419 case POINT_TAKEOFF:
420 events.ScheduleEvent(EVENT_AIR_MOVEMENT, 0ms);
421 break;
422 case POINT_AIR_PHASE:
423 me->CastCustomSpell(SPELL_ICE_TOMB_TARGET, SPELLVALUE_MAX_TARGETS, RAID_MODE<int32>(2, 5, 2, 6), nullptr);
424 me->SetFacingTo(float(M_PI));
425 events.ScheduleEvent(EVENT_AIR_MOVEMENT_FAR, 0ms); // won't be processed during cast time anyway, so 0
426 events.ScheduleEvent(EVENT_FROST_BOMB, 7s);
427 _bombCount = 0;
428 break;
430 me->SetFacingTo(float(M_PI));
431 break;
432 case POINT_LAND:
433 events.ScheduleEvent(EVENT_LAND_GROUND, 0ms);
434 break;
436 {
437 _isInAirPhase = false;
438 me->SetDisableGravity(false);
441 if (Unit* target = me->SelectVictim())
442 AttackStart(target);
443 break;
444 }
445 default:
446 break;
447 }
448 }
@ POINT_FROSTWYRM_LAND
Definition: boss_sindragosa.cpp:156
@ POINT_TAKEOFF
Definition: boss_sindragosa.cpp:158
@ POINT_AIR_PHASE
Definition: boss_sindragosa.cpp:157
@ POINT_LAND
Definition: boss_sindragosa.cpp:159
@ POINT_LAND_GROUND
Definition: boss_sindragosa.cpp:161
@ POINT_AIR_PHASE_FAR
Definition: boss_sindragosa.cpp:160
@ EVENT_AIR_MOVEMENT
Definition: boss_sindragosa.cpp:117
@ EVENT_AIR_MOVEMENT_FAR
Definition: boss_sindragosa.cpp:118
@ EVENT_LAND_GROUND
Definition: boss_sindragosa.cpp:120
@ EVENT_FROST_BOMB
Definition: boss_sindragosa.cpp:121
@ SPELLVALUE_MAX_TARGETS
Definition: SpellDefines.h:117
@ REACT_AGGRESSIVE
Definition: Unit.h:550
@ POINT_MOTION_TYPE
Definition: MotionMaster.h:46
@ EFFECT_MOTION_TYPE
Definition: MotionMaster.h:54
void AttackStart(Unit *) override
Definition: ScriptedCreature.cpp:208
void SetHomePosition(float x, float y, float z, float o)
Definition: Creature.h:339
CreatureTemplate const * GetCreatureTemplate() const
Definition: Creature.h:208
Unit * SelectVictim()
Definition: Unit.cpp:14716
void SetReactState(ReactStates state)
A creature can have 3 ReactStates : Agressive, Passive, Neutral.
Definition: Creature.h:97
float speed_run
Definition: CreatureData.h:202
Definition: Unit.h:630
void SetFacingTo(float ori)
Definition: Unit.cpp:20511
SpellCastResult CastCustomSpell(Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1224
void RemoveUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition: Unit.h:684
bool _isInAirPhase
Definition: boss_sindragosa.cpp:673

References _bombCount, _isInAirPhase, ScriptedAI::AttackStart(), Unit::CastCustomSpell(), EFFECT_MOTION_TYPE, EVENT_AIR_MOVEMENT, EVENT_AIR_MOVEMENT_FAR, EVENT_FROST_BOMB, EVENT_LAND_GROUND, Creature::GetCreatureTemplate(), ScriptedAI::me, MOVE_RUN, POINT_AIR_PHASE, POINT_AIR_PHASE_FAR, POINT_FROSTWYRM_LAND, POINT_LAND, POINT_LAND_GROUND, POINT_MOTION_TYPE, POINT_TAKEOFF, REACT_AGGRESSIVE, Unit::RemoveUnitFlag(), Creature::SelectVictim(), WorldObject::setActive(), Creature::SetDisableGravity(), Unit::SetFacingTo(), Creature::SetHomePosition(), Creature::SetInCombatWithZone(), Creature::SetReactState(), Unit::SetSpeed(), SindragosaLandPos, CreatureTemplate::speed_run, SPELL_ICE_TOMB_TARGET, SPELLVALUE_MAX_TARGETS, and UNIT_FLAG_NON_ATTACKABLE.

◆ Reset()

void boss_sindragosa::boss_sindragosaAI::Reset ( )
inlineoverridevirtual

◆ SpellHitTarget()

void boss_sindragosa::boss_sindragosaAI::SpellHitTarget ( Unit target,
SpellInfo const *  spell 
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

490 {
491 if (target->IsPlayer())
492 if (uint32 spellId = sSpellMgr->GetSpellIdForDifficulty(70127, me))
493 if (spellId == spell->Id)
494 if (Aura const* mysticBuffet = target->GetAura(spell->Id))
495 _mysticBuffetStack = std::max<uint8>(_mysticBuffetStack, mysticBuffet->GetStackAmount());
496 }
std::uint32_t uint32
Definition: Define.h:107
#define sSpellMgr
Definition: SpellMgr.h:825
Aura * GetAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5578
Definition: SpellAuras.h:87

References _mysticBuffetStack, Unit::GetAura(), SpellInfo::Id, Object::IsPlayer(), ScriptedAI::me, and sSpellMgr.

◆ SummonedCreatureDespawn()

void boss_sindragosa::boss_sindragosaAI::SummonedCreatureDespawn ( Creature summon)
inlineoverridevirtual

Reimplemented from BossAI.

483 {
485 if (summon->GetEntry() == NPC_ICE_TOMB)
486 summon->AI()->JustDied(summon);
487 }
@ NPC_ICE_TOMB
Definition: icecrown_citadel.h:337
virtual void JustDied(Unit *)
Definition: CreatureAI.h:126
void SummonedCreatureDespawn(Creature *summon) override
Definition: ScriptedCreature.cpp:698
CreatureAI * AI() const
Definition: Creature.h:143

References Creature::AI(), Object::GetEntry(), CreatureAI::JustDied(), NPC_ICE_TOMB, and BossAI::SummonedCreatureDespawn().

◆ UpdateAI()

void boss_sindragosa::boss_sindragosaAI::UpdateAI ( uint32  )
inlineoverridevirtual

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

Reimplemented from BossAI.

499 {
500 if (!UpdateVictim())
501 return;
502
503 events.Update(diff);
504
506 return;
507
508 switch (events.ExecuteEvent())
509 {
510 case EVENT_BERSERK:
513 me->CastSpell(me, SPELL_BERSERK, true);
514 break;
515 case EVENT_CLEAVE:
516 me->CastSpell(me->GetVictim(), SPELL_CLEAVE, false);
517 events.ScheduleEvent(EVENT_CLEAVE, 10s, 15s, EVENT_GROUP_LAND_PHASE);
518 break;
519 case EVENT_TAIL_SMASH:
520 me->DisableRotate(true);
524 events.DelayEventsToMax(1, 0);
525 events.ScheduleEvent(EVENT_UNROOT, 0ms);
526 events.ScheduleEvent(EVENT_TAIL_SMASH, 22s, 27s, EVENT_GROUP_LAND_PHASE);
527 break;
529 me->DisableRotate(true);
533 events.DelayEventsToMax(1, 0);
534 events.ScheduleEvent(EVENT_UNROOT, 0ms);
535 events.ScheduleEvent(EVENT_FROST_BREATH, 20s, 25s, EVENT_GROUP_LAND_PHASE);
536 break;
537 case EVENT_UNROOT:
538 me->DisableRotate(false);
540 break;
543 me->CastSpell((Unit*)nullptr, SPELL_UNCHAINED_MAGIC, false);
544 events.ScheduleEvent(EVENT_UNCHAINED_MAGIC, 30s, 35s, EVENT_GROUP_LAND_PHASE);
545 break;
546 case EVENT_ICY_GRIP:
547 me->CastSpell((Unit*)nullptr, SPELL_ICY_GRIP, false);
548 events.DelayEventsToMax(1001, 0);
550 if (uint32 evTime = events.GetNextEventTime(EVENT_ICE_TOMB))
551 if (events.GetTimer() > evTime || evTime - events.GetTimer() < 7000)
552 events.RescheduleEvent(EVENT_ICE_TOMB, 7s);
553 break;
558 if (_isThirdPhase)
559 events.RescheduleEvent(EVENT_ICY_GRIP, 65s, 70s);
560 break;
563 break;
564
565 // AIR PHASE EVENTS BELOW:
566 case EVENT_AIR_PHASE:
567 // pussywizard: unroot may be scheduled after this event cos of events (time must be unique)
569 {
570 events.CancelEvent(EVENT_UNROOT);
571 me->DisableRotate(false);
573 }
574
575 _isInAirPhase = true;
578 me->SetSpeed(MOVE_RUN, 4.28571f);
580 me->AttackStop();
582 me->StopMoving();
583 me->SetDisableGravity(true);
585 events.CancelEventGroup(EVENT_GROUP_LAND_PHASE);
586 events.ScheduleEvent(EVENT_AIR_PHASE, 110s);
587 break;
590 break;
593 break;
594 case EVENT_FROST_BOMB:
595 {
596 ++_bombCount;
597 float destX, destY, destZ;
598 std::list<GameObject*> gl;
600 uint8 triesLeft = 10;
601 do
602 {
603 destX = float(rand_norm()) * 75.0f + 4350.0f;
604 destY = float(rand_norm()) * 75.0f + 2450.0f;
605 destZ = 205.0f; // random number close to ground, get exact in next call
606 me->UpdateGroundPositionZ(destX, destY, destZ);
607 bool ok = true;
608 for (std::list<GameObject*>::const_iterator itr = gl.begin(); itr != gl.end(); ++itr)
609 if ((*itr)->GetExactDist2dSq(destX, destY) < 3.0f * 3.0f)
610 {
611 ok = false;
612 break;
613 }
614 if (ok)
615 break;
616 } while (--triesLeft);
617
618 me->CastSpell(destX, destY, destZ, SPELL_FROST_BOMB_TRIGGER, false);
619 if (_bombCount >= 4)
620 events.ScheduleEvent(EVENT_LAND, 5500ms);
621 else
622 events.ScheduleEvent(EVENT_FROST_BOMB, 6s);
623 break;
624 }
625 case EVENT_LAND:
627 break;
629 events.ScheduleEvent(EVENT_CLEAVE, 13s, 15s, EVENT_GROUP_LAND_PHASE);
630 events.ScheduleEvent(EVENT_TAIL_SMASH, 19s, 23s, EVENT_GROUP_LAND_PHASE);
631 events.ScheduleEvent(EVENT_FROST_BREATH, 7s, 10s, EVENT_GROUP_LAND_PHASE);
632 events.ScheduleEvent(EVENT_UNCHAINED_MAGIC, 12s, 17s, EVENT_GROUP_LAND_PHASE);
633 events.ScheduleEvent(EVENT_ICY_GRIP, 35s, 40s, EVENT_GROUP_LAND_PHASE);
635 break;
637 if (!_isInAirPhase)
638 {
640 events.ScheduleEvent(EVENT_ICE_TOMB, 7s, 10s);
641 events.RescheduleEvent(EVENT_ICY_GRIP, 35s, 40s, EVENT_GROUP_LAND_PHASE);
643 }
644 else
645 events.ScheduleEvent(EVENT_THIRD_PHASE_CHECK, 5s);
646 break;
647 case EVENT_ICE_TOMB:
648 if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, LastPhaseIceTombTargetSelector(me)))
649 {
651 me->CastSpell(target, SPELL_ICE_TOMB_DUMMY, true);
652 me->CastSpell(target, SPELL_FROST_BEACON, true);
653 if (uint32 evTime = events.GetNextEventTime(EVENT_ICY_GRIP))
654 if (events.GetTimer() > evTime || evTime - events.GetTimer() < 8000)
655 events.RescheduleEvent(EVENT_ICY_GRIP, 8s, EVENT_GROUP_LAND_PHASE);
656 }
657 events.ScheduleEvent(EVENT_ICE_TOMB, 18s, 22s);
658 break;
659 default:
660 break;
661 }
662
666 }
#define SIZE_OF_GRIDS
Definition: MapDefines.h:25
std::uint8_t uint8
Definition: Define.h:109
double rand_norm()
Definition: Random.cpp:77
#define SPELL_BERSERK
Definition: boss_ignis.cpp:40
@ GO_ICE_BLOCK
Definition: icecrown_citadel.h:465
@ SPELL_FROST_BREATH_P1
Definition: boss_sindragosa.cpp:57
@ SPELL_CLEAVE
Definition: boss_sindragosa.cpp:55
@ SPELL_FROST_BOMB_TRIGGER
Definition: boss_sindragosa.cpp:71
@ SPELL_UNCHAINED_MAGIC
Definition: boss_sindragosa.cpp:59
@ SPELL_TAIL_SMASH
Definition: boss_sindragosa.cpp:56
@ SPELL_FROST_BREATH_P2
Definition: boss_sindragosa.cpp:58
@ SPELL_MYSTIC_BUFFET
Definition: boss_sindragosa.cpp:75
@ SPELL_BLISTERING_COLD
Definition: boss_sindragosa.cpp:64
@ SPELL_ICY_GRIP
Definition: boss_sindragosa.cpp:62
@ POINT_CHASE_VICTIM
Definition: boss_sindragosa.cpp:162
@ EMOTE_WARN_FROZEN_ORB
Definition: boss_sindragosa.cpp:38
@ EMOTE_BERSERK_RAID
Definition: boss_sindragosa.cpp:43
@ SAY_UNCHAINED_MAGIC
Definition: boss_sindragosa.cpp:32
@ EMOTE_WARN_BLISTERING_COLD
Definition: boss_sindragosa.cpp:33
@ SAY_PHASE_2
Definition: boss_sindragosa.cpp:37
@ SAY_BLISTERING_COLD
Definition: boss_sindragosa.cpp:34
@ SAY_AIR_PHASE
Definition: boss_sindragosa.cpp:36
@ SAY_BERSERK
Definition: boss_sindragosa.cpp:41
Position const SindragosaAirPosFar
Definition: boss_sindragosa.cpp:172
@ EVENT_BLISTERING_COLD
Definition: boss_sindragosa.cpp:114
@ EVENT_ICE_TOMB
Definition: boss_sindragosa.cpp:123
@ EVENT_BLISTERING_COLD_YELL
Definition: boss_sindragosa.cpp:115
@ EVENT_LAND
Definition: boss_sindragosa.cpp:119
@ EVENT_UNROOT
Definition: boss_sindragosa.cpp:111
Position const SindragosaAirPos
Definition: boss_sindragosa.cpp:171
@ UNIT_STATE_ROOT
Definition: UnitDefines.h:159
@ UNIT_STATE_CASTING
Definition: UnitDefines.h:164
@ REACT_PASSIVE
Definition: Unit.h:548
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:39
Unit * SelectTarget(SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
Definition: UnitAI.cpp:110
bool UpdateVictim()
Definition: CreatureAI.cpp:269
void GetGameObjectListWithEntryInGrid(std::list< GameObject * > &lList, uint32 uiEntry, float fMaxSearchRange) const
Definition: Object.cpp:2493
bool IsWithinLOSInMap(WorldObject const *obj, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, Optional< float > collisionHeight={ }, Optional< float > combatReach={ }) const
Definition: Object.cpp:1347
void UpdateGroundPositionZ(float x, float y, float &z) const
Definition: Object.cpp:1530
float GetPositionZ() const
Definition: Position.h:119
float GetPositionX() const
Definition: Position.h:117
float GetPositionY() const
Definition: Position.h:118
void StopMoving()
Definition: Unit.cpp:16634
bool IsWithinMeleeRange(Unit const *obj, float dist=0.f) const
Definition: Unit.cpp:664
void DisableRotate(bool apply)
Definition: Unit.cpp:18259
void SetControlled(bool apply, UnitState state, Unit *source=nullptr, bool isFear=false)
Definition: Unit.cpp:18018
void SendMovementFlagUpdate(bool self=false)
Definition: Unit.cpp:16688
Unit * GetVictim() const
Definition: Unit.h:789
bool HasUnitState(const uint32 f) const
Definition: Unit.h:673
void SendMeleeAttackStop(Unit *victim=nullptr)
Send to the client SMSG_ATTACKSTOP but doesn't clear UNIT_STATE_MELEE_ATTACKING on server side or int...
Definition: Unit.cpp:3077
bool AttackStop()
Force the unit to stop attacking. This will clear UNIT_STATE_MELEE_ATTACKING, Interrupt current spell...
Definition: Unit.cpp:10391
void MoveCharge(float x, float y, float z, float speed=SPEED_CHARGE, uint32 id=EVENT_CHARGE, const Movement::PointsArray *path=nullptr, bool generatePath=false, float orientation=0.0f, ObjectGuid targetGUID=ObjectGuid::Empty)
The unit will charge the target. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition: MotionMaster.cpp:670
MovementGeneratorType GetCurrentMovementGeneratorType() const
Definition: MotionMaster.cpp:913
void MoveTakeoff(uint32 id, Position const &pos, float speed=0.0f, bool skipAnimation=false)
Use to move the unit from the ground to the air. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition: MotionMaster.cpp:523
void MoveLand(uint32 id, Position const &pos, float speed=0.0f)
Use to move the unit from the air to the ground. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition: MotionMaster.cpp:488
void MoveIdle()
Definition: MotionMaster.cpp:232
Definition: boss_sindragosa.cpp:244

References _bombCount, _isInAirPhase, _isThirdPhase, Unit::AttackStop(), Unit::CastSpell(), Unit::DisableRotate(), UnitAI::DoMeleeAttackIfReady(), EMOTE_BERSERK_RAID, EMOTE_WARN_BLISTERING_COLD, EMOTE_WARN_FROZEN_ORB, EVENT_AIR_MOVEMENT, EVENT_AIR_MOVEMENT_FAR, EVENT_AIR_PHASE, EVENT_BERSERK, EVENT_BLISTERING_COLD, EVENT_BLISTERING_COLD_YELL, EVENT_CLEAVE, EVENT_FROST_BOMB, EVENT_FROST_BREATH, EVENT_GROUP_LAND_PHASE, EVENT_ICE_TOMB, EVENT_ICY_GRIP, EVENT_LAND, EVENT_LAND_GROUND, EVENT_TAIL_SMASH, EVENT_THIRD_PHASE_CHECK, EVENT_UNCHAINED_MAGIC, EVENT_UNROOT, MotionMaster::GetCurrentMovementGeneratorType(), WorldObject::GetGameObjectListWithEntryInGrid(), Unit::GetMotionMaster(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetSpeed(), Unit::GetVictim(), GO_ICE_BLOCK, Unit::HasUnitState(), WorldObject::IsWithinLOSInMap(), Unit::IsWithinMeleeRange(), ScriptedAI::me, MOVE_RUN, MotionMaster::MoveCharge(), MotionMaster::MoveIdle(), MotionMaster::MoveLand(), MotionMaster::MovePoint(), MotionMaster::MoveTakeoff(), POINT_AIR_PHASE, POINT_AIR_PHASE_FAR, POINT_CHASE_VICTIM, POINT_LAND, POINT_LAND_GROUND, POINT_MOTION_TYPE, POINT_TAKEOFF, rand_norm(), REACT_PASSIVE, SAY_AIR_PHASE, SAY_BERSERK, SAY_BLISTERING_COLD, SAY_PHASE_2, SAY_UNCHAINED_MAGIC, UnitAI::SelectTarget(), Unit::SendMeleeAttackStop(), Unit::SendMovementFlagUpdate(), Unit::SetControlled(), Creature::SetDisableGravity(), Creature::SetReactState(), Unit::SetSpeed(), SindragosaAirPos, SindragosaAirPosFar, SindragosaFlyInPos, SindragosaLandPos, SIZE_OF_GRIDS, SPELL_BERSERK, SPELL_BLISTERING_COLD, SPELL_CLEAVE, SPELL_FROST_BEACON, SPELL_FROST_BOMB_TRIGGER, SPELL_FROST_BREATH_P1, SPELL_FROST_BREATH_P2, SPELL_ICE_TOMB_DUMMY, SPELL_ICY_GRIP, SPELL_MYSTIC_BUFFET, SPELL_TAIL_SMASH, SPELL_UNCHAINED_MAGIC, Unit::StopMoving(), UNIT_STATE_CASTING, UNIT_STATE_ROOT, WorldObject::UpdateGroundPositionZ(), and CreatureAI::UpdateVictim().

Member Data Documentation

◆ _bombCount

uint8 boss_sindragosa::boss_sindragosaAI::_bombCount
private

◆ _isBelow20Pct

bool boss_sindragosa::boss_sindragosaAI::_isBelow20Pct
private

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

◆ _isInAirPhase

bool boss_sindragosa::boss_sindragosaAI::_isInAirPhase
private

Referenced by MovementInform(), and UpdateAI().

◆ _isLanding

bool boss_sindragosa::boss_sindragosaAI::_isLanding
private

Referenced by DoAction(), and Reset().

◆ _isThirdPhase

bool boss_sindragosa::boss_sindragosaAI::_isThirdPhase
private

◆ _mysticBuffetStack

uint8 boss_sindragosa::boss_sindragosaAI::_mysticBuffetStack
private