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

Public Member Functions

 boss_blood_queen_lana_thelAI (Creature *creature)
 
void Reset () override
 
void JustEngagedWith (Unit *who) override
 Called for reaction when initially engaged.
 
void JustDied (Unit *) override
 
void GoToMinchar ()
 
void DoAction (int32 action) override
 
void KilledUnit (Unit *victim) override
 
void MovementInform (uint32 type, uint32 id) override
 
void UpdateAI (uint32 diff) override
 
void CleanAuras ()
 
bool WasVampire (ObjectGuid guid)
 
bool WasBloodbolted (ObjectGuid guid)
 
void SetGUID (ObjectGuid guid, int32 type=0) override
 
void EnterEvadeMode (EvadeReason why) override
 
bool CanAIAttack (Unit const *) const override
 
- Public Member Functions inherited from BossAI
 BossAI (Creature *creature, uint32 bossId)
 
 ~BossAI () override
 
bool CanRespawn () override
 
void DamageTaken (Unit *attacker, uint32 &damage, DamageEffectType damagetype, SpellSchoolMask damageSchoolMask) override
 
void JustSummoned (Creature *summon) override
 
void SummonedCreatureDespawn (Creature *summon) override
 
void SummonedCreatureDespawnAll () override
 
void UpdateAI (uint32 diff) override
 
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)
 
virtual void ExecuteEvent (uint32)
 
virtual void ScheduleTasks ()
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged.
 
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
 
void UpdateAI (uint32 diff) override
 
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 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)
 
void SetCombatMovement (bool allowMovement)
 
bool IsCombatMovementAllowed () const
 
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.
 
void Talk (uint8 id, Milliseconds delay)
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At =================================
 
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.
 
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 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
 
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 ==================
 
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 *)
 
- 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
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void OnCharmed (bool apply)=0
 
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)
 
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 (NOTE: Creature engage logic should NOT be here, but in JustEngagedWith, which happens once threat is established!)
 
virtual void JustExitedCombat ()
 Called when the unit leaves combat.
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 
virtual void HealReceived (Unit *, uint32 &)
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 
virtual void HealDone (Unit *, uint32 &)
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 
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)
 
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)
 
SpellCastResult DoCastMaxThreat (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false)
 Cast spell on the max threat target, which may not always 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)
 
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
 

Public Attributes

bool _creditBloodQuickening
 
bool _killMinchar
 
ObjectGuid _tankGUID
 
ObjectGuid _offtankGUID
 
GuidSet _bloodboltedPlayers
 
GuidSet _vampires
 
bool bEnteredCombat
 
- Public Attributes inherited from BossAI
InstanceScript *const instance
 
- Public Attributes inherited from ScriptedAI
Creatureme
 
bool IsFleeing
 

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 ()
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from BossAI
void _Reset ()
 
void _JustEngagedWith ()
 
void _JustDied ()
 
void _JustReachedHome ()
 
bool _ProccessHealthCheckEvent (uint8 healthPct, uint32 damage, std::function< void()> exec) const
 
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_blood_queen_lana_thelAI()

boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::boss_blood_queen_lana_thelAI ( Creature creature)
inline
145 {
146 bEnteredCombat = false;
147 }
@ DATA_BLOOD_QUEEN_LANA_THEL
Definition: icecrown_citadel.h:102
Definition: ScriptedCreature.h:469
bool bEnteredCombat
Definition: boss_blood_queen_lana_thel.cpp:155

References bEnteredCombat.

Member Function Documentation

◆ CanAIAttack()

bool boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::CanAIAttack ( Unit const *  ) const
inlineoverridevirtual

Reimplemented from UnitAI.

576 {
577 return me->IsVisible();
578 }
Creature * me
Definition: ScriptedCreature.h:282
bool IsVisible() const
Definition: Unit.h:2141

References Unit::IsVisible(), and ScriptedAI::me.

◆ CleanAuras()

void boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::CleanAuras ( )
inline
515 {
527 }
#define ESSENCE_OF_BLOOD_QUEEN
Definition: boss_blood_queen_lana_thel.cpp:82
#define ESSENCE_OF_BLOOD_QUEEN_PLR
Definition: boss_blood_queen_lana_thel.cpp:83
@ SPELL_FRENZIED_BLOODTHIRST_VISUAL
Definition: boss_blood_queen_lana_thel.cpp:48
@ SPELL_UNCONTROLLABLE_FRENZY
Definition: boss_blood_queen_lana_thel.cpp:54
@ SPELL_BLOOD_MIRROR_VISUAL
Definition: boss_blood_queen_lana_thel.cpp:59
@ SPELL_BLOOD_MIRROR_DAMAGE
Definition: boss_blood_queen_lana_thel.cpp:58
@ SPELL_PACT_OF_THE_DARKFALLEN
Definition: boss_blood_queen_lana_thel.cpp:63
@ SPELL_BLOOD_MIRROR_DUMMY
Definition: boss_blood_queen_lana_thel.cpp:60
#define PRESENCE_OF_THE_DARKFALLEN
Definition: boss_blood_queen_lana_thel.cpp:86
#define FRENZIED_BLOODTHIRST
Definition: boss_blood_queen_lana_thel.cpp:84
#define DELIRIOUS_SLASH
Definition: boss_blood_queen_lana_thel.cpp:85
InstanceScript *const instance
Definition: ScriptedCreature.h:474
void DoRemoveAurasDueToSpellOnPlayers(uint32 spell)
Definition: InstanceScript.cpp:638

References DELIRIOUS_SLASH, InstanceScript::DoRemoveAurasDueToSpellOnPlayers(), ESSENCE_OF_BLOOD_QUEEN, ESSENCE_OF_BLOOD_QUEEN_PLR, FRENZIED_BLOODTHIRST, BossAI::instance, PRESENCE_OF_THE_DARKFALLEN, SPELL_BLOOD_MIRROR_DAMAGE, SPELL_BLOOD_MIRROR_DUMMY, SPELL_BLOOD_MIRROR_VISUAL, SPELL_FRENZIED_BLOODTHIRST_VISUAL, SPELL_PACT_OF_THE_DARKFALLEN, and SPELL_UNCONTROLLABLE_FRENZY.

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

◆ DoAction()

void boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::DoAction ( int32  action)
inlineoverridevirtual

Reimplemented from UnitAI.

259 {
260 if (action != ACTION_KILL_MINCHAR)
261 return;
262
264 _killMinchar = true;
265 else
266 GoToMinchar();
267 }
@ IN_PROGRESS
Definition: InstanceScript.h:58
@ ACTION_KILL_MINCHAR
Definition: icecrown_citadel.h:534
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:231
bool _killMinchar
Definition: boss_blood_queen_lana_thel.cpp:150
void GoToMinchar()
Definition: boss_blood_queen_lana_thel.cpp:243

References _killMinchar, ACTION_KILL_MINCHAR, DATA_BLOOD_QUEEN_LANA_THEL, InstanceScript::GetBossState(), GoToMinchar(), IN_PROGRESS, and BossAI::instance.

◆ EnterEvadeMode()

void boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::EnterEvadeMode ( EvadeReason  why)
inlineoverridevirtual

Reimplemented from CreatureAI.

555 {
556 const Map::PlayerList& pl = me->GetMap()->GetPlayers();
557 for (Map::PlayerList::const_iterator itr = pl.begin(); itr != pl.end(); ++itr)
558 if (Player* p = itr->GetSource())
559 if (p->IsAlive() && p->HasAura(SPELL_UNCONTROLLABLE_FRENZY))
560 Unit::Kill(me, p);
561
562 if (_killMinchar)
563 {
564 if (!me->IsAlive())
565 return;
566 _EnterEvadeMode(why);
567 Reset();
568 GoToMinchar();
569 return;
570 }
571
573 }
Definition: LinkedList.h:139
bool _EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition: CreatureAI.cpp:291
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition: CreatureAI.cpp:196
Map * GetMap() const
Definition: Object.h:517
Definition: Player.h:1056
static void Kill(Unit *killer, Unit *victim, bool durabilityLoss=true, WeaponAttackType attackType=BASE_ATTACK, SpellInfo const *spellProto=nullptr, Spell const *spell=nullptr)
Definition: Unit.cpp:17956
bool IsAlive() const
Definition: Unit.h:1822
PlayerList const & GetPlayers() const
Definition: Map.h:485
Definition: MapRefMgr.h:26
iterator begin()
Definition: MapRefMgr.h:36
iterator end()
Definition: MapRefMgr.h:37
void Reset() override
Definition: boss_blood_queen_lana_thel.cpp:157

References CreatureAI::_EnterEvadeMode(), _killMinchar, MapRefMgr::begin(), MapRefMgr::end(), CreatureAI::EnterEvadeMode(), WorldObject::GetMap(), Map::GetPlayers(), GoToMinchar(), Unit::IsAlive(), Unit::Kill(), ScriptedAI::me, Reset(), and SPELL_UNCONTROLLABLE_FRENZY.

Referenced by JustEngagedWith().

◆ GoToMinchar()

void boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::GoToMinchar ( )
inline
244 {
245 if (!me->IsAlive())
246 return;
251 me->StopMoving();
252 me->SetCanFly(true);
253 me->SetDisableGravity(true);
256 }
@ UNIT_STATE_EVADE
Definition: Unit.h:346
@ DONE
Definition: InstanceScript.h:60
@ POINT_MINCHAR
Definition: boss_blood_queen_lana_thel.cpp:130
Position const mincharPos
Definition: boss_blood_queen_lana_thel.cpp:135
@ DATA_BLOOD_QUICKENING_STATE
Definition: icecrown_citadel.h:127
bool SetDisableGravity(bool disable, bool packetOnly=false, bool updateAnimationTier=true) override
Definition: Creature.cpp:3109
bool SetCanFly(bool enable, bool packetOnly=false) override
Definition: Creature.cpp:3194
MotionMaster * GetMotionMaster()
Definition: Unit.h:2276
void StopMoving()
Definition: Unit.cpp:16918
void AddUnitState(uint32 f)
Definition: Unit.h:1409
void SendMovementFlagUpdate(bool self=false)
Definition: Unit.cpp:16972
Unit * GetVictim() const
Definition: Unit.h:1398
void SendMeleeAttackStop(Unit *victim=nullptr)
Definition: Unit.cpp:3045
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:53
void MovePoint(uint32 id, const Position &pos, bool generatePath=true, bool forceDestination=true)
Definition: MotionMaster.h:211
void MoveIdle()
Definition: MotionMaster.cpp:232

References Unit::AddUnitState(), DATA_BLOOD_QUICKENING_STATE, DONE, Unit::GetMotionMaster(), Unit::GetVictim(), BossAI::instance, Unit::IsAlive(), ScriptedAI::me, mincharPos, MotionMaster::MoveIdle(), MotionMaster::MovePoint(), POINT_MINCHAR, Unit::SendMeleeAttackStop(), Unit::SendMovementFlagUpdate(), Creature::SetCanFly(), ZoneScript::SetData(), Creature::SetDisableGravity(), Unit::StopMoving(), and UNIT_STATE_EVADE.

Referenced by DoAction(), and EnterEvadeMode().

◆ JustDied()

void boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

216 {
217 _JustDied();
219
222
223 CleanAuras();
224
226 {
228 Map::PlayerList const& pl = me->GetMap()->GetPlayers();
229 for (Map::PlayerList::const_iterator itr = pl.begin(); itr != pl.end(); ++itr)
230 if (Player* p = itr->GetSource())
233 {
234 minchar->SetUInt32Value(UNIT_NPC_EMOTESTATE, 0);
235 minchar->SetCanFly(false);
236 minchar->SetDisableGravity(false);
237 minchar->RemoveAllAuras();
238 minchar->GetMotionMaster()->MoveCharge(4629.3711f, 2782.6089f, 401.5301f, SPEED_CHARGE / 3.0f);
239 }
240 }
241 }
@ UNIT_NPC_EMOTESTATE
Definition: UpdateFields.h:140
#define SPEED_CHARGE
Definition: MotionMaster.h:107
@ SAY_DEATH
Definition: boss_blood_queen_lana_thel.cpp:41
@ SPELL_BLOOD_INFUSION_CREDIT
Definition: boss_blood_queen_lana_thel.cpp:77
@ NPC_INFILTRATOR_MINCHAR_BQ
Definition: icecrown_citadel.h:197
@ NPC_BLOOD_QUICKENING_CREDIT_25
Definition: icecrown_citadel.h:198
@ SPELL_SHADOWS_FATE
Definition: icecrown_citadel.h:71
Talk
Definition: boss_fathomlord_karathress.cpp:25
SpellCastResult DoCastAOE(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:248
const T & RAID_MODE(const T &normal10, const T &normal25) const
Definition: ScriptedCreature.h:416
bool Is25ManRaid() const
Definition: ScriptedCreature.h:397
void _JustDied()
Definition: ScriptedCreature.cpp:620
Definition: Creature.h:46
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2434
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5636
bool _creditBloodQuickening
Definition: boss_blood_queen_lana_thel.cpp:149
void CleanAuras()
Definition: boss_blood_queen_lana_thel.cpp:514

References _creditBloodQuickening, BossAI::_JustDied(), MapRefMgr::begin(), CleanAuras(), DATA_BLOOD_QUICKENING_STATE, UnitAI::DoCastAOE(), DONE, MapRefMgr::end(), WorldObject::FindNearestCreature(), WorldObject::GetMap(), Map::GetPlayers(), Unit::HasAura(), BossAI::instance, ScriptedAI::Is25ManRaid(), ScriptedAI::me, NPC_BLOOD_QUICKENING_CREDIT_25, NPC_INFILTRATOR_MINCHAR_BQ, ScriptedAI::RAID_MODE(), SAY_DEATH, ZoneScript::SetData(), SPEED_CHARGE, SPELL_BLOOD_INFUSION_CREDIT, SPELL_SHADOWS_FATE, and UNIT_NPC_EMOTESTATE.

◆ JustEngagedWith()

void boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::JustEngagedWith ( Unit )
inlineoverridevirtual

Called for reaction when initially engaged.

Reimplemented from BossAI.

185 {
187 {
190 return;
191 }
192
193 bEnteredCombat = true;
196 events.Reset();
197 events.ScheduleEvent(EVENT_BERSERK, 330s);
198 events.ScheduleEvent(EVENT_VAMPIRIC_BITE, 15s);
199 events.ScheduleEvent(EVENT_BLOOD_MIRROR, 2500ms);
200 events.ScheduleEvent(EVENT_DELIRIOUS_SLASH, 10s, 12s);
201 events.ScheduleEvent(EVENT_PACT_OF_THE_DARKFALLEN, 20s);
202 events.ScheduleEvent(EVENT_SWARMING_SHADOWS, 30s);
203 events.ScheduleEvent(EVENT_TWILIGHT_BLOODBOLT, 15s, 25s);
204 events.ScheduleEvent(EVENT_AIR_PHASE, Is25ManRaid() ? 127s : 124s);
205
206 CleanAuras();
207 me->setActive(true);
213 }
events
Definition: boss_sartura.cpp:43
@ SPELL_SHROUD_OF_SORROW
Definition: boss_blood_queen_lana_thel.cpp:47
@ SAY_AGGRO
Definition: boss_blood_queen_lana_thel.cpp:30
@ EVENT_BLOOD_MIRROR
Definition: boss_blood_queen_lana_thel.cpp:109
@ EVENT_PACT_OF_THE_DARKFALLEN
Definition: boss_blood_queen_lana_thel.cpp:111
@ EVENT_AIR_PHASE
Definition: boss_blood_queen_lana_thel.cpp:114
@ EVENT_DELIRIOUS_SLASH
Definition: boss_blood_queen_lana_thel.cpp:110
@ EVENT_TWILIGHT_BLOODBOLT
Definition: boss_blood_queen_lana_thel.cpp:113
@ EVENT_SWARMING_SHADOWS
Definition: boss_blood_queen_lana_thel.cpp:112
@ EVENT_BERSERK
Definition: boss_blood_queen_lana_thel.cpp:107
@ EVENT_VAMPIRIC_BITE
Definition: boss_blood_queen_lana_thel.cpp:108
@ LIGHT_S_HAMMER_TELEPORT
Definition: icecrown_citadel.h:82
@ EVADE_REASON_OTHER
Definition: CreatureAI.h:94
void DoZoneInCombat(Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
Definition: CreatureAI.cpp:94
void setActive(bool isActiveObject)
Definition: Object.cpp:1085
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:1169
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:350
void DoCastSpellOnPlayers(uint32 spell)
Definition: InstanceScript.cpp:649
virtual bool CheckRequiredBosses(uint32, Player const *=nullptr) const
Definition: InstanceScript.h:244
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:52
void EnterEvadeMode(EvadeReason why) override
Definition: boss_blood_queen_lana_thel.cpp:554

References _creditBloodQuickening, bEnteredCombat, Unit::CastSpell(), InstanceScript::CheckRequiredBosses(), CleanAuras(), DATA_BLOOD_QUEEN_LANA_THEL, DATA_BLOOD_QUICKENING_STATE, InstanceScript::DoCastSpellOnPlayers(), DONE, CreatureAI::DoZoneInCombat(), EnterEvadeMode(), CreatureAI::EVADE_REASON_OTHER, EVENT_AIR_PHASE, EVENT_BERSERK, EVENT_BLOOD_MIRROR, EVENT_DELIRIOUS_SLASH, EVENT_PACT_OF_THE_DARKFALLEN, EVENT_SWARMING_SHADOWS, EVENT_TWILIGHT_BLOODBOLT, EVENT_VAMPIRIC_BITE, InstanceScript::GetBossState(), ZoneScript::GetData(), IN_PROGRESS, BossAI::instance, ScriptedAI::Is25ManRaid(), Unit::IsVisible(), LIGHT_S_HAMMER_TELEPORT, ScriptedAI::me, SAY_AGGRO, WorldObject::setActive(), InstanceScript::SetBossState(), SPELL_FRENZIED_BLOODTHIRST_VISUAL, SPELL_SHROUD_OF_SORROW, and Object::ToPlayer().

◆ KilledUnit()

void boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::KilledUnit ( Unit victim)
inlineoverridevirtual

Reimplemented from ScriptedAI.

270 {
271 if (victim->GetTypeId() == TYPEID_PLAYER)
272 Talk(SAY_KILL);
273 }
@ TYPEID_PLAYER
Definition: ObjectGuid.h:38
@ SAY_KILL
Definition: boss_blood_queen_lana_thel.cpp:38
TypeID GetTypeId() const
Definition: Object.h:121

References Object::GetTypeId(), SAY_KILL, and TYPEID_PLAYER.

◆ MovementInform()

void boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::MovementInform ( uint32  type,
uint32  id 
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

276 {
277 if (type != EFFECT_MOTION_TYPE && type != POINT_MOTION_TYPE)
278 return;
279
280 switch (id)
281 {
282 case POINT_CENTER:
284 events.ScheduleEvent(EVENT_AIR_PHASE, Is25ManRaid() ? 100s : 120s);
285 events.ScheduleEvent(EVENT_AIR_START_FLYING, 2500ms);
286 break;
287 case POINT_AIR:
288 _bloodboltedPlayers.clear();
291 events.ScheduleEvent(EVENT_AIR_FLY_DOWN, 7s);
292 break;
293 case POINT_GROUND:
294 me->SetCanFly(false);
295 me->SetDisableGravity(false);
297 if (Unit* target = me->SelectVictim())
298 AttackStart(target);
299 events.RescheduleEvent(EVENT_PACT_OF_THE_DARKFALLEN, 5s);
300 events.RescheduleEvent(EVENT_SWARMING_SHADOWS, 20s);
301 break;
302 case POINT_MINCHAR:
305 Reset();
306 default:
307 break;
308 }
309 }
@ REACT_AGGRESSIVE
Definition: Unit.h:1037
@ POINT_MOTION_TYPE
Definition: MotionMaster.h:46
@ EFFECT_MOTION_TYPE
Definition: MotionMaster.h:54
@ POINT_GROUND
Definition: boss_blood_queen_lana_thel.cpp:129
@ POINT_CENTER
Definition: boss_blood_queen_lana_thel.cpp:127
@ POINT_AIR
Definition: boss_blood_queen_lana_thel.cpp:128
@ SPELL_INCITE_TERROR
Definition: boss_blood_queen_lana_thel.cpp:69
@ SPELL_ANNIHILATE
Definition: boss_blood_queen_lana_thel.cpp:71
@ SPELL_BLOODBOLT_WHIRL
Definition: boss_blood_queen_lana_thel.cpp:70
@ SAY_AIR_PHASE
Definition: boss_blood_queen_lana_thel.cpp:37
@ EVENT_AIR_START_FLYING
Definition: boss_blood_queen_lana_thel.cpp:115
@ EVENT_AIR_FLY_DOWN
Definition: boss_blood_queen_lana_thel.cpp:116
void AttackStart(Unit *) override
Definition: ScriptedCreature.cpp:210
void SetReactState(ReactStates st)
Definition: Creature.h:90
Unit * SelectVictim()
Definition: Unit.cpp:14719
Definition: Unit.h:1302
void MoveTargetedHome(bool walk=false)
Definition: MotionMaster.cpp:252
GuidSet _bloodboltedPlayers
Definition: boss_blood_queen_lana_thel.cpp:153

References _bloodboltedPlayers, ScriptedAI::AttackStart(), Unit::CastSpell(), EFFECT_MOTION_TYPE, EVENT_AIR_FLY_DOWN, EVENT_AIR_PHASE, EVENT_AIR_START_FLYING, EVENT_PACT_OF_THE_DARKFALLEN, EVENT_SWARMING_SHADOWS, Unit::GetMotionMaster(), ScriptedAI::Is25ManRaid(), ScriptedAI::me, MotionMaster::MoveTargetedHome(), POINT_AIR, POINT_CENTER, POINT_GROUND, POINT_MINCHAR, POINT_MOTION_TYPE, REACT_AGGRESSIVE, Reset(), SAY_AIR_PHASE, Creature::SelectVictim(), Creature::SetCanFly(), Creature::SetDisableGravity(), Creature::SetReactState(), SPELL_ANNIHILATE, SPELL_BLOODBOLT_WHIRL, and SPELL_INCITE_TERROR.

◆ Reset()

void boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::Reset ( )
inlineoverridevirtual

Reimplemented from BossAI.

158 {
160 _killMinchar = false;
163 _vampires.clear();
164 CleanAuras();
166
167 events.Reset();
169
170 me->SetCanFly(false);
171 me->SetDisableGravity(false);
172
173 if (bEnteredCombat)
174 {
175 bEnteredCombat = false;
178 }
179
182 }
@ FAIL
Definition: InstanceScript.h:59
@ NOT_STARTED
Definition: InstanceScript.h:57
void DespawnAll(uint32 delay=0)
Definition: ScriptedCreature.cpp:71
SummonList summons
Definition: ScriptedCreature.h:510
void Clear()
Definition: ObjectGuid.h:140
ObjectGuid _tankGUID
Definition: boss_blood_queen_lana_thel.cpp:151
ObjectGuid _offtankGUID
Definition: boss_blood_queen_lana_thel.cpp:152
GuidSet _vampires
Definition: boss_blood_queen_lana_thel.cpp:154

References _creditBloodQuickening, _killMinchar, _offtankGUID, _tankGUID, _vampires, bEnteredCombat, CleanAuras(), ObjectGuid::Clear(), DATA_BLOOD_QUEEN_LANA_THEL, SummonList::DespawnAll(), DONE, FAIL, InstanceScript::GetBossState(), BossAI::instance, Unit::IsAlive(), ScriptedAI::me, NOT_STARTED, REACT_AGGRESSIVE, InstanceScript::SetBossState(), Creature::SetCanFly(), Creature::SetDisableGravity(), Creature::SetReactState(), and BossAI::summons.

Referenced by EnterEvadeMode(), and MovementInform().

◆ SetGUID()

void boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::SetGUID ( ObjectGuid  guid,
int32  type = 0 
)
inlineoverridevirtual

Reimplemented from UnitAI.

540 {
541 switch (type)
542 {
543 case GUID_BLOODBOLT:
544 _bloodboltedPlayers.insert(guid);
545 break;
546 case GUID_VAMPIRE:
547 _vampires.insert(guid);
548 break;
549 default:
550 break;
551 }
552 }
@ GUID_VAMPIRE
Definition: boss_blood_queen_lana_thel.cpp:121
@ GUID_BLOODBOLT
Definition: boss_blood_queen_lana_thel.cpp:122

References _bloodboltedPlayers, _vampires, GUID_BLOODBOLT, and GUID_VAMPIRE.

Referenced by UpdateAI().

◆ UpdateAI()

void boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from BossAI.

312 {
313 if (!UpdateVictim())
314 return;
315
316 events.Update(diff);
317
319 return;
320
321 switch (events.ExecuteEvent())
322 {
323 case EVENT_BERSERK:
326 me->CastSpell(me, SPELL_BERSERK, true);
327 break;
329 {
330 Player* target = nullptr;
331 float maxThreat = 0.0f;
332 const Map::PlayerList& pl = me->GetMap()->GetPlayers();
333 for (Map::PlayerList::const_iterator itr = pl.begin(); itr != pl.end(); ++itr)
334 if (Player* p = itr->GetSource())
335 if (p->IsAlive() && p != me->GetVictim() && p->GetGUID() != _offtankGUID && !p->IsGameMaster() && p->GetDistance(me) < 70.0f)
336 {
337 float th = me->GetThreatMgr().getThreatWithoutTemp(p);
338 if (!target || th > maxThreat)
339 {
340 target = p;
341 maxThreat = th;
342 }
343 }
344
345 if (target)
346 {
347 me->CastSpell(target, SPELL_VAMPIRIC_BITE, false);
348 me->CastSpell((Unit*)nullptr, SPELL_VAMPIRIC_BITE_DUMMY, true);
350 SetGUID(target->GetGUID(), GUID_VAMPIRE);
353 }
354 }
355 break;
357 if (me->GetVictim())
358 {
359 std::list<Player*> myList;
360 const Map::PlayerList& pl = me->GetMap()->GetPlayers();
361 for (Map::PlayerList::const_iterator itr = pl.begin(); itr != pl.end(); ++itr)
362 if (Player* p = itr->GetSource())
363 if (p->IsAlive() && p != me->GetVictim() && !p->IsGameMaster() && !p->HasAura(SPELL_UNCONTROLLABLE_FRENZY))
364 myList.push_back(p);
365 if (!myList.empty())
366 {
368 Player* target = myList.front();
369 if (me->GetVictim()->GetGUID() != _tankGUID || target->GetGUID() != _offtankGUID)
370 {
371 // remove manually from previous, single target flag has nothing to do with this as caster is in every case different.
372 if (_tankGUID)
373 if (Player* prevTank = ObjectAccessor::GetPlayer(*me, _tankGUID))
374 {
376 prevTank->RemoveAurasDueToSpell(SPELL_BLOOD_MIRROR_VISUAL);
377 }
378 if (_offtankGUID)
379 if (Player* prevOfftank = ObjectAccessor::GetPlayer(*me, _offtankGUID))
380 prevOfftank->RemoveAurasDueToSpell(SPELL_BLOOD_MIRROR_DUMMY);
381
382 if (target->GetDistance(me->GetVictim()) > 39.0f || me->GetDistance(me->GetVictim()) > 39.0f)
383 {
386 events.ScheduleEvent(EVENT_BLOOD_MIRROR, 2500ms);
387 break;
388 }
389
391 _offtankGUID = target->GetGUID();
395
399 }
400 }
401 }
402 events.ScheduleEvent(EVENT_BLOOD_MIRROR, 2500ms);
403 break;
406 {
407 Unit* target = nullptr;
408 if (_offtankGUID)
410 if (t->IsAlive() && t->GetDistance(me) < 10.0f)
411 target = t;
412 if (!target)
413 if (me->GetVictim() && me->GetVictim()->GetDistance(me) < 10.0f)
414 target = me->GetVictim();
415 if (!target)
416 {
417 events.ScheduleEvent(EVENT_DELIRIOUS_SLASH, 5s);
418 break;
419 }
420 me->CastSpell(target, SPELL_DELIRIOUS_SLASH, false);
421 events.ScheduleEvent(EVENT_DELIRIOUS_SLASH, 20s, 24s);
422 break;
423 }
424 events.ScheduleEvent(EVENT_DELIRIOUS_SLASH, 5s);
425 break;
428 {
429 std::list<Player*> myList;
430 const Map::PlayerList& pl = me->GetMap()->GetPlayers();
431 for (Map::PlayerList::const_iterator itr = pl.begin(); itr != pl.end(); ++itr)
432 if (Player* p = itr->GetSource())
433 if (p->IsAlive() && p != me->GetVictim() && p->GetGUID() != _offtankGUID && !p->IsGameMaster() && p->GetDistance(me) < 100.0f && !p->HasAura(SPELL_UNCONTROLLABLE_FRENZY))
434 myList.push_back(p);
436 if (myList.size() > 1)
437 {
439 for (std::list<Player*>::iterator itr = myList.begin(); itr != myList.end(); ++itr)
441 events.ScheduleEvent(EVENT_PACT_OF_THE_DARKFALLEN, 30s);
442 }
443 else
444 events.ScheduleEvent(EVENT_PACT_OF_THE_DARKFALLEN, 5s);
445 break;
446 }
447 events.ScheduleEvent(EVENT_PACT_OF_THE_DARKFALLEN, 5s);
448 break;
451 {
452 std::list<Player*> myList;
453 const Map::PlayerList& pl = me->GetMap()->GetPlayers();
454 for (Map::PlayerList::const_iterator itr = pl.begin(); itr != pl.end(); ++itr)
455 if (Player* p = itr->GetSource())
456 if (p->IsAlive() && p != me->GetVictim() && p->GetGUID() != _offtankGUID && !p->IsGameMaster() && !p->HasAura(SPELL_PACT_OF_THE_DARKFALLEN) && !p->HasAura(SPELL_UNCONTROLLABLE_FRENZY))
457 myList.push_back(p);
458
459 if (!myList.empty())
460 {
462 Player* target = myList.front();
465 me->CastSpell(target, SPELL_SWARMING_SHADOWS, false);
466 }
467
468 events.ScheduleEvent(EVENT_SWARMING_SHADOWS, 30s);
469 break;
470 }
471 events.ScheduleEvent(EVENT_SWARMING_SHADOWS, 5s);
472 break;
475 {
476 std::list<Player*> myList;
477 const Map::PlayerList& pl = me->GetMap()->GetPlayers();
478 for (Map::PlayerList::const_iterator itr = pl.begin(); itr != pl.end(); ++itr)
479 if (Player* p = itr->GetSource())
480 if (p->IsAlive() && p != me->GetVictim() && p->GetGUID() != _offtankGUID && !p->IsGameMaster() && !p->HasAura(SPELL_PACT_OF_THE_DARKFALLEN) && !p->HasAura(SPELL_UNCONTROLLABLE_FRENZY))
481 myList.push_back(p);
482
484 for (std::list<Player*>::iterator itr = myList.begin(); itr != myList.end(); ++itr)
487 events.ScheduleEvent(EVENT_TWILIGHT_BLOODBOLT, 10s, 15s);
488 break;
489 }
490 events.ScheduleEvent(EVENT_TWILIGHT_BLOODBOLT, 5s);
491 break;
492 case EVENT_AIR_PHASE:
493 me->AttackStop();
496 break;
500 me->DisableSpline();
501 me->SetCanFly(true);
502 me->SetDisableGravity(true);
504 me->GetMotionMaster()->MoveTakeoff(POINT_AIR, airPos, 0.642857f * 7.0f);
505 break;
507 me->GetMotionMaster()->MoveLand(POINT_GROUND, centerPos, 0.642857f * 7.0f);
508 break;
509 }
510
512 }
std::uint32_t uint32
Definition: Define.h:108
@ REACT_PASSIVE
Definition: Unit.h:1035
@ UNIT_STATE_CASTING
Definition: Unit.h:340
@ QUEST_STATUS_INCOMPLETE
Definition: QuestDef.h:103
@ TRIGGERED_FULL_MASK
Will return SPELL_FAILED_DONT_REPORT in CheckCast functions.
Definition: SpellDefines.h:148
Position const centerPos
Definition: boss_blood_queen_lana_thel.cpp:133
@ SPELL_SWARMING_SHADOWS
Definition: boss_blood_queen_lana_thel.cpp:65
@ SPELL_VAMPIRIC_BITE
Definition: boss_blood_queen_lana_thel.cpp:49
@ SPELL_PRESENCE_OF_THE_DARKFALLEN_DUMMY
Definition: boss_blood_queen_lana_thel.cpp:55
@ SPELL_VAMPIRIC_BITE_DUMMY
Definition: boss_blood_queen_lana_thel.cpp:50
@ SPELL_TWILIGHT_BLOODBOLT
Definition: boss_blood_queen_lana_thel.cpp:67
@ SPELL_DELIRIOUS_SLASH
Definition: boss_blood_queen_lana_thel.cpp:61
@ SPELL_TWILIGHT_BLOODBOLT_TARGET
Definition: boss_blood_queen_lana_thel.cpp:66
@ SPELL_PRESENCE_OF_THE_DARKFALLEN_SE
Definition: boss_blood_queen_lana_thel.cpp:57
@ EMOTE_BERSERK_RAID
Definition: boss_blood_queen_lana_thel.cpp:42
@ SAY_PACT_OF_THE_DARKFALLEN
Definition: boss_blood_queen_lana_thel.cpp:36
@ SAY_SWARMING_SHADOWS
Definition: boss_blood_queen_lana_thel.cpp:34
@ SAY_BERSERK
Definition: boss_blood_queen_lana_thel.cpp:40
@ EMOTE_SWARMING_SHADOWS
Definition: boss_blood_queen_lana_thel.cpp:35
@ SAY_VAMPIRIC_BITE
Definition: boss_blood_queen_lana_thel.cpp:31
@ QUEST_BLOOD_INFUSION
Definition: boss_blood_queen_lana_thel.cpp:76
@ SPELL_GUSHING_WOUND
Definition: boss_blood_queen_lana_thel.cpp:78
@ SPELL_THIRST_QUENCHED
Definition: boss_blood_queen_lana_thel.cpp:79
Position const airPos
Definition: boss_blood_queen_lana_thel.cpp:134
@ SPELL_UNSATED_CRAVING
Definition: icecrown_citadel.h:70
#define SPELL_BERSERK
Definition: boss_ignis.cpp:41
void RandomResize(C &container, std::size_t requestedSize)
Definition: Containers.h:81
Unit * GetUnit(WorldObject const &, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:202
Player * GetPlayer(Map const *, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:223
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:39
bool UpdateVictim()
Definition: CreatureAI.cpp:268
float getThreatWithoutTemp(Unit *victim, bool alsoSearchOfflineList=false)
Definition: ThreatMgr.cpp:538
bool HasReactState(ReactStates state) const
Definition: Creature.h:92
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:106
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1245
Definition: Object.h:682
QuestStatus GetQuestStatus(uint32 quest_id) const
Definition: PlayerQuest.cpp:1416
void DisableSpline()
Definition: Unit.cpp:655
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:4855
bool HasUnitState(const uint32 f) const
Definition: Unit.h:1410
ThreatMgr & GetThreatMgr()
Definition: Unit.h:2159
bool AttackStop()
Definition: Unit.cpp:10407
void MoveTakeoff(uint32 id, Position const &pos, float speed=0.0f)
Definition: MotionMaster.cpp:497
void MoveLand(uint32 id, Position const &pos, float speed=0.0f)
Definition: MotionMaster.cpp:467
void SetGUID(ObjectGuid guid, int32 type=0) override
Definition: boss_blood_queen_lana_thel.cpp:539

References _offtankGUID, _tankGUID, airPos, Unit::AttackStop(), MapRefMgr::begin(), Unit::CastSpell(), centerPos, ObjectGuid::Clear(), Unit::DisableSpline(), UnitAI::DoMeleeAttackIfReady(), EMOTE_BERSERK_RAID, EMOTE_SWARMING_SHADOWS, MapRefMgr::end(), EVENT_AIR_FLY_DOWN, EVENT_AIR_PHASE, EVENT_AIR_START_FLYING, EVENT_BERSERK, EVENT_BLOOD_MIRROR, EVENT_DELIRIOUS_SLASH, EVENT_PACT_OF_THE_DARKFALLEN, EVENT_SWARMING_SHADOWS, EVENT_TWILIGHT_BLOODBOLT, EVENT_VAMPIRIC_BITE, WorldObject::GetDistance(), Object::GetGUID(), WorldObject::GetMap(), Unit::GetMotionMaster(), ObjectAccessor::GetPlayer(), Map::GetPlayers(), Player::GetQuestStatus(), Unit::GetThreatMgr(), ThreatMgr::getThreatWithoutTemp(), ObjectAccessor::GetUnit(), Unit::GetVictim(), GUID_VAMPIRE, Unit::HasAura(), Creature::HasReactState(), Unit::HasUnitState(), ScriptedAI::Is25ManRaid(), ScriptedAI::me, MotionMaster::MoveIdle(), MotionMaster::MoveLand(), MotionMaster::MovePoint(), MotionMaster::MoveTakeoff(), POINT_AIR, POINT_CENTER, POINT_GROUND, QUEST_BLOOD_INFUSION, QUEST_STATUS_INCOMPLETE, Acore::Containers::RandomResize(), REACT_PASSIVE, Unit::RemoveAurasDueToSpell(), SAY_BERSERK, SAY_PACT_OF_THE_DARKFALLEN, SAY_SWARMING_SHADOWS, SAY_VAMPIRIC_BITE, Unit::SendMeleeAttackStop(), Unit::SendMovementFlagUpdate(), Creature::SetCanFly(), Creature::SetDisableGravity(), SetGUID(), Creature::SetReactState(), SPELL_BERSERK, SPELL_BLOOD_MIRROR_DAMAGE, SPELL_BLOOD_MIRROR_DUMMY, SPELL_BLOOD_MIRROR_VISUAL, SPELL_DELIRIOUS_SLASH, SPELL_GUSHING_WOUND, SPELL_PACT_OF_THE_DARKFALLEN, SPELL_PRESENCE_OF_THE_DARKFALLEN_DUMMY, SPELL_PRESENCE_OF_THE_DARKFALLEN_SE, SPELL_SWARMING_SHADOWS, SPELL_THIRST_QUENCHED, SPELL_TWILIGHT_BLOODBOLT, SPELL_TWILIGHT_BLOODBOLT_TARGET, SPELL_UNCONTROLLABLE_FRENZY, SPELL_UNSATED_CRAVING, SPELL_VAMPIRIC_BITE, SPELL_VAMPIRIC_BITE_DUMMY, TRIGGERED_FULL_MASK, UNIT_STATE_CASTING, and CreatureAI::UpdateVictim().

◆ WasBloodbolted()

bool boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::WasBloodbolted ( ObjectGuid  guid)
inline
535 {
536 return _bloodboltedPlayers.count(guid) != 0;
537 }

References _bloodboltedPlayers.

Referenced by BloodboltHitCheck::operator()().

◆ WasVampire()

bool boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::WasVampire ( ObjectGuid  guid)
inline
530 {
531 return _vampires.count(guid) != 0;
532 }

References _vampires.

Member Data Documentation

◆ _bloodboltedPlayers

GuidSet boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::_bloodboltedPlayers

◆ _creditBloodQuickening

bool boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::_creditBloodQuickening

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

◆ _killMinchar

bool boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::_killMinchar

Referenced by DoAction(), EnterEvadeMode(), and Reset().

◆ _offtankGUID

ObjectGuid boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::_offtankGUID

Referenced by Reset(), and UpdateAI().

◆ _tankGUID

ObjectGuid boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::_tankGUID

Referenced by Reset(), and UpdateAI().

◆ _vampires

GuidSet boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::_vampires

Referenced by Reset(), SetGUID(), and WasVampire().

◆ bEnteredCombat

bool boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::bEnteredCombat