AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
npc_pet_mage_mirror_image Struct Reference
Inheritance diagram for npc_pet_mage_mirror_image:
CasterAI CombatAI CreatureAI UnitAI

Public Member Functions

 npc_pet_mage_mirror_image (Creature *creature)
 
void InitializeAI () override
 
void EnterEvadeMode (EvadeReason) override
 
void MySelectNextTarget ()
 
void Reset () override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
- Public Member Functions inherited from CasterAI
 CasterAI (Creature *c)
 
void AttackStart (Unit *victim) override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged.
 
- Public Member Functions inherited from CombatAI
 CombatAI (Creature *c)
 
void JustEngagedWith (Unit *who) override
 Called for reaction when initially engaged.
 
void JustDied (Unit *killer) override
 
- 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
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At =================================
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual void KilledUnit (Unit *)
 
virtual void JustSummoned (Creature *)
 
virtual void IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDespawn (Creature *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureDespawnAll ()
 
virtual void SummonedCreatureEvade (Creature *)
 
virtual void SpellHit (Unit *, SpellInfo const *)
 
virtual void SpellHitTarget (Unit *, SpellInfo const *)
 
virtual void OnSpellCastFinished (SpellInfo const *, SpellFinishReason)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void MovementInform (uint32, uint32)
 
virtual void PathEndReached (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 *)
 
virtual void OwnerAttacked (Unit *)
 
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 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 JustEnteredCombat (Unit *)
 Called when the unit enters combat.
 
virtual void JustExitedCombat ()
 Called when the unit leaves combat.
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage to any victim (before damage apply)
 
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage from any attacker (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)
 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

uint32 selectionTimer
 
ObjectGuid _ebonGargoyleGUID
 
uint32 checktarget
 
uint32 dist = urand(1, 5)
 
bool _delayAttack
 

Additional Inherited Members

- 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 CombatAI
static int32 Permissible (Creature const *)
 
- 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 CombatAI
EventMap events
 
SpellVct spells
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
TaskScheduler scheduler
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ npc_pet_mage_mirror_image()

npc_pet_mage_mirror_image::npc_pet_mage_mirror_image ( Creature creature)
inline
59: CasterAI(creature) { }
Definition CombatAI.h:58

Member Function Documentation

◆ EnterEvadeMode()

void npc_pet_mage_mirror_image::EnterEvadeMode ( EvadeReason  )
inlineoverridevirtual

Reimplemented from CreatureAI.

146 {
147 if (me->IsInEvadeMode() || !me->IsAlive())
148 return;
149
150 Unit* owner = me->GetCharmerOrOwner();
151
152 me->CombatStop(true);
153 if (owner && !me->HasUnitState(UNIT_STATE_FOLLOW))
154 {
155 me->GetMotionMaster()->Clear(false);
157 }
158 }
@ MOTION_SLOT_ACTIVE
Definition MotionMaster.h:64
constexpr float PET_FOLLOW_DIST
Definition PetDefines.h:206
@ UNIT_STATE_FOLLOW
Definition UnitDefines.h:179
Creature *const me
Definition CreatureAI.h:73
bool IsInEvadeMode() const
Definition Creature.h:139
void MoveFollow(Unit *target, float dist, float angle, MovementSlot slot=MOTION_SLOT_ACTIVE, bool inheritWalkState=true, bool inheritSpeed=true)
The unit will follow this target. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition MotionMaster.cpp:445
void Clear(bool reset=true)
Definition MotionMaster.h:176
Definition Unit.h:628
void CombatStop(bool includingCast=false)
Definition Unit.cpp:10512
MotionMaster * GetMotionMaster()
Definition Unit.h:1691
bool IsAlive() const
Definition Unit.h:1726
Unit * GetCharmerOrOwner() const
Definition Unit.h:1231
virtual float GetFollowAngle() const
Definition Unit.h:1828
bool HasUnitState(const uint32 f) const
Definition Unit.h:699

References MotionMaster::Clear(), Unit::CombatStop(), Unit::GetCharmerOrOwner(), Unit::GetFollowAngle(), Unit::GetMotionMaster(), Unit::HasUnitState(), Unit::IsAlive(), Creature::IsInEvadeMode(), CreatureAI::me, MOTION_SLOT_ACTIVE, MotionMaster::MoveFollow(), PET_FOLLOW_DIST, and UNIT_STATE_FOLLOW.

Referenced by MySelectNextTarget().

◆ InitializeAI()

void npc_pet_mage_mirror_image::InitializeAI ( )
inlineoverridevirtual

Reimplemented from CasterAI.

68 {
70
71 _delayAttack = true;
73 {
74 _delayAttack = false;
75 }, 1200ms);
76
77 Unit* owner = me->GetOwner();
78 if (!owner)
79 return;
80
81 // Clone Me!
82 owner->CastSpell(me, SPELL_MAGE_CLONE_ME, true);
83
84 // xinef: Glyph of Mirror Image (4th copy)
85 float angle = 0.0f;
87 {
89 angle = 0.5f * M_PI;
90 break;
92 angle = M_PI;
93 break;
95 angle = 1.5f * M_PI;
96 break;
97 }
98
99 ((Minion*)me)->SetFollowAngle(angle);
100 if (owner->IsInCombat())
101 me->NearTeleportTo(me->GetPositionX() + cos(angle)*dist, me->GetPositionY() + std::sin(angle)*dist, me->GetPositionZ(), me->GetOrientation(), false, false, false, false);
102 else
104
106
107 // Xinef: Inherit Master's Threat List (not yet implemented)
108 //owner->CastSpell((Unit*)nullptr, SPELL_MAGE_MASTERS_THREAT_LIST, true);
110 while (ref)
111 {
112 if (Unit* unit = ref->GetSource()->GetOwner())
113 unit->AddThreat(me, ref->GetThreat() - ref->getTempThreatModifier());
114 ref = ref->next();
115 }
116
118
119 // Xinef: copy caster auras
120 Unit::VisibleAuraMap const* visibleAuraMap = owner->GetVisibleAuras();
121 for (Unit::VisibleAuraMap::const_iterator itr = visibleAuraMap->begin(); itr != visibleAuraMap->end(); ++itr)
122 if (Aura* visAura = itr->second->GetBase())
123 {
124 // Ebon Gargoyle
125 if (visAura->GetId() == 49206 && me->GetUInt32Value(UNIT_CREATED_BY_SPELL) == SPELL_SUMMON_MIRROR_IMAGE1)
126 {
127 if (Unit* gargoyle = visAura->GetCaster())
128 _ebonGargoyleGUID = gargoyle->GetGUID();
129 continue;
130 }
131 SpellScriptsBounds bounds = sObjectMgr->GetSpellScriptsBounds(visAura->GetId());
132 if (bounds.first != bounds.second)
133 continue;
134 std::vector<int32> const* spellTriggered = sSpellMgr->GetSpellLinked(visAura->GetId() + SPELL_LINK_AURA);
135 if (!spellTriggered || !spellTriggered->empty())
136 continue;
137 if (Aura* newAura = me->AddAura(visAura->GetId(), me))
138 newAura->SetDuration(visAura->GetDuration());
139 }
140
141 me->m_Events.AddEventAtOffset(new DeathEvent(*me), 29500ms);
142 }
std::pair< SpellScriptsContainer::iterator, SpellScriptsContainer::iterator > SpellScriptsBounds
Definition ObjectMgr.h:388
#define sObjectMgr
Definition ObjectMgr.h:1650
#define sSpellMgr
Definition SpellMgr.h:825
@ SPELL_LINK_AURA
Definition SpellMgr.h:98
@ REACT_DEFENSIVE
Definition Unit.h:551
@ UNIT_CREATED_BY_SPELL
Definition UpdateFields.h:138
Definition SpellAuras.h:87
void InitializeAI() override
Definition CombatAI.cpp:110
void SetReactState(ReactStates state)
A creature can have 3 ReactStates : Agressive, Passive, Neutral.
Definition Creature.h:99
Definition pet_mage.cpp:43
void AddEventAtOffset(BasicEvent *event, Milliseconds offset, uint8 eventGroup=0)
Definition EventProcessor.h:108
HostileReference * getFirst()
Definition HostileRefMgr.h:59
Definition ThreatMgr.h:48
float GetThreat() const
Definition ThreatMgr.h:62
void AddThreat(float modThreat)
Definition ThreatMgr.cpp:138
float getTempThreatModifier()
Definition ThreatMgr.h:93
HostileReference * next()
Definition ThreatMgr.h:115
Definition TemporarySummon.h:77
void Clear()
Definition ObjectGuid.h:138
uint32 GetUInt32Value(uint16 index) const
Definition Object.cpp:294
FROM * GetSource() const
Definition Reference.h:97
Unit * GetOwner() const
Definition ThreatMgr.h:236
Unit * GetOwner() const
Definition Unit.cpp:10676
Aura * AddAura(uint32 spellId, Unit *target)
Definition Unit.cpp:18944
std::map< uint8, AuraApplication * > VisibleAuraMap
Definition Unit.h:650
HostileRefMgr & getHostileRefMgr()
Definition Unit.h:918
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:1194
VisibleAuraMap const * GetVisibleAuras()
Definition Unit.h:1476
void NearTeleportTo(Position &pos, bool casting=false, bool vehicleTeleport=false, bool withPet=false, bool removeTransport=false)
Definition Unit.cpp:19791
bool IsInCombat() const
Definition Unit.h:895
EventProcessor m_Events
Definition Object.h:731
@ SPELL_MAGE_CLONE_ME
Definition pet_mage.cpp:33
@ SPELL_SUMMON_MIRROR_IMAGE1
Definition pet_mage.cpp:36
@ SPELL_SUMMON_MIRROR_IMAGE3
Definition pet_mage.cpp:38
@ SPELL_SUMMON_MIRROR_IMAGE2
Definition pet_mage.cpp:37
float GetPositionZ() const
Definition Position.h:123
float GetOrientation() const
Definition Position.h:124
float GetPositionX() const
Definition Position.h:121
float GetPositionY() const
Definition Position.h:122
uint32 dist
Definition pet_mage.cpp:64
ObjectGuid _ebonGargoyleGUID
Definition pet_mage.cpp:62
bool _delayAttack
Definition pet_mage.cpp:65

References _delayAttack, _ebonGargoyleGUID, Unit::AddAura(), EventProcessor::AddEventAtOffset(), HostileReference::AddThreat(), Unit::CastSpell(), ObjectGuid::Clear(), dist, HostileRefMgr::getFirst(), Unit::GetFollowAngle(), Unit::getHostileRefMgr(), Unit::GetMotionMaster(), Position::GetOrientation(), ThreatMgr::GetOwner(), Unit::GetOwner(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Reference< TO, FROM >::GetSource(), HostileReference::getTempThreatModifier(), HostileReference::GetThreat(), Object::GetUInt32Value(), Unit::GetVisibleAuras(), CasterAI::InitializeAI(), Unit::IsInCombat(), WorldObject::m_Events, CreatureAI::me, MOTION_SLOT_ACTIVE, MotionMaster::MoveFollow(), Unit::NearTeleportTo(), HostileReference::next(), PET_FOLLOW_DIST, REACT_DEFENSIVE, Creature::SetReactState(), sObjectMgr, SPELL_LINK_AURA, SPELL_MAGE_CLONE_ME, SPELL_SUMMON_MIRROR_IMAGE1, SPELL_SUMMON_MIRROR_IMAGE2, SPELL_SUMMON_MIRROR_IMAGE3, sSpellMgr, and UNIT_CREATED_BY_SPELL.

◆ MySelectNextTarget()

void npc_pet_mage_mirror_image::MySelectNextTarget ( )
inline
161 {
163 {
165 if (gargoyle && gargoyle->GetAI())
166 gargoyle->GetAI()->AttackStart(me);
168 }
169 Unit* owner = me->GetOwner();
170 if (owner && owner->IsPlayer())
171 {
172 Unit* selection = owner->ToPlayer()->GetSelectedUnit();
173
174 if (selection)
175 {
177 me->AddThreat(selection, 1000000.0f);
178
179 if (owner->IsInCombat())
180 AttackStart(selection);
181 }
182
183 if (!owner->IsInCombat() && !me->GetVictim())
185 }
186 }
void AttackStart(Unit *victim) override
Definition CombatAI.h:62
@ EVADE_REASON_OTHER
Definition CreatureAI.h:94
bool IsPlayer() const
Definition Object.h:201
Player * ToPlayer()
Definition Object.h:202
Unit * GetSelectedUnit() const
Definition Player.cpp:11566
void ResetAllThreat()
Definition ThreatMgr.cpp:651
virtual void AttackStart(Unit *)
Definition UnitAI.cpp:27
void AddThreat(Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=nullptr)
Definition Unit.cpp:14739
Unit * GetVictim() const
Definition Unit.h:864
UnitAI * GetAI()
Definition Unit.h:656
ThreatMgr & GetThreatMgr()
Definition Unit.h:914
Unit * GetUnit(WorldObject const &, ObjectGuid const &guid)
Definition ObjectAccessor.cpp:199
void EnterEvadeMode(EvadeReason) override
Definition pet_mage.cpp:145

References _ebonGargoyleGUID, Unit::AddThreat(), UnitAI::AttackStart(), CasterAI::AttackStart(), ObjectGuid::Clear(), EnterEvadeMode(), CreatureAI::EVADE_REASON_OTHER, Unit::GetAI(), Unit::GetOwner(), Player::GetSelectedUnit(), Unit::GetThreatMgr(), ObjectAccessor::GetUnit(), Unit::GetVictim(), Unit::IsInCombat(), Object::IsPlayer(), CreatureAI::me, ThreatMgr::ResetAllThreat(), and Object::ToPlayer().

Referenced by UpdateAI().

◆ Reset()

void npc_pet_mage_mirror_image::Reset ( )
inlineoverridevirtual

Reimplemented from CombatAI.

189 {
190 selectionTimer = 0;
191 checktarget = 0;
192 }
uint32 checktarget
Definition pet_mage.cpp:63
uint32 selectionTimer
Definition pet_mage.cpp:61

References checktarget, and selectionTimer.

◆ UpdateAI()

void npc_pet_mage_mirror_image::UpdateAI ( uint32  )
inlineoverridevirtual

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

Reimplemented from CasterAI.

195 {
196 if (_delayAttack)
197 return;
198
199 events.Update(diff);
200
201 if (!me->IsInCombat() || !me->GetVictim())
202 {
204 return;
205 }
206
207 checktarget += diff;
208
209 if (checktarget >= 1000)
210 {
212 {
214 me->InterruptNonMeleeSpells(true); // Stop casting if target is CC or not Alive.
215 return;
216 }
217 }
218
220 return;
221
222 if (uint32 spellId = events.ExecuteEvent())
223 {
224 events.RescheduleEvent(spellId, spellId == 59637 ? 6500ms : 2500ms);
225 me->CastSpell(me->GetVictim(), spellId, false);
226 }
227 }
std::uint32_t uint32
Definition Define.h:107
@ UNIT_STATE_CASTING
Definition UnitDefines.h:185
events
Definition boss_sartura.cpp:43
bool HasBreakableByDamageCrowdControlAura(Unit *excludeCasterChannel=nullptr) const
Definition Unit.cpp:801
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true, bool bySelf=false)
Definition Unit.cpp:4188
void MySelectNextTarget()
Definition pet_mage.cpp:160

References _delayAttack, Unit::CastSpell(), checktarget, Unit::GetVictim(), Unit::HasBreakableByDamageCrowdControlAura(), Unit::HasUnitState(), Unit::InterruptNonMeleeSpells(), Unit::IsAlive(), Unit::IsInCombat(), CreatureAI::me, MySelectNextTarget(), and UNIT_STATE_CASTING.

Member Data Documentation

◆ _delayAttack

bool npc_pet_mage_mirror_image::_delayAttack

Referenced by InitializeAI(), and UpdateAI().

◆ _ebonGargoyleGUID

ObjectGuid npc_pet_mage_mirror_image::_ebonGargoyleGUID

Referenced by InitializeAI(), and MySelectNextTarget().

◆ checktarget

uint32 npc_pet_mage_mirror_image::checktarget

Referenced by Reset(), and UpdateAI().

◆ dist

uint32 npc_pet_mage_mirror_image::dist = urand(1, 5)

Referenced by InitializeAI().

◆ selectionTimer

uint32 npc_pet_mage_mirror_image::selectionTimer

Referenced by Reset().


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