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

Public Member Functions

 npc_feugenAI (Creature *creature)
 
void Initialize ()
 
void Reset () override
 
void BeginResetEncounter ()
 
void ResetEncounter ()
 
void DoAction (int32 action) override
 
void KilledUnit (Unit *victim) override
 
void EnterCombat (Unit *who) override
 
void DamageTaken (Unit *, uint32 &damage) override
 
void SpellHit (Unit *caster, SpellInfo const *spell) override
 
void UpdateAI (uint32 uiDiff) override
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
virtual ~ScriptedAI ()
 
void AttackStartNoMove (Unit *target)
 
void JustDied (Unit *) override
 
void JustSummoned (Creature *) override
 
void SummonedCreatureDespawn (Creature *) override
 
void SpellHitTarget (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 ()
 
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 constGetBoundary () const
 
- 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 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 Member Functions

CreaturemyCoil ()
 
GameObjectmyCoilGO ()
 

Private Attributes

InstanceScriptinstance
 
uint32 magneticPullTimer
 
uint32 staticFieldTimer
 
ObjectGuid _myCoil
 
ObjectGuid _myCoilGO
 
bool isOverloading
 
bool refreshBeam
 
bool isFeignDeath
 

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 ScriptedAI
bool IsFleeing
 
- 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)
 
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 CreatureAI
Creature *const me
 
CreatureBoundary const_boundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Constructor & Destructor Documentation

npc_feugen::npc_feugenAI::npc_feugenAI ( Creature creature)
inline
724  {
725  Initialize();
726  instance = creature->GetInstanceScript();
728  }
CreatureBoundary const * GetBossBoundary(uint32 id) const
Definition: InstanceScript.h:229
ScriptedAI(Creature *creature)
Definition: ScriptedCreature.cpp:100
static ObjectGuid const Empty
Definition: ObjectGuid.h:196
ObjectGuid _myCoilGO
Definition: boss_thaddius.cpp:973
InstanceScript * GetInstanceScript()
Definition: Object.cpp:1540
bool isFeignDeath
Definition: boss_thaddius.cpp:977
bool isOverloading
Definition: boss_thaddius.cpp:975
Definition: naxxramas.h:36
InstanceScript * instance
Definition: boss_thaddius.cpp:967
ObjectGuid _myCoil
Definition: boss_thaddius.cpp:972
void Initialize()
Definition: boss_thaddius.cpp:730
void SetBoundary(CreatureBoundary const *boundary)
Definition: CreatureAI.h:83
bool refreshBeam
Definition: boss_thaddius.cpp:976

+ Here is the call graph for this function:

Member Function Documentation

void npc_feugen::npc_feugenAI::BeginResetEncounter ( )
inline
758  {
759  if (GameObject* coil = myCoilGO())
760  coil->SetGoState(GO_STATE_READY);
762  me->setActive(false);
763  }
void DespawnOrUnsummon(uint32 msTimeToDespawn=0)
Definition: Creature.cpp:1774
void setActive(bool isActiveObject)
Definition: Object.cpp:1473
Creature *const me
Definition: CreatureAI.h:71
Definition: GameObject.h:880
Definition: GameObject.h:823
GameObject * myCoilGO()
Definition: boss_thaddius.cpp:954

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void npc_feugen::npc_feugenAI::DamageTaken ( Unit ,
uint32 damage 
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

850  {
851  if (damage < me->GetHealth())
852  return;
853 
854  if (isFeignDeath) // don't take damage while feigning death
855  {
856  damage = 0;
857  return;
858  }
859 
860  isFeignDeath = true;
861  isOverloading = false;
862 
865  thaddius->AI()->DoAction(ACTION_FEUGEN_DIED);
866 
867  me->RemoveAllAuras();
869  me->AttackStop();
870  me->StopMoving();
873 
874  damage = 0;
875 
876  // force beam refresh as we just removed auras
877  refreshBeam = true;
878  }
bool AttackStop()
Definition: Unit.cpp:7337
Definition: Unit.h:214
void RemoveAllAuras()
Definition: Unit.cpp:3920
Definition: Unit.h:1129
bool isFeignDeath
Definition: boss_thaddius.cpp:977
bool isOverloading
Definition: boss_thaddius.cpp:975
InstanceScript * instance
Definition: boss_thaddius.cpp:967
Definition: Creature.h:467
void SetFlag(uint16 index, uint32 newFlag)
Definition: Object.cpp:1199
Creature *const me
Definition: CreatureAI.h:71
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
Definition: boss_thaddius.cpp:90
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: naxxramas.h:74
bool refreshBeam
Definition: boss_thaddius.cpp:976
Definition: UpdateFields.h:109
void SetStandState(UnitStandStateType state, uint32 animKitID=0)
Definition: Unit.cpp:12772
Definition: boss_thaddius.cpp:40
void StopMoving()
-------—End of Pet responses methods-------—
Definition: Unit.cpp:12743
void SetReactState(ReactStates st)
Definition: Creature.h:502
Definition: Unit.h:698

+ Here is the call graph for this function:

void npc_feugen::npc_feugenAI::DoAction ( int32  action)
inlineoverridevirtual

Reimplemented from UnitAI.

772  {
773  switch (action)
774  {
777  break;
779  ResetEncounter();
780  break;
782  break;
784  if (!isFeignDeath)
785  break;
786 
787  me->SetFullHealth();
792  isFeignDeath = false;
793 
794  refreshBeam = true; // force beam refresh
795 
797  if (stalagg->GetVictim())
798  {
799  me->AddThreat(stalagg->EnsureVictim(), 0.0f);
800  me->SetInCombatWith(stalagg->EnsureVictim());
801  }
804  break;
805  case ACTION_TRANSITION:
806  me->KillSelf(); // true death this time around
808 
809  if (Creature* coil = myCoil())
810  {
811  coil->CastStop();
812  coil->AI()->Talk(EMOTE_TESLA_OVERLOAD);
813  }
814  break;
815  case ACTION_TRANSITION_2:
816  if (Creature* coil = myCoil())
818  coil->CastSpell(thaddius, SPELL_SHOCK_VISUAL);
819  break;
820  case ACTION_TRANSITION_3:
821  if (GameObject* coil = myCoilGO())
822  coil->SetGoState(GO_STATE_READY);
823  default:
824  break;
825  }
826  }
Definition: Unit.h:207
void DespawnOrUnsummon(uint32 msTimeToDespawn=0)
Definition: Creature.cpp:1774
Definition: boss_thaddius.cpp:51
void AddThreat(Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=NULL)
Definition: Unit.cpp:10691
Definition: boss_thaddius.cpp:39
void KillSelf(bool durabilityLoss=true)
Definition: Unit.h:1515
Definition: Unit.h:1131
bool isFeignDeath
Definition: boss_thaddius.cpp:977
InstanceScript * instance
Definition: boss_thaddius.cpp:967
Definition: Creature.h:467
Definition: boss_thaddius.cpp:94
Definition: boss_thaddius.cpp:38
Definition: boss_thaddius.cpp:48
Definition: boss_thaddius.cpp:46
Creature *const me
Definition: CreatureAI.h:71
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
Definition: boss_thaddius.cpp:52
uint32 staticFieldTimer
Definition: boss_thaddius.cpp:970
Creature * myCoil()
Definition: boss_thaddius.cpp:937
Definition: GameObject.h:880
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
void BeginResetEncounter()
Definition: boss_thaddius.cpp:757
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: naxxramas.h:74
Definition: boss_thaddius.cpp:91
Definition: GameObject.h:823
uint32 magneticPullTimer
Definition: boss_thaddius.cpp:969
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
bool refreshBeam
Definition: boss_thaddius.cpp:976
Definition: UpdateFields.h:109
Definition: boss_thaddius.cpp:50
void ResetEncounter()
Definition: boss_thaddius.cpp:765
Definition: Common.h:103
void SetStandState(UnitStandStateType state, uint32 animKitID=0)
Definition: Unit.cpp:12772
Definition: boss_thaddius.cpp:138
void SetFullHealth()
Definition: Unit.h:1440
Definition: naxxramas.h:77
GameObject * myCoilGO()
Definition: boss_thaddius.cpp:954
void SetReactState(ReactStates st)
Definition: Creature.h:502
Definition: Unit.h:698
void SetInCombatWith(Unit *enemy)
Definition: Unit.cpp:9840

+ Here is the call graph for this function:

void npc_feugen::npc_feugenAI::EnterCombat ( Unit who)
inlineoverridevirtual

Reimplemented from ScriptedAI.

835  {
837 
839  thaddius->AI()->DoAction(ACTION_STALAGG_AGGRO);
840 
842  if (!stalagg->IsInCombat())
843  {
844  stalagg->AddThreat(who, 0.0f);
845  stalagg->SetInCombatWith(who);
846  }
847  }
InstanceScript * instance
Definition: boss_thaddius.cpp:967
Definition: Creature.h:467
Creature *const me
Definition: CreatureAI.h:71
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
Definition: boss_thaddius.cpp:45
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: naxxramas.h:74
Definition: boss_thaddius.cpp:86
Definition: naxxramas.h:77

+ Here is the call graph for this function:

void npc_feugen::npc_feugenAI::Initialize ( void  )
inline
731  {
732  if (GameObject* coil = myCoilGO())
733  coil->SetGoState(GO_STATE_ACTIVE);
734 
735  // if the encounter reset while feigning death
739  isOverloading = false;
740  isFeignDeath = false;
741 
742  // force coil state to refresh
743  refreshBeam = true;
744 
747  }
Definition: Unit.h:207
Definition: Unit.h:1131
bool isFeignDeath
Definition: boss_thaddius.cpp:977
bool isOverloading
Definition: boss_thaddius.cpp:975
Creature *const me
Definition: CreatureAI.h:71
uint32 staticFieldTimer
Definition: boss_thaddius.cpp:970
Definition: GameObject.h:880
Definition: GameObject.h:822
uint32 magneticPullTimer
Definition: boss_thaddius.cpp:969
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
bool refreshBeam
Definition: boss_thaddius.cpp:976
Definition: UpdateFields.h:109
Definition: Common.h:103
void SetStandState(UnitStandStateType state, uint32 animKitID=0)
Definition: Unit.cpp:12772
GameObject * myCoilGO()
Definition: boss_thaddius.cpp:954
void SetReactState(ReactStates st)
Definition: Creature.h:502
Definition: Unit.h:698

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void npc_feugen::npc_feugenAI::KilledUnit ( Unit victim)
inlineoverridevirtual

Reimplemented from ScriptedAI.

829  {
830  if (victim->GetTypeId() == TYPEID_PLAYER)
832  }
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_thaddius.cpp:87

+ Here is the call graph for this function:

Creature* npc_feugen::npc_feugenAI::myCoil ( )
inlineprivate
938  {
939  Creature* coil = nullptr;
940  if (!_myCoil.IsEmpty())
942  if (!coil)
943  {
944  coil = me->FindNearestCreature(NPC_TESLA, 1000.0f, true);
945  if (coil)
946  {
947  _myCoil = coil->GetGUID();
949  }
950  }
951  return coil;
952  }
Definition: naxxramas.h:100
Definition: Unit.h:1129
Definition: Creature.h:467
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2443
ObjectGuid _myCoil
Definition: boss_thaddius.cpp:972
Creature *const me
Definition: CreatureAI.h:71
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
ObjectGuid const & GetGUID() const
Definition: Object.h:105
void SetReactState(ReactStates st)
Definition: Creature.h:502
bool IsEmpty() const
Definition: ObjectGuid.h:242

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GameObject* npc_feugen::npc_feugenAI::myCoilGO ( )
inlineprivate
955  {
956  GameObject* coil = nullptr;
957  if (!_myCoilGO.IsEmpty())
959  if (!coil)
960  {
962  if (coil)
963  _myCoilGO = coil->GetGUID();
964  }
965  return coil;
966  }
ObjectGuid _myCoilGO
Definition: boss_thaddius.cpp:973
GameObject * FindNearestGameObject(uint32 entry, float range) const
Definition: Object.cpp:2452
Creature *const me
Definition: CreatureAI.h:71
Definition: naxxramas.h:151
Definition: GameObject.h:880
ObjectGuid const & GetGUID() const
Definition: Object.h:105
TC_GAME_API GameObject * GetGameObject(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:143
bool IsEmpty() const
Definition: ObjectGuid.h:242

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void npc_feugen::npc_feugenAI::Reset ( )
inlineoverridevirtual

Reimplemented from ScriptedAI.

750  {
751  if (isFeignDeath || !me->IsAlive())
752  return;
754  thaddius->AI()->DoAction(ACTION_FEUGEN_RESET);
755  }
Definition: boss_thaddius.cpp:42
bool isFeignDeath
Definition: boss_thaddius.cpp:977
InstanceScript * instance
Definition: boss_thaddius.cpp:967
Definition: Creature.h:467
Creature *const me
Definition: CreatureAI.h:71
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
bool IsAlive() const
Definition: Unit.h:1692
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: naxxramas.h:74

+ Here is the call graph for this function:

void npc_feugen::npc_feugenAI::ResetEncounter ( )
inline
766  {
767  me->Respawn(true);
768  Initialize();
769  }
Creature *const me
Definition: CreatureAI.h:71
void Initialize()
Definition: boss_thaddius.cpp:730
void Respawn(bool force=false)
Definition: Creature.cpp:1697

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void npc_feugen::npc_feugenAI::SpellHit ( Unit caster,
SpellInfo const spell 
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

881  {
882  if (!caster)
883  return;
884  if (spell->Id != SPELL_FEUGEN_TESLA_PERIODIC)
885  return;
886  if (!isFeignDeath && me->IsInCombat() && !me->GetHomePosition().IsInDist(me, OVERLOAD_DISTANCE))
887  {
888  if (!isOverloading)
889  {
890  isOverloading = true;
892  if (Creature* creatureCaster = caster->ToCreature())
893  creatureCaster->AI()->Talk(EMOTE_TESLA_LINK_BREAKS);
895  }
896  if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))
897  {
898  caster->CastStop(SPELL_TESLA_SHOCK);
899  caster->CastSpell(target, SPELL_TESLA_SHOCK,true);
900  }
901  }
902  else if (isOverloading || refreshBeam)
903  {
904  isOverloading = false;
905  refreshBeam = false;
906  caster->CastStop();
907  caster->CastSpell(me, SPELL_FEUGEN_CHAIN_VISUAL, true);
909  }
910  }
bool isFeignDeath
Definition: boss_thaddius.cpp:977
bool IsInCombat() const
Definition: Unit.h:1584
bool isOverloading
Definition: boss_thaddius.cpp:975
Definition: Creature.h:467
Definition: boss_thaddius.cpp:112
void CastStop(uint32 except_spellid=0)
Definition: Unit.cpp:862
void RemoveAura(AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:3442
void SetFlag(uint16 index, uint32 newFlag)
Definition: Object.cpp:1199
Definition: Unit.h:681
Definition: boss_thaddius.cpp:107
Creature *const me
Definition: CreatureAI.h:71
Definition: boss_thaddius.cpp:102
Definition: UnitAI.h:35
Definition: boss_thaddius.cpp:106
Unit * SelectTarget(SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
Definition: UnitAI.cpp:91
Definition: boss_thaddius.cpp:93
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
bool refreshBeam
Definition: boss_thaddius.cpp:976
Definition: UpdateFields.h:109
Creature * ToCreature()
Definition: Object.h:194
Definition: boss_thaddius.cpp:117
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
void GetHomePosition(float &x, float &y, float &z, float &ori) const
Definition: Creature.h:672

+ Here is the call graph for this function:

void npc_feugen::npc_feugenAI::UpdateAI ( uint32  uiDiff)
inlineoverridevirtual

Reimplemented from ScriptedAI.

913  {
914  if (isFeignDeath)
915  return;
916  if (!UpdateVictim())
917  return;
918 
919  if (magneticPullTimer <= uiDiff)
920  {
923  }
924  else magneticPullTimer -= uiDiff;
925 
926  if (staticFieldTimer <= uiDiff)
927  {
930  }
931  else staticFieldTimer -= uiDiff;
932 
934  }
bool UpdateVictim()
Definition: CreatureAI.cpp:233
bool isFeignDeath
Definition: boss_thaddius.cpp:977
Creature *const me
Definition: CreatureAI.h:71
Definition: boss_thaddius.cpp:109
Definition: boss_thaddius.cpp:104
uint32 staticFieldTimer
Definition: boss_thaddius.cpp:970
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
uint32 magneticPullTimer
Definition: boss_thaddius.cpp:969
Definition: Common.h:103
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:49

+ Here is the call graph for this function:

Member Data Documentation

ObjectGuid npc_feugen::npc_feugenAI::_myCoil
private
ObjectGuid npc_feugen::npc_feugenAI::_myCoilGO
private
InstanceScript* npc_feugen::npc_feugenAI::instance
private
bool npc_feugen::npc_feugenAI::isFeignDeath
private
bool npc_feugen::npc_feugenAI::isOverloading
private
uint32 npc_feugen::npc_feugenAI::magneticPullTimer
private
bool npc_feugen::npc_feugenAI::refreshBeam
private
uint32 npc_feugen::npc_feugenAI::staticFieldTimer
private

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