AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
DarkFallenAI Struct Referenceabstract
Inheritance diagram for DarkFallenAI:
ScriptedAI CreatureAI UnitAI npc_darkfallen_advisor npc_darkfallen_archmage npc_darkfallen_blood_knight npc_darkfallen_noble npc_darkfallen_tactician

Public Member Functions

 DarkFallenAI (Creature *creature)
 
virtual void ScheduleSpells ()=0
 
void Reset () override
 
void JustDied (Unit *) override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged - this happens after JustEnteredCombat.
 
void DoAction (int32 action) override
 
void SetGUID (ObjectGuid const &guid, int32 id) override
 
void EnterEvadeMode (EvadeReason why) override
 
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
 
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 bool CanAIAttack (Unit const *) const
 
virtual void InitializeAI ()
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
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
 

Protected Attributes

TaskScheduler Scheduler
 
ObjectGuid TriggerGuid
 
bool IsDoingEmotes
 
uint32 AttackSpellId
 
- 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
 

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 ()
 
- Public Attributes inherited from ScriptedAI
Creatureme
 
- 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)
 

Detailed Description

Constructor & Destructor Documentation

◆ DarkFallenAI()

DarkFallenAI::DarkFallenAI ( Creature creature)
inline
2187: ScriptedAI(creature), IsDoingEmotes(true), AttackSpellId(0) {}
bool IsDoingEmotes
Definition icecrown_citadel.cpp:2288
uint32 AttackSpellId
Definition icecrown_citadel.cpp:2289
Definition ScriptedCreature.h:191

Member Function Documentation

◆ DoAction()

void DarkFallenAI::DoAction ( int32  action)
inlineoverridevirtual

Reimplemented from UnitAI.

2253 {
2254 if (action == ACTION_SIPHON_INTERRUPTED)
2256 orb->RemoveGameObjectFlag(GO_FLAG_NOT_SELECTABLE);
2257 }
@ GO_FLAG_NOT_SELECTABLE
Definition SharedDefines.h:1611
Definition GameObject.h:120
GameObject * FindNearestGameObject(uint32 entry, float range, bool onlySpawned=false) const
Definition Object.cpp:2562
@ ACTION_SIPHON_INTERRUPTED
Definition icecrown_citadel.cpp:314
@ GO_EMPOWERING_BLOOD_ORB
Definition icecrown_citadel.h:447
Creature * me
Definition ScriptedCreature.h:281

References ACTION_SIPHON_INTERRUPTED, WorldObject::FindNearestGameObject(), GO_EMPOWERING_BLOOD_ORB, GO_FLAG_NOT_SELECTABLE, and ScriptedAI::me.

◆ EnterEvadeMode()

void DarkFallenAI::EnterEvadeMode ( EvadeReason  why)
inlineoverridevirtual

Reimplemented from CreatureAI.

2266 {
2268 if (Unit* trigger = ObjectAccessor::GetUnit(*me, TriggerGuid))
2269 trigger->GetAI()->DoAction(ACTION_EVADE);
2270 }
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition CreatureAI.cpp:235
Definition Unit.h:665
@ ACTION_EVADE
Definition icecrown_citadel.cpp:315
Unit * GetUnit(WorldObject const &, ObjectGuid const &guid)
Definition ObjectAccessor.cpp:223
ObjectGuid TriggerGuid
Definition icecrown_citadel.cpp:2287

References ACTION_EVADE, CreatureAI::EnterEvadeMode(), ObjectAccessor::GetUnit(), ScriptedAI::me, and TriggerGuid.

◆ JustDied()

void DarkFallenAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from CreatureAI.

2225 {
2226 switch (me->GetSpawnId())
2227 {
2232 if (InstanceScript* instance = me->GetInstanceScript())
2233 instance->SetData(DATA_BPC_TRASH_DIED, 1);
2234 break;
2235 default:
2236 break;
2237 }
2238 }
ObjectGuid::LowType GetSpawnId() const
Definition Creature.h:69
Definition InstanceScript.h:143
InstanceScript * GetInstanceScript() const
Definition Object.cpp:1242
@ GUID_DARKFALLEN_ADVISOR
Definition icecrown_citadel.cpp:334
@ GUID_DARKFALLEN_BLOOD_KNIGHT
Definition icecrown_citadel.cpp:336
@ GUID_DARKFALLEN_ARCHMAGE
Definition icecrown_citadel.cpp:335
@ GUID_DARKFALLEN_NOBLE
Definition icecrown_citadel.cpp:337
@ DATA_BPC_TRASH_DIED
Definition icecrown_citadel.h:147

References DATA_BPC_TRASH_DIED, WorldObject::GetInstanceScript(), Creature::GetSpawnId(), GUID_DARKFALLEN_ADVISOR, GUID_DARKFALLEN_ARCHMAGE, GUID_DARKFALLEN_BLOOD_KNIGHT, GUID_DARKFALLEN_NOBLE, and ScriptedAI::me.

◆ JustEngagedWith()

void DarkFallenAI::JustEngagedWith ( Unit )
inlineoverridevirtual

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

Reimplemented from CreatureAI.

2241 {
2242 IsDoingEmotes = false;
2245
2246 if (Unit* trigger = ObjectAccessor::GetUnit(*me, TriggerGuid))
2247 trigger->GetAI()->SetGUID(me->GetGUID(), ACTION_COMBAT);
2248
2250 }
void CallForHelp(float fRadius, Unit *target=nullptr)
Definition Creature.cpp:2508
static ObjectGuid GetGUID(Object const *o)
Definition Object.h:114
TaskScheduler & CancelAll()
Definition TaskScheduler.cpp:45
@ ACTION_COMBAT
Definition icecrown_citadel.cpp:316
float const CALL_FOR_HELP_RADIUS
Definition icecrown_citadel.cpp:2008
TaskScheduler Scheduler
Definition icecrown_citadel.cpp:2286
virtual void ScheduleSpells()=0

References ACTION_COMBAT, CALL_FOR_HELP_RADIUS, Creature::CallForHelp(), TaskScheduler::CancelAll(), Object::GetGUID(), ObjectAccessor::GetUnit(), IsDoingEmotes, ScriptedAI::me, Scheduler, ScheduleSpells(), and TriggerGuid.

◆ Reset()

void DarkFallenAI::Reset ( )
inlineoverridevirtual

Reimplemented from UnitAI.

2192 {
2193 IsDoingEmotes = me->GetWaypointPath() ? false : true;
2195 Scheduler.SetValidator([this]
2196 {
2198 })
2199 .Schedule(1s, 10s, [this](TaskContext emote)
2200 {
2201 if (!IsDoingEmotes)
2202 return;
2203
2204 if (roll_chance_i(20))
2205 {
2206 std::vector<Creature*> creatures;
2207 ICCOrbControllerMinionSearch check(me, true);
2209 Cell::VisitObjects(me, searcher, 10.0f);
2210 if (!creatures.empty())
2211 {
2213 DoCast(friendly, SPELL_POLYMORPH_ALLY);
2214 }
2215 }
2216 Scheduler.Schedule(1s, [this](TaskContext /*emote*/)
2217 {
2219 });
2220 emote.Repeat(15s, 30s);
2221 });
2222 }
bool roll_chance_i(int chance)
Definition Random.h:63
@ UNIT_STATE_CASTING
Definition UnitDefines.h:188
creatures
Definition boss_prince_malchezaar.cpp:51
Definition Creature.h:47
uint32 GetWaypointPath() const
Definition Creature.h:357
Definition icecrown_citadel.cpp:2011
Definition TaskScheduler.h:422
TaskContext & Repeat(std::chrono::duration< _Rep, _Period > const &duration)
Definition TaskScheduler.h:494
TaskScheduler & Schedule(std::chrono::duration< _Rep, _Period > const &time, task_handler_t const &task)
Definition TaskScheduler.h:233
TaskScheduler & SetValidator(P &&predicate)
Sets a validator which is asked if tasks are allowed to be executed.
Definition TaskScheduler.h:198
SpellCastResult DoCast(uint32 spellId)
Definition UnitAI.cpp:179
bool HasUnitState(const uint32 f) const
Definition Unit.h:737
void HandleEmoteCommand(uint32 emoteId)
Definition Unit.cpp:2187
@ SPELL_POLYMORPH_ALLY
Definition icecrown_citadel.cpp:191
std::vector< uint32 > DarkFallensEmotes
Definition icecrown_citadel.cpp:2040
auto SelectRandomContainerElement(C const &container) -> typename std::add_const< decltype(*std::begin(container))>::type &
Definition Containers.h:133
Definition GridNotifiers.h:496
static void VisitObjects(WorldObject const *obj, T &visitor, float radius)
Definition CellImpl.h:165

References TaskScheduler::CancelAll(), DarkFallensEmotes, UnitAI::DoCast(), Creature::GetWaypointPath(), Unit::HandleEmoteCommand(), Unit::HasUnitState(), IsDoingEmotes, ScriptedAI::me, TaskContext::Repeat(), roll_chance_i(), TaskScheduler::Schedule(), Scheduler, Acore::Containers::SelectRandomContainerElement(), TaskScheduler::SetValidator(), SPELL_POLYMORPH_ALLY, UNIT_STATE_CASTING, and Cell::VisitObjects().

◆ ScheduleSpells()

virtual void DarkFallenAI::ScheduleSpells ( )
pure virtual

◆ SetGUID()

void DarkFallenAI::SetGUID ( ObjectGuid const &  guid,
int32  id 
)
inlineoverridevirtual

Reimplemented from UnitAI.

2260 {
2261 if (id == DATA_GUID)
2262 TriggerGuid = guid;
2263 }
@ DATA_GUID
Definition icecrown_citadel.cpp:303

References DATA_GUID, and TriggerGuid.

◆ UpdateAI()

void DarkFallenAI::UpdateAI ( uint32  )
inlineoverridevirtual

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

Implements UnitAI.

2273 {
2274 if (!UpdateVictim() && !IsDoingEmotes)
2275 return;
2276
2277 Scheduler.Update(diff);
2278
2279 if (AttackSpellId)
2281 else
2283 }
bool UpdateVictim()
Definition CreatureAI.cpp:350
TaskScheduler & Update(success_t const &callback=EmptyCallback)
Definition TaskScheduler.cpp:27
void DoMeleeAttackIfReady()
Definition UnitAI.cpp:41
bool DoSpellAttackIfReady(uint32 spell)
Definition UnitAI.cpp:76

References AttackSpellId, UnitAI::DoMeleeAttackIfReady(), UnitAI::DoSpellAttackIfReady(), IsDoingEmotes, Scheduler, TaskScheduler::Update(), and CreatureAI::UpdateVictim().

Member Data Documentation

◆ AttackSpellId

uint32 DarkFallenAI::AttackSpellId
protected

◆ IsDoingEmotes

bool DarkFallenAI::IsDoingEmotes
protected

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

◆ Scheduler

◆ TriggerGuid

ObjectGuid DarkFallenAI::TriggerGuid
protected

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