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

Public Member Functions

 boss_archimondeAI (Creature *creature)
 
void Initialize ()
 
void InitializeAI () override
 
void Reset () override
 
void EnterCombat (Unit *) override
 
void ExecuteEvent (uint32 eventId) override
 
void DamageTaken (Unit *, uint32 &damage) override
 
void KilledUnit (Unit *victim) override
 
void JustReachedHome () override
 
void JustDied (Unit *) override
 
void JustSummoned (Creature *summoned) override
 
void DoAction (int32 actionId) override
 
void SummonDoomfire (Unit *target)
 
- Public Member Functions inherited from BossAI
 BossAI (Creature *creature, uint32 bossId)
 
virtual ~BossAI ()
 
void SummonedCreatureDespawn (Creature *summon) override
 
virtual void UpdateAI (uint32 diff) override
 
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 SpellHit (Unit *, SpellInfo const *) override
 
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 JustRespawned ()
 
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
 
virtual bool CheckInRoom ()
 
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 DamageDealt (Unit *, uint32 &, DamageEffectType)
 
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

ObjectGuid DoomfireSpiritGUID
 
uint8 SoulChargeCount
 
uint8 WispCount
 
uint32 _chargeSpell
 
uint32 _unleashSpell
 
bool Enraged
 
bool HasProtected
 

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_archimonde::boss_archimondeAI::boss_archimondeAI ( Creature creature)
inline
269  : BossAI(creature, DATA_ARCHIMONDE)
270  {
271  Initialize();
272  }
void Initialize()
Definition: boss_archimonde.cpp:274
Definition: hyjal.h:30
BossAI(Creature *creature, uint32 bossId)
Definition: ScriptedCreature.cpp:444

+ Here is the call graph for this function:

Member Function Documentation

void boss_archimonde::boss_archimondeAI::DamageTaken ( Unit ,
uint32 damage 
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

401  {
402  if (me->HealthBelowPctDamaged(10, damage))
403  {
404  if (!Enraged)
406 
407  if (!HasProtected)
408  {
409  me->GetMotionMaster()->Clear(false);
411 
412  // All members of raid must get this buff
414  HasProtected = true;
416  }
417  }
418  }
void DoCastAOE(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:167
void MoveIdle()
Definition: MotionMaster.cpp:185
void Clear(bool reset=true)
Definition: MotionMaster.h:138
bool HealthBelowPctDamaged(int32 pct, uint32 damage) const
Definition: Unit.h:1431
Definition: boss_archimonde.cpp:79
Definition: boss_archimonde.cpp:48
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
bool Enraged
Definition: boss_archimonde.cpp:527
Creature *const me
Definition: CreatureAI.h:71
bool HasProtected
Definition: boss_archimonde.cpp:528
Definition: boss_archimonde.cpp:91
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
EventMap events
Definition: ScriptedCreature.h:371
void DoAction(int32 actionId) override
Definition: boss_archimonde.cpp:488

+ Here is the call graph for this function:

void boss_archimonde::boss_archimondeAI::DoAction ( int32  actionId)
inlineoverridevirtual

Reimplemented from UnitAI.

489  {
490  switch (actionId)
491  {
492  case ACTION_ENRAGE:
493  me->GetMotionMaster()->Clear(false);
495  Enraged = true;
496  Talk(SAY_ENRAGE);
497  break;
500  break;
501  default:
502  break;
503  }
504  }
void DoCastAOE(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:167
void MoveIdle()
Definition: MotionMaster.cpp:185
void Clear(bool reset=true)
Definition: MotionMaster.h:138
Definition: boss_archimonde.cpp:92
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
bool Enraged
Definition: boss_archimonde.cpp:527
Creature *const me
Definition: CreatureAI.h:71
Definition: boss_archimonde.cpp:91
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
Definition: boss_archimonde.cpp:38
Definition: boss_archimonde.cpp:50

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_archimonde::boss_archimondeAI::EnterCombat ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

301  {
302  Talk(SAY_AGGRO);
303  _EnterCombat();
312  }
void _EnterCombat()
Definition: ScriptedCreature.cpp:480
Definition: boss_archimonde.cpp:74
Definition: boss_archimonde.cpp:73
Definition: boss_archimonde.cpp:71
Definition: boss_archimonde.cpp:34
Definition: boss_archimonde.cpp:77
Definition: boss_archimonde.cpp:78
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
Definition: boss_archimonde.cpp:72
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Definition: boss_archimonde.cpp:75
EventMap events
Definition: ScriptedCreature.h:371
Definition: boss_archimonde.cpp:76

+ Here is the call graph for this function:

void boss_archimonde::boss_archimondeAI::ExecuteEvent ( uint32  eventId)
inlineoverridevirtual

Reimplemented from BossAI.

315  {
316  switch (eventId)
317  {
318  case EVENT_HAND_OF_DEATH:
321  break;
323  _chargeSpell = 0;
324  _unleashSpell = 0;
325  me->InterruptNonMeleeSpells(false);
326  switch (urand(0, 2))
327  {
328  case 0:
331  break;
332  case 1:
335  break;
336  case 2:
339  break;
340  }
341 
342  if (me->HasAura(_chargeSpell))
343  {
346  SoulChargeCount--;
348  }
349  break;
351  if (!SelectTarget(SELECT_TARGET_RANDOM, 0, 5.0f)) // Checks if there are no targets in melee range
352  {
355  }
356  else
358  break;
360  if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))
363  break;
364  case EVENT_AIR_BURST:
366  if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 1))
367  DoCast(target, SPELL_AIR_BURST); //not on tank
368  events.ScheduleEvent(EVENT_AIR_BURST, urand(25000, 40000));
369  break;
370  case EVENT_FEAR:
373  break;
374  case EVENT_DOOMFIRE:
376  if (Unit* temp = SelectTarget(SELECT_TARGET_RANDOM, 1))
377  SummonDoomfire(temp);
378  else
381  break;
383  if (Creature* channelTrigger = instance->GetCreature(DATA_CHANNEL_TARGET))
384  if (me->IsWithinDistInMap(channelTrigger, 75.0f))
387  break;
388  case EVENT_SUMMON_WHISP:
389  DoSpawnCreature(NPC_ANCIENT_WISP, float(rand32() % 40), float(rand32() % 40), 0, 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
390  ++WispCount;
391  if (WispCount >= 30)
394  break;
395  default:
396  break;
397  }
398  }
void SummonDoomfire(Unit *target)
Definition: boss_archimonde.cpp:507
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
Definition: Unit.cpp:4240
Definition: boss_archimonde.cpp:60
Definition: boss_archimonde.cpp:63
void DoCastAOE(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:167
Definition: boss_archimonde.cpp:74
Definition: boss_archimonde.cpp:79
Definition: boss_archimonde.cpp:54
Definition: boss_archimonde.cpp:64
Definition: boss_archimonde.cpp:73
Definition: boss_archimonde.cpp:71
Definition: boss_archimonde.cpp:62
Creature * GetCreature(uint32 type)
Definition: InstanceScript.h:180
Definition: boss_archimonde.cpp:65
void RemoveAuraFromStack(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:3602
Definition: boss_archimonde.cpp:55
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: hyjal.h:48
Definition: Creature.h:467
Definition: boss_archimonde.cpp:53
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true) const
Definition: Object.cpp:1663
uint32 _unleashSpell
Definition: boss_archimonde.cpp:526
uint8 WispCount
Definition: boss_archimonde.cpp:524
Creature *const me
Definition: CreatureAI.h:71
Definition: boss_archimonde.cpp:77
Definition: boss_archimonde.cpp:78
Definition: boss_archimonde.cpp:91
Definition: UnitAI.h:35
Definition: boss_archimonde.cpp:86
Definition: SharedDefines.h:288
Unit * GetVictim() const
Definition: Unit.h:1379
Definition: boss_archimonde.cpp:66
Definition: boss_archimonde.cpp:36
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
Unit * SelectTarget(SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
Definition: UnitAI.cpp:91
Definition: boss_archimonde.cpp:35
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
Definition: boss_archimonde.cpp:72
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
Creature * DoSpawnCreature(uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, uint32 type, uint32 despawntime)
Definition: ScriptedCreature.cpp:177
uint32 _chargeSpell
Definition: boss_archimonde.cpp:525
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Definition: boss_archimonde.cpp:75
Definition: boss_archimonde.cpp:61
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true)
Definition: Unit.cpp:2916
uint32 rand32()
Definition: Random.cpp:64
EventMap events
Definition: ScriptedCreature.h:371
Definition: Unit.h:662
void DoCastVictim(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:159
uint32 GetHealth() const
Definition: Unit.h:1426
Definition: Unit.h:1305
Definition: boss_archimonde.cpp:56
uint32 DealDamage(Unit *victim, uint32 damage, CleanDamage const *cleanDamage=NULL, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=NULL, bool durabilityLoss=true)
Definition: Unit.cpp:613
void DoAction(int32 actionId) override
Definition: boss_archimonde.cpp:488
uint8 SoulChargeCount
Definition: boss_archimonde.cpp:523
InstanceScript *const instance
Definition: ScriptedCreature.h:340
Definition: boss_archimonde.cpp:76

+ Here is the call graph for this function:

void boss_archimonde::boss_archimondeAI::Initialize ( void  )
inline
275  {
277 
278  SoulChargeCount = 0;
279  WispCount = 0; // When ~30 wisps are summoned, Archimonde dies
280  _unleashSpell = 0;
281  _chargeSpell = 0;
282 
283  Enraged = false;
284  HasProtected = false;
285  }
bool Enraged
Definition: boss_archimonde.cpp:527
uint32 _unleashSpell
Definition: boss_archimonde.cpp:526
uint8 WispCount
Definition: boss_archimonde.cpp:524
bool HasProtected
Definition: boss_archimonde.cpp:528
uint32 _chargeSpell
Definition: boss_archimonde.cpp:525
ObjectGuid DoomfireSpiritGUID
Definition: boss_archimonde.cpp:522
void Clear()
Definition: ObjectGuid.h:215
uint8 SoulChargeCount
Definition: boss_archimonde.cpp:523

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_archimonde::boss_archimondeAI::InitializeAI ( )
inlineoverridevirtual

Reimplemented from UnitAI.

288  {
291  }
Definition: boss_archimonde.cpp:92
virtual void InitializeAI()
Definition: UnitAI.h:130
void DoAction(int32 actionId) override
Definition: boss_archimonde.cpp:488

+ Here is the call graph for this function:

void boss_archimonde::boss_archimondeAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

456  {
457  Talk(SAY_DEATH);
458  _JustDied();
459  // @todo: remove this when instance script gets updated, kept for compatibility only
461  }
Definition: boss_archimonde.cpp:39
Definition: inflate.h:49
void _JustDied()
Definition: ScriptedCreature.cpp:471
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
Definition: hyjal.h:30
InstanceScript *const instance
Definition: ScriptedCreature.h:340

+ Here is the call graph for this function:

void boss_archimonde::boss_archimondeAI::JustReachedHome ( )
inlineoverridevirtual

Reimplemented from BossAI.

451  {
453  }
Definition: boss_archimonde.cpp:92
void DoAction(int32 actionId) override
Definition: boss_archimonde.cpp:488

+ Here is the call graph for this function:

void boss_archimonde::boss_archimondeAI::JustSummoned ( Creature summoned)
inlineoverridevirtual

Reimplemented from BossAI.

464  {
465  switch (summoned->GetEntry())
466  {
467  case NPC_ANCIENT_WISP:
468  summoned->AI()->AttackStart(me);
469  break;
470  case NPC_DOOMFIRE_SPIRIT:
471  DoomfireSpiritGUID = summoned->GetGUID();
472  break;
473  case NPC_DOOMFIRE:
474  summoned->CastSpell(summoned, SPELL_DOOMFIRE_SPAWN, false);
475  summoned->CastSpell(summoned, SPELL_DOOMFIRE, true, 0, 0, me->GetGUID());
476 
477  if (Unit* DoomfireSpirit = ObjectAccessor::GetUnit(*me, DoomfireSpiritGUID))
478  {
479  summoned->GetMotionMaster()->MoveFollow(DoomfireSpirit, 0.0f, 0.0f);
481  }
482  break;
483  default:
484  break;
485  }
486  }
TC_GAME_API Unit * GetUnit(WorldObject const &, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:163
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
Definition: boss_archimonde.cpp:84
Definition: boss_archimonde.cpp:85
Creature *const me
Definition: CreatureAI.h:71
Definition: boss_archimonde.cpp:59
Definition: boss_archimonde.cpp:86
CreatureAI * AI() const
Definition: Creature.h:525
ObjectGuid DoomfireSpiritGUID
Definition: boss_archimonde.cpp:522
void Clear()
Definition: ObjectGuid.h:215
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: boss_archimonde.cpp:58
uint32 GetEntry() const
Definition: Object.h:107
Definition: Unit.h:1305
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:869
virtual void AttackStart(Unit *)
Definition: UnitAI.cpp:29
void MoveFollow(Unit *target, float dist, float angle, MovementSlot slot=MOTION_SLOT_ACTIVE)
Definition: MotionMaster.cpp:265

+ Here is the call graph for this function:

void boss_archimonde::boss_archimondeAI::KilledUnit ( Unit victim)
inlineoverridevirtual

Reimplemented from ScriptedAI.

421  {
422  Talk(SAY_SLAY);
423 
424  if (victim->GetTypeId() == TYPEID_PLAYER)
425  {
426  switch (victim->getClass())
427  {
428  case CLASS_PRIEST:
429  case CLASS_PALADIN:
430  case CLASS_WARLOCK:
431  victim->CastSpell(me, SPELL_SOUL_CHARGE_RED, true);
432  break;
433  case CLASS_MAGE:
434  case CLASS_ROGUE:
435  case CLASS_WARRIOR:
436  victim->CastSpell(me, SPELL_SOUL_CHARGE_YELLOW, true);
437  break;
438  case CLASS_DRUID:
439  case CLASS_SHAMAN:
440  case CLASS_HUNTER:
441  victim->CastSpell(me, SPELL_SOUL_CHARGE_GREEN, true);
442  break;
443  }
444 
446  ++SoulChargeCount;
447  }
448  }
Definition: SharedDefines.h:170
Definition: boss_archimonde.cpp:60
Definition: boss_archimonde.cpp:62
Definition: SharedDefines.h:168
Definition: SharedDefines.h:167
Creature *const me
Definition: CreatureAI.h:71
TypeID GetTypeId() const
Definition: Object.h:113
Definition: SharedDefines.h:171
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
Definition: boss_archimonde.cpp:37
Definition: SharedDefines.h:173
Definition: boss_archimonde.cpp:72
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Definition: SharedDefines.h:174
Definition: ObjectGuid.h:33
Definition: boss_archimonde.cpp:61
Definition: SharedDefines.h:169
uint8 getClass() const
Definition: Unit.h:1413
EventMap events
Definition: ScriptedCreature.h:371
Definition: SharedDefines.h:175
Definition: SharedDefines.h:177
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:869
uint8 SoulChargeCount
Definition: boss_archimonde.cpp:523

+ Here is the call graph for this function:

void boss_archimonde::boss_archimondeAI::Reset ( )
inlineoverridevirtual

Reimplemented from BossAI.

294  {
295  Initialize();
296  _Reset();
297  me->RemoveAllAuras(); // Reset Soul Charge auras.
298  }
void RemoveAllAuras()
Definition: Unit.cpp:3920
void Initialize()
Definition: boss_archimonde.cpp:274
Creature *const me
Definition: CreatureAI.h:71
void _Reset()
Definition: ScriptedCreature.cpp:457

+ Here is the call graph for this function:

void boss_archimonde::boss_archimondeAI::SummonDoomfire ( Unit target)
inline
508  {
509  if (!target)
510  return;
511 
513  target->GetPositionX()+15.0f, target->GetPositionY()+15.0f, target->GetPositionZ(), 0,
514  TEMPSUMMON_TIMED_DESPAWN, 27000);
515 
517  target->GetPositionX()-15.0f, target->GetPositionY()-15.0f, target->GetPositionZ(), 0,
518  TEMPSUMMON_TIMED_DESPAWN, 27000);
519  }
Definition: boss_archimonde.cpp:84
Definition: boss_archimonde.cpp:85
Creature *const me
Definition: CreatureAI.h:71
float GetPositionY() const
Definition: Position.h:105
Definition: Object.h:56
float GetPositionZ() const
Definition: Position.h:106
float GetPositionX() const
Definition: Position.h:104
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
Definition: Object.cpp:2346

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

uint32 boss_archimonde::boss_archimondeAI::_chargeSpell
private
uint32 boss_archimonde::boss_archimondeAI::_unleashSpell
private
ObjectGuid boss_archimonde::boss_archimondeAI::DoomfireSpiritGUID
private
bool boss_archimonde::boss_archimondeAI::Enraged
private
bool boss_archimonde::boss_archimondeAI::HasProtected
private
uint8 boss_archimonde::boss_archimondeAI::SoulChargeCount
private
uint8 boss_archimonde::boss_archimondeAI::WispCount
private

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