TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boss_prince_taldaram_icc::boss_prince_taldaramAI Struct Reference

Public Member Functions

 boss_prince_taldaramAI (Creature *creature)
 
void InitializeAI () override
 
void Reset () override
 
void EnterCombat (Unit *) override
 
void JustDied (Unit *) override
 
void JustReachedHome () override
 
void JustRespawned () override
 
void SpellHit (Unit *, SpellInfo const *spell) override
 
void JustSummoned (Creature *summon) override
 
void DamageDealt (Unit *, uint32 &damage, DamageEffectType damageType) override
 
void DamageTaken (Unit *attacker, uint32 &damage) override
 
void KilledUnit (Unit *victim) override
 
void DoAction (int32 action) override
 
bool CheckInRoom () override
 
void UpdateAI (uint32 diff) override
 
- Public Member Functions inherited from BossAI
 BossAI (Creature *creature, uint32 bossId)
 
virtual ~BossAI ()
 
void SummonedCreatureDespawn (Creature *summon) override
 
virtual void ExecuteEvent (uint32)
 
virtual void ScheduleTasks ()
 
bool CanAIAttack (Unit const *target) const override
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
virtual ~ScriptedAI ()
 
void AttackStartNoMove (Unit *target)
 
void SpellHitTarget (Unit *, SpellInfo const *) override
 
void OnPossess (bool)
 
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 DoResetThreat ()
 
float DoGetThreat (Unit *unit)
 
void DoModifyThreatPercent (Unit *unit, int32 pct)
 
void DoTeleportTo (float x, float y, float z, uint32 time=0)
 
void DoTeleportTo (float const pos[4])
 
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 HealthBelowPct (uint32 pct) const
 
bool HealthAbovePct (uint32 pct) const
 
SpellInfo constSelectSpell (Unit *target, uint32 school, uint32 mechanic, SelectTargetType targets, 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
 
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
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr)
 
 CreatureAI (Creature *creature)
 
virtual ~CreatureAI ()
 
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 IsSummonedBy (Unit *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted () const
 
virtual void MovementInform (uint32, uint32)
 
void OnCharmed (bool apply) override
 
void DoZoneInCombat (Creature *creature=NULL, float maxRangeToNearestTarget=50.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 void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
int32 VisualizeBoundary (uint32 duration, Unit *owner=nullptr, bool fill=false) const
 
CreatureBoundary constGetBoundary () const
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
UnitSelectTarget (SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectAggroTarget targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectAggroTarget targetType, float dist=0.0f, bool playerOnly=false, int32 aura=0)
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, PREDICATE const &predicate, uint32 maxTargets, SelectAggroTarget targetType)
 
virtual void HealReceived (Unit *, uint32 &)
 
virtual void HealDone (Unit *, uint32 &)
 
virtual void SpellInterrupted (uint32, uint32)
 
void AttackStartCaster (Unit *victim, float dist)
 
void DoCast (uint32 spellId)
 
void DoCast (Unit *victim, uint32 spellId, bool triggered=false)
 
void DoCastVictim (uint32 spellId, bool triggered=false)
 
void DoCastAOE (uint32 spellId, bool triggered=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spellId)
 
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 sQuestReward (Player *, Quest const *, uint32)
 
virtual bool sOnDummyEffect (Unit *, uint32, SpellEffIndex)
 
virtual void sOnGameEvent (bool, uint16)
 

Private Attributes

uint32 _spawnHealth
 
bool _isEmpowered
 

Additional Inherited Members

- Public Types inherited from CreatureAI
enum  EvadeReason { EVADE_REASON_NO_HOSTILES, EVADE_REASON_BOUNDARY, EVADE_REASON_SEQUENCE_BREAK, EVADE_REASON_OTHER }
 
- Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
 
- Public Attributes inherited from BossAI
InstanceScript *const instance
 
- Public Attributes inherited from ScriptedAI
bool IsFleeing
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from BossAI
void _Reset ()
 
void _EnterCombat ()
 
void _JustDied ()
 
void _JustReachedHome ()
 
void _DespawnAtEvade ()
 
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 CheckBoundary (Position const *who=nullptr) const
 
void SetBoundary (CreatureBoundary const *boundary)
 
virtual void MoveInLineOfSight (Unit *)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from BossAI
EventMap events
 
SummonList summons
 
TaskScheduler scheduler
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
CreatureBoundary const_boundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Constructor & Destructor Documentation

boss_prince_taldaram_icc::boss_prince_taldaramAI::boss_prince_taldaramAI ( Creature creature)
inline
585  : BossAI(creature, DATA_BLOOD_PRINCE_COUNCIL)
586  {
587  _isEmpowered = false;
588  _spawnHealth = creature->GetMaxHealth();
589  }
uint32 GetMaxHealth() const
Definition: Unit.h:1427
Definition: icecrown_citadel.h:82
bool _isEmpowered
Definition: boss_blood_prince_council.cpp:785
uint32 _spawnHealth
Definition: boss_blood_prince_council.cpp:784
BossAI(Creature *creature, uint32 bossId)
Definition: ScriptedCreature.cpp:444

+ Here is the call graph for this function:

Member Function Documentation

bool boss_prince_taldaram_icc::boss_prince_taldaramAI::CheckInRoom ( )
inlineoverridevirtual

Reimplemented from CreatureAI.

724  {
725  if (!CheckBoundary(me))
726  {
727  EnterEvadeMode();
729  keleseth->AI()->EnterEvadeMode();
730 
732  valanar->AI()->EnterEvadeMode();
733 
734  return false;
735  }
736 
737  return true;
738  }
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition: CreatureAI.cpp:168
Definition: icecrown_citadel.h:96
Definition: Creature.h:467
Creature *const me
Definition: CreatureAI.h:71
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: icecrown_citadel.h:98
bool CheckBoundary(Position const *who=nullptr) const
Definition: CreatureAI.cpp:353
InstanceScript *const instance
Definition: ScriptedCreature.h:340

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_prince_taldaram_icc::boss_prince_taldaramAI::DamageDealt ( Unit ,
uint32 damage,
DamageEffectType  damageType 
)
inlineoverridevirtual

Reimplemented from UnitAI.

672  {
673  if (damageType != SPELL_DIRECT_DAMAGE)
674  return;
675 
676  if (damage > RAID_MODE<uint32>(23000, 25000, 23000, 25000))
678  }
Definition: icecrown_citadel.h:95
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52
uint32_t uint32
Definition: g3dmath.h:168
Definition: Unit.h:663
InstanceScript *const instance
Definition: ScriptedCreature.h:340

+ Here is the call graph for this function:

void boss_prince_taldaram_icc::boss_prince_taldaramAI::DamageTaken ( Unit attacker,
uint32 damage 
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

681  {
682  if (!_isEmpowered)
683  {
684  me->AddThreat(attacker, float(damage));
685  damage = 0;
686  }
687  }
void AddThreat(Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=NULL)
Definition: Unit.cpp:10691
bool _isEmpowered
Definition: boss_blood_prince_council.cpp:785
Creature *const me
Definition: CreatureAI.h:71

+ Here is the call graph for this function:

void boss_prince_taldaram_icc::boss_prince_taldaramAI::DoAction ( int32  action)
inlineoverridevirtual

Reimplemented from UnitAI.

696  {
697  switch (action)
698  {
699  case ACTION_STAND_UP:
704  me->ForceValuesUpdateAtIndex(UNIT_NPC_FLAGS); // was in sniff. don't ask why
706  break;
710  _isEmpowered = true;
711  break;
716  _isEmpowered = false;
717  break;
718  default:
719  break;
720  }
721  }
EventProcessor m_Events
Definition: Unit.h:1948
void AddEvent(BasicEvent *Event, uint64 e_time, bool set_addtime=true)
Definition: EventProcessor.cpp:88
Definition: boss_blood_prince_council.cpp:141
Definition: UpdateFields.h:110
Definition: SharedDefines.h:4206
Definition: Unit.h:681
Definition: boss_blood_prince_council.cpp:140
bool _isEmpowered
Definition: boss_blood_prince_council.cpp:785
Definition: boss_blood_prince_council.cpp:60
Creature *const me
Definition: CreatureAI.h:71
uint64 CalculateTime(uint64 t_offset) const
Definition: EventProcessor.cpp:95
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
Definition: boss_blood_prince_council.cpp:40
Definition: Unit.h:711
Definition: boss_blood_prince_council.cpp:158
Definition: boss_blood_prince_council.cpp:142
void ForceValuesUpdateAtIndex(uint32)
Definition: Object.cpp:2138
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:3586
Definition: boss_blood_prince_council.cpp:62
Definition: UpdateFields.h:109
Definition: UpdateFields.h:135
Definition: UpdateFields.h:30
uint32 _spawnHealth
Definition: boss_blood_prince_council.cpp:784
void SetHealth(uint32 val)
Definition: Unit.cpp:11537
Definition: boss_blood_prince_council.cpp:80
Definition: Unit.h:698

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_prince_taldaram_icc::boss_prince_taldaramAI::EnterCombat ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

613  {
615  DoZoneInCombat(controller);
616 
620  if (IsHeroic())
622  }
Definition: boss_blood_prince_council.cpp:65
void DoZoneInCombat(Creature *creature=NULL, float maxRangeToNearestTarget=50.0f)
Definition: CreatureAI.cpp:47
Aura * AddAura(uint32 spellId, Unit *target)
Definition: Unit.cpp:14463
bool IsHeroic() const
Definition: ScriptedCreature.h:268
Definition: boss_blood_prince_council.cpp:120
Definition: Creature.h:467
Creature *const me
Definition: CreatureAI.h:71
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: boss_blood_prince_council.cpp:127
Definition: icecrown_citadel.h:99
EventMap events
Definition: ScriptedCreature.h:371
Definition: boss_blood_prince_council.cpp:128
InstanceScript *const instance
Definition: ScriptedCreature.h:340

+ Here is the call graph for this function:

void boss_prince_taldaram_icc::boss_prince_taldaramAI::InitializeAI ( )
inlineoverridevirtual

Reimplemented from UnitAI.

592  {
593  if (CreatureData const* data = sObjectMgr->GetCreatureData(me->GetSpawnId()))
594  if (data->curhealth)
595  _spawnHealth = data->curhealth;
596 
597  if (!me->isDead())
598  JustRespawned();
599  }
Definition: Creature.h:287
void JustRespawned() override
Definition: boss_blood_prince_council.cpp:645
ObjectGuid::LowType GetSpawnId() const
Definition: Creature.h:487
#define sObjectMgr
Definition: ObjectMgr.h:1567
Creature *const me
Definition: CreatureAI.h:71
bool isDead() const
Definition: Unit.h:1694
uint32 _spawnHealth
Definition: boss_blood_prince_council.cpp:784

+ Here is the call graph for this function:

void boss_prince_taldaram_icc::boss_prince_taldaramAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

625  {
626  events.Reset();
628 
631  }
Definition: InstanceScript.h:46
void DespawnAll()
Definition: ScriptedCreature.cpp:66
void Reset()
Definition: EventMap.cpp:20
void SendEncounterUnit(uint32 type, Unit *unit=NULL, uint8 param1=0, uint8 param2=0)
Definition: InstanceScript.cpp:575
Creature *const me
Definition: CreatureAI.h:71
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
SummonList summons
Definition: ScriptedCreature.h:372
Definition: boss_blood_prince_council.cpp:46
EventMap events
Definition: ScriptedCreature.h:371
InstanceScript *const instance
Definition: ScriptedCreature.h:340

+ Here is the call graph for this function:

void boss_prince_taldaram_icc::boss_prince_taldaramAI::JustReachedHome ( )
inlineoverridevirtual

Reimplemented from BossAI.

634  {
637  _isEmpowered = false;
639  {
641  controller->AI()->SetData(0, 1);
642  }
643  }
Definition: InstanceScript.h:46
Definition: Unit.h:674
Definition: Creature.h:467
void SetFlag(uint16 index, uint32 newFlag)
Definition: Object.cpp:1199
bool _isEmpowered
Definition: boss_blood_prince_council.cpp:785
void SendEncounterUnit(uint32 type, Unit *unit=NULL, uint8 param1=0, uint8 param2=0)
Definition: InstanceScript.cpp:575
Creature *const me
Definition: CreatureAI.h:71
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: UpdateFields.h:109
Definition: icecrown_citadel.h:99
uint32 _spawnHealth
Definition: boss_blood_prince_council.cpp:784
void SetHealth(uint32 val)
Definition: Unit.cpp:11537
InstanceScript *const instance
Definition: ScriptedCreature.h:340

+ Here is the call graph for this function:

void boss_prince_taldaram_icc::boss_prince_taldaramAI::JustRespawned ( )
inlineoverridevirtual

Reimplemented from CreatureAI.

646  {
649  }
Definition: boss_blood_prince_council.cpp:60
Creature *const me
Definition: CreatureAI.h:71
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
uint32 _spawnHealth
Definition: boss_blood_prince_council.cpp:784
void SetHealth(uint32 val)
Definition: Unit.cpp:11537

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_prince_taldaram_icc::boss_prince_taldaramAI::JustSummoned ( Creature summon)
inlineoverridevirtual

Reimplemented from BossAI.

658  {
659  summons.Summon(summon);
660  Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 1, -10.0f, true); // first try at distance
661  if (!target)
662  target = SelectTarget(SELECT_TARGET_RANDOM, 0, 0.0f, true); // too bad for you raiders, its going to boom
663 
664  if (summon->GetEntry() == NPC_BALL_OF_INFERNO_FLAME && target)
665  Talk(EMOTE_TALDARAM_FLAME, target);
666 
667  if (target)
668  summon->AI()->SetGUID(target->GetGUID());
669  }
void Summon(Creature const *summon)
Definition: ScriptedCreature.h:92
virtual void SetGUID(ObjectGuid, int32=0)
Definition: UnitAI.h:141
Definition: UnitAI.h:35
Definition: icecrown_citadel.h:247
CreatureAI * AI() const
Definition: Creature.h:525
Unit * SelectTarget(SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
Definition: UnitAI.cpp:91
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
SummonList summons
Definition: ScriptedCreature.h:372
ObjectGuid const & GetGUID() const
Definition: Object.h:105
uint32 GetEntry() const
Definition: Object.h:107
Definition: boss_blood_prince_council.cpp:43
Definition: Unit.h:1305

+ Here is the call graph for this function:

void boss_prince_taldaram_icc::boss_prince_taldaramAI::KilledUnit ( Unit victim)
inlineoverridevirtual

Reimplemented from ScriptedAI.

690  {
691  if (victim->GetTypeId() == TYPEID_PLAYER)
693  }
TypeID GetTypeId() const
Definition: Object.h:113
Definition: boss_blood_prince_council.cpp:44
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
Definition: ObjectGuid.h:33

+ Here is the call graph for this function:

void boss_prince_taldaram_icc::boss_prince_taldaramAI::Reset ( )
inlineoverridevirtual

Reimplemented from BossAI.

602  {
603  events.Reset();
605 
607  _isEmpowered = false;
610  }
void DespawnAll()
Definition: ScriptedCreature.cpp:66
void Reset()
Definition: EventMap.cpp:20
Definition: icecrown_citadel.h:95
Definition: Unit.h:681
bool _isEmpowered
Definition: boss_blood_prince_council.cpp:785
Creature *const me
Definition: CreatureAI.h:71
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52
SummonList summons
Definition: ScriptedCreature.h:372
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
Definition: UpdateFields.h:109
EventMap events
Definition: ScriptedCreature.h:371
uint32 _spawnHealth
Definition: boss_blood_prince_council.cpp:784
uint32_t uint32
Definition: g3dmath.h:168
void SetHealth(uint32 val)
Definition: Unit.cpp:11537
InstanceScript *const instance
Definition: ScriptedCreature.h:340

+ Here is the call graph for this function:

void boss_prince_taldaram_icc::boss_prince_taldaramAI::SpellHit ( Unit ,
SpellInfo const spell 
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

652  {
653  if (spell->Id == SPELL_INVOCATION_OF_BLOOD_TALDARAM)
655  }
Definition: boss_blood_prince_council.cpp:141
void DoAction(int32 action) override
Definition: boss_blood_prince_council.cpp:695
Definition: boss_blood_prince_council.cpp:80

+ Here is the call graph for this function:

void boss_prince_taldaram_icc::boss_prince_taldaramAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from BossAI.

741  {
742  if (!UpdateVictim() || !CheckInRoom())
743  return;
744 
745  events.Update(diff);
746 
748  return;
749 
750  while (uint32 eventId = events.ExecuteEvent())
751  {
752  switch (eventId)
753  {
754  case EVENT_BERSERK:
757  break;
761  break;
762  case EVENT_CONJURE_FLAME:
763  if (_isEmpowered)
764  {
767  }
768  else
769  {
772  }
774  break;
775  default:
776  break;
777  }
778  }
779 
781  }
Definition: boss_blood_prince_council.cpp:82
bool UpdateVictim()
Definition: CreatureAI.cpp:233
Definition: Unit.h:565
bool CheckInRoom() override
Definition: boss_blood_prince_council.cpp:723
Definition: boss_blood_prince_council.cpp:120
bool _isEmpowered
Definition: boss_blood_prince_council.cpp:785
Creature *const me
Definition: CreatureAI.h:71
Definition: boss_blood_prince_council.cpp:83
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
uint32_t uint32
Definition: Define.h:150
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
#define SPELL_BERSERK
Definition: boss_four_horsemen.cpp:74
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
void Update(uint32 time)
Definition: EventMap.h:54
Definition: boss_blood_prince_council.cpp:81
Definition: boss_blood_prince_council.cpp:127
uint32 ExecuteEvent()
Definition: EventMap.cpp:46
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:49
bool HasUnitState(const uint32 f) const
Definition: Unit.h:1395
Definition: boss_blood_prince_council.cpp:42
EventMap events
Definition: ScriptedCreature.h:371
void DoCastVictim(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:159
Definition: boss_blood_prince_council.cpp:45
Definition: boss_blood_prince_council.cpp:128

+ Here is the call graph for this function:

Member Data Documentation

bool boss_prince_taldaram_icc::boss_prince_taldaramAI::_isEmpowered
private
uint32 boss_prince_taldaram_icc::boss_prince_taldaramAI::_spawnHealth
private

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