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.
 
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)
 
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()
 
- 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)
 
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
 
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 void InitializeAI ()
 
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:
 
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 _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)
 
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
280 : BossAI(creature, DATA_SINDRAGOSA)
281 {
283 }
@ IMMUNITY_STATE
Definition SharedDefines.h:1395
@ SPELL_AURA_HASTE_SPELLS
Definition SpellAuraDefines.h:279
Definition ScriptedCreature.h:467
void ApplySpellImmune(uint32 spellId, uint32 op, uint32 type, bool apply, SpellImmuneBlockType blockType=SPELL_BLOCK_TYPE_ALL)
Definition Unit.cpp:13434
@ DATA_SINDRAGOSA
Definition icecrown_citadel.h:97
Creature * me
Definition ScriptedCreature.h:280

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.

354 {
355 return me->IsVisible() && target->GetEntry() != NPC_CROK_SCOURGEBANE;
356 }
bool IsVisible() const
Definition Unit.h:1926
@ NPC_CROK_SCOURGEBANE
Definition icecrown_citadel.h:290

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 UnitAI.

453 {
454 if (!damage || me->IsInEvadeMode())
455 return;
456
457 if (!_isThirdPhase)
458 {
459 if (!HealthAbovePct(35))
460 {
461 _isThirdPhase = true;
462 events.CancelEvent(EVENT_AIR_PHASE);
463 events.ScheduleEvent(EVENT_THIRD_PHASE_CHECK, 1s);
464 }
465 }
466 else if (!_isBelow20Pct)
467 {
468 if (!HealthAbovePct(20))
469 {
470 _isBelow20Pct = true;
473 }
474 }
475 }
events
Definition boss_sartura.cpp:43
@ EMOTE_WEAKENING
Definition boss_sindragosa.cpp:46
@ EVENT_AIR_PHASE
Definition boss_sindragosa.cpp:118
@ EVENT_THIRD_PHASE_CHECK
Definition boss_sindragosa.cpp:124
InstanceScript *const instance
Definition ScriptedCreature.h:474
bool IsInEvadeMode() const
Definition Creature.h:135
virtual uint32 GetData(uint32) const
Definition ZoneScript.h:51
Talk
Definition hyjal.cpp:82
@ DATA_WEEKLY_QUEST_ID
Definition icecrown_citadel.h:137
@ QUEST_RESPITE_FOR_A_TORMENTED_SOUL_10
Definition icecrown_citadel.h:551
bool HealthAbovePct(uint32 pct) const
Definition ScriptedCreature.h:365
bool _isThirdPhase
Definition boss_sindragosa.cpp:674
bool _isBelow20Pct
Definition boss_sindragosa.cpp:673

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.

371 {
372 if (action == ACTION_START_FROSTWYRM && !_isLanding)
373 {
374 _isLanding = true;
375
376 if (TempSummon* summon = me->ToTempSummon())
377 summon->SetTempSummonType(TEMPSUMMON_DEAD_DESPAWN);
378
379 if (me->isDead())
380 return;
381
382 me->setActive(true);
383 me->SetDisableGravity(true);
385 me->SetSpeed(MOVE_RUN, 4.28571f);
386 float moveTime = me->GetExactDist(&SindragosaFlyInPos) / (me->GetSpeed(MOVE_RUN) * 0.001f);
389
391 {
393 }
394 }
395 }
std::uint64_t uint64
Definition Define.h:106
@ TEMPSUMMON_DEAD_DESPAWN
Definition Object.h:52
@ MOVE_RUN
Definition UnitDefines.h:350
@ UNIT_FLAG_NON_ATTACKABLE
Definition UnitDefines.h:251
Position const SindragosaFlyInPos
Definition boss_sindragosa.cpp:171
@ SPELL_SINDRAGOSA_S_FURY
Definition boss_sindragosa.cpp:52
@ POINT_FROSTWYRM_FLY_IN
Definition boss_sindragosa.cpp:157
Position const SindragosaLandPos
Definition boss_sindragosa.cpp:172
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:3222
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
Definition boss_sindragosa.cpp:177
void MovePoint(uint32 id, const Position &pos, bool generatePath=true, bool forceDestination=true)
Definition MotionMaster.h:213
Definition TemporarySummon.h:40
SpellCastResult DoCastAOE(uint32 spellId, bool triggered=false)
Definition UnitAI.cpp:248
float GetSpeed(UnitMoveType mtype) const
Definition Unit.cpp:14476
MotionMaster * GetMotionMaster()
Definition Unit.h:1673
TempSummon * ToTempSummon()
Definition Unit.h:702
void SetSpeed(UnitMoveType mtype, float rate, bool forced=false)
Definition Unit.cpp:14481
void SetUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition Unit.h:719
bool isDead() const
Definition Unit.h:1709
void setActive(bool isActiveObject)
Definition Object.cpp:1094
EventProcessor m_Events
Definition Object.h:639
@ ACTION_START_FROSTWYRM
Definition icecrown_citadel.h:534
@ DATA_SINDRAGOSA_INTRO
Definition icecrown_citadel.h:142
float GetExactDist(float x, float y, float z) const
Definition Position.h:182
bool _isLanding
Definition boss_sindragosa.cpp:676

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(), WorldObject::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 CreatureAI.

359 {
362 }
@ FAIL
Definition InstanceScript.h:60
void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER) override
Definition ScriptedCreature.h:504
virtual bool SetBossState(uint32 id, EncounterState state)
Definition InstanceScript.cpp:385

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.

398 {
399 if (type == DATA_MYSTIC_BUFFET_STACK)
400 return _mysticBuffetStack;
401 return 0xFFFFFFFF;
402 }
@ DATA_MYSTIC_BUFFET_STACK
Definition boss_sindragosa.cpp:148
uint8 _mysticBuffetStack
Definition boss_sindragosa.cpp:672

References _mysticBuffetStack, and DATA_MYSTIC_BUFFET_STACK.

◆ JustDied()

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

Reimplemented from CreatureAI.

305 {
306 _JustDied();
308
311
318 }
@ SPELL_ICE_TOMB_DAMAGE
Definition boss_sindragosa.cpp:71
@ SPELL_ICE_TOMB_TARGET
Definition boss_sindragosa.cpp:68
@ SPELL_ICE_TOMB_UNTARGETABLE
Definition boss_sindragosa.cpp:70
@ SPELL_ASPHYXIATION
Definition boss_sindragosa.cpp:72
@ SPELL_FROST_BEACON
Definition boss_sindragosa.cpp:67
@ SPELL_ICE_TOMB_DUMMY
Definition boss_sindragosa.cpp:69
@ SAY_DEATH
Definition boss_sindragosa.cpp:44
@ SPELL_FROST_INFUSION_CREDIT
Definition boss_sindragosa.cpp:99
void _JustDied()
Definition ScriptedCreature.cpp:644
void DoRemoveAurasDueToSpellOnPlayers(uint32 spell)
Definition InstanceScript.cpp:683
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition Unit.cpp:5753
@ SPELL_SHADOWS_FATE
Definition icecrown_citadel.h:63
bool Is25ManRaid() const
Definition ScriptedCreature.h:385

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 CreatureAI.

321 {
322 if (!instance->CheckRequiredBosses(DATA_SINDRAGOSA, who->ToPlayer()) || !me->IsVisible())
323 {
326 return;
327 }
328
329 _isBelow20Pct = false;
330 _isThirdPhase = false;
331 _bombCount = 0;
333
335 events.Reset();
336 events.ScheduleEvent(EVENT_BERSERK, 10min);
337 events.ScheduleEvent(EVENT_AIR_PHASE, 50s);
338 events.ScheduleEvent(EVENT_CLEAVE, 10s, EVENT_GROUP_LAND_PHASE);
340 events.ScheduleEvent(EVENT_FROST_BREATH, 8s, 12s, EVENT_GROUP_LAND_PHASE);
341 events.ScheduleEvent(EVENT_UNCHAINED_MAGIC, 9s, 14s, EVENT_GROUP_LAND_PHASE);
342 events.ScheduleEvent(EVENT_ICY_GRIP, 33s + 500ms, EVENT_GROUP_LAND_PHASE);
343
344 me->setActive(true);
347
351 }
@ IN_PROGRESS
Definition InstanceScript.h:59
@ SPELL_PERMAEATING_CHILL
Definition boss_sindragosa.cpp:56
@ SPELL_FROST_AURA
Definition boss_sindragosa.cpp:55
@ SAY_AGGRO
Definition boss_sindragosa.cpp:33
@ EVENT_TAIL_SMASH
Definition boss_sindragosa.cpp:111
@ EVENT_FROST_BREATH
Definition boss_sindragosa.cpp:112
@ EVENT_GROUP_LAND_PHASE
Definition boss_sindragosa.cpp:143
@ EVENT_UNCHAINED_MAGIC
Definition boss_sindragosa.cpp:114
@ EVENT_BERSERK
Definition boss_sindragosa.cpp:109
@ EVENT_ICY_GRIP
Definition boss_sindragosa.cpp:115
@ EVENT_CLEAVE
Definition boss_sindragosa.cpp:110
SummonList summons
Definition ScriptedCreature.h:517
@ EVADE_REASON_OTHER
Definition CreatureAI.h:93
void SetInCombatWithZone()
Set in combat all units in the dungeon/raid. Affect only units with IsAIEnabled.
Definition Creature.cpp:2828
void DoCastSpellOnPlayers(uint32 spell)
Definition InstanceScript.cpp:694
virtual bool CheckRequiredBosses(uint32, Player const *=nullptr) const
Definition InstanceScript.h:255
void DespawnAll(uint32 delay=0)
Definition ScriptedCreature.cpp:71
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
@ LIGHT_S_HAMMER_TELEPORT
Definition icecrown_citadel.h:74
uint8 _bombCount
Definition boss_sindragosa.cpp:671
void EnterEvadeMode(EvadeReason why) override
Definition boss_sindragosa.cpp:358

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 CreatureAI.

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

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

◆ KilledUnit()

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

Reimplemented from CreatureAI.

365 {
366 if (victim->IsPlayer())
367 Talk(SAY_KILL);
368 }
@ SAY_KILL
Definition boss_sindragosa.cpp:41
bool IsPlayer() const
Definition Object.h:200

References Object::IsPlayer(), and SAY_KILL.

◆ MoveInLineOfSight()

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

Reimplemented from CreatureAI.

299 {
302 }
@ MOVEMENTFLAG_CAN_FLY
Definition UnitDefines.h:389
virtual void MoveInLineOfSight(Unit *)
Definition CreatureAI.cpp:169
bool HasUnitMovementFlag(uint32 f) const
Definition Unit.h:745

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 CreatureAI.

405 {
406 if (type != POINT_MOTION_TYPE && type != EFFECT_MOTION_TYPE)
407 return;
408
409 switch (point)
410 {
412 me->setActive(false);
413 me->SetDisableGravity(false);
417
418 // Sindragosa enters combat as soon as she lands
420 break;
421 case POINT_TAKEOFF:
422 events.ScheduleEvent(EVENT_AIR_MOVEMENT, 0ms);
423 break;
424 case POINT_AIR_PHASE:
425 me->CastCustomSpell(SPELL_ICE_TOMB_TARGET, SPELLVALUE_MAX_TARGETS, RAID_MODE<int32>(2, 5, 2, 6), nullptr);
426 me->SetFacingTo(float(M_PI));
427 events.ScheduleEvent(EVENT_AIR_MOVEMENT_FAR, 0ms); // won't be processed during cast time anyway, so 0
428 events.ScheduleEvent(EVENT_FROST_BOMB, 7s);
429 _bombCount = 0;
430 break;
432 me->SetFacingTo(float(M_PI));
433 break;
434 case POINT_LAND:
435 events.ScheduleEvent(EVENT_LAND_GROUND, 0ms);
436 break;
438 {
439 _isInAirPhase = false;
440 me->SetDisableGravity(false);
443 if (Unit* target = me->SelectVictim())
444 AttackStart(target);
445 break;
446 }
447 default:
448 break;
449 }
450 }
@ POINT_MOTION_TYPE
Definition MotionMaster.h:48
@ EFFECT_MOTION_TYPE
Definition MotionMaster.h:56
@ SPELLVALUE_MAX_TARGETS
Definition SpellDefines.h:117
@ REACT_AGGRESSIVE
Definition Unit.h:550
@ POINT_FROSTWYRM_LAND
Definition boss_sindragosa.cpp:158
@ POINT_TAKEOFF
Definition boss_sindragosa.cpp:160
@ POINT_AIR_PHASE
Definition boss_sindragosa.cpp:159
@ POINT_LAND
Definition boss_sindragosa.cpp:161
@ POINT_LAND_GROUND
Definition boss_sindragosa.cpp:163
@ POINT_AIR_PHASE_FAR
Definition boss_sindragosa.cpp:162
@ EVENT_AIR_MOVEMENT
Definition boss_sindragosa.cpp:119
@ EVENT_AIR_MOVEMENT_FAR
Definition boss_sindragosa.cpp:120
@ EVENT_LAND_GROUND
Definition boss_sindragosa.cpp:122
@ EVENT_FROST_BOMB
Definition boss_sindragosa.cpp:123
void SetHomePosition(float x, float y, float z, float o)
Definition Creature.h:340
CreatureTemplate const * GetCreatureTemplate() const
Definition Creature.h:209
Unit * SelectVictim()
Definition Unit.cpp:14785
void SetReactState(ReactStates state)
A creature can have 3 ReactStates : Agressive, Passive, Neutral.
Definition Creature.h:95
Definition Unit.h:636
void SetFacingTo(float ori)
Definition Unit.cpp:20581
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:1235
void RemoveUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition Unit.h:720
float speed_run
Definition CreatureData.h:201
void AttackStart(Unit *) override
Definition ScriptedCreature.cpp:210
bool _isInAirPhase
Definition boss_sindragosa.cpp:675

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 CreatureAI.

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

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

◆ SummonedCreatureDespawn()

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

Reimplemented from CreatureAI.

485 {
487 if (summon->GetEntry() == NPC_ICE_TOMB)
488 summon->AI()->JustDied(summon);
489 }
void SummonedCreatureDespawn(Creature *summon) override
Definition ScriptedCreature.cpp:711
virtual void JustDied(Unit *)
Definition CreatureAI.h:128
CreatureAI * AI() const
Definition Creature.h:141
@ NPC_ICE_TOMB
Definition icecrown_citadel.h:332

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()

Implements UnitAI.

501 {
502 if (!UpdateVictim())
503 return;
504
505 events.Update(diff);
506
508 return;
509
510 switch (events.ExecuteEvent())
511 {
512 case EVENT_BERSERK:
515 me->CastSpell(me, SPELL_BERSERK, true);
516 break;
517 case EVENT_CLEAVE:
518 me->CastSpell(me->GetVictim(), SPELL_CLEAVE, false);
519 events.ScheduleEvent(EVENT_CLEAVE, 10s, 15s, EVENT_GROUP_LAND_PHASE);
520 break;
521 case EVENT_TAIL_SMASH:
522 me->DisableRotate(true);
526 events.DelayEventsToMax(1, 0);
527 events.ScheduleEvent(EVENT_UNROOT, 0ms);
528 events.ScheduleEvent(EVENT_TAIL_SMASH, 22s, 27s, EVENT_GROUP_LAND_PHASE);
529 break;
531 me->DisableRotate(true);
535 events.DelayEventsToMax(1, 0);
536 events.ScheduleEvent(EVENT_UNROOT, 0ms);
537 events.ScheduleEvent(EVENT_FROST_BREATH, 20s, 25s, EVENT_GROUP_LAND_PHASE);
538 break;
539 case EVENT_UNROOT:
540 me->DisableRotate(false);
542 break;
545 me->CastSpell((Unit*)nullptr, SPELL_UNCHAINED_MAGIC, false);
546 events.ScheduleEvent(EVENT_UNCHAINED_MAGIC, 30s, 35s, EVENT_GROUP_LAND_PHASE);
547 break;
548 case EVENT_ICY_GRIP:
549 me->CastSpell((Unit*)nullptr, SPELL_ICY_GRIP, false);
550 events.DelayEventsToMax(1001, 0);
552 if (uint32 evTime = events.GetNextEventTime(EVENT_ICE_TOMB))
553 if (events.GetTimer() > evTime || evTime - events.GetTimer() < 7000)
554 events.RescheduleEvent(EVENT_ICE_TOMB, 7s);
555 break;
560 if (_isThirdPhase)
561 events.RescheduleEvent(EVENT_ICY_GRIP, 65s, 70s);
562 break;
565 break;
566
567 // AIR PHASE EVENTS BELOW:
568 case EVENT_AIR_PHASE:
569 // pussywizard: unroot may be scheduled after this event cos of events (time must be unique)
571 {
572 events.CancelEvent(EVENT_UNROOT);
573 me->DisableRotate(false);
575 }
576
577 _isInAirPhase = true;
580 me->SetSpeed(MOVE_RUN, 4.28571f);
582 me->AttackStop();
584 me->StopMoving();
585 me->SetDisableGravity(true);
587 events.CancelEventGroup(EVENT_GROUP_LAND_PHASE);
588 events.ScheduleEvent(EVENT_AIR_PHASE, 110s);
589 break;
592 break;
595 break;
596 case EVENT_FROST_BOMB:
597 {
598 ++_bombCount;
599 float destX, destY, destZ;
600 std::list<GameObject*> gl;
602 uint8 triesLeft = 10;
603 do
604 {
605 destX = float(rand_norm()) * 75.0f + 4350.0f;
606 destY = float(rand_norm()) * 75.0f + 2450.0f;
607 destZ = 205.0f; // random number close to ground, get exact in next call
608 me->UpdateGroundPositionZ(destX, destY, destZ);
609 bool ok = true;
610 for (std::list<GameObject*>::const_iterator itr = gl.begin(); itr != gl.end(); ++itr)
611 if ((*itr)->GetExactDist2dSq(destX, destY) < 3.0f * 3.0f)
612 {
613 ok = false;
614 break;
615 }
616 if (ok)
617 break;
618 } while (--triesLeft);
619
620 me->CastSpell(destX, destY, destZ, SPELL_FROST_BOMB_TRIGGER, false);
621 if (_bombCount >= 4)
622 events.ScheduleEvent(EVENT_LAND, 5500ms);
623 else
624 events.ScheduleEvent(EVENT_FROST_BOMB, 6s);
625 break;
626 }
627 case EVENT_LAND:
629 break;
631 events.ScheduleEvent(EVENT_CLEAVE, 13s, 15s, EVENT_GROUP_LAND_PHASE);
632 events.ScheduleEvent(EVENT_TAIL_SMASH, 19s, 23s, EVENT_GROUP_LAND_PHASE);
633 events.ScheduleEvent(EVENT_FROST_BREATH, 7s, 10s, EVENT_GROUP_LAND_PHASE);
634 events.ScheduleEvent(EVENT_UNCHAINED_MAGIC, 12s, 17s, EVENT_GROUP_LAND_PHASE);
635 events.ScheduleEvent(EVENT_ICY_GRIP, 35s, 40s, EVENT_GROUP_LAND_PHASE);
637 break;
639 if (!_isInAirPhase)
640 {
642 events.ScheduleEvent(EVENT_ICE_TOMB, 7s, 10s);
643 events.RescheduleEvent(EVENT_ICY_GRIP, 35s, 40s, EVENT_GROUP_LAND_PHASE);
645 }
646 else
647 events.ScheduleEvent(EVENT_THIRD_PHASE_CHECK, 5s);
648 break;
649 case EVENT_ICE_TOMB:
651 {
653 me->CastSpell(target, SPELL_ICE_TOMB_DUMMY, true);
654 me->CastSpell(target, SPELL_FROST_BEACON, true);
655 if (uint32 evTime = events.GetNextEventTime(EVENT_ICY_GRIP))
656 if (events.GetTimer() > evTime || evTime - events.GetTimer() < 8000)
657 events.RescheduleEvent(EVENT_ICY_GRIP, 8s, EVENT_GROUP_LAND_PHASE);
658 }
659 events.ScheduleEvent(EVENT_ICE_TOMB, 18s, 22s);
660 break;
661 default:
662 break;
663 }
664
668 }
std::uint8_t uint8
Definition Define.h:109
#define SIZE_OF_GRIDS
Definition MapDefines.h:26
double rand_norm()
Definition Random.cpp:77
@ UNIT_STATE_ROOT
Definition UnitDefines.h:180
@ UNIT_STATE_CASTING
Definition UnitDefines.h:185
@ REACT_PASSIVE
Definition Unit.h:548
#define SPELL_BERSERK
Definition boss_ignis.cpp:40
@ SPELL_FROST_BREATH_P1
Definition boss_sindragosa.cpp:59
@ SPELL_CLEAVE
Definition boss_sindragosa.cpp:57
@ SPELL_FROST_BOMB_TRIGGER
Definition boss_sindragosa.cpp:73
@ SPELL_UNCHAINED_MAGIC
Definition boss_sindragosa.cpp:61
@ SPELL_TAIL_SMASH
Definition boss_sindragosa.cpp:58
@ SPELL_FROST_BREATH_P2
Definition boss_sindragosa.cpp:60
@ SPELL_MYSTIC_BUFFET
Definition boss_sindragosa.cpp:77
@ SPELL_BLISTERING_COLD
Definition boss_sindragosa.cpp:66
@ SPELL_ICY_GRIP
Definition boss_sindragosa.cpp:64
@ POINT_CHASE_VICTIM
Definition boss_sindragosa.cpp:164
@ EMOTE_WARN_FROZEN_ORB
Definition boss_sindragosa.cpp:40
@ EMOTE_BERSERK_RAID
Definition boss_sindragosa.cpp:45
@ SAY_UNCHAINED_MAGIC
Definition boss_sindragosa.cpp:34
@ EMOTE_WARN_BLISTERING_COLD
Definition boss_sindragosa.cpp:35
@ SAY_PHASE_2
Definition boss_sindragosa.cpp:39
@ SAY_BLISTERING_COLD
Definition boss_sindragosa.cpp:36
@ SAY_AIR_PHASE
Definition boss_sindragosa.cpp:38
@ SAY_BERSERK
Definition boss_sindragosa.cpp:43
Position const SindragosaAirPosFar
Definition boss_sindragosa.cpp:174
@ EVENT_BLISTERING_COLD
Definition boss_sindragosa.cpp:116
@ EVENT_ICE_TOMB
Definition boss_sindragosa.cpp:125
@ EVENT_BLISTERING_COLD_YELL
Definition boss_sindragosa.cpp:117
@ EVENT_LAND
Definition boss_sindragosa.cpp:121
@ EVENT_UNROOT
Definition boss_sindragosa.cpp:113
Position const SindragosaAirPos
Definition boss_sindragosa.cpp:173
bool UpdateVictim()
Definition CreatureAI.cpp:280
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
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
void StopMoving()
Definition Unit.cpp:16702
bool IsWithinMeleeRange(Unit const *obj, float dist=0.f) const
Definition Unit.cpp:664
void DisableRotate(bool apply)
Definition Unit.cpp:18327
void SetControlled(bool apply, UnitState state, Unit *source=nullptr, bool isFear=false)
Definition Unit.cpp:18086
void SendMovementFlagUpdate(bool self=false)
Definition Unit.cpp:16756
Unit * GetVictim() const
Definition Unit.h:862
bool HasUnitState(const uint32 f) const
Definition Unit.h:707
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:3090
bool AttackStop()
Force the unit to stop attacking. This will clear UNIT_STATE_MELEE_ATTACKING, Interrupt current spell...
Definition Unit.cpp:10448
void GetGameObjectListWithEntryInGrid(std::list< GameObject * > &lList, uint32 uiEntry, float fMaxSearchRange) const
Definition Object.cpp:2506
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:1358
void UpdateGroundPositionZ(float x, float y, float &z) const
Definition Object.cpp:1541
@ GO_ICE_BLOCK
Definition icecrown_citadel.h:460
Definition boss_sindragosa.cpp:246
float GetPositionZ() const
Definition Position.h:123
float GetPositionX() const
Definition Position.h:121
float GetPositionY() const
Definition Position.h:122

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(), Random, 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

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