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

Public Member Functions

 boss_ymironAI (Creature *creature)
 
void Initialize ()
 
void Reset () override
 
void EnterCombat (Unit *) override
 
void SpellHitTarget (Unit *who, SpellInfo const *spell) override
 
uint32 GetData (uint32 type) const override
 
void MovementInform (uint32 type, uint32 pointId) override
 
void JustSummoned (Creature *summon) override
 
void DamageTaken (Unit *, uint32 &damage) override
 
void ExecuteEvent (uint32 eventId) override
 
void JustDied (Unit *) override
 
void KilledUnit (Unit *who) override
 
void DespawnBoatGhosts (ObjectGuid &CreatureGUID)
 
- 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 ()
 
void JustReachedHome () override
 
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 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 ()
 
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 void InitializeAI ()
 
virtual void DoAction (int32)
 
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

bool kingsBane
 
uint8 ActiveOrder [4]
 
uint8 ActivedNumber
 
uint32 HealthAmountModifier
 
uint32 HealthAmountMultipler
 
ObjectGuid ActiveAncestorGUID
 
ObjectGuid SpiritFountGUID
 

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_ymiron::boss_ymironAI::boss_ymironAI ( Creature creature)
inline
106  : BossAI(creature, DATA_KING_YMIRON)
107  {
108  Initialize();
109  // This ensures a random sequence of ancestors. Not sure if the order should change on reset or not, reason why this is left out of Initialize().
110  for (int i = 0; i < 4; ++i)
111  ActiveOrder[i] = i;
112  for (int i = 0; i < 3; ++i)
113  {
114  int r = i + (rand32() % (4 - i));
115  int temp = ActiveOrder[i];
116  ActiveOrder[i] = ActiveOrder[r];
117  ActiveOrder[r] = temp;
118  }
119  }
void Initialize()
Definition: boss_ymiron.cpp:121
uint8 ActiveOrder[4]
Definition: boss_ymiron.cpp:298
Definition: utgarde_pinnacle.h:32
uint32 rand32()
Definition: Random.cpp:64
BossAI(Creature *creature, uint32 bossId)
Definition: ScriptedCreature.cpp:444

+ Here is the call graph for this function:

Member Function Documentation

void boss_ymiron::boss_ymironAI::DamageTaken ( Unit ,
uint32 damage 
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

206  {
207  if (me->HealthBelowPctDamaged(100 - HealthAmountMultipler * HealthAmountModifier, damage) && !(damage >= me->GetHealth()))
208  {
209  uint8 Order = HealthAmountModifier - 1;
211 
214 
215  me->AttackStop();
217  me->GetMotionMaster()->MovePoint(POINT_BOAT, ActiveBoat[ActiveOrder[Order]].MoveX, ActiveBoat[ActiveOrder[Order]].MoveY, ActiveBoat[ActiveOrder[Order]].MoveZ);
218 
221 
222  events.CancelEvent(ActiveBoat[ActiveOrder[ActivedNumber]].event); // Cancels the event started on the previous transition.
224 
225  ActivedNumber = Order;
226  }
227  }
bool AttackStop()
Definition: Unit.cpp:7337
bool HealthBelowPctDamaged(int32 pct, uint32 damage) const
Definition: Unit.h:1431
static ActiveBoatStruct ActiveBoat[4]
Definition: boss_ymiron.cpp:86
Definition: boss_ymiron.cpp:70
Definition: Unit.h:1129
uint32 HealthAmountModifier
Definition: boss_ymiron.cpp:300
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
Definition: boss_ymiron.cpp:75
void CancelEvent(uint32 eventId)
Definition: EventMap.cpp:89
uint8 ActiveOrder[4]
Definition: boss_ymiron.cpp:298
uint32 HealthAmountMultipler
Definition: boss_ymiron.cpp:301
Creature *const me
Definition: CreatureAI.h:71
void MovePoint(uint32 id, Position const &pos, bool generatePath=true)
Definition: MotionMaster.h:172
ObjectGuid ActiveAncestorGUID
Definition: boss_ymiron.cpp:302
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
void DespawnBoatGhosts(ObjectGuid &CreatureGUID)
Definition: boss_ymiron.cpp:286
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true)
Definition: Unit.cpp:2916
uint8_t uint8
Definition: Define.h:152
EventMap events
Definition: ScriptedCreature.h:371
Definition: boss_ymiron.cpp:30
uint32 GetHealth() const
Definition: Unit.h:1426
void SetReactState(ReactStates st)
Definition: Creature.h:502
uint8 ActivedNumber
Definition: boss_ymiron.cpp:299
void DelayEvents(Milliseconds const &delay)
Definition: EventMap.h:219
ObjectGuid SpiritFountGUID
Definition: boss_ymiron.cpp:303

+ Here is the call graph for this function:

void boss_ymiron::boss_ymironAI::DespawnBoatGhosts ( ObjectGuid CreatureGUID)
inline
287  {
288  // @todo: fire visual after ancestor despawns.
289  if (!CreatureGUID.IsEmpty())
290  if (Creature* temp = ObjectAccessor::GetCreature(*me, CreatureGUID))
291  temp->DisappearAndDie();
292 
293  CreatureGUID.Clear();
294  }
Definition: Creature.h:467
Creature *const me
Definition: CreatureAI.h:71
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
void Clear()
Definition: ObjectGuid.h:215
bool IsEmpty() const
Definition: ObjectGuid.h:242

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_ymiron::boss_ymironAI::EnterCombat ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

139  {
140  _EnterCombat();
141  Talk(SAY_AGGRO);
146  }
Definition: boss_ymiron.cpp:58
void _EnterCombat()
Definition: ScriptedCreature.cpp:480
Definition: boss_ymiron.cpp:70
Definition: boss_ymiron.cpp:46
Definition: boss_ymiron.cpp:60
Definition: boss_ymiron.cpp:59
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
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
const T & DUNGEON_MODE(const T &normal5, const T &heroic10) const
Definition: ScriptedCreature.h:277
EventMap events
Definition: ScriptedCreature.h:371
Definition: boss_ymiron.cpp:57

+ Here is the call graph for this function:

void boss_ymiron::boss_ymironAI::ExecuteEvent ( uint32  eventId)
inlineoverridevirtual

Reimplemented from BossAI.

230  {
231  switch (eventId)
232  {
233  case EVENT_BANE:
235  events.ScheduleEvent(EVENT_BANE, urand(20000, 25000));
236  break;
237  case EVENT_FETID_ROT:
239  events.ScheduleEvent(EVENT_FETID_ROT, urand(10000, 15000));
240  break;
241  case EVENT_DARK_SLASH:
243  events.ScheduleEvent(EVENT_DARK_SLASH, urand(30000, 35000));
244  break;
247  events.ScheduleEvent(EVENT_ANCESTORS_VENGEANCE, DUNGEON_MODE(urand(60000, 65000), urand(45000, 50000)));
248  break;
249  case EVENT_RESUME_COMBAT:
252  break;
255  break;
259  break;
263  break;
265  for (uint8 i = 0; i < 4; ++i)
268  break;
269  default:
270  break;
271  }
272  }
Definition: boss_ymiron.cpp:58
Definition: Unit.h:1131
static ActiveBoatStruct ActiveBoat[4]
Definition: boss_ymiron.cpp:86
Definition: boss_ymiron.cpp:26
uint8 ActiveOrder[4]
Definition: boss_ymiron.cpp:298
Definition: boss_ymiron.cpp:36
Definition: boss_ymiron.cpp:29
Creature *const me
Definition: CreatureAI.h:71
Definition: boss_ymiron.cpp:60
Definition: boss_ymiron.cpp:59
Definition: boss_ymiron.cpp:63
Definition: boss_ymiron.cpp:31
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
Definition: boss_ymiron.cpp:62
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Definition: boss_ymiron.cpp:64
const T & DUNGEON_MODE(const T &normal5, const T &heroic10) const
Definition: ScriptedCreature.h:277
Definition: boss_ymiron.cpp:33
Definition: boss_ymiron.cpp:32
Definition: boss_ymiron.cpp:35
uint8_t uint8
Definition: Define.h:152
EventMap events
Definition: ScriptedCreature.h:371
void DoCastVictim(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:159
Definition: boss_ymiron.cpp:61
void SetReactState(ReactStates st)
Definition: Creature.h:502
uint8 ActivedNumber
Definition: boss_ymiron.cpp:299
Definition: boss_ymiron.cpp:28
Definition: boss_ymiron.cpp:57
Definition: boss_ymiron.cpp:65

+ Here is the call graph for this function:

uint32 boss_ymiron::boss_ymironAI::GetData ( uint32  type) const
inlineoverridevirtual

Reimplemented from UnitAI.

155  {
156  if (type == DATA_KINGS_BANE)
157  return kingsBane ? 1 : 0;
158 
159  return 0;
160  }
bool kingsBane
Definition: boss_ymiron.cpp:297
Definition: boss_ymiron.cpp:96
void boss_ymiron::boss_ymironAI::Initialize ( void  )
inline
122  {
123  kingsBane = true;
124  ActivedNumber = 0;
129  }
uint32 HealthAmountModifier
Definition: boss_ymiron.cpp:300
uint32 HealthAmountMultipler
Definition: boss_ymiron.cpp:301
ObjectGuid ActiveAncestorGUID
Definition: boss_ymiron.cpp:302
bool kingsBane
Definition: boss_ymiron.cpp:297
void Clear()
Definition: ObjectGuid.h:215
const T & DUNGEON_MODE(const T &normal5, const T &heroic10) const
Definition: ScriptedCreature.h:277
uint8 ActivedNumber
Definition: boss_ymiron.cpp:299
ObjectGuid SpiritFountGUID
Definition: boss_ymiron.cpp:303

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_ymiron::boss_ymironAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

275  {
276  _JustDied();
277  Talk(SAY_DEATH);
278  }
void _JustDied()
Definition: ScriptedCreature.cpp:471
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
Definition: boss_ymiron.cpp:48

+ Here is the call graph for this function:

void boss_ymiron::boss_ymironAI::JustSummoned ( Creature summon)
inlineoverridevirtual

Reimplemented from BossAI.

183  {
184  switch (summon->GetEntry())
185  {
186  case NPC_SPIRIT_FOUNT:
187  summon->CastSpell(summon, SPELL_SPIRIT_FOUNT, true);
188  summon->SetDisplayId(11686);
189  SpiritFountGUID = summon->GetGUID();
190  break;
191  case NPC_AVENGING_SPIRIT:
192  if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))
193  {
194  summon->AddThreat(target, 0.0f);
195  summon->AI()->AttackStart(target);
196  }
197  break;
198  default:
199  break;
200  }
201 
202  summons.Summon(summon);
203  }
void AddThreat(Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=NULL)
Definition: Unit.cpp:10691
Definition: utgarde_pinnacle.h:74
void Summon(Creature const *summon)
Definition: ScriptedCreature.h:92
Definition: utgarde_pinnacle.h:73
Definition: UnitAI.h:35
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
SummonList summons
Definition: ScriptedCreature.h:372
ObjectGuid const & GetGUID() const
Definition: Object.h:105
void SetDisplayId(uint32 modelId) override
Definition: Creature.cpp:2664
Definition: boss_ymiron.cpp:41
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
ObjectGuid SpiritFountGUID
Definition: boss_ymiron.cpp:303

+ Here is the call graph for this function:

void boss_ymiron::boss_ymironAI::KilledUnit ( Unit who)
inlineoverridevirtual

Reimplemented from ScriptedAI.

281  {
282  if (who->GetTypeId() == TYPEID_PLAYER)
283  Talk(SAY_SLAY);
284  }
Definition: boss_ymiron.cpp:47
TypeID GetTypeId() const
Definition: Object.h:113
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_ymiron::boss_ymironAI::MovementInform ( uint32  type,
uint32  pointId 
)
inlineoverridevirtual

Reimplemented from CreatureAI.

163  {
164  if (type != POINT_MOTION_TYPE)
165  return;
166 
167  if (pointId == POINT_BOAT) // Check might not be needed.
168  {
171  {
173  ancestor->CastSpell(me, SPELL_CHANNEL_SPIRIT_TO_YMIRON, true);
175  ancestor->SetDisableGravity(true);
176  ActiveAncestorGUID = ancestor->GetGUID();
177  }
179  }
180  }
float SpawnZ
Definition: boss_ymiron.cpp:82
Definition: Unit.h:674
Definition: boss_ymiron.cpp:38
static ActiveBoatStruct ActiveBoat[4]
Definition: boss_ymiron.cpp:86
uint32 npc
Definition: boss_ymiron.cpp:80
Definition: boss_ymiron.cpp:75
Definition: Object.h:58
Definition: Creature.h:467
uint8 ActiveOrder[4]
Definition: boss_ymiron.cpp:298
float SpawnY
Definition: boss_ymiron.cpp:82
Creature *const me
Definition: CreatureAI.h:71
ObjectGuid ActiveAncestorGUID
Definition: boss_ymiron.cpp:302
float SpawnO
Definition: boss_ymiron.cpp:82
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
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_ymiron.cpp:39
Definition: UpdateFields.h:109
float SpawnX
Definition: boss_ymiron.cpp:82
EventMap events
Definition: ScriptedCreature.h:371
Definition: boss_ymiron.cpp:61
Definition: MotionMaster.h:46
uint8 ActivedNumber
Definition: boss_ymiron.cpp:299
Definition: Unit.h:698
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:

void boss_ymiron::boss_ymironAI::Reset ( )
inlineoverridevirtual

Reimplemented from BossAI.

132  {
133  _Reset();
134  Initialize();
136  }
void Initialize()
Definition: boss_ymiron.cpp:121
Definition: Unit.h:1131
Creature *const me
Definition: CreatureAI.h:71
void _Reset()
Definition: ScriptedCreature.cpp:457
void SetReactState(ReactStates st)
Definition: Creature.h:502

+ Here is the call graph for this function:

void boss_ymiron::boss_ymironAI::SpellHitTarget ( Unit who,
SpellInfo const spell 
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

149  {
150  if (who && who->GetTypeId() == TYPEID_PLAYER && spell->Id == SPELL_BANE_HIT)
151  kingsBane = false;
152  }
TypeID GetTypeId() const
Definition: Object.h:113
bool kingsBane
Definition: boss_ymiron.cpp:297
Definition: boss_ymiron.cpp:27
Definition: ObjectGuid.h:33

+ Here is the call graph for this function:

Member Data Documentation

ObjectGuid boss_ymiron::boss_ymironAI::ActiveAncestorGUID
private
uint8 boss_ymiron::boss_ymironAI::ActivedNumber
private
uint8 boss_ymiron::boss_ymironAI::ActiveOrder[4]
private
uint32 boss_ymiron::boss_ymironAI::HealthAmountModifier
private
uint32 boss_ymiron::boss_ymironAI::HealthAmountMultipler
private
bool boss_ymiron::boss_ymironAI::kingsBane
private
ObjectGuid boss_ymiron::boss_ymironAI::SpiritFountGUID
private

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