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

Public Member Functions

 boss_thorim_arena_npcs (Creature *pCreature)
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged - this happens after JustEnteredCombat.
 
bool CanAIAttack (Unit const *target) const override
 
bool SelectT ()
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
 ~ScriptedAI () override
 
void AttackStartNoMove (Unit *target)
 
void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask) override
 Called at any Damage from any attacker (before damage apply)
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
void JustDied (Unit *) override
 
void KilledUnit (Unit *) override
 
void JustSummoned (Creature *) override
 
void SummonedCreatureDespawn (Creature *) override
 
void SpellHit (Unit *, SpellInfo const *) override
 
void SpellHitTarget (Unit *, SpellInfo const *) override
 
void MovementInform (uint32, uint32) override
 
void OnPossess (bool)
 
bool IsInRoom (Position const *pos, Axis axis, bool above)
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged - this happens after JustEnteredCombat.
 
void AttackStart (Unit *) override
 
void DoStartMovement (Unit *target, float distance=0.0f, float angle=0.0f)
 
void DoStartNoMovement (Unit *target)
 
void DoStopAttack ()
 
void DoRewardPlayersInArea ()
 
void DoCastSpell (Unit *target, SpellInfo const *spellInfo, bool triggered=false)
 
void DoPlaySoundToSet (WorldObject *source, uint32 soundId)
 
void DoPlayMusic (uint32 soundId, bool zone)
 
void DoAddThreat (Unit *unit, float amount)
 
void DoModifyThreatByPercent (Unit *unit, int32 pct)
 
void DoResetThreat (Unit *unit)
 
void DoResetThreatList ()
 
float DoGetThreat (Unit *unit)
 
void DoTeleportPlayer (Unit *unit, float x, float y, float z, float o)
 
void DoTeleportPlayer (Unit *unit, Position pos)
 
void DoTeleportAll (float x, float y, float z, float o)
 
UnitDoSelectLowestHpFriendly (float range, uint32 minHPDiff=1)
 
std::list< Creature * > DoFindFriendlyCC (float range)
 
std::list< Creature * > DoFindFriendlyMissingBuff (float range, uint32 spellId)
 
PlayerGetPlayerAtMinimumRange (float minRange)
 
CreatureDoSpawnCreature (uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, uint32 type, uint32 despawntime)
 
bool IsUniqueTimedEventDone (uint32 id) const
 
void SetUniqueTimedEventDone (uint32 id)
 
void ResetUniqueTimedEvent (uint32 id)
 
void ClearUniqueTimedEventsDone ()
 
void ScheduleTimedEvent (Milliseconds timerMin, Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0ms, uint32 uniqueId=0)
 
void ScheduleTimedEvent (Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0ms, uint32 uniqueId=0)
 
void ScheduleUniqueTimedEvent (Milliseconds timer, std::function< void()> exec, uint32 uniqueId)
 
bool HealthBelowPct (uint32 pct) const
 
bool HealthAbovePct (uint32 pct) const
 
SpellInfo const * SelectSpell (Unit *target, uint32 school, uint32 mechanic, SelectTargetType targets, uint32 powerCostMin, uint32 powerCostMax, float rangeMin, float rangeMax, SelectEffect effect)
 
void SetEquipmentSlots (bool loadDefault, int32 mainHand=EQUIP_NO_CHANGE, int32 offHand=EQUIP_NO_CHANGE, int32 ranged=EQUIP_NO_CHANGE)
 
virtual bool CheckEvadeIfOutOfCombatArea () const
 
bool IsHeroic () const
 
Difficulty GetDifficulty () const
 
bool Is25ManRaid () const
 
template<class T >
T const & DUNGEON_MODE (T const &normal5, T const &heroic10) const
 
template<class T >
T const & RAID_MODE (T const &normal10, T const &normal25) const
 
template<class T >
T const & RAID_MODE (T const &normal10, T const &normal25, T const &heroic10, T const &heroic25) const
 
PlayerSelectTargetFromPlayerList (float maxdist, uint32 excludeAura=0, bool mustBeInLOS=false) const
 
void SetInvincibility (bool apply)
 
bool IsInvincible () const
 
void SetAutoAttackAllowed (bool allow)
 
bool IsAutoAttackAllowed () const
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0ms)
 Causes the creature to talk/say the text assigned to their entry in the creature_text database table.
 
void Talk (uint8 id, Milliseconds delay)
 
WorldObjectGetSummoner () const
 Returns the summoner creature/object, if the creature is a temporary summon.
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
bool IsEngaged () const
 Check if creature is currently engaged in combat.
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At =================================
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual bool IsEscortNPC (bool=true) const
 
virtual void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
void JustEnteredCombat (Unit *who) override
 Called when the unit enters combat.
 
virtual void JustStartedThreateningMe (Unit *who)
 
void EngagementStart (Unit *who)
 
void EngagementOver ()
 
void JustExitedCombat () override
 Called when the unit leaves combat.
 
virtual void IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureDespawnAll ()
 
virtual void SummonedCreatureEvade (Creature *)
 
virtual void OnSpellStart (SpellInfo const *)
 
virtual void OnSpellCast (SpellInfo const *)
 
virtual void OnSpellFailed (SpellInfo const *)
 
virtual void OnChannelFinished (SpellInfo const *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void PathEndReached (uint32)
 
virtual void WaypointPathStarted (uint32)
 == Waypoints system =============================
 
virtual void WaypointStarted (uint32, uint32)
 
virtual void WaypointReached (uint32, uint32)
 
virtual void WaypointPathEnded (uint32, uint32)
 
void OnCharmed (bool apply) override
 Called when unit is charmed.
 
virtual void JustReachedHome ()
 
void DoZoneInCombat (Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *attacker)
 
virtual void OwnerAttacked (Unit *target)
 
void OnOwnerCombatInteraction (Unit *target)
 
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 ()
 
int32 VisualizeBoundary (uint32 duration, Unit *owner=nullptr, bool fill=false, bool checkZ=false) const
 
virtual bool CheckInRoom ()
 
CreatureBoundary const * GetBoundary () const
 
void SetBoundary (CreatureBoundary const *boundary, bool negativeBoundaries=false)
 
bool IsInBoundary (Position const *who=nullptr) const
 
virtual void CalculateThreat (Unit *, float &, SpellInfo const *)
 
virtual bool OnTeleportUnreacheablePlayer (Player *)
 
virtual void OnAuraRemove (AuraApplication *, AuraRemoveMode)
 
virtual void DistancingStarted ()
 
virtual void DistancingEnded ()
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual void InitializeAI ()
 
virtual void DoAction (int32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid const &, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
UnitSelectTarget (SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 Select the best (up to) <num> targets (in <targetType> order) from the threat list that fulfill the following:
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
virtual void EvadeTimerExpired ()
 Called when evade timer expires (target unreachable for too long)
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage to any victim (before damage apply)
 
virtual void HealReceived (Unit *, uint32 &)
 Called when the creature receives heal.
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 Called when the creature power updates.
 
virtual void HealDone (Unit *, uint32 &)
 Called when the unit heals.
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 Called during damage calculations.
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 Called during calculation when receiving periodic healing or damage (DoT or HoT)
 
void AttackStartCaster (Unit *victim, float dist)
 
SpellCastResult DoAddAuraToAllHostilePlayers (uint32 spellid)
 
SpellCastResult DoCast (uint32 spellId)
 
SpellCastResult DoCast (Unit *victim, uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastSelf (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastToAllHostilePlayers (uint32 spellid, bool triggered=false)
 To specify the caster as target if the spell is self-cast.
 
SpellCastResult DoCastVictim (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastAOE (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastRandomTarget (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false, bool withTank=true, int32 aura=0)
 Cast the spell on a random unit from the threat list.
 
SpellCastResult DoCastMaxThreat (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false)
 Cast spell on the top threat target, which may not be the current victim.
 
float DoGetSpellMaxRange (uint32 spellId, bool positive=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spell)
 
void DoSpellAttackToRandomTargetIfReady (uint32 spell, uint32 threatTablePosition=0, float dist=0.f, bool playerOnly=true)
 
virtual void SummonMovementInform (Creature *, uint32, uint32)
 Called when a summon reaches a waypoint or point movement finished.
 
virtual void sGossipHello (Player *)
 
virtual void sGossipSelect (Player *, uint32, uint32)
 
virtual void sGossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual void sQuestAccept (Player *, Quest const *)
 
virtual void sQuestSelect (Player *, Quest const *)
 
virtual void sQuestComplete (Player *, Quest const *)
 
virtual void sQuestReward (Player *, Quest const *, uint32)
 
virtual void sOnGameEvent (bool, uint16)
 
virtual std::string GetDebugInfo () const
 

Public Attributes

EventMap events
 
bool _isCaster
 
- Public Attributes inherited from ScriptedAI
Creatureme
 

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 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 CreatureAI
Creature *const me
 
EventMap events
 
TaskScheduler scheduler
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
bool _isEngaged
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ boss_thorim_arena_npcs()

boss_thorim_arena_npcs::boss_thorim_arena_npcs ( Creature pCreature)
inline
1560: ScriptedAI(pCreature) { }
Definition ScriptedCreature.h:191

Member Function Documentation

◆ CanAIAttack()

bool boss_thorim_arena_npcs::CanAIAttack ( Unit const *  target) const
inlineoverridevirtual

Reimplemented from UnitAI.

1599 {
1600 return target->GetPositionX() < 2180 && target->GetPositionZ() < 425;
1601 }

References Position::GetPositionX(), and Position::GetPositionZ().

◆ JustEngagedWith()

void boss_thorim_arena_npcs::JustEngagedWith ( Unit )
inlineoverridevirtual

Called for reaction when initially engaged - this happens after JustEnteredCombat.

Reimplemented from CreatureAI.

1574 {
1576 {
1577 events.ScheduleEvent(EVENT_DR_WARBRINGER_RS, 8s);
1578 }
1579 else if (me->GetEntry() == NPC_DARK_RUNE_EVOKER)
1580 {
1581 events.ScheduleEvent(EVENT_DR_EVOKER_RL, 2500ms);
1582 events.ScheduleEvent(EVENT_DR_EVOKER_RM, 4s);
1583 events.ScheduleEvent(EVENT_DR_EVOKER_RS, 10s);
1584 }
1585 else if (me->GetEntry() == NPC_DARK_RUNE_CHAMPION)
1586 {
1587 events.ScheduleEvent(EVENT_DR_CHAMPION_WH, 6s);
1588 events.ScheduleEvent(EVENT_DR_CHAMPION_CH, 12s);
1589 events.ScheduleEvent(EVENT_DR_CHAMPION_MS, 8s);
1590 }
1591 else if (me->GetEntry() == NPC_DARK_RUNE_COMMONER)
1592 {
1593 events.ScheduleEvent(EVENT_DR_COMMONER_LB, 5s);
1594 events.ScheduleEvent(EVENT_DR_COMMONER_PM, 6s);
1595 }
1596 }
events
Definition boss_sartura.cpp:43
@ EVENT_DR_EVOKER_RL
Definition boss_thorim.cpp:232
@ EVENT_DR_COMMONER_LB
Definition boss_thorim.cpp:241
@ EVENT_DR_WARBRINGER_RS
Definition boss_thorim.cpp:230
@ EVENT_DR_COMMONER_PM
Definition boss_thorim.cpp:240
@ EVENT_DR_CHAMPION_MS
Definition boss_thorim.cpp:238
@ EVENT_DR_CHAMPION_CH
Definition boss_thorim.cpp:237
@ EVENT_DR_EVOKER_RS
Definition boss_thorim.cpp:234
@ EVENT_DR_CHAMPION_WH
Definition boss_thorim.cpp:236
@ EVENT_DR_EVOKER_RM
Definition boss_thorim.cpp:233
@ NPC_DARK_RUNE_WARBRINGER
Definition boss_thorim.cpp:142
@ NPC_DARK_RUNE_CHAMPION
Definition boss_thorim.cpp:144
@ NPC_DARK_RUNE_EVOKER
Definition boss_thorim.cpp:143
@ NPC_DARK_RUNE_COMMONER
Definition boss_thorim.cpp:145
uint32 GetEntry() const
Definition Object.h:117
Creature * me
Definition ScriptedCreature.h:281

References EVENT_DR_CHAMPION_CH, EVENT_DR_CHAMPION_MS, EVENT_DR_CHAMPION_WH, EVENT_DR_COMMONER_LB, EVENT_DR_COMMONER_PM, EVENT_DR_EVOKER_RL, EVENT_DR_EVOKER_RM, EVENT_DR_EVOKER_RS, EVENT_DR_WARBRINGER_RS, Object::GetEntry(), ScriptedAI::me, NPC_DARK_RUNE_CHAMPION, NPC_DARK_RUNE_COMMONER, NPC_DARK_RUNE_EVOKER, and NPC_DARK_RUNE_WARBRINGER.

◆ Reset()

void boss_thorim_arena_npcs::Reset ( )
inlineoverridevirtual

Reimplemented from UnitAI.

1566 {
1568 events.Reset();
1571 }
@ SPELL_AURA_OF_CELERITY
Definition boss_thorim.cpp:95
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:1361
bool _isCaster
Definition boss_thorim.cpp:1563

References _isCaster, Unit::CastSpell(), Object::GetEntry(), ScriptedAI::me, NPC_DARK_RUNE_EVOKER, NPC_DARK_RUNE_WARBRINGER, and SPELL_AURA_OF_CELERITY.

◆ SelectT()

bool boss_thorim_arena_npcs::SelectT ( )
inline
1604 {
1605 Player* target = nullptr;
1606 Map::PlayerList const& pList = me->GetMap()->GetPlayers();
1607 uint8 num = urand(0, pList.getSize() - 1);
1608 uint8 count = 0;
1609 for (Map::PlayerList::const_iterator itr = pList.begin(); itr != pList.end(); ++itr, ++count)
1610 {
1611 if (itr->GetSource()->GetPositionX() > 2180 || !itr->GetSource()->IsAlive() || itr->GetSource()->GetPositionZ() > 425)
1612 continue;
1613
1614 if (count <= num || !target)
1615 target = itr->GetSource();
1616 else
1617 break;
1618 }
1619
1620 if (target)
1621 {
1622 AttackStart(target);
1623 me->AddThreat(target, 500.0f);
1624 if (me->GetEntry() == NPC_DARK_RUNE_EVOKER && urand(0, 1))
1626 else if (me->GetEntry() == NPC_DARK_RUNE_CHAMPION && !urand(0, 2))
1627 me->CastSpell(target, SPELL_CHARGE, false);
1628 return true;
1629 }
1630 return false;
1631 }
std::uint8_t uint8
Definition Define.h:109
uint32 urand(uint32 min, uint32 max)
Definition Random.cpp:44
@ SPELL_CHARGE
Definition boss_thorim.cpp:104
@ SPELL_RUNIC_SHIELD
Definition boss_thorim.cpp:101
Definition LinkedList.h:139
uint32 getSize() const
Definition LinkedList.h:115
Definition MapRefMgr.h:26
iterator begin()
Definition MapRefMgr.h:36
iterator end()
Definition MapRefMgr.h:37
PlayerList const & GetPlayers() const
Definition Map.h:335
Definition Player.h:1086
void AddThreat(Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=nullptr)
Definition Unit.cpp:11450
Map * GetMap() const
Definition Object.h:631
void AttackStart(Unit *) override
Definition ScriptedCreature.cpp:228

References Unit::AddThreat(), ScriptedAI::AttackStart(), MapRefMgr::begin(), Unit::CastSpell(), MapRefMgr::end(), Object::GetEntry(), WorldObject::GetMap(), Map::GetPlayers(), LinkedListHead::getSize(), ScriptedAI::me, NPC_DARK_RUNE_CHAMPION, NPC_DARK_RUNE_EVOKER, SPELL_CHARGE, SPELL_RUNIC_SHIELD, and urand().

Referenced by UpdateAI().

◆ UpdateAI()

void boss_thorim_arena_npcs::UpdateAI ( uint32  )
inlineoverridevirtual

Use to start attacking a target. Called just before JustEngagedWith()

Implements UnitAI.

1634 {
1635 if (!UpdateVictim() && !SelectT())
1636 return;
1637
1638 events.Update(diff);
1640 return;
1641
1642 switch (events.ExecuteEvent())
1643 {
1646 events.Repeat(8s);
1647 break;
1648 case EVENT_DR_EVOKER_RL:
1650 me->CastSpell(target, SPELL_RUNIC_LIGHTNING, false);
1651 events.Repeat(2500ms);
1652 break;
1653 case EVENT_DR_EVOKER_RM:
1654 if (Unit* target = DoSelectLowestHpFriendly(40.0f, 15))
1655 me->CastSpell(target, SPELL_RUNIC_MENDING, false);
1656 else
1658 events.Repeat(4s);
1659 break;
1660 case EVENT_DR_EVOKER_RS:
1662 events.Repeat(10s);
1663 break;
1666 me->CastSpell(target, SPELL_CHARGE, false);
1667 events.Repeat(12s);
1668 break;
1671 me->CastSpell(me, SPELL_WHIRLWIND, false);
1672 events.Repeat(6s);
1673 break;
1676 events.Repeat(8s);
1677 break;
1679 me->CastSpell(me->GetVictim(), SPELL_LOW_BLOW, false);
1680 events.Repeat(5s);
1681 break;
1683 me->CastSpell(me->GetVictim(), SPELL_PUMMEL, false);
1684 events.Repeat(6s);
1685 break;
1686 }
1687
1688 if (!_isCaster || (me->GetPower(POWER_MANA) * 100 / me->GetMaxPower(POWER_MANA) < 10))
1690 }
@ POWER_MANA
Definition SharedDefines.h:257
@ UNIT_STATE_CASTING
Definition UnitDefines.h:188
@ UNIT_FLAG_DISARMED
Definition UnitDefines.h:278
@ SPELL_RUNIC_STRIKE
Definition boss_thorim.cpp:96
@ SPELL_RUNIC_MENDING
Definition boss_thorim.cpp:100
@ SPELL_PUMMEL
Definition boss_thorim.cpp:110
@ SPELL_RUNIC_LIGHTNING
Definition boss_thorim.cpp:99
@ SPELL_MORTAL_STRIKE
Definition boss_thorim.cpp:105
@ SPELL_LOW_BLOW
Definition boss_thorim.cpp:109
@ SPELL_WHIRLWIND
Definition boss_thorim.cpp:106
bool UpdateVictim()
Definition CreatureAI.cpp:350
void DoMeleeAttackIfReady()
Definition UnitAI.cpp:41
Unit * SelectTarget(SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
Definition UnitAI.cpp:112
Definition Unit.h:665
bool HasUnitFlag(UnitFlags flags) const
Definition Unit.h:748
uint32 GetMaxPower(Powers power) const
Definition Unit.h:1137
Unit * GetVictim() const
Definition Unit.h:904
bool HasUnitState(const uint32 f) const
Definition Unit.h:737
uint32 GetPower(Powers power) const
Definition Unit.h:1136
Unit * DoSelectLowestHpFriendly(float range, uint32 minHPDiff=1)
Definition ScriptedCreature.cpp:517
bool SelectT()
Definition boss_thorim.cpp:1603

References _isCaster, Unit::CastSpell(), UnitAI::DoMeleeAttackIfReady(), ScriptedAI::DoSelectLowestHpFriendly(), EVENT_DR_CHAMPION_CH, EVENT_DR_CHAMPION_MS, EVENT_DR_CHAMPION_WH, EVENT_DR_COMMONER_LB, EVENT_DR_COMMONER_PM, EVENT_DR_EVOKER_RL, EVENT_DR_EVOKER_RM, EVENT_DR_EVOKER_RS, EVENT_DR_WARBRINGER_RS, Unit::GetMaxPower(), Unit::GetPower(), Unit::GetVictim(), Unit::HasUnitFlag(), Unit::HasUnitState(), ScriptedAI::me, POWER_MANA, Random, SelectT(), UnitAI::SelectTarget(), SPELL_CHARGE, SPELL_LOW_BLOW, SPELL_MORTAL_STRIKE, SPELL_PUMMEL, SPELL_RUNIC_LIGHTNING, SPELL_RUNIC_MENDING, SPELL_RUNIC_SHIELD, SPELL_RUNIC_STRIKE, SPELL_WHIRLWIND, UNIT_FLAG_DISARMED, UNIT_STATE_CASTING, and CreatureAI::UpdateVictim().

Member Data Documentation

◆ _isCaster

bool boss_thorim_arena_npcs::_isCaster

Referenced by Reset(), and UpdateAI().

◆ events

EventMap boss_thorim_arena_npcs::events

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