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

Public Member Functions

 boss_jedoga_shadowseekerAI (Creature *creature)
 
void Initialize ()
 
void Reset () override
 
void EnterCombat (Unit *who) override
 
void AttackStart (Unit *who) override
 
void KilledUnit (Unit *Victim) override
 
void JustDied (Unit *) override
 
void DoAction (int32 action) override
 
uint32 GetData (uint32 type) const override
 
void MoveInLineOfSight (Unit *who) override
 
void MoveDown ()
 
void MoveUp ()
 
void OpferRufen ()
 
void Opfern ()
 
void UpdateAI (uint32 diff) override
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
virtual ~ScriptedAI ()
 
void AttackStartNoMove (Unit *target)
 
void DamageTaken (Unit *, uint32 &) override
 
void JustSummoned (Creature *) override
 
void SummonedCreatureDespawn (Creature *) override
 
void SpellHit (Unit *, SpellInfo const *) override
 
void SpellHitTarget (Unit *, SpellInfo const *) override
 
void OnPossess (bool)
 
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)
 
Unit * DoSelectLowestHpFriendly (float range, uint32 minHPDiff=1)
 
std::list< Creature * > DoFindFriendlyCC (float range)
 
std::list< Creature * > DoFindFriendlyMissingBuff (float range, uint32 spellId)
 
Player * GetPlayerAtMinimumRange (float minRange)
 
Creature * DoSpawnCreature (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 const * SelectSpell (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
 
virtual void JustReachedHome ()
 
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 const * GetBoundary () const
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void InitializeAI ()
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
Unit * SelectTarget (SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
 
template<class PREDICATE >
Unit * SelectTarget (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)
 

Public Attributes

InstanceScript * instance
 
uint32 uiOpFerTimer
 
uint32 uiCycloneTimer
 
uint32 uiBoltTimer
 
uint32 uiThunderTimer
 
bool bPreDone
 
bool bOpFerok
 
bool bOnGround
 
bool bOpFerokFail
 
bool bCanDown
 
bool volunteerWork
 
bool bFirstTime
 
- Public Attributes inherited from ScriptedAI
bool IsFleeing
 

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 ()
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoType * AISpellInfo
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
bool UpdateVictimWithGaze ()
 
void SetGazeOn (Unit *target)
 
Creature * DoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
Creature * DoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
Creature * DoSummonFlyer (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)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
CreatureBoundary const * _boundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Constructor & Destructor Documentation

boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::boss_jedoga_shadowseekerAI ( Creature *  creature)
inline
65  : ScriptedAI(creature)
66  {
67  Initialize();
68  instance = creature->GetInstanceScript();
69  bFirstTime = true;
70  bPreDone = false;
71  }
bool bPreDone
Definition: boss_jedoga_shadowseeker.cpp:95
ScriptedAI(Creature *creature)
Definition: ScriptedCreature.cpp:100
InstanceScript * GetInstanceScript()
Definition: Object.cpp:1540
bool bFirstTime
Definition: boss_jedoga_shadowseeker.cpp:101
void Initialize()
Definition: boss_jedoga_shadowseeker.cpp:73
InstanceScript * instance
Definition: boss_jedoga_shadowseeker.cpp:88

+ Here is the call graph for this function:

Member Function Documentation

void boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::AttackStart ( Unit *  who)
inlineoverridevirtual

Reimplemented from ScriptedAI.

129  {
130  if (!who || (who->GetTypeId() == TYPEID_UNIT && who->GetEntry() == NPC_JEDOGA_CONTROLLER))
131  return;
132 
134  }
Definition: ObjectGuid.h:32
TypeID GetTypeId() const
Definition: Object.h:113
Definition: ahnkahet.h:61
void AttackStart(Unit *) override
Definition: ScriptedCreature.cpp:117
uint32 GetEntry() const
Definition: Object.h:107

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::DoAction ( int32  action)
inlineoverridevirtual

Reimplemented from UnitAI.

151  {
152  if (action == ACTION_INITIAND_KILLED)
153  volunteerWork = false;
154  }
Definition: boss_jedoga_shadowseeker.cpp:54
bool volunteerWork
Definition: boss_jedoga_shadowseeker.cpp:100
void boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::EnterCombat ( Unit *  who)
inlineoverridevirtual

Reimplemented from ScriptedAI.

119  {
120  if (!instance || (who->GetTypeId() == TYPEID_UNIT && who->GetEntry() == NPC_JEDOGA_CONTROLLER))
121  return;
122 
123  Talk(TEXT_AGGRO);
126  }
Definition: ObjectGuid.h:32
Creature *const me
Definition: CreatureAI.h:71
TypeID GetTypeId() const
Definition: Object.h:113
Definition: InstanceScript.h:59
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:273
Definition: ahnkahet.h:61
InstanceScript * instance
Definition: boss_jedoga_shadowseeker.cpp:88
void SetInCombatWithZone()
Definition: Creature.cpp:2299
Definition: ahnkahet.h:31
Definition: boss_jedoga_shadowseeker.cpp:29
uint32 GetEntry() const
Definition: Object.h:107

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint32 boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::GetData ( uint32  type) const
inlineoverridevirtual

Reimplemented from UnitAI.

157  {
158  if (type == DATA_VOLUNTEER_WORK)
159  return volunteerWork ? 1 : 0;
160 
161  return 0;
162  }
Definition: boss_jedoga_shadowseeker.cpp:55
bool volunteerWork
Definition: boss_jedoga_shadowseeker.cpp:100
void boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::Initialize ( void  )
inline
74  {
76 
80 
81  bOpFerok = false;
82  bOpFerokFail = false;
83  bOnGround = false;
84  bCanDown = false;
85  volunteerWork = true;
86  }
uint32 uiBoltTimer
Definition: boss_jedoga_shadowseeker.cpp:92
bool bOpFerokFail
Definition: boss_jedoga_shadowseeker.cpp:98
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
Definition: Common.h:103
uint32 uiOpFerTimer
Definition: boss_jedoga_shadowseeker.cpp:90
bool bCanDown
Definition: boss_jedoga_shadowseeker.cpp:99
uint32 uiCycloneTimer
Definition: boss_jedoga_shadowseeker.cpp:91
bool bOnGround
Definition: boss_jedoga_shadowseeker.cpp:97
bool volunteerWork
Definition: boss_jedoga_shadowseeker.cpp:100
uint32 uiThunderTimer
Definition: boss_jedoga_shadowseeker.cpp:93
bool bOpFerok
Definition: boss_jedoga_shadowseeker.cpp:96

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::JustDied ( Unit *  )
inlineoverridevirtual

Reimplemented from ScriptedAI.

145  {
146  Talk(TEXT_DEATH);
148  }
Definition: inflate.h:49
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:273
Definition: boss_jedoga_shadowseeker.cpp:33
InstanceScript * instance
Definition: boss_jedoga_shadowseeker.cpp:88
Definition: ahnkahet.h:31

+ Here is the call graph for this function:

void boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::KilledUnit ( Unit *  Victim)
inlineoverridevirtual

Reimplemented from ScriptedAI.

137  {
138  if (!Victim || Victim->GetTypeId() != TYPEID_PLAYER)
139  return;
140 
141  Talk(TEXT_SLAY);
142  }
TypeID GetTypeId() const
Definition: Object.h:113
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
Definition: ObjectGuid.h:33
Definition: boss_jedoga_shadowseeker.cpp:32

+ Here is the call graph for this function:

void boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::MoveDown ( )
inline
198  {
199  bOpFerokFail = false;
200 
206 
208 
209  bOnGround = true;
210 
211  if (UpdateVictim())
212  {
215  }
216  else
217  {
219  {
220  AttackStart(target);
223  EnterCombat(target);
224  }
225  else if (!me->IsInCombat())
226  EnterEvadeMode();
227  }
228  }
Definition: ahnkahet.h:42
Definition: SharedDefines.h:1863
Definition: Unit.h:674
Definition: SharedDefines.h:303
bool UpdateVictim()
Definition: CreatureAI.cpp:233
TC_GAME_API Unit * GetUnit(WorldObject const &, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:163
void MoveChase(Unit *target, float dist=0.0f, float angle=0.0f)
Definition: MotionMaster.cpp:241
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition: CreatureAI.cpp:168
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
bool IsInCombat() const
Definition: Unit.h:1584
const Position JedogaPosition[2]
Definition: boss_jedoga_shadowseeker.cpp:46
void ApplySpellImmune(uint32 spellId, uint32 op, uint32 type, bool apply)
Definition: Unit.cpp:9615
bool bOpFerokFail
Definition: boss_jedoga_shadowseeker.cpp:98
Definition: ahnkahet.h:39
Creature *const me
Definition: CreatureAI.h:71
void MovePoint(uint32 id, Position const &pos, bool generatePath=true)
Definition: MotionMaster.h:172
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
Definition: SharedDefines.h:288
Definition: InstanceScript.h:59
Unit * GetVictim() const
Definition: Unit.h:1379
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52
void EnterCombat(Unit *who) override
Definition: boss_jedoga_shadowseeker.cpp:118
Definition: ahnkahet.h:43
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
void AttackStart(Unit *who) override
Definition: boss_jedoga_shadowseeker.cpp:128
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:3586
Definition: UpdateFields.h:109
InstanceScript * instance
Definition: boss_jedoga_shadowseeker.cpp:88
Definition: ahnkahet.h:31
Definition: boss_jedoga_shadowseeker.cpp:39
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:227
Definition: Unit.h:1305
bool bOnGround
Definition: boss_jedoga_shadowseeker.cpp:97
Definition: Unit.h:698

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::MoveInLineOfSight ( Unit *  who)
inlineoverridevirtual

Reimplemented from CreatureAI.

165  {
166  if (!instance || !who || (who->GetTypeId() == TYPEID_UNIT && who->GetEntry() == NPC_JEDOGA_CONTROLLER))
167  return;
168 
169  if (!bPreDone && who->GetTypeId() == TYPEID_PLAYER && me->GetDistance(who) < 100.0f)
170  {
172  bPreDone = true;
173  }
174 
176  return;
177 
178  if (!me->GetVictim() && me->CanCreatureAttack(who))
179  {
180  float attackRadius = me->GetAttackDistance(who);
181  if (me->IsWithinDistInMap(who, attackRadius) && me->IsWithinLOSInMap(who))
182  {
183  if (!me->GetVictim())
184  {
186  AttackStart(who);
187  }
188  else
189  {
190  who->SetInCombatWith(me);
191  me->AddThreat(who, 0.0f);
192  }
193  }
194  }
195  }
bool bPreDone
Definition: boss_jedoga_shadowseeker.cpp:95
void AddThreat(Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=NULL)
Definition: Unit.cpp:10691
bool IsWithinLOSInMap(WorldObject const *obj) const
Definition: Object.cpp:1584
Definition: SpellAuraDefines.h:76
Definition: ObjectGuid.h:32
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true) const
Definition: Object.cpp:1663
Definition: boss_jedoga_shadowseeker.cpp:34
Creature *const me
Definition: CreatureAI.h:71
TypeID GetTypeId() const
Definition: Object.h:113
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1594
float GetAttackDistance(Unit const *player) const
Definition: Creature.cpp:1586
Definition: InstanceScript.h:59
Unit * GetVictim() const
Definition: Unit.h:1379
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
void AttackStart(Unit *who) override
Definition: boss_jedoga_shadowseeker.cpp:128
Definition: ahnkahet.h:61
Definition: ObjectGuid.h:33
bool CanCreatureAttack(Unit const *victim, bool force=true) const
Definition: Creature.cpp:2170
InstanceScript * instance
Definition: boss_jedoga_shadowseeker.cpp:88
Definition: ahnkahet.h:31
void RemoveAurasByType(AuraType auraType, std::function< bool(AuraApplication const *)> const &check)
Definition: Unit.cpp:3567
uint32 GetEntry() const
Definition: Object.h:107
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:227
bool bOnGround
Definition: boss_jedoga_shadowseeker.cpp:97
void SetInCombatWith(Unit *enemy)
Definition: Unit.cpp:9840

+ Here is the call graph for this function:

void boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::MoveUp ( )
inline
231  {
235 
236  me->AttackStop();
237  me->RemoveAllAuras();
240 
243  OpferRufen();
244 
245  bOnGround = false;
247  }
bool AttackStop()
Definition: Unit.cpp:7337
Definition: ahnkahet.h:42
Definition: SharedDefines.h:1863
void RemoveAllAuras()
Definition: Unit.cpp:3920
Definition: Unit.h:674
Definition: SharedDefines.h:303
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
const Position JedogaPosition[2]
Definition: boss_jedoga_shadowseeker.cpp:46
void ApplySpellImmune(uint32 spellId, uint32 op, uint32 type, bool apply)
Definition: Unit.cpp:9615
void SetFlag(uint16 index, uint32 newFlag)
Definition: Object.cpp:1199
Creature *const me
Definition: CreatureAI.h:71
void MovePoint(uint32 id, Position const &pos, bool generatePath=true)
Definition: MotionMaster.h:172
Definition: SharedDefines.h:288
Definition: InstanceScript.h:59
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52
Definition: UpdateFields.h:109
Definition: Common.h:103
InstanceScript * instance
Definition: boss_jedoga_shadowseeker.cpp:88
bool LoadCreaturesAddon()
Definition: Creature.cpp:2214
Definition: ahnkahet.h:31
uint32 uiOpFerTimer
Definition: boss_jedoga_shadowseeker.cpp:90
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:227
bool bOnGround
Definition: boss_jedoga_shadowseeker.cpp:97
Definition: Unit.h:698
void OpferRufen()
Definition: boss_jedoga_shadowseeker.cpp:249

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::Opfern ( )
inline
263  {
265 
266  me->InterruptNonMeleeSpells(false);
268 
269  bOpFerok = false;
270  bCanDown = true;
271  }
Creature *const me
Definition: CreatureAI.h:71
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
Definition: boss_jedoga_shadowseeker.cpp:31
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true)
Definition: Unit.cpp:2916
bool bCanDown
Definition: boss_jedoga_shadowseeker.cpp:99
bool bOpFerok
Definition: boss_jedoga_shadowseeker.cpp:96
Definition: boss_jedoga_shadowseeker.cpp:40

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::OpferRufen ( )
inline
250  {
252 
253  if (!opfer.IsEmpty())
254  {
257  }
258  else
259  bCanDown = true;
260  }
virtual void SetGuidData(uint32, ObjectGuid)
Definition: ZoneScript.h:45
Definition: ahnkahet.h:41
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
Definition: ahnkahet.h:40
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
Definition: boss_jedoga_shadowseeker.cpp:30
InstanceScript * instance
Definition: boss_jedoga_shadowseeker.cpp:88
Definition: ObjectGuid.h:189
bool bCanDown
Definition: boss_jedoga_shadowseeker.cpp:99
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_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::Reset ( )
inlineoverridevirtual

Reimplemented from ScriptedAI.

104  {
105  Initialize();
106 
107  if (!bFirstTime)
109 
113  MoveUp();
114 
115  bFirstTime = false;
116  }
void MoveUp()
Definition: boss_jedoga_shadowseeker.cpp:230
static ObjectGuid const Empty
Definition: ObjectGuid.h:196
bool bFirstTime
Definition: boss_jedoga_shadowseeker.cpp:101
virtual void SetGuidData(uint32, ObjectGuid)
Definition: ZoneScript.h:45
Definition: InstanceScript.h:60
void Initialize()
Definition: boss_jedoga_shadowseeker.cpp:73
Definition: ahnkahet.h:39
Definition: ahnkahet.h:40
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:273
Definition: ahnkahet.h:43
InstanceScript * instance
Definition: boss_jedoga_shadowseeker.cpp:88
Definition: ahnkahet.h:31

+ Here is the call graph for this function:

void boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from ScriptedAI.

274  {
276  MoveDown();
277 
278  if (bOpFerok && !bOnGround && !bCanDown) Opfern();
279 
280  if (bOpFerokFail && !bOnGround && !bCanDown)
281  bCanDown = true;
282 
283  if (bCanDown)
284  {
285  MoveDown();
286  bCanDown = false;
287  }
288 
289  if (bOnGround)
290  {
291  if (!UpdateVictim())
292  return;
293 
294  if (uiCycloneTimer <= diff)
295  {
296  DoCast(me, SPELL_CYCLONE_STRIKE, false);
298  } else uiCycloneTimer -= diff;
299 
300  if (uiBoltTimer <= diff)
301  {
302  if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true))
303  me->CastSpell(target, SPELL_LIGHTNING_BOLT, false);
304 
306  } else uiBoltTimer -= diff;
307 
308  if (uiThunderTimer <= diff)
309  {
310  if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true))
311  me->CastSpell(target, SPELL_THUNDERSHOCK, false);
312 
314  } else uiThunderTimer -= diff;
315 
316  if (uiOpFerTimer <= diff)
317  MoveUp();
318  else
319  uiOpFerTimer -= diff;
320 
322  }
323  }
void MoveDown()
Definition: boss_jedoga_shadowseeker.cpp:197
void MoveUp()
Definition: boss_jedoga_shadowseeker.cpp:230
Definition: boss_jedoga_shadowseeker.cpp:43
bool UpdateVictim()
Definition: CreatureAI.cpp:233
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:51
uint32 uiBoltTimer
Definition: boss_jedoga_shadowseeker.cpp:92
void Opfern()
Definition: boss_jedoga_shadowseeker.cpp:262
bool bOpFerokFail
Definition: boss_jedoga_shadowseeker.cpp:98
Creature *const me
Definition: CreatureAI.h:71
Definition: UnitAI.h:35
Definition: InstanceScript.h:59
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
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
Definition: boss_jedoga_shadowseeker.cpp:41
Definition: Common.h:103
InstanceScript * instance
Definition: boss_jedoga_shadowseeker.cpp:88
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:49
Definition: ahnkahet.h:31
uint32 uiOpFerTimer
Definition: boss_jedoga_shadowseeker.cpp:90
Definition: ahnkahet.h:44
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:227
bool bCanDown
Definition: boss_jedoga_shadowseeker.cpp:99
uint32 uiCycloneTimer
Definition: boss_jedoga_shadowseeker.cpp:91
Definition: Unit.h:1305
bool bOnGround
Definition: boss_jedoga_shadowseeker.cpp:97
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
uint32 uiThunderTimer
Definition: boss_jedoga_shadowseeker.cpp:93
bool bOpFerok
Definition: boss_jedoga_shadowseeker.cpp:96
Definition: boss_jedoga_shadowseeker.cpp:42

+ Here is the call graph for this function:

Member Data Documentation

bool boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::bCanDown
bool boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::bFirstTime
bool boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::bOnGround
bool boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::bOpFerok
bool boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::bOpFerokFail
bool boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::bPreDone
InstanceScript* boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::instance
uint32 boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::uiBoltTimer
uint32 boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::uiCycloneTimer
uint32 boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::uiOpFerTimer
uint32 boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::uiThunderTimer
bool boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::volunteerWork

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