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

Public Types

enum  Events {
  EVENT_START_RITUAL = 1 ,
  EVENT_GHOULPLOSION ,
  EVENT_RAISE_DEAD ,
  EVENT_RESUME_WP
}
 
enum  Points { POINT_CORPSE_REACHED = 1 }
 
enum  Says {
  SAY_GRYPHON = 0 ,
  SAY_GHOUL = 1 ,
  SAY_GEIST = 2
}
 
- 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
}
 

Public Member Functions

 npc_gothik_the_harvesterAI (Creature *creature)
 
void Reset () override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
void MovementInform (uint32 type, uint32 id) override
 
- 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 (const Position *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 >
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
 
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 void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
void JustEnteredCombat (Unit *who) override
 Called when the unit enters combat.
 
virtual void JustStartedThreateningMe (Unit *who)
 
void EngagementStart (Unit *who)
 
void EngagementOver ()
 
void JustExitedCombat () override
 Called when the unit leaves combat.
 
virtual void IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureDespawnAll ()
 
virtual void SummonedCreatureEvade (Creature *)
 
virtual void OnSpellStart (SpellInfo const *)
 
virtual void OnSpellCast (SpellInfo const *)
 
virtual void OnSpellFailed (SpellInfo const *)
 
virtual void OnChannelFinished (SpellInfo const *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void PathEndReached (uint32)
 
virtual void WaypointPathStarted (uint32)
 == Waypoints system =============================
 
virtual void WaypointStarted (uint32, uint32)
 
virtual void WaypointReached (uint32, uint32)
 
virtual void WaypointPathEnded (uint32, uint32)
 
void OnCharmed (bool apply) override
 Called when unit is charmed.
 
virtual void JustReachedHome ()
 
void DoZoneInCombat (Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *attacker)
 
virtual void OwnerAttacked (Unit *target)
 
void OnOwnerCombatInteraction (Unit *target)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ==================
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields =======================================
 
virtual bool BeforeSpellClick (Unit *)
 
virtual void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
virtual bool CanBeSeen (Player const *)
 
virtual bool CanAlwaysBeDetectable (WorldObject const *)
 
virtual void PetStopAttack ()
 
int32 VisualizeBoundary (uint32 duration, Unit *owner=nullptr, bool fill=false, bool checkZ=false) const
 
virtual bool CheckInRoom ()
 
CreatureBoundary const * GetBoundary () const
 
void SetBoundary (CreatureBoundary const *boundary, bool negativeBoundaries=false)
 
bool IsInBoundary (Position const *who=nullptr) const
 
virtual void CalculateThreat (Unit *, float &, SpellInfo const *)
 
virtual bool OnTeleportUnreacheablePlayer (Player *)
 
virtual void OnAuraRemove (AuraApplication *, AuraRemoveMode)
 
virtual void DistancingStarted ()
 
virtual void DistancingEnded ()
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void InitializeAI ()
 
virtual void DoAction (int32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid const &, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
UnitSelectTarget (SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 Select the best (up to) <num> targets (in <targetType> order) from the threat list that fulfill the following:
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
virtual void EvadeTimerExpired ()
 Called when evade timer expires (target unreachable for too long)
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage to any victim (before damage apply)
 
virtual void HealReceived (Unit *, uint32 &)
 Called when the creature receives heal.
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 Called when the creature power updates.
 
virtual void HealDone (Unit *, uint32 &)
 Called when the unit heals.
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 Called during damage calculations.
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 Called during calculation when receiving periodic healing or damage (DoT or HoT)
 
void AttackStartCaster (Unit *victim, float dist)
 
SpellCastResult DoAddAuraToAllHostilePlayers (uint32 spellid)
 
SpellCastResult DoCast (uint32 spellId)
 
SpellCastResult DoCast (Unit *victim, uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastSelf (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastToAllHostilePlayers (uint32 spellid, bool triggered=false)
 To specify the caster as target if the spell is self-cast.
 
SpellCastResult DoCastVictim (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastAOE (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastRandomTarget (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false, bool withTank=true)
 Cast the spell on a random unit from the threat list.
 
SpellCastResult DoCastMaxThreat (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false)
 Cast spell on the top threat target, which may not be the current victim.
 
float DoGetSpellMaxRange (uint32 spellId, bool positive=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spell)
 
void DoSpellAttackToRandomTargetIfReady (uint32 spell, uint32 threatTablePosition=0, float dist=0.f, bool playerOnly=true)
 
virtual void SummonMovementInform (Creature *, uint32, uint32)
 Called when a summon reaches a waypoint or point movement finished.
 
virtual void sGossipHello (Player *)
 
virtual void sGossipSelect (Player *, uint32, uint32)
 
virtual void sGossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual void sQuestAccept (Player *, Quest const *)
 
virtual void sQuestSelect (Player *, Quest const *)
 
virtual void sQuestComplete (Player *, Quest const *)
 
virtual void sQuestReward (Player *, Quest const *, uint32)
 
virtual void sOnGameEvent (bool, uint16)
 
virtual std::string GetDebugInfo () const
 

Public Attributes

EventMap events
 
ObjectGuid targetCorpseGUID
 
ObjectGuid geistGUID
 
bool isOnRitual
 
- Public Attributes inherited from ScriptedAI
Creatureme
 

Additional Inherited Members

- Static Public Member Functions inherited from CreatureAI
static bool IsInBounds (CreatureBoundary const &boundary, Position const *who)
 
- Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
bool UpdateVictimWithGaze ()
 
void SetGazeOn (Unit *target)
 
CreatureDoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
virtual void MoveInLineOfSight (Unit *)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
TaskScheduler scheduler
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
bool _isEngaged
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Member Enumeration Documentation

◆ Events

Enumerator
EVENT_START_RITUAL 
EVENT_GHOULPLOSION 
EVENT_RAISE_DEAD 
EVENT_RESUME_WP 

◆ Points

Enumerator
POINT_CORPSE_REACHED 
782 {
784 };

◆ Says

Enumerator
SAY_GRYPHON 
SAY_GHOUL 
SAY_GEIST 
788 {
789 SAY_GRYPHON = 0, // "You will fly again, beast..."
790 SAY_GHOUL = 1, // "Surprise, surprise! Another ghoul!"
791 SAY_GEIST = 2 // "Is Gothik the Harvester going to have to choke a geist?"
792 };

Constructor & Destructor Documentation

◆ npc_gothik_the_harvesterAI()

npc_gothik_the_harvester::npc_gothik_the_harvesterAI::npc_gothik_the_harvesterAI ( Creature creature)
inline
766: ScriptedAI(creature) { }
Definition ScriptedCreature.h:191

Member Function Documentation

◆ MovementInform()

void npc_gothik_the_harvester::npc_gothik_the_harvesterAI::MovementInform ( uint32  type,
uint32  id 
)
inlineoverridevirtual

Reimplemented from CreatureAI.

908 {
909 if (type == POINT_MOTION_TYPE && id == POINT_CORPSE_REACHED)
910 {
911 // Reached the target corpse
913 if (corpse)
914 {
915 me->SetFacingToObject(corpse);
916 // Say line depending on corpse type (gryphon or humanoid)
917 if (corpse->GetEntry() == NPC_DEAD_SCARLET_GRYPHON)
919 else
921 }
922 // Check for Geist nearby
924 if (geist)
925 {
926 me->SetFacingToObject(geist);
927 geistGUID = geist->GetGUID();
928 // Geist present: Ghoulplosion in 3s (with SAY_GEIST), raise in 6s, resume in 9s
929 events.ScheduleEvent(EVENT_GHOULPLOSION, 3s);
930 events.ScheduleEvent(EVENT_RAISE_DEAD, 6s);
931 events.ScheduleEvent(EVENT_RESUME_WP, 9s);
932 }
933 else
934 {
935 // No Geist: raise in 3s, resume in 6s
936 events.ScheduleEvent(EVENT_RAISE_DEAD, 3s);
937 events.ScheduleEvent(EVENT_RESUME_WP, 6s);
938 }
939 }
940 }
@ POINT_MOTION_TYPE
Definition MotionMaster.h:48
events
Definition boss_sartura.cpp:43
@ NPC_DEAD_SCARLET_GRYPHON
Definition chapter2.cpp:572
@ NPC_GLUTTONOUS_GEIST
Definition chapter2.cpp:565
Definition Creature.h:47
uint32 GetEntry() const
Definition Object.h:117
static ObjectGuid GetGUID(Object const *o)
Definition Object.h:114
void SetFacingToObject(WorldObject *object, Milliseconds timed=0ms)
Definition Unit.cpp:16421
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition Object.cpp:2499
Talk
Definition hyjal.cpp:82
Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition ObjectAccessor.cpp:210
Creature * me
Definition ScriptedCreature.h:281
ObjectGuid targetCorpseGUID
Definition chapter2.cpp:769
ObjectGuid geistGUID
Definition chapter2.cpp:770

References EVENT_GHOULPLOSION, EVENT_RAISE_DEAD, EVENT_RESUME_WP, WorldObject::FindNearestCreature(), geistGUID, ObjectAccessor::GetCreature(), Object::GetEntry(), Object::GetGUID(), ScriptedAI::me, NPC_DEAD_SCARLET_GRYPHON, NPC_GLUTTONOUS_GEIST, POINT_CORPSE_REACHED, POINT_MOTION_TYPE, SAY_GHOUL, SAY_GRYPHON, Unit::SetFacingToObject(), and targetCorpseGUID.

◆ Reset()

void npc_gothik_the_harvester::npc_gothik_the_harvesterAI::Reset ( )
inlineoverridevirtual

Reimplemented from UnitAI.

795 {
796 events.Reset();
799 isOnRitual = false;
800 // Start waypoint movement using WaypointMovementGenerator
801 if (uint32 pathId = me->GetWaypointPath())
802 {
803 me->GetMotionMaster()->MoveWaypoint(pathId, true); // true = repeatable
804 }
805 // Schedule the first ritual after 50-60s
806 events.ScheduleEvent(EVENT_START_RITUAL, 50s, 60s);
807 }
std::uint32_t uint32
Definition Define.h:107
uint32 GetWaypointPath() const
Definition Creature.h:355
void MoveWaypoint(uint32 path_id, bool repeatable, PathSource pathSource=PathSource::WAYPOINT_MGR)
Move the unit following a specific path. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition MotionMaster.cpp:913
void Clear()
Definition ObjectGuid.h:138
MotionMaster * GetMotionMaster()
Definition Unit.h:1758

References ObjectGuid::Clear(), EVENT_START_RITUAL, geistGUID, Unit::GetMotionMaster(), Creature::GetWaypointPath(), isOnRitual, ScriptedAI::me, MotionMaster::MoveWaypoint(), and targetCorpseGUID.

◆ UpdateAI()

void npc_gothik_the_harvester::npc_gothik_the_harvesterAI::UpdateAI ( uint32  )
inlineoverridevirtual

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

Implements UnitAI.

809 {
810 events.Update(diff);
811
812 if (uint32 eventId = events.ExecuteEvent())
813 {
814 switch (eventId)
815 {
817 {
818 if (isOnRitual) // Already performing ritual
819 {
820 events.ScheduleEvent(EVENT_START_RITUAL, 5s, 10s);
821 break;
822 }
823
824 // Find nearest dead Scarlet NPC (including gryphon)
825 Creature* nearestCorpse = nullptr;
826 float nearestDist = std::numeric_limits<float>::max();
827 static const uint32 corpseEntries[] = {
831 };
832 for (uint32 entry : corpseEntries)
833 {
834 // Search up to 60 yards for each type
835 if (Creature* corpse = me->FindNearestCreature(entry, 60.0f, true))
836 {
837 float dist = me->GetDistance(corpse);
838 if (dist < nearestDist)
839 {
840 nearestDist = dist;
841 nearestCorpse = corpse;
842 }
843 }
844 }
845 if (!nearestCorpse)
846 {
847 events.ScheduleEvent(EVENT_START_RITUAL, 5s, 10s);
848 break;
849 }
850 // Start ritual
851 isOnRitual = true;
852 targetCorpseGUID = nearestCorpse->GetGUID();
854 // Pause waypoint movement and move to the corpse
855 me->PauseMovement();
856 float x, y, z;
857 // Keep it at a distance from the corpse
858 nearestCorpse->GetClosePoint(x, y, z, me->GetObjectSize());
860 break;
861 }
863 {
864 // Cast Ghoulplosion on the Geist and say the Geist line
866 {
868 me->SetFacingToObject(geist);
870 }
871 break;
872 }
873
874 case EVENT_RAISE_DEAD:
875 {
876 // Cast the appropriate raise spell on the corpse (griffon or ghoul)
878 {
879 me->SetFacingToObject(corpse);
880 uint32 entry = corpse->GetEntry();
881 if (entry == NPC_DEAD_SCARLET_GRYPHON)
882 {
884 }
885 else
886 {
888 }
889 }
890 break;
891 }
892 case EVENT_RESUME_WP:
893 {
894 // Resume waypoint movement
895 isOnRitual = false;
897 // Resume paused waypoint movement
899 // Schedule next ritual in 50-60s
900 events.ScheduleEvent(EVENT_START_RITUAL, 50s, 60s);
901 break;
902 }
903 }
904 }
905 }
@ SPELL_SCOURGE_GRYPHON
Definition chapter2.cpp:559
@ SPELL_SCARLET_GHOUL
Definition chapter2.cpp:558
@ SPELL_GHOULPLOSION
Definition chapter2.cpp:560
@ NPC_DEAD_SCARLET_PEASANT
Definition chapter2.cpp:569
@ NPC_DEAD_SCARLET_MINER
Definition chapter2.cpp:570
@ NPC_DEAD_SCARLET_FLEET_DEFENDER
Definition chapter2.cpp:571
@ NPC_DEAD_SCARLET_CAPTAIN
Definition chapter2.cpp:568
@ NPC_DEAD_SCARLET_MEDIC
Definition chapter2.cpp:566
@ NPC_DEAD_SCARLET_INFANTRYMAN
Definition chapter2.cpp:567
void MovePoint(uint32 id, const Position &pos, ForcedMovement forcedMovement=FORCED_MOVEMENT_NONE, float speed=0.f, bool generatePath=true, bool forceDestination=true, std::optional< AnimTier > animTier=std::nullopt)
Definition MotionMaster.h:240
SpellCastResult DoCast(uint32 spellId)
Definition UnitAI.cpp:178
void ResumeMovement(uint32 timer=0, uint8 slot=0)
Definition Unit.cpp:13027
virtual void PauseMovement(uint32 timer=0, uint8 slot=0)
Disable the unit movement by clearing UNIT_STATE_MOVING and stopping the spline.
Definition Unit.cpp:13016
bool GetClosePoint(float &x, float &y, float &z, float size, float distance2d=0, float angle=0, WorldObject const *forWho=nullptr, bool force=false) const
Definition Object.cpp:2766
float GetDistance(WorldObject const *obj) const
Definition Object.cpp:1295
float GetObjectSize() const
Definition Object.cpp:2838

References ObjectGuid::Clear(), UnitAI::DoCast(), EVENT_GHOULPLOSION, EVENT_RAISE_DEAD, EVENT_RESUME_WP, EVENT_START_RITUAL, WorldObject::FindNearestCreature(), geistGUID, WorldObject::GetClosePoint(), ObjectAccessor::GetCreature(), WorldObject::GetDistance(), Object::GetGUID(), Unit::GetMotionMaster(), WorldObject::GetObjectSize(), isOnRitual, ScriptedAI::me, MotionMaster::MovePoint(), NPC_DEAD_SCARLET_CAPTAIN, NPC_DEAD_SCARLET_FLEET_DEFENDER, NPC_DEAD_SCARLET_GRYPHON, NPC_DEAD_SCARLET_INFANTRYMAN, NPC_DEAD_SCARLET_MEDIC, NPC_DEAD_SCARLET_MINER, NPC_DEAD_SCARLET_PEASANT, Unit::PauseMovement(), POINT_CORPSE_REACHED, Unit::ResumeMovement(), SAY_GEIST, Unit::SetFacingToObject(), SPELL_GHOULPLOSION, SPELL_SCARLET_GHOUL, SPELL_SCOURGE_GRYPHON, and targetCorpseGUID.

Member Data Documentation

◆ events

EventMap npc_gothik_the_harvester::npc_gothik_the_harvesterAI::events

◆ geistGUID

ObjectGuid npc_gothik_the_harvester::npc_gothik_the_harvesterAI::geistGUID

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

◆ isOnRitual

bool npc_gothik_the_harvester::npc_gothik_the_harvesterAI::isOnRitual

Referenced by Reset(), and UpdateAI().

◆ targetCorpseGUID

ObjectGuid npc_gothik_the_harvester::npc_gothik_the_harvesterAI::targetCorpseGUID

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


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