TrinityCore
Loading...
Searching...
No Matches
Unit Class Referenceabstract

#include <Unit.h>

+ Inheritance diagram for Unit:

Classes

struct  GetCastSpellInfoContext
 
struct  GetCastSpellInfoResult
 
struct  VisibleAuraSlotCompare
 

Public Types

enum class  AreaTriggerRemoveReason : uint8 { Default , UnitDespawn }
 
typedef std::set< Unit * > AttackerSet
 
typedef std::set< Unit * > ControlList
 
typedef std::vector< Unit * > UnitVector
 
typedef std::multimap< uint32, Aura * > AuraMap
 
typedef std::pair< AuraMap::const_iterator, AuraMap::const_iterator > AuraMapBounds
 
typedef std::pair< AuraMap::iterator, AuraMap::iterator > AuraMapBoundsNonConst
 
typedef std::multimap< uint32, AuraApplication * > AuraApplicationMap
 
typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > AuraApplicationMapBounds
 
typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > AuraApplicationMapBoundsNonConst
 
typedef std::multimap< AuraStateType, AuraApplication * > AuraStateAurasMap
 
typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > AuraStateAurasMapBounds
 
typedef std::forward_list< AuraEffect * > AuraEffectList
 
typedef std::forward_list< Aura * > AuraList
 
typedef std::forward_list< AuraApplication * > AuraApplicationList
 
typedef std::array< DiminishingReturn, DIMINISHING_MAX > Diminishing
 
typedef std::vector< std::pair< uint32, AuraApplication * > > AuraApplicationProcContainer
 
typedef std::set< AuraApplication *, VisibleAuraSlotCompare > VisibleAuraContainer
 

Public Member Functions

virtual ~Unit ()
 
bool IsAIEnabled () const
 
void AIUpdateTick (uint32 diff)
 
UnitAI * GetAI () const
 
void ScheduleAIChange ()
 
void PushAI (UnitAI *newAI)
 
bool PopAI ()
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
void CleanupBeforeRemoveFromMap (bool finalCleanup)
 
void CleanupsBeforeDelete (bool finalCleanup=true) override
 
virtual bool IsAffectedByDiminishingReturns () const
 
DiminishingLevels GetDiminishing (DiminishingGroup group) const
 
void IncrDiminishing (SpellInfo const *auraSpellInfo)
 
bool ApplyDiminishingToDuration (SpellInfo const *auraSpellInfo, int32 &duration, WorldObject *caster, DiminishingLevels previousLevel) const
 
void ApplyDiminishingAura (DiminishingGroup group, bool apply)
 
void ClearDiminishings ()
 
virtual void Update (uint32 time) override
 
void Heartbeat () override
 
void TriggerAuraHeartbeat ()
 
void setAttackTimer (WeaponAttackType type, uint32 time)
 
void resetAttackTimer (WeaponAttackType type=BASE_ATTACK)
 
uint32 getAttackTimer (WeaponAttackType type) const
 
bool isAttackReady (WeaponAttackType type=BASE_ATTACK) const
 
bool haveOffhandWeapon () const
 
bool CanDualWield () const
 
virtual void SetCanDualWield (bool value)
 
float GetCombatReach () const override
 
void SetCombatReach (float combatReach)
 
float GetBoundingRadius () const
 
void SetBoundingRadius (float boundingRadius)
 
bool IsWithinCombatRange (Unit const *obj, float dist2compare) const
 
bool IsWithinMeleeRange (Unit const *obj) const
 
bool IsWithinMeleeRangeAt (Position const &pos, Unit const *obj) const
 
float GetMeleeRange (Unit const *target) const
 
virtual SpellSchoolMask GetMeleeDamageSchoolMask (WeaponAttackType attackType=BASE_ATTACK) const =0
 
bool IsWithinBoundaryRadius (const Unit *obj) const
 
void _addAttacker (Unit *pAttacker)
 
void _removeAttacker (Unit *pAttacker)
 
Unit * getAttackerForHelper () const
 
bool Attack (Unit *victim, bool meleeAttack)
 
void CastStop (uint32 except_spellid=0)
 
bool AttackStop ()
 
void RemoveAllAttackers ()
 
AttackerSet const & getAttackers () const
 
bool isAttackingPlayer () const
 
Unit * GetVictim () const
 
Unit * EnsureVictim () const
 
void ValidateAttackersAndOwnTarget ()
 
void CombatStop (bool includingCast=false, bool mutualPvP=true, bool(*unitFilter)(Unit const *otherUnit)=nullptr)
 
void CombatStopWithPets (bool includingCast=false)
 
void StopAttackFaction (uint32 faction_id)
 
Unit * SelectNearbyTarget (Unit *exclude=nullptr, float dist=NOMINAL_MELEE_RANGE) const
 
void SendMeleeAttackStop (Unit const *victim=nullptr) const
 
void SendMeleeAttackStart (Unit *victim)
 
void AddUnitState (uint32 f)
 
bool HasUnitState (const uint32 f) const
 
void ClearUnitState (uint32 f)
 
bool CanFreeMove () const
 
uint32 HasUnitTypeMask (uint32 mask) const
 
void AddUnitTypeMask (uint32 mask)
 
bool IsSummon () const
 
bool IsGuardian () const
 
bool IsPet () const
 
bool IsHunterPet () const
 
bool IsTotem () const
 
bool IsVehicle () const
 
int32 GetContentTuning () const
 
uint8 GetLevel () const
 
uint8 GetEffectiveLevel () const
 
uint8 GetLevelForTarget (WorldObject const *) const override
 
void SetLevel (uint8 lvl, bool sendUpdate=true)
 
uint8 GetRace () const
 
void SetRace (uint8 race)
 
uint64 GetRaceMask () const
 
uint8 GetClass () const
 
void SetClass (uint8 classId)
 
uint32 GetClassMask () const
 
Gender GetGender () const
 
void SetGender (Gender gender)
 
virtual Gender GetNativeGender () const
 
virtual void SetNativeGender (Gender gender)
 
float GetStat (Stats stat) const
 
void SetStat (Stats stat, int32 val)
 
uint32 GetArmor () const
 
void SetArmor (int32 val, int32 bonusVal)
 
int32 GetResistance (SpellSchools school) const
 
int32 GetBonusResistanceMod (SpellSchools school) const
 
int32 GetResistance (SpellSchoolMask mask) const
 
void SetResistance (SpellSchools school, int32 val)
 
void SetBonusResistanceMod (SpellSchools school, int32 val)
 
uint64 GetHealth () const
 
uint64 GetMaxHealth () const
 
bool IsFullHealth () const
 
bool HealthBelowPct (float pct) const
 
bool HealthBelowPctDamaged (float pct, uint32 damage) const
 
bool HealthAbovePct (float pct) const
 
bool HealthAbovePctHealed (float pct, uint32 heal) const
 
float GetHealthPct () const
 
uint64 CountPctFromMaxHealth (float pct) const
 
uint64 CountPctFromCurHealth (float pct) const
 
void SetHealth (uint64 val)
 
void SetMaxHealth (uint64 val)
 
void SetFullHealth ()
 
int64 ModifyHealth (int64 val)
 
int64 GetHealthGain (int64 dVal)
 
void TriggerOnHealthChangeAuras (uint64 oldVal, uint64 newVal)
 
virtual float GetHealthMultiplierForTarget (WorldObject const *) const
 
virtual float GetDamageMultiplierForTarget (WorldObject const *) const
 
virtual float GetArmorMultiplierForTarget (WorldObject const *) const
 
Powers GetPowerType () const
 
void SetPowerType (Powers power, bool sendUpdate=true, bool onInit=false)
 
void SetInitialPowerValue (Powers powerType)
 
void SetOverrideDisplayPowerId (uint32 powerDisplayId)
 
Powers CalculateDisplayPowerType () const
 
void UpdateDisplayPower ()
 
int32 GetPower (Powers power) const
 
int32 GetMinPower (Powers power) const
 
int32 GetMaxPower (Powers power) const
 
float GetPowerPct (Powers power) const
 
int32 CountPctFromMaxPower (Powers power, int32 pct) const
 
void SetPower (Powers power, int32 val, bool withPowerUpdate=true)
 
void SetMaxPower (Powers power, int32 val)
 
void TriggerOnPowerChangeAuras (Powers power, int32 oldVal, int32 newVal)
 
void SetFullPower (Powers power)
 
int32 ModifyPower (Powers power, int32 val, bool withPowerUpdate=true)
 
void ApplyModManaCostMultiplier (float manaCostMultiplier, bool apply)
 
void ApplyModManaCostModifier (SpellSchools school, int32 mod, bool apply)
 
uint32 GetBaseAttackTime (WeaponAttackType att) const
 
void SetBaseAttackTime (WeaponAttackType att, uint32 val)
 
void UpdateAttackTimeField (WeaponAttackType att)
 
void ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply)
 
void ApplyCastTimePercentMod (float val, bool apply)
 
void ApplySpellHastePercentMod (float val, bool apply)
 
void ApplyHasteRegenPercentMod (float val, bool apply)
 
void SetModCastingSpeed (float castingSpeed)
 
void SetModCastingSpeedNeg (float castingSpeedNeg)
 
void SetModSpellHaste (float spellHaste)
 
void SetModHaste (float haste)
 
void SetModRangedHaste (float rangedHaste)
 
void SetModHasteRegen (float hasteRegen)
 
void SetModTimeRate (float timeRate)
 
bool HasUnitFlag (UnitFlags flags) const
 
void SetUnitFlag (UnitFlags flags)
 
void RemoveUnitFlag (UnitFlags flags)
 
void ReplaceAllUnitFlags (UnitFlags flags)
 
bool HasUnitFlag2 (UnitFlags2 flags) const
 
void SetUnitFlag2 (UnitFlags2 flags)
 
void RemoveUnitFlag2 (UnitFlags2 flags)
 
void ReplaceAllUnitFlags2 (UnitFlags2 flags)
 
bool HasUnitFlag3 (UnitFlags3 flags) const
 
void SetUnitFlag3 (UnitFlags3 flags)
 
void RemoveUnitFlag3 (UnitFlags3 flags)
 
void ReplaceAllUnitFlags3 (UnitFlags3 flags)
 
void SetCreatedBySpell (int32 spellId)
 
void SetNameplateAttachToGUID (ObjectGuid guid)
 
Emote GetEmoteState () const
 
void SetEmoteState (Emote emote)
 
SheathState GetSheath () const
 
void SetSheath (SheathState sheathed)
 
uint32 GetFaction () const override
 
void SetFaction (uint32 faction) override
 
bool IsInPartyWith (Unit const *unit) const
 
bool IsInRaidWith (Unit const *unit) const
 
void GetPartyMembers (std::list< Unit * > &units)
 
bool IsContestedGuard () const
 
UnitPVPStateFlags GetPvpFlags () const
 
bool HasPvpFlag (UnitPVPStateFlags flags) const
 
void SetPvpFlag (UnitPVPStateFlags flags)
 
void RemovePvpFlag (UnitPVPStateFlags flags)
 
void ReplaceAllPvpFlags (UnitPVPStateFlags flags)
 
bool IsInSanctuary () const
 
bool IsPvP () const
 
bool IsFFAPvP () const
 
virtual void SetPvP (bool state)
 
UnitPetFlag GetPetFlags () const
 
bool HasPetFlag (UnitPetFlag flags) const
 
void SetPetFlag (UnitPetFlag flags)
 
void RemovePetFlag (UnitPetFlag flags)
 
void ReplaceAllPetFlags (UnitPetFlag flags)
 
uint32 GetCreatureType () const
 
uint32 GetCreatureTypeMask () const
 
void UpdateCreatureType ()
 
UnitStandStateType GetStandState () const
 
bool IsSitState () const
 
bool IsStandState () const
 
void SetStandState (UnitStandStateType state, uint32 animKitID=0)
 
void SetVisFlag (UnitVisFlags flags)
 
void RemoveVisFlag (UnitVisFlags flags)
 
void ReplaceAllVisFlags (UnitVisFlags flags)
 
AnimTier GetAnimTier () const
 
void SetAnimTier (AnimTier animTier, bool notifyClient=true)
 
bool IsMounted () const
 
uint32 GetMountDisplayId () const
 
void SetMountDisplayId (uint32 mountDisplayId)
 
uint32 GetCosmeticMountDisplayId () const
 
void SetCosmeticMountDisplayId (uint32 mountDisplayId)
 
void Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0)
 
void Dismount ()
 
void CancelMountAura (bool force=false)
 
MountCapabilityEntry const * GetMountCapability (uint32 mountType) const
 
void UpdateMountCapability ()
 
void SendDurabilityLoss (Player *receiver, uint32 percent)
 
void PlayOneShotAnimKitId (uint16 animKitId)
 
void SetAIAnimKitId (uint16 animKitId)
 
uint16 GetAIAnimKitId () const override
 
void SetMovementAnimKitId (uint16 animKitId)
 
uint16 GetMovementAnimKitId () const override
 
void SetMeleeAnimKitId (uint16 animKitId)
 
uint16 GetMeleeAnimKitId () const override
 
uint16 GetMaxSkillValueForLevel (Unit const *target=nullptr) const
 
void KillSelf (bool durabilityLoss=true, bool skipSettingDeathState=false)
 
void GetProcAurasTriggeredOnEvent (AuraApplicationProcContainer &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo &eventInfo)
 
void TriggerAurasProcOnEvent (AuraApplicationList *myProcAuras, AuraApplicationList *targetProcAuras, Unit *actionTarget, ProcFlagsInit const &typeMaskActor, ProcFlagsInit const &typeMaskActionTarget, ProcFlagsSpellType spellTypeMask, ProcFlagsSpellPhase spellPhaseMask, ProcFlagsHit hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo)
 
void TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationProcContainer &procAuras)
 
void HandleEmoteCommand (Emote emoteId, Player *target=nullptr, Trinity::IteratorPair< int32 const * > spellVisualKitIds={}, int32 sequenceVariation=0)
 
void DoMeleeAttackIfReady ()
 
void AttackerStateUpdate (Unit *victim, WeaponAttackType attType=BASE_ATTACK, bool extra=false)
 
void CalculateMeleeDamage (Unit *victim, CalcDamageInfo *damageInfo, WeaponAttackType attackType=BASE_ATTACK)
 
void DealMeleeDamage (CalcDamageInfo *damageInfo, bool durabilityLoss)
 
void HandleProcExtraAttackFor (Unit *victim, uint32 count)
 
void SetLastExtraAttackSpell (uint32 spellId)
 
uint32 GetLastExtraAttackSpell () const
 
void AddExtraAttacks (uint32 count)
 
void SetLastDamagedTargetGuid (ObjectGuid guid)
 
ObjectGuid GetLastDamagedTargetGuid () const
 
void CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=BASE_ATTACK, bool crit=false, bool blocked=false, Spell *spell=nullptr)
 
void DealSpellDamage (SpellNonMeleeDamage const *damageInfo, bool durabilityLoss)
 
uint32 GetDamageReduction (uint32 damage) const
 
virtual bool CanApplyResilience () const
 
int32 CalculateAOEAvoidance (int32 damage, uint32 schoolMask, bool npcCaster) const
 
float MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, SpellInfo const *spellInfo) const override
 
SpellMissInfo MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const override
 
float GetUnitDodgeChance (WeaponAttackType attType, Unit const *victim) const
 
float GetUnitParryChance (WeaponAttackType attType, Unit const *victim) const
 
float GetUnitBlockChance (WeaponAttackType attType, Unit const *victim) const
 
float GetUnitMissChance () const
 
float GetUnitCriticalChanceDone (WeaponAttackType attackType) const
 
float GetUnitCriticalChanceTaken (Unit const *attacker, WeaponAttackType attackType, float critDone) const
 
float GetUnitCriticalChanceAgainst (WeaponAttackType attackType, Unit const *victim) const
 
float GetMechanicResistChance (SpellInfo const *spellInfo) const
 
bool CanUseAttackType (uint8 attacktype) const
 
virtual float GetBlockPercent (uint8) const
 
float GetWeaponProcChance () const
 
float GetPPMProcChance (uint32 WeaponSpeed, float PPM, SpellInfo const *spellProto) const
 
MeleeHitOutcome RollMeleeOutcomeAgainst (Unit const *victim, WeaponAttackType attType) const
 
NPCFlags GetNpcFlags () const
 
bool HasNpcFlag (NPCFlags flags) const
 
void SetNpcFlag (NPCFlags flags)
 
void RemoveNpcFlag (NPCFlags flags)
 
void ReplaceAllNpcFlags (NPCFlags flags)
 
NPCFlags2 GetNpcFlags2 () const
 
bool HasNpcFlag2 (NPCFlags2 flags) const
 
void SetNpcFlag2 (NPCFlags2 flags)
 
void RemoveNpcFlag2 (NPCFlags2 flags)
 
void ReplaceAllNpcFlags2 (NPCFlags2 flags)
 
bool IsVendor () const
 
bool IsTrainer () const
 
bool IsQuestGiver () const
 
bool IsGossip () const
 
bool IsTaxi () const
 
bool IsGuildMaster () const
 
bool IsBattleMaster () const
 
bool IsBanker () const
 
bool IsInnkeeper () const
 
bool IsSpiritHealer () const
 
bool IsAreaSpiritHealer () const
 
bool IsTabardDesigner () const
 
bool IsAuctioner () const
 
bool IsArmorer () const
 
bool IsWildBattlePet () const
 
bool IsServiceProvider () const
 
bool IsSpiritService () const
 
bool IsAreaSpiritHealerIndividual () const
 
bool IsCritter () const
 
bool IsInFlight () const
 
bool CanHaveThreatList () const
 ====================== THREAT & COMBAT ====================
 
virtual bool IsEngaged () const
 
bool IsEngagedBy (Unit const *who) const
 
void EngageWithTarget (Unit *who)
 
CombatManager & GetCombatManager ()
 
CombatManager const & GetCombatManager () const
 
void AtTargetAttacked (Unit *target, bool canInitialAggro)
 
bool IsImmuneToAll () const
 
void SetImmuneToAll (bool apply, bool keepCombat)
 
virtual void SetImmuneToAll (bool apply)
 
bool IsImmuneToPC () const
 
void SetImmuneToPC (bool apply, bool keepCombat)
 
virtual void SetImmuneToPC (bool apply)
 
bool IsImmuneToNPC () const
 
void SetImmuneToNPC (bool apply, bool keepCombat)
 
virtual void SetImmuneToNPC (bool apply)
 
bool IsUninteractible () const
 
void SetUninteractible (bool apply)
 
bool CannotTurn () const
 
void SetCannotTurn (bool apply)
 
bool IsInCombat () const
 
bool IsInCombatWith (Unit const *who) const
 
void SetInCombatWith (Unit *enemy, bool addSecondUnitSuppressed=false)
 
void ClearInCombat ()
 
void UpdatePetCombatState ()
 
bool IsInteractionAllowedWhileHostile () const
 
virtual void SetInteractionAllowedWhileHostile (bool interactionAllowed)
 
bool IsInteractionAllowedInCombat () const
 
virtual void SetInteractionAllowedInCombat (bool interactionAllowed)
 
virtual void UpdateNearbyPlayersInteractions ()
 
bool IsThreatened () const
 
bool IsThreatenedBy (Unit const *who) const
 
ThreatManager & GetThreatManager ()
 
ThreatManager const & GetThreatManager () const
 
void SendClearTarget ()
 
bool HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, flag128 familyFlags) const
 
virtual bool HasSpell (uint32) const
 
bool HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const
 
bool HasBreakableByDamageCrowdControlAura (Unit const *excludeCasterChannel=nullptr) const
 
bool HasStealthAura () const
 
bool HasInvisibilityAura () const
 
bool IsFeared () const
 
bool HasRootAura () const
 
bool IsPolymorphed () const
 
bool IsFrozen () const
 
bool isTargetableForAttack (bool checkFakeDeath=true) const
 
bool IsInWater () const
 
bool IsUnderWater () const
 
bool IsOnOceanFloor () const
 
bool isInAccessiblePlaceFor (Creature const *c) const
 
void SendHealSpellLog (HealInfo &healInfo, bool critical=false)
 
int32 HealBySpell (HealInfo &healInfo, bool critical=false)
 
void SendEnergizeSpellLog (Unit *victim, uint32 spellId, int32 damage, int32 overEnergize, Powers powerType)
 
void EnergizeBySpell (Unit *victim, SpellInfo const *spellInfo, int32 damage, Powers powerType)
 
Aura * AddAura (uint32 spellId, Unit *target)
 
Aura * AddAura (SpellInfo const *spellInfo, uint32 effMask, Unit *target)
 
void SetAuraStack (uint32 spellId, Unit *target, uint32 stack)
 
void SendPlaySpellVisual (Unit *target, uint32 spellVisualId, uint8 missReason, uint8 reflectStatus, float travelSpeed, bool speedAsTime=false, float launchDelay=0.0f)
 
void SendPlaySpellVisual (Position const &targetPosition, uint32 spellVisualId, uint8 missReason, uint8 reflectStatus, float travelSpeed, bool speedAsTime=false, float launchDelay=0.0f)
 
void SendCancelSpellVisual (uint32 id)
 
void SendPlaySpellVisualKit (uint32 id, uint32 type, uint32 duration) const
 
void SendCancelSpellVisualKit (uint32 id)
 
void CancelSpellMissiles (uint32 spellId, bool reverseMissile=false, bool abortSpell=false)
 
void DeMorph ()
 
void SendAttackStateUpdate (CalcDamageInfo *damageInfo)
 
void SendAttackStateUpdate (uint32 HitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount, uint32 RageGained)
 
void SendSpellNonMeleeDamageLog (SpellNonMeleeDamage const *log)
 
void SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo)
 
void SendSpellDamageResist (Unit *target, uint32 spellId)
 
void SendSpellDamageImmune (Unit *target, uint32 spellId, bool isPeriodic)
 
void NearTeleportTo (TeleportLocation const &target, bool casting=false)
 
void NearTeleportTo (Position const &pos, bool casting=false)
 
void NearTeleportTo (float x, float y, float z, float orientation, bool casting=false)
 
void SendTeleportPacket (TeleportLocation const &teleportLocation)
 
virtual bool UpdatePosition (float x, float y, float z, float ang, bool teleport=false)
 
virtual bool UpdatePosition (Position const &pos, bool teleport=false)
 
void UpdateOrientation (float orientation)
 Only server-side orientation update, does not broadcast to client.
 
void UpdateHeight (float newZ)
 Only server-side height update, does not broadcast to client.
 
void SendMoveKnockBack (Player *player, float speedXY, float speedZ, float vcos, float vsin)
 
void KnockbackFrom (Position const &origin, float speedXY, float speedZ, float angle=M_PI, Movement::SpellEffectExtraData const *spellEffectExtraData=nullptr)
 
void MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false)
 
bool IsPlayingHoverAnim () const
 
void SetPlayHoverAnim (bool enable, bool sendUpdate=true)
 
void CalculateHoverHeight ()
 
void SetHoverHeight (float hoverHeight)
 
bool IsGravityDisabled () const
 
bool IsWalking () const
 
bool IsHovering () const
 
bool SetWalk (bool enable)
 
bool SetDisableGravity (bool disable, bool updateAnimTier=true, bool updatePlayHoverAnim=true)
 
bool SetFall (bool enable)
 
bool SetSwim (bool enable)
 
bool SetCanFly (bool enable)
 
bool SetWaterWalking (bool enable)
 
bool SetFeatherFall (bool enable)
 
bool SetHover (bool enable, bool updateAnimTier=true)
 
bool SetCollision (bool disable)
 
bool SetStrafingDisabled (bool disable)
 
bool SetJumpingDisabled (bool disable)
 
bool SetEnableFullSpeedTurning (bool enable)
 
bool SetEnableFullSpeedPitching (bool enable)
 
bool SetAlwaysAllowPitching (bool enable)
 
bool SetCanTransitionBetweenSwimAndFly (bool enable)
 
bool SetCanTurnWhileFalling (bool enable)
 
bool SetCanDoubleJump (bool enable)
 
bool SetDisableInertia (bool disable)
 
bool SetCanAdvFly (bool enable)
 
bool SetMoveCantSwim (bool cantSwim)
 
void SendSetVehicleRecId (uint32 vehicleId)
 
MovementForces const * GetMovementForces () const
 
void ApplyMovementForce (ObjectGuid id, Position origin, float magnitude, MovementForceType type, Position direction={}, ObjectGuid transportGuid=ObjectGuid::Empty)
 
void RemoveMovementForce (ObjectGuid id)
 
bool SetIgnoreMovementForces (bool ignore)
 
void UpdateMovementForcesModMagnitude ()
 
void ApplyInertia (int32 id, Milliseconds duration)
 
void RemoveInertia (int32 id)
 
void SetGravityModifier (float gravityModifier)
 
void SetInFront (WorldObject const *target)
 
void SetFacingTo (float ori, bool force=true, uint32 movementId=EVENT_FACE)
 
void SetFacingToObject (WorldObject const *object, bool force=true, uint32 movementId=EVENT_FACE)
 
void SetFacingToPoint (Position const &point, bool force=true)
 
bool IsAlive () const
 
bool isDying () const
 
bool isDead () const
 
DeathState getDeathState () const
 
virtual void setDeathState (DeathState s)
 
ObjectGuid GetOwnerGUID () const override
 
void SetOwnerGUID (ObjectGuid owner)
 
ObjectGuid GetCreatorGUID () const override
 
void SetCreatorGUID (ObjectGuid creator)
 
ObjectGuid GetMinionGUID () const
 
void SetMinionGUID (ObjectGuid guid)
 
ObjectGuid GetPetGUID () const
 
void SetPetGUID (ObjectGuid guid)
 
ObjectGuid GetCritterGUID () const
 
void SetCritterGUID (ObjectGuid guid)
 
ObjectGuid GetBattlePetCompanionGUID () const
 
void SetBattlePetCompanionGUID (ObjectGuid guid)
 
ObjectGuid GetDemonCreatorGUID () const
 
void SetDemonCreatorGUID (ObjectGuid guid)
 
Unit * GetDemonCreator () const
 
Player * GetDemonCreatorPlayer () const
 
ObjectGuid GetCharmerGUID () const
 
Unit * GetCharmer () const
 
ObjectGuid GetCharmedGUID () const
 
Unit * GetCharmed () const
 
bool IsControlledByPlayer () const
 
Player * GetControllingPlayer () const
 
ObjectGuid GetCharmerOrOwnerGUID () const override
 
bool IsCharmedOwnedByPlayerOrPlayer () const
 
Guardian * GetGuardianPet () const
 
Minion * GetFirstMinion () const
 
Unit * GetCharmerOrOwner () const
 
void SetMinion (Minion *minion, bool apply)
 
void GetAllMinionsByEntry (std::list< TempSummon * > &Minions, uint32 entry)
 
void RemoveAllMinionsByEntry (uint32 entry)
 
void SetCharm (Unit *target, bool apply)
 
Unit * GetNextRandomRaidMemberOrPet (float radius)
 
bool SetCharmedBy (Unit *charmer, CharmType type, AuraApplication const *aurApp=nullptr)
 
void RemoveCharmedBy (Unit *charmer)
 
void RestoreFaction ()
 
Unit * GetFirstControlled () const
 
void RemoveAllControlled ()
 
bool IsCharmed () const
 
bool isPossessed () const
 
bool isPossessedByPlayer () const
 
bool isPossessing () const
 
bool isPossessing (Unit *u) const
 
CharmInfo * GetCharmInfo ()
 
CharmInfo * InitCharmInfo ()
 
void DeleteCharmInfo ()
 
void SetPetNumberForClient (uint32 petNumber)
 
void SetPetNameTimestamp (uint32 timestamp)
 
void SetMovedUnit (Unit *target)
 
Unit * GetUnitBeingMoved () const
 
Player * GetPlayerMovingMe () const
 
SharedVisionList const & GetSharedVisionList ()
 
void AddPlayerToVision (Player *player)
 
void RemovePlayerFromVision (Player *player)
 
bool HasSharedVision () const
 
void RemoveBindSightAuras ()
 
void RemoveCharmAuras ()
 
Pet * CreateTamedPetFrom (Creature *creatureTarget, uint32 spell_id=0)
 
Pet * CreateTamedPetFrom (uint32 creatureEntry, uint32 spell_id=0)
 
bool InitTamedPet (Pet *pet, uint8 level, uint32 spell_id)
 
uint32 GetBattlePetCompanionNameTimestamp () const
 
void SetBattlePetCompanionNameTimestamp (uint32 timestamp)
 
uint32 GetBattlePetCompanionExperience () const
 
void SetBattlePetCompanionExperience (uint32 experience)
 
uint32 GetWildBattlePetLevel () const
 
void SetWildBattlePetLevel (uint32 wildBattlePetLevel)
 
Aura * _TryStackingOrRefreshingExistingAura (AuraCreateInfo &createInfo)
 
void _AddAura (UnitAura *aura, Unit *caster)
 
AuraApplication * _CreateAuraApplication (Aura *aura, uint32 effMask)
 
void _ApplyAuraEffect (Aura *aura, uint8 effIndex)
 
void _ApplyAura (AuraApplication *aurApp, uint32 effMask)
 
void _UnapplyAura (AuraApplicationMap::iterator &i, AuraRemoveMode removeMode)
 
void _UnapplyAura (AuraApplication *aurApp, AuraRemoveMode removeMode)
 
void _RemoveNoStackAurasDueToAura (Aura *aura, bool owned)
 
void _RegisterAuraEffect (AuraEffect *aurEff, bool apply)
 
AuraMap & GetOwnedAuras ()
 
AuraMap const & GetOwnedAuras () const
 
void RemoveOwnedAura (AuraMap::iterator &i, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveOwnedAura (Aura *aura, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
Aura * GetOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, Aura *except=nullptr) const
 
AuraApplicationMap & GetAppliedAuras ()
 
AuraApplicationMap const & GetAppliedAuras () const
 
void RemoveAura (AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAura (AuraApplication *aurApp, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAura (Aura *aur, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAppliedAuras (std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveOwnedAuras (std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAppliedAuras (uint32 spellId, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveOwnedAuras (uint32 spellId, std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAurasByType (AuraType auraType, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAurasDueToSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAuraFromStack (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, uint16 num=1)
 
void RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, ObjectGuid casterGUID, WorldObject *dispeller, uint8 chargesRemoved=1)
 
void RemoveAurasDueToSpellBySteal (uint32 spellId, ObjectGuid casterGUID, WorldObject *stealer, int32 stolenCharges=1)
 
void RemoveAurasDueToItemSpell (uint32 spellId, ObjectGuid castItemGuid)
 
void RemoveAurasByType (AuraType auraType, ObjectGuid casterGUID=ObjectGuid::Empty, Aura *except=nullptr, bool negative=true, bool positive=true)
 
void RemoveNotOwnSingleTargetAuras (bool onPhaseChange=false)
 
template<typename InterruptFlags >
void RemoveAurasWithInterruptFlags (InterruptFlags flag, SpellInfo const *source=nullptr)
 
void RemoveAurasWithAttribute (SpellAttr0 flags)
 
void RemoveAurasWithFamily (SpellFamilyNames family, flag128 const &familyFlag, ObjectGuid casterGUID)
 
void RemoveAurasWithMechanic (uint64 mechanicMaskToRemove, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, uint32 exceptSpellId=0, bool withEffectMechanics=false)
 
void RemoveMovementImpairingAuras (bool withRoot)
 
void RemoveAurasByShapeShift ()
 
void RemoveAreaAurasDueToLeaveWorld ()
 
void RemoveAllAuras ()
 
void RemoveArenaAuras ()
 
void RemoveAurasOnEvade ()
 
void RemoveAllAurasOnDeath ()
 
void RemoveAllAurasRequiringDeadTarget ()
 
void RemoveAllAurasExceptType (AuraType type)
 
void RemoveAllAurasExceptType (AuraType type1, AuraType type2)
 
void RemoveAllGroupBuffsFromCaster (ObjectGuid casterGUID)
 
void DelayOwnedAuras (uint32 spellId, ObjectGuid caster, int32 delaytime)
 
void _RemoveAllAuraStatMods ()
 
void _ApplyAllAuraStatMods ()
 
AuraEffectList const & GetAuraEffectsByType (AuraType type) const
 
AuraEffectList & GetAuraEffectsByType (AuraType type)
 
AuraList & GetSingleCastAuras ()
 
AuraList const & GetSingleCastAuras () const
 
AuraEffect * GetAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraEffect * GetAuraEffectOfRankedSpell (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraEffect * GetAuraEffect (AuraType type, SpellFamilyNames family, flag128 const &familyFlag, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraApplication * GetAuraApplication (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraApplication *except=nullptr) const
 
AuraApplication * GetAuraApplication (uint32 spellId, std::function< bool(AuraApplication const *)> const &predicate) const
 
AuraApplication * GetAuraApplication (uint32 spellId, std::function< bool(Aura const *)> const &predicate) const
 
AuraApplication * GetAuraApplication (std::function< bool(AuraApplication const *)> const &predicate) const
 
AuraApplication * GetAuraApplication (std::function< bool(Aura const *)> const &predicate) const
 
Aura * GetAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
 
Aura * GetAura (uint32 spellId, std::function< bool(Aura const *)> const &predicate) const
 
Aura * GetAura (std::function< bool(Aura const *)> const &predicate) const
 
AuraApplication * GetAuraApplicationOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraApplication *except=nullptr) const
 
Aura * GetAuraOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
 
void GetDispellableAuraList (WorldObject const *caster, uint32 dispelMask, DispelChargesList &dispelList, bool isReflect=false) const
 
bool HasAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid caster=ObjectGuid::Empty) const
 
uint32 GetAuraCount (uint32 spellId) const
 
bool HasAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
 
bool HasAura (std::function< bool(Aura const *)> const &predicate) const
 
bool HasAuraType (AuraType auraType) const
 
bool HasAuraTypeWithCaster (AuraType auraType, ObjectGuid caster) const
 
bool HasAuraTypeWithMiscvalue (AuraType auraType, int32 miscValue) const
 
bool HasAuraTypeWithAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
bool HasAuraTypeWithValue (AuraType auraType, int32 value) const
 
bool HasAuraTypeWithTriggerSpell (AuraType auratype, uint32 triggerSpell) const
 
template<typename InterruptFlags >
bool HasNegativeAuraWithInterruptFlag (InterruptFlags flag, ObjectGuid guid=ObjectGuid::Empty) const
 
bool HasAuraWithMechanic (uint64 mechanicMask) const
 
bool HasStrongerAuraWithDR (SpellInfo const *auraSpellInfo, Unit *caster) const
 
AuraEffect * IsScriptOverriden (SpellInfo const *spell, int32 script) const
 
uint32 GetDiseasesByCaster (ObjectGuid casterGUID, bool remove=false)
 
uint32 GetDoTsByCaster (ObjectGuid casterGUID) const
 
float GetTotalAuraModifier (AuraType auraType) const
 
float GetTotalAuraMultiplier (AuraType auraType) const
 
float GetMaxPositiveAuraModifier (AuraType auraType) const
 
float GetMaxNegativeAuraModifier (AuraType auraType) const
 
float GetTotalAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetTotalAuraMultiplier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetMaxPositiveAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetMaxNegativeAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetTotalAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
float GetTotalAuraMultiplierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
float GetMaxPositiveAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask, AuraEffect const *except=nullptr) const
 
float GetMaxNegativeAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
float GetTotalAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetTotalAuraMultiplierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetMaxPositiveAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetMaxNegativeAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetTotalAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
float GetTotalAuraMultiplierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
float GetMaxPositiveAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
float GetMaxNegativeAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
void InitStatBuffMods ()
 
void UpdateStatBuffMod (Stats stat)
 
void UpdateStatBuffModForClient (Stats stat)
 
void SetCreateStat (Stats stat, float val)
 
void SetCreateHealth (uint32 val)
 
uint32 GetCreateHealth () const
 
void SetCreateMana (uint32 val)
 
uint32 GetCreateMana () const
 
virtual int32 GetCreatePowerValue (Powers power) const
 
float GetPosStat (Stats stat) const
 
float GetNegStat (Stats stat) const
 
float GetCreateStat (Stats stat) const
 
uint32 GetChannelSpellId () const
 
void SetChannelSpellId (uint32 channelSpellId)
 
uint32 GetChannelSpellXSpellVisualId () const
 
uint32 GetChannelScriptVisualId () const
 
void SetChannelVisual (SpellCastVisual channelVisual)
 
void AddChannelObject (ObjectGuid guid)
 
void SetChannelObject (uint32 slot, ObjectGuid guid)
 
void RemoveChannelObject (ObjectGuid guid)
 
void ClearChannelObjects ()
 
void SetChannelSpellData (uint32 startTimeMs, uint32 durationMs)
 
int8 GetSpellEmpowerStage () const
 
void SetSpellEmpowerStage (int8 stage)
 
void SetCurrentCastSpell (Spell *pSpell)
 
void InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true, SpellCastResult result=SPELL_FAILED_INTERRUPTED, Optional< SpellCastResult > resultOther={}, ObjectGuid const &interrupter=ObjectGuid::Empty)
 
void FinishSpell (CurrentSpellTypes spellType, SpellCastResult result=SPELL_CAST_OK)
 
void CancelAutoRepeatSpell ()
 
bool IsNonMeleeSpellCast (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true, bool skipChanneledAllowingActions=false) const
 
void InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true)
 
Spell * GetCurrentSpell (CurrentSpellTypes spellType) const
 
Spell * FindCurrentSpellBySpellId (uint32 spell_id) const
 
int32 GetCurrentSpellCastTime (uint32 spell_id) const
 
GetCastSpellInfoResult GetCastSpellInfo (SpellInfo const *spellInfo) const
 
virtual SpellInfo const * GetCastSpellInfo (SpellInfo const *spellInfo, TriggerCastFlags &triggerFlag, GetCastSpellInfoContext *context) const
 
uint32 GetCastSpellXSpellVisualId (SpellInfo const *spellInfo) const override
 
virtual bool HasSpellFocus (Spell const *=nullptr) const
 
virtual bool IsMovementPreventedByCasting () const
 
bool CanCastSpellWhileMoving (SpellInfo const *spellInfo) const
 
bool IsSilenced (SpellSchoolMask schoolMask) const
 
void SetSilencedSchoolMask (SpellSchoolMask schoolMask)
 
void ReplaceAllSilencedSchoolMask (SpellSchoolMask schoolMask)
 
SpellHistory * GetSpellHistory ()
 
SpellHistory const * GetSpellHistory () const
 
ShapeshiftForm GetShapeshiftForm () const
 
void SetShapeshiftForm (ShapeshiftForm form)
 
void CancelShapeshiftForm (bool onlyTravelShapeshiftForm=false, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, bool force=false)
 
void CancelTravelShapeshiftForm (AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, bool force=false)
 
bool IsInFeralForm () const
 
bool IsInDisallowedMountForm () const
 
bool IsDisallowedMountForm (uint32 spellId, ShapeshiftForm form, uint32 displayId) const
 
void HandleStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float amount, bool apply)
 
void ApplyStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float amount)
 
void SetStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float val)
 
void SetStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float val)
 
float GetFlatModifierValue (UnitMods unitMod, UnitModifierFlatType modifierType) const
 
float GetPctModifierValue (UnitMods unitMod, UnitModifierPctType modifierType) const
 
void UpdateUnitMod (UnitMods unitMod)
 
void HandleAttackPowerModifier (AttackPowerModIndex index, AttackPowerModType modifierType, float amount, bool apply)
 
float GetAttackPowerModifierValue (AttackPowerModIndex index, AttackPowerModType modifierType) const
 
virtual bool CheckAttackFitToAuraRequirement (WeaponAttackType, AuraEffect const *) const
 
virtual void UpdateDamageDoneMods (WeaponAttackType attackType, int32 skipEnchantSlot=-1)
 
void UpdateAllDamageDoneMods ()
 
void UpdateDamagePctDoneMods (WeaponAttackType attackType)
 
void UpdateAllDamagePctDoneMods ()
 
float GetTotalStatValue (Stats stat) const
 
float GetTotalAuraModValue (UnitMods unitMod) const
 
SpellSchools GetSpellSchoolByAuraGroup (UnitMods unitMod) const
 
Stats GetStatByAuraGroup (UnitMods unitMod) const
 
bool CanModifyStats () const
 
void SetCanModifyStats (bool modifyStats)
 
virtual bool UpdateStats (Stats stat)=0
 
virtual bool UpdateAllStats ()=0
 
virtual void UpdateResistances (uint32 school)
 
virtual void UpdateAllResistances ()
 
virtual void UpdateArmor ()=0
 
virtual void UpdateMaxHealth ()=0
 
virtual void UpdateMaxPower (Powers power)=0
 
virtual uint32 GetPowerIndex (Powers power) const =0
 
virtual ClassPowerTypes GetPowerTypes () const =0
 
virtual void UpdateAttackPowerAndDamage (bool ranged=false)=0
 
void SetAttackPower (int32 attackPower)
 
void SetAttackPowerModPos (int32 attackPowerMod)
 
void SetAttackPowerModNeg (int32 attackPowerMod)
 
void SetAttackPowerMultiplier (float attackPowerMult)
 
void SetRangedAttackPower (int32 attackPower)
 
void SetRangedAttackPowerModPos (int32 attackPowerMod)
 
void SetRangedAttackPowerModNeg (int32 attackPowerMod)
 
void SetRangedAttackPowerMultiplier (float attackPowerMult)
 
void SetMainHandWeaponAttackPower (int32 attackPower)
 
void SetOffHandWeaponAttackPower (int32 attackPower)
 
void SetRangedWeaponAttackPower (int32 attackPower)
 
virtual void UpdateDamagePhysical (WeaponAttackType attType)
 
float GetTotalAttackPowerValue (WeaponAttackType attType, bool includeWeapon=true) const
 
float GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type) const
 
void SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value)
 
virtual void CalculateMinMaxDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, float &minDamage, float &maxDamage) const =0
 
uint32 CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct) const
 
float GetAPMultiplier (WeaponAttackType attType, bool normalized) const
 
bool isInFrontInMap (Unit const *target, float distance, float arc=float(M_PI)) const
 
bool isInBackInMap (Unit const *target, float distance, float arc=float(M_PI)) const
 
bool IsVisible () const
 
void SetVisible (bool x)
 
virtual void OnPhaseChange ()
 
void UpdateObjectVisibility (bool forced=true) override
 
VisibleAuraContainer const & GetVisibleAuras () const
 
bool HasVisibleAura (AuraApplication *aurApp) const
 
void SetVisibleAura (AuraApplication *aurApp)
 
void RemoveVisibleAura (AuraApplication *aurApp)
 
void SetVisibleAuraUpdate (AuraApplication *aurApp)
 
void RemoveVisibleAuraUpdate (AuraApplication *aurApp)
 
bool HasInterruptFlag (SpellAuraInterruptFlags flags) const
 
bool HasInterruptFlag (SpellAuraInterruptFlags2 flags) const
 
void AddInterruptMask (SpellAuraInterruptFlags flags, SpellAuraInterruptFlags2 flags2)
 
void UpdateInterruptMask ()
 
virtual float GetNativeObjectScale () const
 
virtual void RecalculateObjectScale ()
 
uint32 GetDisplayId () const
 
float GetDisplayScale () const
 
virtual void SetDisplayId (uint32 displayId, bool setNative=false)
 
uint32 GetNativeDisplayId () const
 
float GetNativeDisplayScale () const
 
void RestoreDisplayId (bool ignorePositiveAurasPreventingMounting=false)
 
void SetTransformSpell (uint32 spellid)
 
uint32 GetTransformSpell () const
 
void _RegisterDynObject (DynamicObject *dynObj)
 
void _UnregisterDynObject (DynamicObject *dynObj)
 
DynamicObject * GetDynObject (uint32 spellId) const
 
std::vector< DynamicObject * > GetDynObjects (uint32 spellId) const
 
void RemoveDynObject (uint32 spellId)
 
void RemoveAllDynObjects ()
 
GameObject * GetGameObject (uint32 spellId) const
 
std::vector< GameObject * > GetGameObjects (uint32 spellId) const
 
void AddGameObject (GameObject *gameObj)
 
void RemoveGameObject (GameObject *gameObj, bool del)
 
void RemoveGameObject (uint32 spellid, bool del)
 
void RemoveAllGameObjects ()
 
void _RegisterAreaTrigger (AreaTrigger *areaTrigger)
 
void _UnregisterAreaTrigger (AreaTrigger *areaTrigger)
 
AreaTrigger * GetAreaTrigger (uint32 spellId) const
 
std::vector< AreaTrigger * > GetAreaTriggers (uint32 spellId) const
 
void RemoveAreaTrigger (uint32 spellId)
 
void RemoveAreaTrigger (AuraEffect const *aurEff)
 
void RemoveAllAreaTriggers (AreaTriggerRemoveReason reason=AreaTriggerRemoveReason::Default)
 
void EnterAreaTrigger (AreaTrigger *areaTrigger)
 
void ExitAreaTrigger (AreaTrigger *areaTrigger)
 
std::vector< AreaTrigger * > const & GetInsideAreaTriggers () const
 
void ExitAllAreaTriggers ()
 
void ModifyAuraState (AuraStateType flag, bool apply)
 
uint32 BuildAuraStateUpdateForTarget (Unit const *target) const
 
bool HasAuraState (AuraStateType flag, SpellInfo const *spellProto=nullptr, Unit const *Caster=nullptr) const
 
void UnsummonAllTotems ()
 
bool IsMagnet () const
 
Unit * GetMeleeHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo=nullptr)
 
int32 SpellBaseDamageBonusDone (SpellSchoolMask schoolMask) const
 
int32 SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, int32 pdamage, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) const
 
float SpellDamagePctDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo) const
 
int32 SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 pdamage, DamageEffectType damagetype) const
 
int32 SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const
 
int32 SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, int32 healamount, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) const
 
float SpellHealingPctDone (Unit *victim, SpellInfo const *spellProto) const
 
int32 SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 healamount, DamageEffectType damagetype) const
 
int32 SpellBaseAbsorbBonusDone (SpellSchoolMask schoolMask) const
 
int32 SpellAbsorbBonusDone (Unit *victim, SpellInfo const *spellProto, int32 absorbamount, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, AuraEffect const *aurEff=nullptr) const
 
float SpellAbsorbPctDone (Unit *victim, SpellInfo const *spellProto) const
 
int32 SpellAbsorbBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 absorbamount) const
 
int32 MeleeDamageBonusDone (Unit *pVictim, int32 damage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo const *spellProto=nullptr, SpellEffectInfo const *spellEffectInfo=nullptr, Mechanics mechanic=MECHANIC_NONE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr)
 
int32 MeleeDamageBonusTaken (Unit *attacker, int32 pdamage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL)
 
bool IsBlockCritical () const
 
float SpellCritChanceDone (Spell *spell, AuraEffect const *aurEff, SpellSchoolMask schoolMask, WeaponAttackType attackType=BASE_ATTACK) const
 
float SpellCritChanceTaken (Unit const *caster, Spell *spell, AuraEffect const *aurEff, SpellSchoolMask schoolMask, float doneChance, WeaponAttackType attackType=BASE_ATTACK) const
 
void ApplySpellImmune (uint32 spellId, SpellImmunity op, uint32 type, bool apply)
 
bool IsImmunedToSpell (SpellInfo const *spellInfo, uint32 effectMask, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const
 
uint32 GetSchoolImmunityMask () const
 
uint32 GetDamageImmunityMask () const
 
uint64 GetMechanicImmunityMask () const
 
EnumFlag< SpellOtherImmunity > GetSpellOtherImmunityMask () const
 
bool IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const
 
bool IsImmunedToDamage (WorldObject const *caster, SpellInfo const *spellInfo, SpellEffectInfo const *spellEffectInfo=nullptr) const
 
virtual bool IsImmunedToSpellEffect (SpellInfo const *spellInfo, SpellEffectInfo const &spellEffectInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const
 
bool IsImmunedToAuraPeriodicTick (WorldObject const *caster, AuraEffect const *auraEffect) const
 
void UpdateSpeed (UnitMoveType mtype)
 
float GetSpeed (UnitMoveType mtype) const
 
float GetSpeedRate (UnitMoveType mtype) const
 
void SetSpeed (UnitMoveType mtype, float newValue)
 
void SetSpeedRate (UnitMoveType mtype, float rate)
 
int32 GetFlightCapabilityID () const
 
void SetFlightCapabilityID (int32 flightCapabilityId, bool clientUpdate)
 
float GetAdvFlyingSpeed (AdvFlyingRateTypeSingle speedType) const
 
float GetAdvFlyingSpeedMin (AdvFlyingRateTypeRange speedType) const
 
float GetAdvFlyingSpeedMax (AdvFlyingRateTypeRange speedType) const
 
void UpdateAdvFlyingSpeed (AdvFlyingRateTypeSingle speedType, bool clientUpdate)
 
void UpdateAdvFlyingSpeed (AdvFlyingRateTypeRange speedType, bool clientUpdate)
 
void FollowerAdded (AbstractFollower *f)
 
void FollowerRemoved (AbstractFollower *f)
 
void RemoveAllFollowers ()
 
MotionMaster * GetMotionMaster ()
 
MotionMaster const * GetMotionMaster () const
 
virtual MovementGeneratorType GetDefaultMovementType () const
 
bool IsStopped () const
 
void StopMoving (bool force=false)
 
void PauseMovement (uint32 timer=0, uint8 slot=0, bool forced=true)
 
void ResumeMovement (uint32 timer=0, uint8 slot=0)
 
void AddUnitMovementFlag (MovementFlags f)
 
void RemoveUnitMovementFlag (MovementFlags f)
 
bool HasUnitMovementFlag (MovementFlags f) const
 
MovementFlags GetUnitMovementFlags () const
 
void SetUnitMovementFlags (MovementFlags f)
 
bool IsSplineEnabled () const
 
void SetControlled (bool apply, UnitState state)
 
void ApplyControlStatesIfNeeded ()
 
void SendPetActionFeedback (PetActionFeedback msg, uint32 spellId) const
 -------—Pet responses methods--------------—
 
void SendPetActionSound (PetAction action) const
 
void SendPetDismissSound () const
 
void SendPetAIReaction (ObjectGuid guid) const
 
void PropagateSpeedChange ()
 -------—End of Pet responses methods-------—
 
void ClearAllReactives ()
 
void StartReactiveTimer (ReactiveType reactive)
 
void UpdateReactives (uint32 p_time)
 
void UpdateAuraForGroup ()
 
bool CanProc () const
 
void SetCantProc (bool apply)
 
int32 GetProcChainLength () const
 
uint32 GetModelForForm (ShapeshiftForm form, uint32 spellId) const
 
bool CreateVehicleKit (uint32 id, uint32 creatureEntry, bool loading=false)
 
void RemoveVehicleKit (bool onRemoveFromWorld=false)
 
Vehicle * GetVehicleKit () const
 
Trinity::unique_weak_ptr< Vehicle > GetVehicleKitWeakPtr () const
 
Vehicle * GetVehicle () const
 
void SetVehicle (Vehicle *vehicle)
 
bool IsOnVehicle (Unit const *vehicle) const
 
Unit * GetVehicleBase () const
 
Unit * GetVehicleRoot () const
 
Creature * GetVehicleCreatureBase () const
 
ObjectGuid GetTransGUID () const override
 
TransportBase * GetDirectTransport () const
 Returns the transport this unit is on directly (if on vehicle and transport, return vehicle)
 
void HandleSpellClick (Unit *clicker, int8 seatId=-1)
 
bool HandleSpellClick (Unit *clicker, int8 seatId, uint32 spellId, TriggerCastFlags flags=TRIGGERED_NONE, SpellClickInfo const *spellClickInfo=nullptr)
 
void EnterVehicle (Unit *base, int8 seatId=-1)
 
virtual void ExitVehicle (Position const *exitPosition=nullptr)
 
void ChangeSeat (int8 seatId, bool next=true)
 
void _ExitVehicle (Position const *exitPosition=nullptr)
 
void _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=nullptr)
 
bool isMoving () const
 
bool isTurning () const
 
virtual bool CanFly () const =0
 
bool IsFlying () const
 
bool IsFalling () const
 
virtual bool CanEnterWater () const =0
 
virtual bool CanSwim () const
 
float GetHoverOffset () const
 
int32 RewardRage (uint32 baseRage)
 
virtual float GetFollowAngle () const
 
void OutDebugInfo () const
 
virtual bool IsLoading () const
 
bool IsDuringRemoveFromWorld () const
 
Pet * ToPet ()
 
Pet const * ToPet () const
 
Totem * ToTotem ()
 
Totem const * ToTotem () const
 
TempSummon * ToTempSummon ()
 
TempSummon const * ToTempSummon () const
 
ObjectGuid GetTarget () const
 
virtual void SetTarget (ObjectGuid const &)=0
 
void SetInstantCast (bool set)
 
bool CanInstantCast () const
 
SpellEffectValue GetHighestExclusiveSameEffectSpellGroupValue (AuraEffect const *aurEff, AuraType auraType, bool checkMiscValue=false, int32 miscValue=0) const
 
bool IsHighestExclusiveAura (Aura const *aura, bool removeOtherAuraApplications=false)
 
bool IsHighestExclusiveAuraEffect (SpellInfo const *spellInfo, AuraType auraType, SpellEffectValue effectAmount, uint32 auraEffectMask, bool removeOtherAuraApplications=false)
 
virtual void Talk (std::string_view text, ChatMsg msgType, Language language, float textRange, WorldObject const *target)
 
virtual void Say (std::string_view text, Language language, WorldObject const *target=nullptr)
 
virtual void Yell (std::string_view text, Language language, WorldObject const *target=nullptr)
 
virtual void TextEmote (std::string_view text, WorldObject const *target=nullptr, bool isBossEmote=false)
 
virtual void Whisper (std::string_view text, Language language, Player *target, bool isBossWhisper=false)
 
virtual void Talk (uint32 textId, ChatMsg msgType, float textRange, WorldObject const *target)
 
virtual void Say (uint32 textId, WorldObject const *target=nullptr)
 
virtual void Yell (uint32 textId, WorldObject const *target=nullptr)
 
virtual void TextEmote (uint32 textId, WorldObject const *target=nullptr, bool isBossEmote=false)
 
virtual void Whisper (uint32 textId, Player *target, bool isBossWhisper=false)
 
void ClearBossEmotes (Optional< uint32 > zoneId={}, Player const *target=nullptr) const
 Clears boss emotes frame.
 
float GetCollisionHeight () const override
 
uint32 GetVirtualItemId (uint32 slot) const
 
uint16 GetVirtualItemAppearanceMod (uint32 slot) const
 
void SetVirtualItem (uint32 slot, uint32 itemId, uint16 appearanceModId=0, uint16 itemVisual=0)
 
bool IsCombatDisallowed () const
 
void SetIsCombatDisallowed (bool apply)
 
void AddWorldEffect (int32 worldEffectId)
 
void RemoveWorldEffect (int32 worldEffectId)
 
void ClearWorldEffects ()
 
Vignettes::VignetteData const * GetVignette () const
 
void SetVignette (uint32 vignetteId)
 
std::string GetDebugInfo () const override
 
void AtStartOfEncounter (EncounterType type)
 
void AtEndOfEncounter (EncounterType type)
 
- Public Member Functions inherited from WorldObject
virtual ~WorldObject ()
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
void GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle) const
 
void GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float distance2d, float absAngle) const
 
void GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0) const
 
void MovePosition (Position &pos, float dist, float angle, float maxHeightChange=6.0f) const
 
Position GetNearPosition (float dist, float angle)
 
void MovePositionToFirstCollision (Position &pos, float dist, float angle) const
 
Position GetFirstCollisionPosition (float dist, float angle)
 
Position GetRandomNearPosition (float radius)
 
void GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const
 
void UpdateGroundPositionZ (float x, float y, float &z) const
 
void UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const
 
Position GetRandomPoint (Position const &srcPos, float distance, float minDistance=0.0f) const
 
uint32 GetInstanceId () const
 
PhaseShift & GetPhaseShift ()
 
PhaseShift const & GetPhaseShift () const
 
PhaseShift & GetSuppressedPhaseShift ()
 
PhaseShift const & GetSuppressedPhaseShift () const
 
bool InSamePhase (PhaseShift const &phaseShift) const
 
bool InSamePhase (WorldObject const *obj) const
 
int32 GetDBPhase () const
 
void SetDBPhase (int32 p)
 
uint32 GetZoneId () const
 
uint32 GetAreaId () const
 
void GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const
 
bool IsInWorldPvpZone () const
 
bool IsOutdoors () const
 
ZLiquidStatus GetLiquidStatus () const
 
WmoLocation const * GetCurrentWmo () const
 
InstanceScript * GetInstanceScript () const
 
std::string const & GetName () const
 
void SetName (std::string newname)
 
std::string GetNameForLocaleIdx (LocaleConstant) const override
 
float GetDistance (WorldObject const *obj) const
 
float GetDistance (Position const &pos) const
 
float GetDistance (float x, float y, float z) const
 
float GetDistance2d (WorldObject const *obj) const
 
float GetDistance2d (float x, float y) const
 
float GetDistanceZ (WorldObject const *obj) const
 
bool IsSelfOrInSameMap (WorldObject const *obj) const
 
bool IsInMap (WorldObject const *obj) const
 
bool IsWithinDist3d (float x, float y, float z, float dist) const
 
bool IsWithinDist3d (Position const *pos, float dist) const
 
bool IsWithinDist2d (float x, float y, float dist) const
 
bool IsWithinDist2d (Position const *pos, float dist) const
 
bool IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
 
bool IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
 
bool IsWithinLOS (float x, float y, float z, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const
 
bool IsWithinLOSInMap (WorldObject const *obj, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const
 
Position GetHitSpherePointFor (Position const &dest) const
 
void GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z) const
 
bool GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const
 
bool IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const
 
bool IsInRange2d (Position const *pos, float minRange, float maxRange) const
 
bool IsInRange3d (Position const *pos, float minRange, float maxRange) const
 
bool isInFront (WorldObject const *target, float arc=float(M_PI)) const
 
bool isInBack (WorldObject const *target, float arc=float(M_PI)) const
 
bool IsInBetween (Position const &pos1, Position const &pos2, float size=0) const
 
bool IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const
 
virtual void SendMessageToSet (WorldPacket const *data, bool self) const
 
virtual void SendMessageToSetInRange (WorldPacket const *data, float dist, bool self) const
 
virtual void SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const
 
void SendCombatLogMessage (WorldPackets::CombatLog::CombatLogServerPacket *combatLog) const
 
void PlayDistanceSound (uint32 soundId, Player const *target=nullptr) const
 
void StopDistanceSound (Player const *target=nullptr) const
 
void PlayDirectSound (uint32 soundId, Player const *target=nullptr, uint32 broadcastTextId=0) const
 
void PlayDirectMusic (uint32 musicId, Player const *target=nullptr) const
 
void PlayObjectSound (int32 soundKitId, ObjectGuid targetObject, Player const *target=nullptr, int32 broadcastTextId=0) const
 
void AddObjectToRemoveList ()
 
float GetGridActivationRange () const
 
float GetVisibilityRange () const
 
float GetSightRange (WorldObject const *target=nullptr) const
 
bool CanSeeOrDetect (WorldObject const *obj, CanSeeOrDetectExtraArgs const &args={ }) const
 
virtual void SetMap (Map *map)
 
virtual void ResetMap ()
 
Map * GetMap () const
 
Map * FindMap () const
 
void SetZoneScript ()
 
ZoneScript * FindZoneScript () const
 
ZoneScript * GetZoneScript () const
 
Scenario * GetScenario () const
 
TempSummon * SummonCreature (uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
 
TempSummon * SummonCreature (uint32 entry, float x, float y, float z, float o=0, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
 
TempSummon * SummonPersonalClone (Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, Player *privateObjectOwner=nullptr)
 
GameObject * SummonGameObject (uint32 entry, Position const &pos, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
 
GameObject * SummonGameObject (uint32 entry, float x, float y, float z, float ang, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
 
Creature * SummonTrigger (float x, float y, float z, float ang, Milliseconds despawnTime, CreatureAI *(*GetAI)(Creature *)=nullptr)
 
void SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr)
 
Creature * FindNearestCreature (uint32 entry, float range, bool alive=true) const
 
Creature * FindNearestCreatureWithOptions (float range, FindCreatureOptions const &options) const
 
GameObject * FindNearestGameObject (uint32 entry, float range, bool spawnedOnly=true) const
 
GameObject * FindNearestGameObjectWithOptions (float range, FindGameObjectOptions const &options) const
 
GameObject * FindNearestUnspawnedGameObject (uint32 entry, float range) const
 
GameObject * FindNearestGameObjectOfType (GameobjectTypes type, float range) const
 
Player * SelectNearestPlayer (float range) const
 
ObjectGuid GetCharmerOrOwnerOrOwnGUID () const
 
Unit * GetOwner () const
 
Unit * GetCharmerOrOwner () const
 
Unit * GetCharmerOrOwnerOrSelf () const
 
Player * GetCharmerOrOwnerPlayerOrPlayerItself () const
 
Player * GetAffectingPlayer () const
 
Player * GetSpellModOwner () const
 
SpellRange GetSpellMinMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
SpellEffectValue ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, SpellEffectValue value) const
 
int32 CalcSpellDuration (SpellInfo const *spellInfo, std::vector< SpellPowerCost > const *powerCosts) const
 
int32 ModSpellDuration (SpellInfo const *spellInfo, WorldObject const *target, int32 duration, bool positive, uint32 effectMask) const
 
void ModSpellCastTime (SpellInfo const *spellInfo, int32 &castTime, Spell *spell=nullptr) const
 
void ModSpellDurationTime (SpellInfo const *spellInfo, int32 &durationTime, Spell *spell=nullptr) const
 
SpellMissInfo MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const
 
SpellMissInfo SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect, bool canImmune) const
 
void SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo)
 
FactionTemplateEntry const * GetFactionTemplateEntry () const
 
ReputationRank GetReactionTo (WorldObject const *target) const
 
bool IsHostileTo (WorldObject const *target) const
 
bool IsHostileToPlayers () const
 
bool IsFriendlyTo (WorldObject const *target) const
 
bool IsNeutralToAll () const
 
SpellCastResult CastSpell (CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
 
void SendPlayOrphanSpellVisual (Position const &sourceLocation, ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (Position const &sourceLocation, Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendCancelOrphanSpellVisual (uint32 id)
 
bool IsValidAttackTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const
 
bool IsValidAssistTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const
 
Unit * GetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo)
 
template<typename Container >
void GetGameObjectListWithEntryInGrid (Container &gameObjectContainer, uint32 entry, float maxSearchRange=250.0f) const
 
template<typename Container >
void GetGameObjectListWithOptionsInGrid (Container &gameObjectContainer, float maxSearchRange, FindGameObjectOptions const &options) const
 
template<typename Container >
void GetCreatureListWithEntryInGrid (Container &creatureContainer, uint32 entry, float maxSearchRange=250.0f) const
 
template<typename Container >
void GetCreatureListWithOptionsInGrid (Container &creatureContainer, float maxSearchRange, FindCreatureOptions const &options) const
 
template<typename Container >
void GetPlayerListInGrid (Container &playerContainer, float maxSearchRange, bool alive=true) const
 
void DestroyForNearbyPlayers ()
 
virtual void UpdateObjectVisibilityOnCreate ()
 
virtual void UpdateObjectVisibilityOnDestroy ()
 
void UpdatePositionData ()
 
void BuildUpdate (UpdateDataMapType &) override
 
bool AddToObjectUpdate () override
 
void RemoveFromObjectUpdate () override
 
void AddToNotify (uint16 f)
 
bool isNeedNotify (uint16 f) const
 
uint16 GetNotifyFlags () const
 
void ResetAllNotifies ()
 
bool isActiveObject () const
 
void setActive (bool isActiveObject)
 
bool IsFarVisible () const
 
void SetFarVisible (bool on)
 
bool IsVisibilityOverridden () const
 
void SetVisibilityDistanceOverride (VisibilityDistanceType type)
 
void SetIsStoredInWorldObjectGridContainer (bool apply)
 
bool IsAlwaysStoredInWorldObjectGridContainer () const
 
bool IsStoredInWorldObjectGridContainer () const
 
TransportBase * GetTransport () const
 
float GetTransOffsetX () const
 
float GetTransOffsetY () const
 
float GetTransOffsetZ () const
 
float GetTransOffsetO () const
 
Position const & GetTransOffset () const
 
uint32 GetTransTime () const
 
int8 GetTransSeat () const
 
void SetTransport (TransportBase *t)
 
virtual Position const & GetStationaryPosition () const
 
float GetFloorZ () const
 
float GetMapWaterOrGroundLevel (float x, float y, float z, float *ground=nullptr) const
 
float GetMapHeight (float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const
 
std::string GetDebugInfo () const override
 
bool IsPrivateObject () const
 
ObjectGuid GetPrivateObjectOwner () const
 
void SetPrivateObjectOwner (ObjectGuid const &owner)
 
bool CheckPrivateObjectOwnerVisibility (WorldObject const *seer) const
 
SmoothPhasing * GetOrCreateSmoothPhasing ()
 
SmoothPhasing * GetSmoothPhasing ()
 
SmoothPhasing const * GetSmoothPhasing () const
 
- Public Member Functions inherited from Object
virtual ~Object ()
 
uint32 GetEntry () const
 
void SetEntry (uint32 entry)
 
float GetObjectScale () const
 
virtual void SetObjectScale (float scale)
 
uint32 GetDynamicFlags () const
 
bool HasDynamicFlag (uint32 flag) const
 
void SetDynamicFlag (uint32 flag)
 
void RemoveDynamicFlag (uint32 flag)
 
void ReplaceAllDynamicFlags (uint32 flag)
 
void BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const
 
virtual bool hasQuest (uint32) const
 
virtual bool hasInvolvedQuest (uint32) const
 
WorldObject * ToWorldObject ()
 
WorldObject const * ToWorldObject () const
 
Item * ToItem ()
 
Item const * ToItem () const
 
Unit * ToUnit ()
 
Unit const * ToUnit () const
 
Creature * ToCreature ()
 
Creature const * ToCreature () const
 
Player * ToPlayer ()
 
Player const * ToPlayer () const
 
GameObject * ToGameObject ()
 
GameObject const * ToGameObject () const
 
Corpse * ToCorpse ()
 
Corpse const * ToCorpse () const
 
DynamicObject * ToDynObject ()
 
DynamicObject const * ToDynObject () const
 
AreaTrigger * ToAreaTrigger ()
 
AreaTrigger const * ToAreaTrigger () const
 
SceneObject * ToSceneObject ()
 
SceneObject const * ToSceneObject () const
 
Conversation * ToConversation ()
 
Conversation const * ToConversation () const
 
Trinity::unique_weak_ptr< Object > GetWeakPtr () const
 
virtual Loot * GetLootForPlayer (Player const *player) const
 
virtual SpawnTrackingStateData const * GetSpawnTrackingStateDataForPlayer (Player const *player) const
 
virtual void BuildValuesUpdateWithFlag (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const
 
- Public Member Functions inherited from BaseEntity
virtual ~BaseEntity ()
 
bool IsInWorld () const
 
ObjectGuid const & GetGUID () const
 
TypeID GetTypeId () const
 
bool isType (TypeMask mask) const
 
bool IsWorldObject () const
 
bool IsItem () const
 
bool IsUnit () const
 
bool IsCreature () const
 
bool IsPlayer () const
 
bool IsGameObject () const
 
bool IsDynObject () const
 
bool IsCorpse () const
 
bool IsAreaTrigger () const
 
bool IsSceneObject () const
 
bool IsConversation () const
 
bool IsMeshObject () const
 
virtual void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const
 
void SendUpdateToPlayer (Player *player) const
 
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const
 
void BuildDestroyUpdateBlock (UpdateData *data) const
 
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
 
ByteBuffer & PrepareValuesUpdateBuffer (UpdateData *data) const
 
void SendOutOfRangeForPlayer (Player const *target) const
 
void ClearUpdateMask (bool remove)
 
void SetIsNewObject (bool enable)
 
bool IsDestroyedObject () const
 
void SetDestroyedObject (bool destroyed)
 
void BuildUpdateChangesMask ()
 
void BuildFieldsUpdate (Player *player, UpdateDataMapType &data_map) const
 
template<typename T >
void ForceUpdateFieldChange (UF::UpdateFieldPrivateSetter< T > const &)
 
- Public Member Functions inherited from WorldLocation
constexpr WorldLocation ()
 
constexpr WorldLocation (uint32 mapId, float x, float y)
 
constexpr WorldLocation (uint32 mapId, float x, float y, float z)
 
constexpr WorldLocation (uint32 mapId, float x, float y, float z, float o)
 
constexpr WorldLocation (uint32 mapId, Position const &position)
 
constexpr void WorldRelocate (WorldLocation const &loc)
 
constexpr void WorldRelocate (WorldLocation const *loc)
 
constexpr void WorldRelocate (uint32 mapId, Position const &pos)
 
constexpr void WorldRelocate (uint32 mapId, float x, float y, float z, float o)
 
constexpr WorldLocation GetWorldLocation () const
 
constexpr uint32 GetMapId () const
 
std::string GetDebugInfo () const
 
- Public Member Functions inherited from Position
constexpr Position ()
 
constexpr Position (float x, float y)
 
constexpr Position (float x, float y, float z)
 
constexpr Position (float x, float y, float z, float o)
 
bool operator== (Position const &a) const
 
constexpr void Relocate (float x, float y)
 
constexpr void Relocate (float x, float y, float z)
 
constexpr void Relocate (float x, float y, float z, float o)
 
constexpr void Relocate (Position const &pos)
 
constexpr void Relocate (Position const *pos)
 
void RelocateOffset (Position const &offset)
 
constexpr void SetOrientation (float orientation)
 
constexpr float GetPositionX () const
 
constexpr float GetPositionY () const
 
constexpr float GetPositionZ () const
 
constexpr float GetOrientation () const
 
constexpr void GetPosition (float &x, float &y) const
 
constexpr void GetPosition (float &x, float &y, float &z) const
 
constexpr void GetPosition (float &x, float &y, float &z, float &o) const
 
constexpr Position GetPosition () const
 
Streamer< XY > PositionXYStream ()
 
ConstStreamer< XY > PositionXYStream () const
 
Streamer< XYZ > PositionXYZStream ()
 
ConstStreamer< XYZ > PositionXYZStream () const
 
Streamer< XYZO > PositionXYZOStream ()
 
ConstStreamer< XYZO > PositionXYZOStream () const
 
Streamer< PackedXYZ > PositionPackedXYZStream ()
 
ConstStreamer< PackedXYZ > PositionPackedXYZStream () const
 
bool IsPositionValid () const
 
constexpr float GetExactDist2dSq (const float x, const float y) const
 
constexpr float GetExactDist2dSq (Position const &pos) const
 
constexpr float GetExactDist2dSq (Position const *pos) const
 
float GetExactDist2d (const float x, const float y) const
 
float GetExactDist2d (Position const &pos) const
 
float GetExactDist2d (Position const *pos) const
 
constexpr float GetExactDistSq (float x, float y, float z) const
 
constexpr float GetExactDistSq (Position const &pos) const
 
constexpr float GetExactDistSq (Position const *pos) const
 
float GetExactDist (float x, float y, float z) const
 
float GetExactDist (Position const &pos) const
 
float GetExactDist (Position const *pos) const
 
Position GetPositionOffsetTo (Position const &endPos) const
 
Position GetPositionWithOffset (Position const &offset) const
 
float GetAbsoluteAngle (float x, float y) const
 
float GetAbsoluteAngle (Position const &pos) const
 
float GetAbsoluteAngle (Position const *pos) const
 
float ToAbsoluteAngle (float relAngle) const
 
float ToRelativeAngle (float absAngle) const
 
float GetRelativeAngle (float x, float y) const
 
float GetRelativeAngle (Position const &pos) const
 
float GetRelativeAngle (Position const *pos) const
 
constexpr bool IsInDist2d (float x, float y, float dist) const
 
constexpr bool IsInDist2d (Position const &pos, float dist) const
 
constexpr bool IsInDist2d (Position const *pos, float dist) const
 
constexpr bool IsInDist (float x, float y, float z, float dist) const
 
constexpr bool IsInDist (Position const &pos, float dist) const
 
constexpr bool IsInDist (Position const *pos, float dist) const
 
bool IsWithinBox (Position const &boxOrigin, float length, float width, float height) const
 
bool IsWithinVerticalCylinder (Position const &cylinderOrigin, float radius, float height, bool isDoubleVertical=false) const
 
bool IsInPolygon2D (Position const &polygonOrigin, std::span< Position const > vertices) const
 
bool HasInArc (float arcangle, Position const *pos, float border=2.0f) const
 
bool HasInLine (Position const *pos, float objSize, float width) const
 
std::string ToString () const
 

Static Public Member Functions

static std::vector< AuraEffect * > CopyAuraEffectList (AuraEffectList const &list)
 
static float CalculateAverageResistReduction (WorldObject const *caster, SpellSchoolMask schoolMask, Unit const *victim, SpellInfo const *spellInfo=nullptr)
 
static void DealDamageMods (Unit const *attacker, Unit const *victim, uint32 &damage, uint32 *absorb)
 
static uint32 DealDamage (Unit *attacker, Unit *victim, uint32 damage, CleanDamage const *cleanDamage=nullptr, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=nullptr, bool durabilityLoss=true)
 
static void Kill (Unit *attacker, Unit *victim, bool durabilityLoss=true, bool skipSettingDeathState=false)
 
static void DealHeal (HealInfo &healInfo)
 
static void ProcSkillsAndAuras (Unit *actor, Unit *actionTarget, ProcFlagsInit const &typeMaskActor, ProcFlagsInit const &typeMaskActionTarget, ProcFlagsSpellType spellTypeMask, ProcFlagsSpellPhase spellPhaseMask, ProcFlagsHit hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo)
 
static void ApplyResilience (Unit const *victim, int32 *damage)
 
static uint32 SpellCriticalDamageBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim)
 
static uint32 SpellCriticalHealingBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim)
 
static bool IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=nullptr)
 
static uint32 CalcArmorReducedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=MAX_ATTACK, uint8 attackerLevel=0)
 
static uint32 CalcSpellResistedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellSchoolMask schoolMask, SpellInfo const *spellInfo)
 
static void CalcAbsorbResist (DamageInfo &damageInfo, Spell *spell=nullptr)
 
static void CalcHealAbsorb (HealInfo &healInfo)
 
- Static Public Member Functions inherited from WorldObject
static bool InSamePhase (WorldObject const *a, WorldObject const *b)
 
static ReputationRank GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, WorldObject const *target)
 
- Static Public Member Functions inherited from Object
static WorldObject * ToWorldObject (Object *o)
 
static WorldObject const * ToWorldObject (Object const *o)
 
static Item * ToItem (Object *o)
 
static Item const * ToItem (Object const *o)
 
static Unit * ToUnit (Object *o)
 
static Unit const * ToUnit (Object const *o)
 
static Creature * ToCreature (Object *o)
 
static Creature const * ToCreature (Object const *o)
 
static Player * ToPlayer (Object *o)
 
static Player const * ToPlayer (Object const *o)
 
static GameObject * ToGameObject (Object *o)
 
static GameObject const * ToGameObject (Object const *o)
 
static Corpse * ToCorpse (Object *o)
 
static Corpse const * ToCorpse (Object const *o)
 
static DynamicObject * ToDynObject (Object *o)
 
static DynamicObject const * ToDynObject (Object const *o)
 
static AreaTrigger * ToAreaTrigger (Object *o)
 
static AreaTrigger const * ToAreaTrigger (Object const *o)
 
static SceneObject * ToSceneObject (Object *o)
 
static SceneObject const * ToSceneObject (Object const *o)
 
static Conversation * ToConversation (Object *o)
 
static Conversation const * ToConversation (Object const *o)
 
- Static Public Member Functions inherited from BaseEntity
static ObjectGuid GetGUID (BaseEntity const *o)
 
- Static Public Member Functions inherited from Position
static float NormalizeOrientation (float o)
 

Public Attributes

bool m_canDualWield
 
ControlList m_Controlled
 
std::array< ObjectGuid, MAX_SUMMON_SLOT > m_SummonSlot
 
std::array< ObjectGuid, MAX_GAMEOBJECT_SLOT > m_ObjectSlot
 
float m_modMeleeHitChance
 
float m_modRangedHitChance
 
float m_modSpellHitChance
 
float m_baseSpellCritChance
 
std::array< uint32, MAX_ATTACK > m_baseAttackSpeed
 
std::array< float, MAX_ATTACK > m_modAttackSpeedPct
 
std::array< uint32, MAX_ATTACK > m_attackTimer
 
SpellImmuneContainer m_spellImmune [MAX_SPELL_IMMUNITY]
 
uint32 m_lastSanctuaryTime
 
ObjectGuid LastCharmerGUID
 
std::unique_ptr< Movement::MoveSpline > movespline
 
UF::UpdateField< UF::UnitData, int32(WowCS::EntityFragment::CGObject), TYPEID_UNIT > m_unitData
 
- Public Attributes inherited from WorldObject
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPES > m_stealth
 
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPES > m_stealthDetect
 
FlaggedValuesArray32< int32, uint64, InvisibilityType, TOTAL_INVISIBILITY_TYPES > m_invisibility
 
FlaggedValuesArray32< int32, uint64, InvisibilityType, TOTAL_INVISIBILITY_TYPES > m_invisibilityDetect
 
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPES > m_serverSideVisibility
 
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPES > m_serverSideVisibilityDetect
 
uint32 LastUsedScriptID
 
MovementInfo m_movementInfo
 
EventProcessor m_Events
 
- Public Attributes inherited from Object
UF::UpdateField< UF::ObjectData, int32(WowCS::EntityFragment::CGObject), TYPEID_OBJECT > m_objectData
 
- Public Attributes inherited from BaseEntity
UF::UpdateFieldHolder m_values
 
- Public Attributes inherited from WorldLocation
uint32 m_mapId
 
- Public Attributes inherited from Position
float m_positionX
 
float m_positionY
 
float m_positionZ
 

Protected Types

typedef std::vector< DynamicObject * > DynObjectList
 
typedef std::list< GameObject * > GameObjectList
 
typedef std::vector< AreaTrigger * > AreaTriggerList
 

Protected Member Functions

void SetAI (UnitAI *newAI)
 
UnitAI * GetTopAI () const
 
void RefreshAI ()
 
UnitAI * GetScheduledChangeAI ()
 
bool HasScheduledAIChange () const
 
 Unit (bool isWorldObject)
 
UF::UpdateFieldFlag GetUpdateFieldFlagsFor (Player const *target) const override
 
void DestroyForPlayer (Player const *target) const override
 
void ClearValuesChangesMask () override
 
void _UpdateSpells (uint32 time)
 
void _DeleteRemovedAuras ()
 
void _UpdateAutoRepeatSpell ()
 
void RemoveGameObjectImpl (GameObject *gameObj, bool del)
 
bool IsAlwaysVisibleFor (WorldObject const *seer) const override
 
bool IsAlwaysDetectableFor (WorldObject const *seer) const override
 
void DisableSpline ()
 
void ProcessPositionDataChanged (PositionFullTerrainStatus const &data) override
 
void UpdateLiquidStatusOnPositionChange (Optional< LiquidData > const &newLiquidData)
 
virtual void AtEnterCombat ()
 
virtual void AtExitCombat ()
 
virtual void AtEngage (Unit *target)
 
virtual void AtDisengage ()
 
void SetFeared (bool apply)
 
void SetConfused (bool apply)
 
void SetStunned (bool apply)
 
void SetRooted (bool apply)
 
- Protected Member Functions inherited from WorldObject
 WorldObject (bool isWorldObject)
 
void SetLocationMapId (uint32 _mapId)
 
void SetLocationInstanceId (uint32 _instanceId)
 
virtual bool CanNeverSee (WorldObject const *obj, bool ignorePhaseShift=false) const
 
virtual bool CanAlwaysSee (WorldObject const *) const
 
virtual bool IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects) const
 
virtual bool IsInvisibleDueToDespawn (WorldObject const *seer) const
 
- Protected Member Functions inherited from Object
 Object ()
 
virtual void BuildValuesCreate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const =0
 
virtual void BuildValuesUpdate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const =0
 
void BuildEntityFragmentsForValuesUpdateForPlayerWithMask (ByteBuffer &data, EnumFlag< UF::UpdateFieldFlag > flags) const
 
- Protected Member Functions inherited from BaseEntity
 BaseEntity ()
 
void _Create (ObjectGuid const &guid)
 
template<typename T >
void SetUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value)
 
template<typename T >
void SetUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag)
 
template<typename T >
void RemoveUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag)
 
template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result AddDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter)
 
template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result InsertDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index)
 
template<typename T >
void RemoveDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index)
 
template<typename T >
void ClearDynamicUpdateFieldValues (UF::DynamicUpdateFieldSetter< T > setter)
 
template<typename K , typename V >
void RemoveMapUpdateFieldValue (UF::MapUpdateFieldSetter< K, V > setter, std::type_identity_t< K > const &key)
 
template<typename T >
void InsertSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key)
 
template<typename T >
void RemoveSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key)
 
template<typename T >
void RemoveOptionalUpdateFieldValue (UF::OptionalUpdateFieldSetter< T > setter)
 
template<typename T >
void SetUpdateFieldStatValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value)
 
template<typename T >
void ApplyModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type mod, bool apply)
 
template<typename T >
void ApplyPercentModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, float percent, bool apply)
 
template<typename Action >
void DoWithSuppressingObjectUpdates (Action &&action)
 
void BuildMovementUpdate (ByteBuffer &data, CreateObjectBits flags, Player const *target) const
 
void AddToObjectUpdateIfNeeded ()
 

Protected Attributes

bool m_ControlledByPlayer
 
std::array< float, MAX_STATS > m_floatStatPosBuff
 
std::array< float, MAX_STATS > m_floatStatNegBuff
 
AttackerSet m_attackers
 
Unit * m_attacking
 
DeathState m_deathState
 
int32 m_procDeep
 
int32 m_procChainLength
 
DynObjectList m_dynObj
 
GameObjectList m_gameObj
 
AreaTriggerList m_areaTrigger
 
AreaTriggerList m_insideAreaTriggers
 
uint32 m_transformSpell
 
std::array< Spell *, CURRENT_MAX_SPELL > m_currentSpells
 
AuraMap m_ownedAuras
 
AuraApplicationMap m_appliedAuras
 
AuraList m_removedAuras
 
AuraMap::iterator m_auraUpdateIterator
 
uint32 m_removedAurasCount
 
std::array< AuraEffectList, TOTAL_AURAS > m_modAuras
 
AuraList m_scAuras
 
AuraApplicationList m_interruptableAuras
 
AuraStateAurasMap m_auraStateAuras
 
EnumFlag< SpellAuraInterruptFlags > m_interruptMask
 
EnumFlag< SpellAuraInterruptFlags2 > m_interruptMask2
 
float m_auraFlatModifiersGroup [UNIT_MOD_END][MODIFIER_TYPE_FLAT_END]
 
float m_auraPctModifiersGroup [UNIT_MOD_END][MODIFIER_TYPE_PCT_END]
 
float m_attackPowerMods [uint32(AttackPowerModIndex::End)][uint32(AttackPowerModType::End)]
 
float m_weaponDamage [MAX_ATTACK][2]
 
bool m_canModifyStats
 
VisibleAuraContainer m_visibleAuras
 
Trinity::Containers::FlatSet< AuraApplication *, VisibleAuraSlotCompare > m_visibleAurasToUpdate
 
std::array< float, MAX_MOVE_TYPE > m_speed_rate
 
std::array< float, ADV_FLYING_MAX_SPEED_TYPE > m_advFlyingSpeed
 
Unit * m_unitMovedByMe
 
Player * m_playerMovingMe
 
Unit * m_charmer
 
Unit * m_charmed
 
std::unique_ptr< CharmInfo > m_charmInfo
 
SharedVisionList m_sharedVision
 
std::unique_ptr< MotionMaster > i_motionMaster
 
std::array< uint32, MAX_REACTIVE > m_reactiveTimer
 
uint32 m_regenTimer
 
Vehicle * m_vehicle
 
Trinity::unique_trackable_ptr< Vehicle > m_vehicleKit
 
uint32 m_unitTypeMask
 
LiquidTypeEntry const * _lastLiquid
 
std::unique_ptr< Vignettes::VignetteData > m_vignette
 
uint32 m_movementCounter
 Incrementing counter used in movement packets.
 
- Protected Attributes inherited from WorldObject
std::string m_name
 
bool m_isActive
 
bool m_isFarVisible
 
Optional< float > m_visibilityDistanceOverride
 
bool const m_isStoredInWorldObjectGridContainer
 
ZoneScript * m_zoneScript
 
TransportBase * m_transport
 
uint32 m_zoneId
 
uint32 m_areaId
 
float m_staticFloorZ
 
bool m_outdoors
 
ZLiquidStatus m_liquidStatus
 
Optional< WmoLocation > m_currentWmo
 
- Protected Attributes inherited from BaseEntity
TypeID m_objectTypeId = NUM_CLIENT_OBJECT_TYPES
 
CreateObjectBits m_updateFlag = {}
 
WowCS::EntityFragmentsHolder m_entityFragments
 
bool m_objectUpdated = false
 

Private Types

typedef std::stack< std::shared_ptr< UnitAI > > UnitAIStack
 

Private Member Functions

void UpdateSplineMovement (uint32 t_diff)
 
void UpdateSplinePosition ()
 
void SendFlightSplineSyncUpdate ()
 
void InterruptMovementBasedAuras ()
 
float GetCombatRatingReduction (CombatRating cr) const
 
uint32 GetCombatRatingDamageReduction (CombatRating cr, float rate, float cap, uint32 damage) const
 
void ProcSkillsAndReactives (bool isVictim, Unit *procTarget, ProcFlagsInit const &typeMask, ProcFlagsHit hitMask, WeaponAttackType attType)
 
void UpdateCharmAI ()
 
void RestoreDisabledAI ()
 

Private Attributes

uint32 m_state
 
Diminishing m_Diminishing
 
CombatManager m_combatManager
 
ThreatManager m_threatManager
 
UnitAIStack i_AIs
 
std::shared_ptr< UnitAI > i_AI
 
bool m_aiLocked
 
std::unordered_set< AbstractFollower * > m_followingMe
 
uint32 _lastExtraAttackSpell
 
std::unordered_map< ObjectGuid, uint32 > extraAttacksTargets
 
ObjectGuid _lastDamagedTargetGuid
 
bool m_cleanupDone
 
bool m_duringRemoveFromWorld
 
bool _instantCast
 
uint32 _oldFactionId
 faction before charm
 
bool _isWalkingBeforeCharm
 Are we walking before we were charmed?
 
uint16 _aiAnimKitId
 
uint16 _movementAnimKitId
 
uint16 _meleeAnimKitId
 
std::unique_ptr< SpellHistory > _spellHistory
 
std::unique_ptr< MovementForces > _movementForces
 
PositionUpdateInfo _positionUpdateInfo
 
bool _isCombatDisallowed
 

Friends

class VehicleJoinEvent
 
class ImmediateMovementGenerator
 
class CombatManager
 
class ThreatManager
 

Additional Inherited Members

- Static Protected Member Functions inherited from BaseEntity
static void BuildEntityFragments (ByteBuffer &data, std::span< WowCS::EntityFragment const > fragments)
 

Detailed Description

Definition at line 646 of file Unit.h.

Member Typedef Documentation

◆ AreaTriggerList

typedef std::vector<AreaTrigger*> Unit::AreaTriggerList
protected

Definition at line 1932 of file Unit.h.

◆ AttackerSet

typedef std::set<Unit*> Unit::AttackerSet

Definition at line 649 of file Unit.h.

◆ AuraApplicationList

typedef std::forward_list<AuraApplication*> Unit::AuraApplicationList

Definition at line 666 of file Unit.h.

◆ AuraApplicationMap

Definition at line 657 of file Unit.h.

◆ AuraApplicationMapBounds

typedef std::pair<AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator> Unit::AuraApplicationMapBounds

Definition at line 658 of file Unit.h.

◆ AuraApplicationMapBoundsNonConst

typedef std::pair<AuraApplicationMap::iterator, AuraApplicationMap::iterator> Unit::AuraApplicationMapBoundsNonConst

Definition at line 659 of file Unit.h.

◆ AuraApplicationProcContainer

typedef std::vector<std::pair<uint32 , AuraApplication*> > Unit::AuraApplicationProcContainer

Definition at line 669 of file Unit.h.

◆ AuraEffectList

typedef std::forward_list<AuraEffect*> Unit::AuraEffectList

Definition at line 664 of file Unit.h.

◆ AuraList

typedef std::forward_list<Aura*> Unit::AuraList

Definition at line 665 of file Unit.h.

◆ AuraMap

typedef std::multimap<uint32, Aura*> Unit::AuraMap

Definition at line 653 of file Unit.h.

◆ AuraMapBounds

typedef std::pair<AuraMap::const_iterator, AuraMap::const_iterator> Unit::AuraMapBounds

Definition at line 654 of file Unit.h.

◆ AuraMapBoundsNonConst

typedef std::pair<AuraMap::iterator, AuraMap::iterator> Unit::AuraMapBoundsNonConst

Definition at line 655 of file Unit.h.

◆ AuraStateAurasMap

Definition at line 661 of file Unit.h.

◆ AuraStateAurasMapBounds

typedef std::pair<AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator> Unit::AuraStateAurasMapBounds

Definition at line 662 of file Unit.h.

◆ ControlList

typedef std::set<Unit*> Unit::ControlList

Definition at line 650 of file Unit.h.

◆ Diminishing

Definition at line 667 of file Unit.h.

◆ DynObjectList

typedef std::vector<DynamicObject*> Unit::DynObjectList
protected

Definition at line 1925 of file Unit.h.

◆ GameObjectList

typedef std::list<GameObject*> Unit::GameObjectList
protected

Definition at line 1928 of file Unit.h.

◆ UnitAIStack

typedef std::stack<std::shared_ptr<UnitAI> > Unit::UnitAIStack
private

Definition at line 2039 of file Unit.h.

◆ UnitVector

typedef std::vector<Unit*> Unit::UnitVector

Definition at line 651 of file Unit.h.

◆ VisibleAuraContainer

Definition at line 672 of file Unit.h.

Member Enumeration Documentation

◆ AreaTriggerRemoveReason

enum class Unit::AreaTriggerRemoveReason : uint8
strong
Enumerator
Default 
UnitDespawn 

Definition at line 1667 of file Unit.h.

Constructor & Destructor Documentation

◆ ~Unit()

◆ Unit()

Member Function Documentation

◆ _addAttacker()

void Unit::_addAttacker ( Unit *  pAttacker)

Definition at line 5839 of file Unit.cpp.

References m_attackers.

Referenced by Attack().

◆ _AddAura()

◆ _ApplyAllAuraStatMods()

void Unit::_ApplyAllAuraStatMods ( )

Definition at line 4616 of file Unit.cpp.

References AURA_EFFECT_HANDLE_STAT, and m_appliedAuras.

Referenced by Player::_ApplyAllStatBonuses().

◆ _ApplyAura()

◆ _ApplyAuraEffect()

void Unit::_ApplyAuraEffect ( Aura *  aura,
uint8  effIndex 
)

◆ _CreateAuraApplication()

◆ _DeleteRemovedAuras()

void Unit::_DeleteRemovedAuras ( )
protected

Definition at line 2935 of file Unit.cpp.

References m_removedAuras, and m_removedAurasCount.

Referenced by _UpdateSpells(), and ~Unit().

◆ _EnterVehicle()

◆ _ExitVehicle()

void Unit::_ExitVehicle ( Position const *  exitPosition = nullptr)

It's possible m_vehicle is NULL, when this function is called indirectly from @VehicleJoinEvent::Abort. In that case it was not possible to add the passenger to the vehicle. The vehicle aura has already been removed from the target in the aforementioned function and we don't need to do anything else at this point.

Definition at line 12950 of file Unit.cpp.

References AbandonVehicle, AddUnitState(), CanFly(), Creature::DespawnOrUnsummon(), Player::duel, DUEL_FLED, Player::DuelComplete(), EVENT_VEHICLE_EXIT, VehicleSeatAddon::ExitParameter, VehicleSeatAddon::ExitParameterO, VehicleSeatAddon::ExitParameterX, VehicleSeatAddon::ExitParameterY, VehicleSeatAddon::ExitParameterZ, Vehicle::GetBase(), GetCollisionHeight(), getDeathState(), GetDebugInfo(), Vehicle::GetDespawnDelay(), WorldObject::GetMap(), GetMotionMaster(), Position::GetOrientation(), WorldObject::GetPhaseShift(), Position::GetPosition(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Vehicle::GetSeatAddonForSeatOfPassenger(), BaseEntity::GetTypeId(), Map::GetWaterOrGroundLevel(), HasUnitTypeMask(), JUST_DIED, MotionMaster::LaunchMoveSpline(), m_vehicle, MOTION_PRIORITY_HIGHEST, Position::Relocate(), Position::RelocateOffset(), RemoveAurasWithInterruptFlags(), Vehicle::RemovePassenger(), Player::ResummonPetTemporaryUnSummonedIfAny(), SetControlled(), setDeathState(), Player::SetFallInformation(), Position::SetOrientation(), TC_LOG_ERROR, Object::ToCreature(), Object::ToPlayer(), ToTempSummon(), TYPEID_UNIT, UNIT_MASK_ACCESSORY, UNIT_MASK_MINION, UNIT_STATE_MOVE, UNIT_STATE_ROOT, TempSummon::UnSummon(), VehicleExitParamDest, and VehicleExitParamOffset.

Referenced by AuraEffect::HandleAuraControlVehicle(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), and Player::StopCastingCharm().

◆ _RegisterAreaTrigger()

void Unit::_RegisterAreaTrigger ( AreaTrigger *  areaTrigger)

◆ _RegisterAuraEffect()

void Unit::_RegisterAuraEffect ( AuraEffect *  aurEff,
bool  apply 
)

◆ _RegisterDynObject()

void Unit::_RegisterDynObject ( DynamicObject *  dynObj)

◆ _RemoveAllAuraStatMods()

void Unit::_RemoveAllAuraStatMods ( )

Definition at line 4610 of file Unit.cpp.

References AURA_EFFECT_HANDLE_STAT, and m_appliedAuras.

Referenced by Player::_RemoveAllStatBonuses().

◆ _removeAttacker()

void Unit::_removeAttacker ( Unit *  pAttacker)

Definition at line 5844 of file Unit.cpp.

References m_attackers.

Referenced by Attack(), and AttackStop().

◆ _RemoveNoStackAurasDueToAura()

◆ _TryStackingOrRefreshingExistingAura()

◆ _UnapplyAura() [1/2]

void Unit::_UnapplyAura ( AuraApplication *  aurApp,
AuraRemoveMode  removeMode 
)

◆ _UnapplyAura() [2/2]

◆ _UnregisterAreaTrigger()

void Unit::_UnregisterAreaTrigger ( AreaTrigger *  areaTrigger)

◆ _UnregisterDynObject()

◆ _UpdateAutoRepeatSpell()

◆ _UpdateSpells()

◆ AddAura() [1/2]

◆ AddAura() [2/2]

Aura * Unit::AddAura ( uint32  spellId,
Unit *  target 
)

Definition at line 12344 of file Unit.cpp.

References AddAura(), WorldObject::GetMap(), MAX_EFFECT_MASK, and sSpellMgr.

Referenced by Player::_LoadAuras(), boss_flame_leviathan::boss_flame_leviathanAI::ActiveTower(), AddAura(), Player::ApplyItemDependentAuras(), boss_twilight_halion::boss_twilight_halion(), boss_veknilash::boss_veknilashAI::CastSpellOnBug(), boss_veklor::boss_veklorAI::CastSpellOnBug(), boss_lady_deathwhisper::DamageTaken(), boss_steelbreaker::boss_steelbreakerAI::DoAction(), boss_runemaster_molgeim::boss_runemaster_molgeimAI::DoAction(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), AreaTrigger::DoActions(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::EnterEvadeMode(), npc_anubisath_sentinel::aqsentinelAI::GainSentinelAbility(), misc_commandscript::HandleAuraCommand(), Aura::HandleAuraSpecificMods(), spell_thaddius_magnetic_pull::HandleCast(), deserter_commandscript::HandleDeserterAdd(), misc_commandscript::HandleFreezeCommand(), gm_commandscript::HandleGMVisibleCommand(), Player::HandlePassiveSpellLearn(), spell_thaddius_polarity_charge::HandleTargets(), spell_gen_trigger_exclude_caster_aura_spell::HandleTrigger(), spell_gen_trigger_exclude_target_aura_spell::HandleTrigger(), Guardian::InitStatsForLevel(), boss_twin_baseAI::JustEngagedWith(), boss_drakkari_elemental::JustEngagedWith(), boss_halion::JustEngagedWith(), boss_twilight_halion::JustEngagedWith(), boss_freya::boss_freyaAI::JustEngagedWith(), Creature::LoadCreaturesAddon(), npc_flame_tsunami::npc_flame_tsunami(), BattlefieldWG::OnCreatureCreate(), spell_warl_soul_swap_exhale::OnEffectHit(), go_blackfathom_altar::OnGossipHello(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnPlayerEnter(), BattlefieldWG::OnPlayerEnterZone(), AreaTrigger_at_area_52_entrance::OnTrigger(), boss_baleroc::PreparePhase(), npc_lake_frog::ReceiveEmote(), spell_putricide_slime_puddle_aura::ReplaceAura(), npc_troll_volunteer::Reset(), npc_acolyte_of_shadron::Reset(), npc_acolyte_of_vesperon::Reset(), npc_twilight_eggs::Reset(), npc_twilight_fissure::Reset(), npc_vengeful_shade::Reset(), boss_magus_telestra::Reset(), SetAuraStack(), boss_gyth::UpdateAI(), boss_netherspite::boss_netherspiteAI::UpdateAI(), npc_tiger_matriarch_credit::UpdateAI(), npc_tiger_matriarch::UpdateAI(), npc_frostwing_ymirjar_vrykul::UpdateAI(), boss_elder_brightleaf::boss_elder_brightleafAI::UpdateAI(), npc_ancient_conservator::npc_ancient_conservatorAI::UpdateAI(), npc_scorch_ground::npc_scorch_groundAI::UpdateAI(), and boss_netherspite::boss_netherspiteAI::UpdatePortals().

◆ AddChannelObject()

◆ AddExtraAttacks()

void Unit::AddExtraAttacks ( uint32  count)

◆ AddGameObject()

◆ AddInterruptMask()

void Unit::AddInterruptMask ( SpellAuraInterruptFlags  flags,
SpellAuraInterruptFlags2  flags2 
)
inline

Definition at line 1628 of file Unit.h.

References flags.

Referenced by _CreateAuraApplication().

◆ AddPlayerToVision()

void Unit::AddPlayerToVision ( Player *  player)

◆ AddToWorld()

void Unit::AddToWorld ( )
overridevirtual

◆ AddUnitMovementFlag()

◆ AddUnitState()

void Unit::AddUnitState ( uint32  f)
inline

Definition at line 754 of file Unit.h.

Referenced by _ExitVehicle(), MotionMaster::AddBaseUnitState(), Attack(), boss_ichoron::boss_ichoron(), Creature::Create(), Transport::CreateNPCPassenger(), boss_black_knight::boss_black_knightAI::DamageTaken(), npc_altar_altercation_ariok::DoAction(), SmartAI::EnterEvadeMode(), firelands_bossAI::EnterEvadeMode(), boss_blood_queen_lana_thel::EnterEvadeMode(), npc_daegarn::EnterEvadeMode(), CreatureAI::EnterEvadeMode(), AuraEffect::HandleFeignDeath(), spell_aqusirr_surging_rush::HandleScript(), PointMovementGenerator::Initialize(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::InitializeAI(), spell_alysrazor_turn_monstrosity::spell_alysrazor_turn_monstrosity_SpellScript::KnockBarrage(), FormationMovementGenerator::LaunchMovement(), spell_systems_shutdown::spell_systems_shutdown_AuraScript::OnApply(), spell_rokmora_emerge_aura::OnApply(), scene_auchindoun_soulbinder_nyami::OnSceneStart(), scene_maiden_of_virtue_outro::OnSceneStart(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::Reset(), SplineChainMovementGenerator::SendPathSpline(), boss_twinemperorsAI::SetAfterTeleport(), SetCharmedBy(), Player::SetContestedPvP(), SetControlled(), SetCurrentCastSpell(), Creature::SetSpellFocus(), HomeMovementGenerator< T >::SetTargetLocation(), FleeingMovementGenerator::SetTargetLocation(), Transport::SummonPassenger(), boss_twinemperorsAI::TryActivateAfterTTelep(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), PointMovementGenerator::Update(), boss_black_knight::boss_black_knightAI::UpdateAI(), npc_general_arlos::WaypointPathEnded(), and npc_leryssa::WaypointPathEnded().

◆ AddUnitTypeMask()

void Unit::AddUnitTypeMask ( uint32  mask)
inline

Definition at line 760 of file Unit.h.

Referenced by Vehicle::InstallAccessory().

◆ AddWorldEffect()

void Unit::AddWorldEffect ( int32  worldEffectId)

◆ AIUpdateTick()

void Unit::AIUpdateTick ( uint32  diff)

Definition at line 10223 of file Unit.cpp.

References GetAI(), and m_aiLocked.

Referenced by Creature::Update(), and Player::Update().

◆ ApplyAttackTimePercentMod()

◆ ApplyCastTimePercentMod()

◆ ApplyControlStatesIfNeeded()

◆ ApplyDiminishingAura()

void Unit::ApplyDiminishingAura ( DiminishingGroup  group,
bool  apply 
)

◆ ApplyDiminishingToDuration()

◆ ApplyHasteRegenPercentMod()

◆ ApplyInertia()

◆ ApplyModManaCostModifier()

void Unit::ApplyModManaCostModifier ( SpellSchools  school,
int32  mod,
bool  apply 
)
inline

Definition at line 842 of file Unit.h.

References m_unitData, and UF::UnitData::ManaCostModifier.

Referenced by AuraEffect::HandleModPowerCost().

◆ ApplyModManaCostMultiplier()

void Unit::ApplyModManaCostMultiplier ( float  manaCostMultiplier,
bool  apply 
)
inline

Definition at line 841 of file Unit.h.

References m_unitData, and UF::UnitData::ManaCostMultiplier.

Referenced by AuraEffect::HandleModManaCostPct().

◆ ApplyMovementForce()

◆ ApplyResilience()

◆ ApplySpellHastePercentMod()

◆ ApplySpellImmune()

void Unit::ApplySpellImmune ( uint32  spellId,
SpellImmunity  op,
uint32  type,
bool  apply 
)

◆ ApplyStatPctModifier()

◆ AtDisengage()

virtual void Unit::AtDisengage ( )
inlineprotectedvirtual

Reimplemented in Creature.

Definition at line 1998 of file Unit.h.

Referenced by Creature::AtDisengage(), and CombatManager::UpdateOwnerCombatState().

◆ AtEndOfEncounter()

◆ AtEngage()

void Unit::AtEngage ( Unit *  target)
protectedvirtual

◆ AtEnterCombat()

◆ AtExitCombat()

◆ AtStartOfEncounter()

◆ Attack()

bool Unit::Attack ( Unit *  victim,
bool  meleeAttack 
)

Definition at line 5872 of file Unit.cpp.

References _addAttacker(), _removeAttacker(), AddUnitState(), AI_REACTION_HOSTILE, BASE_ATTACK, CalculatePct(), Creature::CallAssistance(), ClearUnitState(), CreateObjectBits::CombatVictim, CURRENT_MELEE_SPELL, EMOTE_ONESHOT_NONE, EngageWithTarget(), getAttackTimer(), GetBaseAttackTime(), BaseEntity::GetGUID(), BaseEntity::GetTypeId(), HasAuraType(), HasUnitState(), haveOffhandWeapon(), InterruptSpell(), IsAlive(), IsControlledByPlayer(), Creature::IsEvadingAttacks(), Player::IsGameMaster(), Creature::IsInEvadeMode(), BaseEntity::IsInWorld(), IsMounted(), m_attacking, m_Controlled, BaseEntity::m_updateFlag, OFF_ATTACK, RemoveAurasByType(), Creature::SendAIReaction(), SendMeleeAttackStart(), SendMeleeAttackStop(), setAttackTimer(), SetEmoteState(), SetStandState(), SetTarget(), SPELL_AURA_MOD_UNATTACKABLE, Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, UNIT_STAND_STATE_STAND, and UNIT_STATE_MELEE_ATTACKING.

Referenced by npc_elwynn_forest_wolf::_ScheduleBeforeChasingEvents(), boss_novos::AttackStart(), npc_gunship_gunner::AttackStart(), UnitAI::AttackStart(), CreatureAI::AttackStart(), boss_tyrannus::AttackStart(), boss_lady_deathwhisper::AttackStart(), TurretAI::AttackStart(), SmartAI::AttackStart(), npc_hearthglen_crusader::AttackStart(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::AttackStart(), boss_veklor::boss_veklorAI::AttackStart(), boss_faction_championsAI::AttackStart(), UnitAI::AttackStartCaster(), ScriptedAI::AttackStartNoMove(), npc_ball_of_flame::DoAction(), PetAI::DoAttack(), Spell::EffectCharge(), WorldSession::HandleAttackSwingOpcode(), WorldSession::HandlePetActionHelper(), npc_pet_dk_ebon_gargoyle::InitializeAI(), npc_devout_follower::npc_devout_followerAI::IsSummonedBy(), npc_silverpine_skitterweb_matriarch::JustSummoned(), npc_necromancer::npc_necromancerAI::JustSummoned(), boss_kologarn::boss_kologarnAI::JustSummoned(), dummy_dragonAI::MovementInform(), TriggerAI::NullCreatureAI(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::OnGossipSelect(), npc_silverpine_skitterweb_matriarch::ScheduleCombatEvents(), and npc_gargoyle::npc_gargoyleAI::UpdateAI().

◆ AttackerStateUpdate()

void Unit::AttackerStateUpdate ( Unit *  victim,
WeaponAttackType  attType = BASE_ATTACK,
bool  extra = false 
)

◆ AttackStop()

bool Unit::AttackStop ( )

Definition at line 5984 of file Unit.cpp.

References _removeAttacker(), ClearUnitState(), CreateObjectBits::CombatVictim, CURRENT_MELEE_SPELL, ObjectGuid::Empty, InterruptSpell(), m_attacking, BaseEntity::m_updateFlag, SendMeleeAttackStop(), SetTarget(), Object::ToCreature(), and UNIT_STATE_MELEE_ATTACKING.

Referenced by spell_the_lich_king_ice_burst_target_search::CheckTargetCount(), CombatStop(), boss_the_lich_king::DamageTaken(), boss_garothi_worldbreaker::DamageTaken(), npc_felblood_kaelthas_phoenix::DamageTaken(), npc_ohgan::DamageTaken(), boss_earthrager_ptah::DamageTaken(), boss_temple_guardian_anhuur::DamageTaken(), HeartsbaneTriadSharedAI::DamageTaken(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), boss_algalon_the_observer::DamageTaken(), npc_feral_defender::DamageTaken(), boss_ymiron::DamageTaken(), boss_essence_of_suffering::DamageTaken(), boss_essence_of_desire::DamageTaken(), boss_felblood_kaelthas::DamageTaken(), npc_death_knight_initiate::npc_death_knight_initiateAI::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_vx_001::boss_vx_001AI::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), boss_shade_of_medivh::DoAction(), boss_professor_putricide::DoAction(), npc_raging_spirit::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_parasitic_shadowfiend::DoAction(), boss_illidan_stormrage::DoAction(), npc_akama_illidan::DoAction(), npc_maiev::DoAction(), ScriptedAI::DoStopAttack(), Player::DuelComplete(), SmartAI::EnterEvadeMode(), boss_icehowl::ExecuteEvent(), boss_xt002::ExposeHeart(), Spell::finish(), boss_thorim::boss_thorimAI::FinishEncounter(), WorldSession::HandleAttackStopOpcode(), HeartsbaneTriadSharedAI::HandleClaimIris(), spell_hun_scatter_shot::HandleDummy(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleModUnattackable(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetStopAttack(), spell_mandokir_devastating_slam::HandleScript(), spell_soulbound_goliath_burning_brush::HandleScript(), npc_enslaved_soul::HandleSoulRelease(), boss_freya::boss_freyaAI::JustDied(), npc_silverpine_skitterweb_matriarch::JustEngagedWith(), PetAI::KilledUnit(), npc_snobold_vassal::MountOnBoss(), SimpleCharmedPlayerAI::OnCharmed(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::OnHealthDepleted(), RemoveCharmedBy(), SetCharmedBy(), npc_zombie_chow::SetData(), boss_hadronox::SetStep(), boss_attumen::boss_attumenAI::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), boss_ionar::SpellHit(), npc_sif::npc_sifAI::SpellHit(), boss_headless_horseman::StartPhase(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), PetAI::StopAttack(), StopAttackFaction(), boss_jormungarAI::Submerge(), SimpleCharmedPlayerAI::UpdateAI(), boss_argaloth::UpdateAI(), boss_felblood_kaelthas::UpdateAI(), boss_kalecgos::UpdateAI(), boss_lockmaw::UpdateAI(), npc_lockmaw_augh_add::UpdateAI(), boss_onyxia::UpdateAI(), npc_qiraj_war_spawn::npc_qiraj_war_spawnAI::UpdateAI(), boss_corborus::boss_corborusAI::UpdateAI(), boss_ozruk::boss_ozrukAI::UpdateAI(), boss_slabhide::boss_slabhideAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_saviana_ragefire::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), boss_garfrost::UpdateAI(), boss_sindragosa::UpdateAI(), npc_rimefang_icc::UpdateAI(), boss_the_lich_king::UpdateAI(), boss_gluth::UpdateAI(), boss_gothik::UpdateAI(), boss_heigan::UpdateAI(), boss_noth::UpdateAI(), boss_sapphiron::UpdateAI(), boss_malygos::UpdateAI(), boss_urom::UpdateAI(), boss_volkhan::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), boss_hodir::UpdateAI(), boss_svala::UpdateAI(), npc_akama_illidan::UpdateAI(), boss_magtheridon::UpdateAI(), boss_kaelthas::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::UpdateAI(), boss_remnant_of_a_fallen_king::UpdateAI(), PossessedAI::UpdateAI(), CreatureAI::UpdateVictim(), npc_pet_mage_mirror_image::UpdateVictim(), and ValidateAttackersAndOwnTarget().

◆ AtTargetAttacked()

◆ BuildAuraStateUpdateForTarget()

uint32 Unit::BuildAuraStateUpdateForTarget ( Unit const *  target) const

◆ CalcAbsorbResist()

void Unit::CalcAbsorbResist ( DamageInfo &  damageInfo,
Spell *  spell = nullptr 
)
static

Definition at line 1866 of file Unit.cpp.

References SpellNonMeleeDamage::absorb, DamageInfo::AbsorbDamage(), WorldPackets::CombatLog::SpellAbsorbLog::Absorbed, WorldPackets::CombatLog::SpellAbsorbLog::AbsorbedSpellID, WorldPackets::CombatLog::SpellAbsorbLog::AbsorbSpellID, WorldPackets::CombatLog::SpellAbsorbLog::Attacker, AURA_REMOVE_BY_ENEMY_SPELL, BASE_ATTACK, CalcSpellResistedDamage(), CalculatePct(), SpellEffectInfo::CalcValueMultiplier(), Aura::CallScriptEffectAbsorbHandlers(), Aura::CallScriptEffectAfterAbsorbHandlers(), Aura::CallScriptEffectAfterManaShieldHandlers(), Aura::CallScriptEffectManaShieldHandlers(), Spell::CallScriptOnResistAbsorbCalculateHandlers(), WorldPackets::CombatLog::SpellAbsorbLog::Caster, AuraEffect::ChangeAmount(), CopyAuraEffectList(), SpellNonMeleeDamage::damage, DealDamage(), DealDamageMods(), DIRECT_DAMAGE, DOT, ObjectGuid::Empty, AuraEffect::GetAmount(), AuraEffect::GetAmountAsInt(), Aura::GetApplicationOfTarget(), DamageInfo::GetAttacker(), GetAuraEffectsByType(), AuraEffect::GetBase(), AuraApplication::GetBase(), AuraEffect::GetCaster(), Aura::GetCasterGUID(), DamageInfo::GetDamage(), DamageInfo::GetDamageType(), BaseEntity::GetGUID(), AuraEffect::GetId(), GetMaxPositiveAuraModifierByMiscMask(), AuraEffect::GetMiscValue(), DamageInfo::GetOriginalDamage(), DamageInfo::GetSchoolMask(), AuraEffect::GetSpellEffectInfo(), DamageInfo::GetSpellInfo(), AuraEffect::GetSpellInfo(), DamageInfo::GetVictim(), SpellInfo::HasAttribute(), SpellNonMeleeDamage::HitInfo, SpellInfo::Id, WorldPackets::Spells::SpellCastLogData::Initialize(), IsAlive(), IsImmunedToDamage(), BaseEntity::IsInWorld(), WorldPackets::CombatLog::CombatLogServerPacket::LogData, MELEE_HIT_NORMAL, DamageInfo::ModifyDamage(), ModifyPower(), SpellNonMeleeDamage::originalDamage, WorldPackets::CombatLog::SpellAbsorbLog::OriginalDamage, SpellNonMeleeDamage::periodicLog, POWER_MANA, PROC_FLAG_NONE, PROC_FLAG_TAKE_HARMFUL_SPELL, PROC_HIT_NONE, PROC_SPELL_PHASE_HIT, PROC_SPELL_TYPE_DAMAGE, ProcSkillsAndAuras(), Aura::Remove(), DamageInfo::ResistDamage(), RoundToInterval(), WorldObject::SendCombatLogMessage(), WorldObject::SendSpellMiss(), SendSpellNonMeleeDamageLog(), SPELL_ATTR6_ABSORB_CANNOT_BE_IGNORE, SPELL_AURA_MANA_SHIELD, SPELL_AURA_MOD_TARGET_ABSORB_SCHOOL, SPELL_AURA_SCHOOL_ABSORB, SPELL_AURA_SPLIT_DAMAGE_PCT, SPELL_HIT_TYPE_SPLIT, SPELL_MISS_IMMUNE, Object::ToCreature(), and WorldPackets::CombatLog::SpellAbsorbLog::Victim.

Referenced by CalculateMeleeDamage(), CalculateSpellDamageTaken(), DealMeleeDamage(), Spell::EffectEnvironmentalDMG(), Spell::EffectHealthLeech(), Player::EnvironmentalDamage(), misc_commandscript::HandleDamageCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().

◆ CalcArmorReducedDamage()

◆ CalcHealAbsorb()

◆ CalcSpellResistedDamage()

◆ CalculateAOEAvoidance()

◆ CalculateAverageResistReduction()

float Unit::CalculateAverageResistReduction ( WorldObject const *  caster,
SpellSchoolMask  schoolMask,
Unit const *  victim,
SpellInfo const *  spellInfo = nullptr 
)
static

◆ CalculateDamage()

◆ CalculateDisplayPowerType()

◆ CalculateHoverHeight()

◆ CalculateMeleeDamage()

void Unit::CalculateMeleeDamage ( Unit *  victim,
CalcDamageInfo *  damageInfo,
WeaponAttackType  attackType = BASE_ATTACK 
)
Todo:
for melee need create structure as in

Definition at line 1332 of file Unit.cpp.

References CalcDamageInfo::Absorb, AddPct(), ApplyResilience(), CalcDamageInfo::Attacker, CalcDamageInfo::AttackType, BASE_ATTACK, CalcDamageInfo::Blocked, CalcAbsorbResist(), CalcArmorReducedDamage(), CalculateDamage(), CalculatePct(), CanApplyResilience(), CalcDamageInfo::CleanDamage, CalcDamageInfo::Damage, CalcDamageInfo::DamageSchoolMask, DIRECT_DAMAGE, DamageInfo::GetAbsorb(), GetBlockPercent(), DamageInfo::GetDamage(), GetLevel(), GetMeleeDamageSchoolMask(), DamageInfo::GetResist(), GetTotalAuraMultiplier(), GetTotalAuraMultiplierByMiscMask(), CalcDamageInfo::HitInfo, HITINFO_AFFECTS_VICTIM, HITINFO_BLOCK, HITINFO_CRITICALHIT, HITINFO_CRUSHING, HITINFO_FULL_ABSORB, HITINFO_FULL_RESIST, HITINFO_GLANCING, HITINFO_MISS, HITINFO_NORMALSWING, HITINFO_OFFHAND, HITINFO_PARTIAL_ABSORB, HITINFO_PARTIAL_RESIST, HITINFO_SWINGNOHITSOUND, CalcDamageInfo::HitOutCome, IsAlive(), IsBlockCritical(), IsDamageReducedByArmor(), IsImmunedToDamage(), MECHANIC_NONE, MELEE_HIT_BLOCK, MELEE_HIT_CRIT, MELEE_HIT_CRUSHING, MELEE_HIT_DODGE, MELEE_HIT_EVADE, MELEE_HIT_GLANCING, MELEE_HIT_MISS, MELEE_HIT_NORMAL, MELEE_HIT_PARRY, MeleeDamageBonusDone(), MeleeDamageBonusTaken(), OFF_ATTACK, CalcDamageInfo::OriginalDamage, PROC_FLAG_DEAL_MELEE_SWING, PROC_FLAG_MAIN_HAND_WEAPON_SWING, PROC_FLAG_NONE, PROC_FLAG_OFF_HAND_WEAPON_SWING, PROC_FLAG_TAKE_ANY_DAMAGE, PROC_FLAG_TAKE_MELEE_SWING, CalcDamageInfo::ProcAttacker, CalcDamageInfo::ProcVictim, CalcDamageInfo::RageGained, CalcDamageInfo::Resist, RollMeleeOutcomeAgainst(), SPELL_AURA_MOD_CRIT_DAMAGE_BONUS, SPELL_AURA_MOD_CRITICAL_BLOCK_AMOUNT, sScriptMgr, CalcDamageInfo::Target, CalcDamageInfo::TargetState, VICTIMSTATE_DODGE, VICTIMSTATE_EVADES, VICTIMSTATE_HIT, VICTIMSTATE_INTACT, VICTIMSTATE_IS_IMMUNE, and VICTIMSTATE_PARRY.

Referenced by AttackerStateUpdate().

◆ CalculateMinMaxDamage()

virtual void Unit::CalculateMinMaxDamage ( WeaponAttackType  attType,
bool  normalized,
bool  addTotalPct,
float &  minDamage,
float &  maxDamage 
) const
pure virtual

Implemented in Creature, and Player.

Referenced by CalculateDamage(), and UpdateDamagePhysical().

◆ CalculateSpellDamageTaken()

void Unit::CalculateSpellDamageTaken ( SpellNonMeleeDamage *  damageInfo,
int32  damage,
SpellInfo const *  spellInfo,
WeaponAttackType  attackType = BASE_ATTACK,
bool  crit = false,
bool  blocked = false,
Spell *  spell = nullptr 
)

◆ CanApplyResilience()

bool Unit::CanApplyResilience ( ) const
virtual

◆ CanCastSpellWhileMoving()

◆ CancelAutoRepeatSpell()

◆ CancelMountAura()

◆ CancelShapeshiftForm()

◆ CancelSpellMissiles()

◆ CancelTravelShapeshiftForm()

◆ CanDualWield()

bool Unit::CanDualWield ( ) const
inline

◆ CanEnterWater()

virtual bool Unit::CanEnterWater ( ) const
pure virtual

Implemented in Creature, and Player.

◆ CanFly()

virtual bool Unit::CanFly ( ) const
pure virtual

Implemented in Creature, and Player.

Referenced by _ExitVehicle(), and ChaseMovementGenerator::Update().

◆ CanFreeMove()

◆ CanHaveThreatList()

◆ CanInstantCast()

bool Unit::CanInstantCast ( ) const
inline

Definition at line 1851 of file Unit.h.

Referenced by WorldObject::ModSpellCastTime().

◆ CanModifyStats()

bool Unit::CanModifyStats ( ) const
inline

◆ CannotTurn()

bool Unit::CannotTurn ( ) const
inline

◆ CanProc()

bool Unit::CanProc ( ) const
inline

Definition at line 1788 of file Unit.h.

Referenced by Spell::TargetInfo::DoDamageAndTriggers().

◆ CanSwim()

◆ CanUseAttackType()

◆ CastStop()

◆ ChangeSeat()

◆ CheckAttackFitToAuraRequirement()

virtual bool Unit::CheckAttackFitToAuraRequirement ( WeaponAttackType  ,
AuraEffect const *   
) const
inlinevirtual

Reimplemented in Player.

Definition at line 1562 of file Unit.h.

Referenced by UpdateDamageDoneMods(), and UpdateDamagePctDoneMods().

◆ CleanupBeforeRemoveFromMap()

◆ CleanupsBeforeDelete()

void Unit::CleanupsBeforeDelete ( bool  finalCleanup = true)
overridevirtual

◆ ClearAllReactives()

◆ ClearBossEmotes()

void Unit::ClearBossEmotes ( Optional< uint32 >  zoneId = {},
Player const *  target = nullptr 
) const

Clears boss emotes frame.

Parameters
zoneIdOnly clears emotes for players in that zone id
targetOnly clears emotes for that player

Definition at line 14579 of file Unit.cpp.

References WorldObject::GetMap(), Map::GetPlayers(), WorldPackets::Packet::GetRawPacket(), DB2Manager::IsInArea(), Player::SendDirectMessage(), and WorldPackets::Chat::ClearBossEmotes::Write().

◆ ClearChannelObjects()

◆ ClearDiminishings()

void Unit::ClearDiminishings ( )

Definition at line 9472 of file Unit.cpp.

References m_Diminishing.

Referenced by setDeathState().

◆ ClearInCombat()

void Unit::ClearInCombat ( )
inline

◆ ClearUnitState()

void Unit::ClearUnitState ( uint32  f)
inline

Definition at line 756 of file Unit.h.

Referenced by Creature::AtDisengage(), Attack(), CreatureAI::AttackStart(), AttackStop(), MotionMaster::ClearBaseUnitState(), MotionMaster::ClearBaseUnitStates(), ChaseMovementGenerator::Deactivate(), FollowMovementGenerator::Deactivate(), SplineChainMovementGenerator::Deactivate(), FleeingMovementGenerator::Deactivate(), PointMovementGenerator::Deactivate(), npc_ball_of_flame::DoAction(), FormationMovementGenerator::DoDeactivate(), HomeMovementGenerator< T >::DoDeactivate(), FormationMovementGenerator::DoFinalize(), HomeMovementGenerator< T >::DoFinalize(), FormationMovementGenerator::DoUpdate(), Spell::EffectResurrectPet(), SmartAI::EnterEvadeMode(), ChaseMovementGenerator::Finalize(), FollowMovementGenerator::Finalize(), SplineChainMovementGenerator::Finalize(), PointMovementGenerator::Finalize(), AssistanceMovementGenerator::Finalize(), FleeingMovementGenerator::Finalize(), Spell::finish(), spell_aqusirr_surging_rush_selector::HandleActionSet(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), AuraEffect::HandleFeignDeath(), npc_commandscript::HandleNpcEvadeCommand(), scene_auchindoun_soulbinder_nyami::HandleScene(), scene_maiden_of_virtue_outro::HandleScene(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadInitializeScript(), boss_shade_of_aran::boss_aranAI::MoveInLineOfSight(), SmartAI::MovementInform(), npc_molten_barrage::npc_molten_barrageAI::MovementInform(), spell_rokmora_emerge_aura::OnRemove(), Creature::ReleaseSpellFocus(), RemoveCharmedBy(), boss_black_knight::boss_black_knightAI::Reset(), Player::ResetContestedPvP(), npc_valkyr_shadowguard::ScheduleHeroicEvents(), SetCharm(), SetControlled(), Creature::setDeathState(), HomeMovementGenerator< T >::SetTargetLocation(), spell_putricide_ooze_channel::StartAttack(), StopMoving(), boss_twinemperorsAI::TryActivateAfterTTelep(), boss_twinemperorsAI::TwinReset(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), SplineChainMovementGenerator::Update(), npc_altar_altercation_ariok::UpdateAI(), boss_mandokir::UpdateAI(), boss_the_lich_king::UpdateAI(), boss_loken::UpdateAI(), npc_living_constellation::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), boss_black_knight::boss_black_knightAI::UpdateAI(), and spell_alysrazor_aggro_closest::spell_alysrazor_aggro_closest_SpellScript::UpdateThreat().

◆ ClearValuesChangesMask()

void Unit::ClearValuesChangesMask ( )
overrideprotectedvirtual

◆ ClearWorldEffects()

◆ CombatStop()

void Unit::CombatStop ( bool  includingCast = false,
bool  mutualPvP = true,
bool(*)(Unit const *otherUnit)  unitFilter = nullptr 
)

Definition at line 6031 of file Unit.cpp.

References AttackStop(), CombatManager::EndAllPvECombat(), CombatManager::EndAllPvPCombat(), BaseEntity::GetTypeId(), InterruptNonMeleeSpells(), IsNonMeleeSpellCast(), m_attackers, m_combatManager, RemoveAllAttackers(), Player::SendAttackSwingCancelAttack(), CombatManager::SuppressPvPCombat(), Object::ToPlayer(), and TYPEID_PLAYER.

Referenced by CreatureAI::_EnterEvadeMode(), Player::ActivateTaxiPathTo(), CleanupBeforeRemoveFromMap(), CombatStopWithPets(), Map::CreatureRespawnRelocation(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), Scripts::Pandaria::TheWanderingIsle::npc_tushui_huojin_trainee::DamageTaken(), npc_kelthuzad_guardian::DoAction(), npc_akama_shade::DoAction(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DoNice(), Spell::EffectSanctuary(), Battleground::EndBattleground(), EscortAI::EnterEvadeMode(), hyjalAI::EnterEvadeMode(), GuardAI::EnterEvadeMode(), npc_sparring_partner_exiles_reach::EnterEvadeMode(), npc_sparring_partner_combat_training::EnterEvadeMode(), gunship_npc_AI::EnterEvadeMode(), npc_high_overlord_saurfang_igb::EnterEvadeMode(), npc_muradin_bronzebeard_igb::EnterEvadeMode(), npc_terenas_menethil::EnterEvadeMode(), boss_hodir::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), npc_pet_pri_lightwell::EnterEvadeMode(), ScriptedAI::ForceCombatStop(), misc_commandscript::HandleCombatStopCommand(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleModUnattackable(), Battlefield::HideNpc(), npc_gunship::npc_gunshipAI::JustDied(), boss_freya::boss_freyaAI::JustDied(), boss_mimiron::boss_mimironAI::JustDied(), boss_eregos::JustSummoned(), boss_urom::LeaveCombat(), WorldSession::LogoutPlayer(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::MovementInform(), quest_ride_of_the_scientifically_enhanced_boar::OnQuestStatusChange(), quest_the_re_deather::OnQuestStatusChange(), SmartScript::ProcessAction(), Player::RemovePet(), Map::RemovePlayerFromMap(), setDeathState(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_venture_co_straggler::SpellHit(), PetAI::StopAttack(), Player::TeleportTo(), Totem::UnSummon(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::UpdateAI(), boss_algalon_the_observer::UpdateAI(), and npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::UpdateAI().

◆ CombatStopWithPets()

void Unit::CombatStopWithPets ( bool  includingCast = false)

◆ CopyAuraEffectList()

◆ CountPctFromCurHealth()

uint64 Unit::CountPctFromCurHealth ( float  pct) const
inline

◆ CountPctFromMaxHealth()

uint64 Unit::CountPctFromMaxHealth ( float  pct) const
inline

Definition at line 809 of file Unit.h.

References CalculatePct().

Referenced by spell_pri_guardian_spirit::Absorb(), spell_dh_consume_soul_vengeance_lesser::CalcHealingFromDamageTaken(), spell_monk_life_cocoon::CalculateAbsorb(), spell_dk_vampiric_blood::CalculateAmount(), spell_pri_ultimate_penitence_aura::CalculateAmount(), AuraEffect::CalculateAmount(), spell_baleroc_decimating_strike::ChangeDamage(), npc_immortal_guardian::npc_immortal_guardianAI::DamageTaken(), spell_pri_shadow_word_death::DetermineKillStatus(), boss_lady_vashj::DoAction(), boss_ichoron::DoAction(), Spell::EffectDamageFromMaxHealthPCT(), Spell::EffectHeal(), Spell::EffectHealPct(), Spell::EffectResurrect(), Spell::EffectResurrectPet(), Spell::EffectResurrectWithAura(), Spell::EffectSelfResurrect(), spell_dh_last_resort::HandleAbsorb(), spell_rog_cheat_death::HandleAbsorb(), AuraEffect::HandleAuraModIncreaseMaxHealth(), spell_rog_cloaked_in_shadows::HandleCloakedInShadows(), spell_aqusirr_erupting_waters::HandleDamage(), spell_q28813_set_health_random::HandleDummyEffect(), spell_dru_yseras_gift::HandleEffectPeriodic(), spell_dh_soulmonger::HandleEffectProc(), spell_lord_and_lady_waycrest_vitality_transfer::HandlePeriodic(), AuraEffect::HandlePeriodicHealAurasTick(), spell_item_swift_hand_justice_dummy::HandleProc(), spell_pri_angelic_bulwark::HandleProc(), spell_stinky_precious_decimate::HandleScript(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), spell_warl_health_funnel::OnPeriodic(), spell_warr_kill_or_be_killed_warrior::OnRemove(), npc_phoenix_the_eye::OnSpellCast(), spell_gen_restoration::PeriodicTick(), npc_wounded_milita::npc_wounded_militaAI::Reset(), npc_draenei_survivor::npc_draenei_survivorAI::Reset(), npc_injured_draenei::npc_injured_draeneiAI::Reset(), boss_murmur::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), Creature::SetSpawnHealth(), TriggerOnHealthChangeAuras(), npc_wounded_milita::npc_wounded_militaAI::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), and npc_crok_scourgebane::UpdateEscortAI().

◆ CountPctFromMaxPower()

int32 Unit::CountPctFromMaxPower ( Powers  power,
int32  pct 
) const
inline

Definition at line 833 of file Unit.h.

References CalculatePct().

◆ CreateTamedPetFrom() [1/2]

◆ CreateTamedPetFrom() [2/2]

Pet * Unit::CreateTamedPetFrom ( uint32  creatureEntry,
uint32  spell_id = 0 
)

◆ CreateVehicleKit()

◆ DealDamage()

uint32 Unit::DealDamage ( Unit *  attacker,
Unit *  victim,
uint32  damage,
CleanDamage const *  cleanDamage = nullptr,
DamageEffectType  damagetype = DIRECT_DAMAGE,
SpellSchoolMask  damageSchoolMask = SPELL_SCHOOL_MASK_NORMAL,
SpellInfo const *  spellProto = nullptr,
bool  durabilityLoss = true 
)
static
Todo:
check packets if damage is done by victim, or by attacker of victim

Definition at line 825 of file Unit.cpp.

References DamageInfo::AbsorbDamage(), CleanDamage::absorbed_damage, WorldPackets::CombatLog::SpellAbsorbLog::AbsorbedSpellID, Creature::AI(), WorldPackets::CombatLog::SpellAbsorbLog::Attacker, CleanDamage::attackType, BASE_ATTACK, CalculatePct(), WorldPackets::CombatLog::SpellAbsorbLog::Caster, CHEAT_GOD, CopyAuraEffectList(), CREATURE_STATIC_FLAG_UNKILLABLE, CURRENT_GENERIC_SPELL, Damage, DamageAbsorb, DamageDealt, DealDamage(), DealDamageMods(), DOT, Player::duel, ObjectGuid::Empty, GetAI(), Aura::GetApplicationOfTarget(), GetAuraEffectsByType(), Aura::GetCasterGUID(), GetCharmer(), GetControllingPlayer(), DamageInfo::GetDamage(), BaseEntity::GetGUID(), GetHealth(), GetHealthMultiplierForTarget(), GetMaxHealth(), DamageInfo::GetSchoolMask(), SpellInfo::GetSchoolMask(), BaseEntity::GetTypeId(), SpellInfo::HasAttribute(), HasAuraType(), Creature::HasFlag(), HighestDamageDone, HighestDamageTaken, SpellInfo::Id, InterruptNonMeleeSpells(), IsControlledByPlayer(), BaseEntity::IsCreature(), IsVehicle(), Creature::LowerPlayerDamageReq(), m_Controlled, m_currentSpells, NODAMAGE, RemoveAurasWithInterruptFlags(), SCORE_DAMAGE_DONE, SELF_DAMAGE, Creature::SetTappedBy(), SPELL_ATTR4_REACTIVE_DAMAGE_PROC, SPELL_ATTR7_DO_NOT_COUNT_FOR_PVP_SCOREBOARD, SPELL_ATTR9_CANNOT_KILL_TARGET, SPELL_AURA_SCHOOL_ABSORB_OVERKILL, SPELL_AURA_SHARE_DAMAGE_PCT, SPELL_STATE_PREPARING, sScriptMgr, Object::ToCreature(), Object::ToPlayer(), TotalDamageTaken, TYPEID_PLAYER, Player::UpdateCriteria(), and WorldPackets::CombatLog::SpellAbsorbLog::Victim.

Referenced by CalcAbsorbResist(), DealDamage(), DealMeleeDamage(), DealSpellDamage(), Player::EnvironmentalDamage(), misc_commandscript::HandleDamageCommand(), misc_commandscript::HandleDieCommand(), spell_algalon_collapse::HandlePeriodic(), AuraEffect::HandlePeriodicDamageAurasTick(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), spell_dk_dancing_rune_weapon::HandleProc(), npc_phoenix_the_eye::OnSpellCast(), and boss_felmyst::SpellHit().

◆ DealDamageMods()

◆ DealHeal()

◆ DealMeleeDamage()

void Unit::DealMeleeDamage ( CalcDamageInfo *  damageInfo,
bool  durabilityLoss 
)

Definition at line 1534 of file Unit.cpp.

References CalcDamageInfo::Absorb, WorldPackets::CombatLog::SpellDamageShield::Attacker, CalcDamageInfo::AttackType, BASE_ATTACK, CalcAbsorbResist(), Player::CastItemCombatSpell(), CastSpell, CalcDamageInfo::CleanDamage, CopyAuraEffectList(), CREATURE_FLAG_EXTRA_NO_PARRY_HASTEN, CalcDamageInfo::Damage, CalcDamageInfo::DamageSchoolMask, DealDamage(), DealDamageMods(), WorldPackets::CombatLog::SpellDamageShield::Defender, DIRECT_DAMAGE, CreatureTemplate::flags_extra, DamageInfo::GetAbsorb(), getAttackTimer(), GetAuraEffectsByType(), GetBaseAttackTime(), Creature::GetCreatureTemplate(), DamageInfo::GetDamage(), BaseEntity::GetGUID(), GetHealth(), GetLevel(), GetLevelForTarget(), GetMaxSkillValueForLevel(), DamageInfo::GetOriginalDamage(), SpellInfo::GetSchoolMask(), BaseEntity::GetTypeId(), Position::HasInArc(), HasUnitState(), haveOffhandWeapon(), CalcDamageInfo::HitOutCome, SpellInfo::Id, WorldPackets::Spells::SpellCastLogData::Initialize(), IsAlive(), IsControlledByPlayer(), Creature::IsEvadingAttacks(), IsImmunedToDamage(), IsVehicle(), Creature::isWorldBoss(), WorldPackets::CombatLog::SpellDamageShield::LogAbsorbed, WorldPackets::CombatLog::CombatLogServerPacket::LogData, M_PI, MELEE_HIT_CRIT, MELEE_HIT_CRUSHING, MELEE_HIT_GLANCING, MELEE_HIT_NORMAL, OFF_ATTACK, WorldPackets::CombatLog::SpellDamageShield::OriginalDamage, WorldPackets::CombatLog::SpellDamageShield::OverKill, roll_chance(), RoundToInterval(), WorldPackets::CombatLog::SpellDamageShield::SchoolMask, SpellInfo::SchoolMask, WorldObject::SendCombatLogMessage(), SendSpellDamageImmune(), WorldObject::SendSpellMiss(), setAttackTimer(), SPELL_AURA_DAMAGE_SHIELD, SPELL_DAZED, SPELL_DIRECT_DAMAGE, SPELL_MISS_NONE, SpellDamageBonusTaken(), WorldObject::SpellHitResult(), WorldPackets::CombatLog::SpellDamageShield::SpellID, CalcDamageInfo::Target, CalcDamageInfo::TargetState, Object::ToCreature(), Object::ToPlayer(), WorldPackets::CombatLog::SpellDamageShield::TotalDamage, TYPEID_PLAYER, TYPEID_UNIT, UNIT_STATE_IN_FLIGHT, and VICTIMSTATE_PARRY.

Referenced by AttackerStateUpdate().

◆ DealSpellDamage()

◆ DelayOwnedAuras()

void Unit::DelayOwnedAuras ( uint32  spellId,
ObjectGuid  caster,
int32  delaytime 
)

◆ DeleteCharmInfo()

void Unit::DeleteCharmInfo ( )

Definition at line 10455 of file Unit.cpp.

References m_charmInfo.

Referenced by RemoveCharmedBy().

◆ DeMorph()

void Unit::DeMorph ( )

◆ DestroyForPlayer()

◆ DisableSpline()

void Unit::DisableSpline ( )
protected

◆ Dismount()

◆ DoMeleeAttackIfReady()

◆ EnergizeBySpell()

◆ EngageWithTarget()

◆ EnsureVictim()

◆ EnterAreaTrigger()

void Unit::EnterAreaTrigger ( AreaTrigger *  areaTrigger)

Definition at line 5542 of file Unit.cpp.

References m_insideAreaTriggers.

Referenced by AreaTrigger::HandleUnitEnter().

◆ EnterVehicle()

◆ ExitAllAreaTriggers()

void Unit::ExitAllAreaTriggers ( )

Definition at line 5552 of file Unit.cpp.

References m_insideAreaTriggers.

Referenced by WorldSession::LogoutPlayer(), RemoveFromWorld(), and Player::RemovePet().

◆ ExitAreaTrigger()

void Unit::ExitAreaTrigger ( AreaTrigger *  areaTrigger)

Definition at line 5547 of file Unit.cpp.

References m_insideAreaTriggers.

Referenced by AreaTrigger::HandleUnitExitInternal().

◆ ExitVehicle()

void Unit::ExitVehicle ( Position const *  exitPosition = nullptr)
virtual

This function can be called at upper level code to initialize an exit from the passenger's side.

The following call would not even be executed successfully as the SPELL_AURA_CONTROL_VEHICLE unapply handler already calls _ExitVehicle without specifying an exitposition. The subsequent call below would return on if (!m_vehicle).

To do: We need to allow SPELL_AURA_CONTROL_VEHICLE unapply handlers in spellscripts to specify exit coordinates and either store those per passenger, or we need to init spline movement based on those coordinates in unapply handlers, and relocate exiting passengers based on Unit::moveSpline data. Either way, Coming Soon(TM)

Reimplemented in Creature.

Definition at line 12931 of file Unit.cpp.

References BaseEntity::GetGUID(), GetVehicleBase(), m_vehicle, RemoveAurasByType(), and SPELL_AURA_CONTROL_VEHICLE.

Referenced by _EnterVehicle(), Player::ActivateTalentGroup(), Player::ActivateTaxiPathTo(), Vehicle::AddVehiclePassenger(), VehicleJoinEvent::Execute(), spell_seismic_shard_change_seat::spell_seismic_shard_change_seat_SpellScript::ExitVehicle(), spell_ioc_launch_exit_vehicle::ExitVehicle(), Creature::ExitVehicle(), spell_warhead_detonate::HandleDummy(), WorldSession::HandleEjectPassenger(), spell_eject_spirits_of_redemption::HandleHitTarget(), spell_gen_abandon_vehicle::HandleHitTarget(), spell_ulduar_squeezed_lifeless::spell_ulduar_squeezed_lifeless_SpellScript::HandleInstaKill(), WorldSession::HandleMoveDismissVehicle(), WorldSession::HandleRequestVehicleExit(), spell_grizzly_hills_hand_over_reins::HandleScript(), spell_harlan_leave_vehicle::HandleScriptEffect(), Scripts::EasternKingdoms::Westfall::spell_westfall_quest_credit_jangolode_event::HandleScriptEffect(), RemoveFromWorld(), setDeathState(), Player::StopCastingCharm(), and Player::TeleportTo().

◆ FindCurrentSpellBySpellId()

◆ FinishSpell()

◆ FollowerAdded()

void Unit::FollowerAdded ( AbstractFollower *  f)

Definition at line 9164 of file Unit.cpp.

References m_followingMe.

Referenced by AbstractFollower::SetTarget().

◆ FollowerRemoved()

void Unit::FollowerRemoved ( AbstractFollower *  f)

Definition at line 9169 of file Unit.cpp.

References m_followingMe.

Referenced by AbstractFollower::SetTarget().

◆ GetAdvFlyingSpeed()

float Unit::GetAdvFlyingSpeed ( AdvFlyingRateTypeSingle  speedType) const
inline

Definition at line 1740 of file Unit.h.

Referenced by BaseEntity::BuildMovementUpdate().

◆ GetAdvFlyingSpeedMax()

float Unit::GetAdvFlyingSpeedMax ( AdvFlyingRateTypeRange  speedType) const
inline

Definition at line 1742 of file Unit.h.

Referenced by BaseEntity::BuildMovementUpdate().

◆ GetAdvFlyingSpeedMin()

float Unit::GetAdvFlyingSpeedMin ( AdvFlyingRateTypeRange  speedType) const
inline

Definition at line 1741 of file Unit.h.

Referenced by BaseEntity::BuildMovementUpdate().

◆ GetAI()

UnitAI * Unit::GetAI ( ) const
inline

Definition at line 680 of file Unit.h.

Referenced by spell_fel_lord_caza_disarmed::AfterRemove(), Creature::AI(), AIUpdateTick(), spell_marrowgar_bone_spike_graveyard::CheckCast(), spell_algalon_big_bang::CheckTargets(), spell_marrowgar_bone_slice::ClearSpikeImmunities(), DealDamage(), DealHeal(), spell_grip::DummyTick(), spell_yogg_saron_brain_link::spell_yogg_saron_brain_link_AuraScript::DummyTick(), CombatReference::EndCombat(), AqusirrEventHandler::Execute(), CombatStartEvent::Execute(), spell_send_mug_target_picker::FilterTargets(), spell_blood_queen_bloodbolt::FilterTargets(), InstanceScript::GetBossDungeonEncounter(), spell_telash_absolute_zero_damage::HandleAfterCast(), spell_omrogg_beatdown::HandleAfterCast(), spell_thaddius_magnetic_pull::HandleCast(), spell_grip::HandleDrop(), spell_send_mug_target_picker::HandleDummy(), spell_fatal_strike::HandleDummy(), spell_mount_check::HandleEffectPeriodic(), spell_ulduar_random_aggro_periodic::HandleEffectPeriodic(), spell_maiev_down::HandleEffectRemove(), spell_gluth_decimate::HandleEvent(), spell_krick_pursuit_AuraScript::HandleExtraEffect(), spell_guardians_breath::HandleHit(), spell_fel_lord_caza_throwing_axe_selector::HandleHit(), spell_silverpine_release_diseased_mutant_bush_chicken::HandleHit(), spell_headless_horseman_head_periodic::HandleHPCheck(), spell_sapphiron_change_blizzard_target::HandlePeriodic(), spell_ahnkahet_shadow_sickle::HandlePeriodic(), spell_intense_cold::HandlePeriodicTick(), spell_mimiron_self_repair::spell_mimiron_self_repair_SpellScript::HandleScript(), spell_frostwarden_handler_focus_fire::HandleScript(), spell_mimiron_fire_search::spell_mimiron_fire_search_SpellScript::HandleScript(), spell_headless_horseman_send_head::HandleScriptEffect(), spell_headless_horseman_command_head_request_body::HandleScriptEffect(), spell_headless_horseman_return_head::HandleScriptEffect(), spell_headless_horseman_sprouting::HandleScriptEffect(), spell_dreamwalker_summon_suppresser::HandleSummon(), HasScheduledAIChange(), Scripts::Pandaria::TheWanderingIsle::npc_huojin_trainee::InitiateSparring(), npc_coldflame::IsSummonedBy(), CombatManager::NotifyAICombat(), spell_baleroc_inferno_blade::OnApply(), spell_baleroc_decimation_blade::OnApply(), spell_claw_swipe_check::OnApply(), achievement_ohganot_so_fast::OnCheck(), achievement_share_the_pain::OnCheck(), achievement_respect_your_elders::OnCheck(), achievement_twilight_assist::OnCheck(), achievement_twilight_duo::OnCheck(), achievement_twilight_zone::OnCheck(), achievement_bronjahm_soul_power::OnCheck(), achievement_im_on_a_boat::OnCheck(), achievement_all_you_can_eat::OnCheck(), achievement_been_waiting_long_time::OnCheck(), achievement_neck_deep_in_vile::OnCheck(), achievement_portal_jockey::OnCheck(), achievement_momma_said_knock_you_out::OnCheck(), achievement_spore_loser::OnCheck(), achievement_the_hundred_club::OnCheck(), achievement_thaddius_shocking::OnCheck(), achievement_gen_eregos_void::OnCheck(), achievement_assembly_i_choose_you::OnCheck(), achievement_getting_back_to_nature::OnCheck(), achievement_knock_on_wood::OnCheck(), achievement_knock_knock_on_wood::OnCheck(), achievement_knock_knock_knock_on_wood::OnCheck(), achievement_ignis_shattered::OnCheck(), achievement_setup_boom::OnCheck(), achievement_setup_mine::OnCheck(), achievement_setup_rocket::OnCheck(), achievement_firefighter::OnCheck(), achievement_iron_dwarf_medium_rare::OnCheck(), achievement_nerf_engineering::OnCheck(), achievement_heartbreaker::OnCheck(), achievement_nerf_gravity_bombs::OnCheck(), achievement_on_the_rocks::OnCheck(), achievement_incredible_hulk::OnCheck(), achievement_snakes_whyd_it_have_to_be_snakes::OnCheck(), achievement_intense_cold::OnCheck(), achievement_once_bitten_twice_shy_n::OnCheck(), achievement_once_bitten_twice_shy_v::OnCheck(), at_fel_lord_caza_throw_axe_knockback::OnInitialize(), movie_anduin_final::OnMovieComplete(), spell_xt002_gravity_bomb_aura::OnPeriodic(), npc_captain_garrick_beach::OnQuestAccept(), at_guardians_breath< ColorSpellId >::at_guardians_breathAI< ColorSpell >::OnRemove(), spell_baleroc_inferno_blade::OnRemove(), spell_baleroc_decimation_blade::OnRemove(), spell_gormok_jump_to_hand::OnRemove(), spell_icc_siphon_essence::OnRemove(), spell_yogg_saron_brain_link::spell_yogg_saron_brain_link_AuraScript::OnRemove(), spell_remnant_of_a_fallen_king_spawn::OnRemove(), spell_claw_swipe_check::OnRemove(), RemoveCharmedBy(), RemoveFromWorld(), spell_marrowgar_coldflame::SelectTarget(), spell_the_lich_king_valkyr_target_search::SelectTarget(), spell_algalon_trigger_3_adds::SelectTarget(), SetCharmedBy(), spell_marrowgar_bone_slice::SplitDamage(), CombatReference::SuppressFor(), CombatManager::SuppressPvPCombat(), spell_anduin_wrynn_progression_aura::Trigger(), UpdateCharmAI(), and spell_alysrazor_aggro_closest::spell_alysrazor_aggro_closest_SpellScript::UpdateThreat().

◆ GetAIAnimKitId()

uint16 Unit::GetAIAnimKitId ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 941 of file Unit.h.

◆ GetAllMinionsByEntry()

◆ GetAnimTier()

AnimTier Unit::GetAnimTier ( ) const
inline

◆ GetAPMultiplier()

◆ GetAppliedAuras() [1/2]

◆ GetAppliedAuras() [2/2]

AuraApplicationMap const & Unit::GetAppliedAuras ( ) const
inline

Definition at line 1316 of file Unit.h.

◆ GetAreaTrigger()

◆ GetAreaTriggers()

◆ GetArmor()

◆ GetArmorMultiplierForTarget()

virtual float Unit::GetArmorMultiplierForTarget ( WorldObject const *  ) const
inlinevirtual

Reimplemented in Creature.

Definition at line 821 of file Unit.h.

Referenced by CalcArmorReducedDamage().

◆ getAttackerForHelper()

◆ getAttackers()

AttackerSet const & Unit::getAttackers ( ) const
inline

◆ GetAttackPowerModifierValue()

float Unit::GetAttackPowerModifierValue ( AttackPowerModIndex  index,
AttackPowerModType  modifierType 
) const

◆ getAttackTimer()

uint32 Unit::getAttackTimer ( WeaponAttackType  type) const
inline

Definition at line 712 of file Unit.h.

Referenced by Attack(), DealMeleeDamage(), DoMeleeAttackIfReady(), and Update().

◆ GetAura() [1/3]

Aura * Unit::GetAura ( std::function< bool(Aura const *)> const &  predicate) const

Definition at line 4730 of file Unit.cpp.

References GetAuraApplication(), and AuraApplication::GetBase().

◆ GetAura() [2/3]

Aura * Unit::GetAura ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
ObjectGuid  itemCasterGUID = ObjectGuid::Empty,
uint32  reqEffMask = 0 
) const

Definition at line 4718 of file Unit.cpp.

References GetAuraApplication(), and AuraApplication::GetBase().

Referenced by battleground_eye_of_the_storm::ApplyAssaultDebuffToPlayer(), battleground_twin_peaks::ApplyAssaultDebuffToPlayer(), battleground_warsong_gulch::ApplyAssaultDebuffToPlayer(), Player::ApplyEquipCooldown(), spell_dh_consume_soul_vengeance_lesser::CalcHealingFromDamageTaken(), spell_warr_overpowering_finish::CalculateDamage(), spell_blood_council_shadow_prison_damage::CalculateDamage(), spell_pri_lights_wrath::CalculateDamageBonus(), spell_pri_divine_service::CalculateHealingBonus(), spell_sha_deluge::CalculateHealingBonus(), spell_marrowgar_coldflame_damage::CanBeAppliedOn(), spell_freezing_cloud_damage::CanBeAppliedOn(), spell_monk_stagger_debuff_aura::CastOrChangeTickDamage(), spell_dh_chaos_theory::ChaosTheory(), spell_redridge_control_ettin::CheckCast(), Spell::CheckCast(), spell_sha_elemental_weapons::CheckEnchantments(), spell_sha_swirling_maelstrom::CheckHailstormProc(), spell_sha_mastery_elemental_overload::CheckProc(), spell_sha_maelstrom_weapon_proc::CheckProc(), spell_sha_maelstrom_weapon_base::ConsumeMaelstromWeapon(), spell_dh_blade_dance::DecideFirstTarget(), Player::DisablePvpRules(), boss_deathbringer_saurfang::DoAction(), boss_guarm::DoAction(), Spell::DoTriggersOnSpellHit(), Spell::EffectGiveArtifactPower(), Spell::EffectGiveArtifactPowerNoBonus(), Spell::EffectModifyAuraStacks(), Player::EnablePvpRules(), spell_sha_lava_burst::EnsureLavaSurgeCanBeImmediatelyConsumed(), spell_pri_purge_the_wicked_dummy::FilterTargets(), FindExistingStaggerEffect(), GetModelForForm(), getOrphanGUID(), Player::GiveLevel(), spell_dru_pulverize_thrash::HandleAfterHit(), WorldSession::HandleAreaSpiritHealerQueryOpcode(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraLinked(), Aura::HandleAuraSpecificMods(), npc_bg_silvershard_mines_mine_cart::HandleCapture(), npc_sparring_partner_enhanced_combat_training_priest::HandleClassEvent(), npc_sparring_partner_enhanced_combat_training_warlock::HandleClassEvent(), npc_sparring_partner_enhanced_combat_training_druid::HandleClassEvent(), spell_warr_rumbling_earth::HandleCooldownReduction(), spell_anduin_wrynn_hopebreaker_damage::HandleDamage(), spell_remnant_of_a_fallen_king_remorseless_winter_damage::HandleDamage(), spell_warr_meat_cleaver_damage_bonus::HandleDamageBonus(), spell_warl_deaths_embrace_impl::HandleDamageOrHealingCalculation(), spell_warr_deft_experience::HandleDeftExperience(), spell_pilgrims_bounty_feast_on::HandleDummy(), spell_borean_tundra_nerubar_web_random_unit_not_on_quest_dummy::HandleDummy(), spell_borean_tundra_nerubar_web_random_unit_on_quest_dummy::HandleDummy(), spell_item_pygmy_oil::HandleDummy(), spell_rog_roll_the_bones::HandleDummy(), spell_dru_pulverize::HandleEffectHit(), spell_dru_twin_moonfire::HandleEffectHit(), spell_ruby_life_pools_ice_shield::HandleEffectPeriodic(), spell_pri_eternal_sanctity::HandleEffectProc(), spell_dh_darkglare_boon::HandleEffectRemove(), spell_rog_shadowstrike::HandleEnergize(), spell_pri_empyreal_blaze_extend::HandleHit(), spell_warl_soul_swap_dot_marker::HandleHit(), spell_pri_expiation::HandleHitTarget(), spell_sindragosa_frost_breath::HandleInfusion(), spell_dru_abundance::HandleOnApplyOrReapply(), spell_mage_ice_lance::HandleOnHit(), spell_pri_answered_prayers::HandleOnProc(), spell_dru_abundance::HandleOnRemove(), spell_mana_devourer_energy_void::HandlePeriodic(), spell_heartsbane_triad_aura_of_dread_movement_check::HandlePeriodic(), spell_pri_rhapsody::HandlePeriodic(), spell_torghast_uncontrolled_darkness_proc::HandleProc(), spell_baleroc_torment_AuraScript::HandleProc(), spell_dk_t20_2p_rune_empowered::HandleProc(), spell_item_anger_capacitor< StackAmount >::spell_item_anger_capacitor_AuraScript< Stacks >::HandleProc(), spell_item_trinket_stack::spell_item_trinket_stack_AuraScript::HandleProc(), spell_mage_radiant_spark::HandleProc(), spell_pri_divine_procession::HandleProc(), spell_sha_deeply_rooted_elements::HandleProc(), spell_sha_unlimited_power::HandleProc(), spell_pri_insidious_ire::HandleProc(), spell_dh_shattered_destiny::HandleProc(), spell_sha_stormflurry::HandleProc(), spell_pilgrims_bounty_well_fed::HandleScript(), spell_pilgrims_bounty_turkey_tracker::HandleScript(), spell_festergut_gastric_bloat::HandleScript(), spell_putricide_eat_ooze::HandleScript(), spell_rotface_large_ooze_combine::HandleScript(), spell_rotface_large_ooze_buff_combine::HandleScript(), spell_marrowgar_bone_spike_graveyard::HandleSpikes(), spell_borean_tundra_neural_needle::HandleWhisper(), spell_borean_tundra_prototype_neural_needle::HandleWhisper(), spell_dragonblight_high_executor_branding_iron::HandleWhisper(), npc_underbog_mushroom::InitializeAI(), npc_slad_ran_constrictor::JustEngagedWith(), CriteriaHandler::ModifierSatisfied(), spell_rog_rupture::OnEffectRemoved(), spell_brewfest_ram::OnPeriodic(), spell_pri_lights_wrath::OnPrecast(), spell_dru_eclipse_dummy::OnSpellCast(), areatrigger_sha_arctic_snowstorm::OnUnitEnter(), at_dk_death_and_decay::OnUnitExit(), spell_midsummer_test_ribbon_pole_channel::PeriodicTick(), spell_dru_germination::PickRejuvenationVariant(), SmartScript::ProcessAction(), BattlefieldWG::PromotePlayer(), Player::ResurrectPlayer(), spell_sha_molten_thunder_sundering::RollReset(), spell_sha_stormblast_proc::SaveCastId(), SetAuraStack(), spell_dru_eclipse_common::SetSpellCount(), SceneObject::ShouldBeRemoved(), boss_deathbringer_saurfang::SpellHit(), boss_garfrost::SpellHitTarget(), boss_sindragosa::SpellHitTarget(), spell_sha_unrelenting_storms::Trigger(), WindfuryProcEvent::Trigger(), spell_warl_perpetual_unstability::TriggerExplosion(), spell_warl_volatile_agony::TriggerExplosion(), spell_sha_thorims_invocation_trigger::TriggerLightningSpell(), spell_dh_demonic::TriggerMetamorphosis(), Player::Update(), boss_trollgore::UpdateAI(), boss_lord_marrowgar::UpdateAI(), boss_faerlina::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), boss_elder_brightleaf::boss_elder_brightleafAI::UpdateAI(), npc_tempest_minion::UpdateAI(), npc_tournament_training_dummy::UpdateAI(), npc_iron_construct::npc_iron_constructAI::UpdateAI(), and GameObject::Use().

◆ GetAura() [3/3]

Aura * Unit::GetAura ( uint32  spellId,
std::function< bool(Aura const *)> const &  predicate 
) const

Definition at line 4724 of file Unit.cpp.

References GetAuraApplication(), and AuraApplication::GetBase().

◆ GetAuraApplication() [1/5]

AuraApplication * Unit::GetAuraApplication ( std::function< bool(Aura const *)> const &  predicate) const

Definition at line 4709 of file Unit.cpp.

References m_appliedAuras.

◆ GetAuraApplication() [2/5]

AuraApplication * Unit::GetAuraApplication ( std::function< bool(AuraApplication const *)> const &  predicate) const

Definition at line 4700 of file Unit.cpp.

References m_appliedAuras.

◆ GetAuraApplication() [3/5]

◆ GetAuraApplication() [4/5]

AuraApplication * Unit::GetAuraApplication ( uint32  spellId,
std::function< bool(Aura const *)> const &  predicate 
) const

Definition at line 4691 of file Unit.cpp.

References m_appliedAuras, and Trinity::Containers::MapEqualRange().

◆ GetAuraApplication() [5/5]

AuraApplication * Unit::GetAuraApplication ( uint32  spellId,
std::function< bool(AuraApplication const *)> const &  predicate 
) const

Definition at line 4682 of file Unit.cpp.

References m_appliedAuras, and Trinity::Containers::MapEqualRange().

◆ GetAuraApplicationOfRankedSpell()

AuraApplication * Unit::GetAuraApplicationOfRankedSpell ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
ObjectGuid  itemCasterGUID = ObjectGuid::Empty,
uint32  reqEffMask = 0,
AuraApplication *  except = nullptr 
) const

Definition at line 4736 of file Unit.cpp.

References GetAuraApplication(), and sSpellMgr.

Referenced by GetAuraOfRankedSpell().

◆ GetAuraCount()

◆ GetAuraEffect() [1/2]

AuraEffect * Unit::GetAuraEffect ( AuraType  type,
SpellFamilyNames  family,
flag128 const &  familyFlag,
ObjectGuid  casterGUID = ObjectGuid::Empty 
) const

◆ GetAuraEffect() [2/2]

AuraEffect * Unit::GetAuraEffect ( uint32  spellId,
uint8  effIndex,
ObjectGuid  casterGUID = ObjectGuid::Empty 
) const

Definition at line 4622 of file Unit.cpp.

References AuraEffect::GetBase(), Aura::GetEffect(), and m_appliedAuras.

Referenced by spell_evo_fire_breath_damage::AddBonusUpfrontDamage(), spell_monk_burst_of_life::AfterRemove(), spell_pri_sanctuary_absorb::CalcAbsorbAmount(), spell_dh_consume_soul_vengeance_lesser::CalcHealingFromDamageTaken(), spell_pri_power_word_shield::CalculateAbsorb(), spell_dru_guardian_of_elune_healing::CalculateAmount(), spell_mage_wildfire_crit::CalculateAmount(), spell_dru_matted_fur_absorb::CalculateAmount(), spell_rog_improved_garrote_damage::CalculateBonus(), spell_mage_scald::CalculateDamage(), spell_oculus_shock_lance::CalculateDamage(), spell_monk_open_palm_strikes::CheckProc(), spell_mage_arcane_barrage::ConsumeArcaneCharges(), spell_sha_maelstrom_weapon_base::ConsumeMaelstromWeapon(), spell_pri_shadow_word_death::DetermineKillStatus(), Spell::EffectHeal(), WindfuryProcEvent::Execute(), spell_mage_ethereal_blink_triggered::FilterTargets(), spell_dru_embrace_of_the_dream_effect::FilterTargets(), spell_dru_wild_growth::FilterTargets(), GetAuraEffectOfRankedSpell(), MajorPlayerHealingCooldownHelpers::GetBonusMultiplier(), spell_pri_crystalline_reflection::HandleAfterAbsorb(), AuraEffect::HandleAuraModShapeshift(), spell_rog_cloaked_in_shadows::HandleCloakedInShadows(), spell_evo_causality_pyre::HandleCooldown(), spell_dh_cycle_of_hatred::HandleCycleOfHatred(), spell_warr_deft_experience::HandleDeftExperience(), spell_dk_death_coil::HandleDummy(), spell_dk_death_strike::HandleDummy(), spell_pri_dark_indulgence::HandleEffectHit(), spell_pri_lasting_words::HandleEffectHit(), spell_pri_sanctuary_trigger::HandleEffectHit(), spell_pri_mind_devourer::HandleEffectHitTarget(), spell_pri_assured_safety::HandleEffectHitTarget(), spell_dh_soulmonger::HandleEffectProc(), spell_pri_expiation::HandleHitTarget(), spell_dru_ferocious_bite::HandleLaunchTarget(), spell_evo_living_flame::HandleLaunchTarget(), spell_pri_atonement_effect::HandleOnHitTarget(), spell_pri_atonement_passive::HandleOnProc(), spell_dru_cultivation::HandleOnTick(), spell_soulbound_goliath_burning_brush_aura::HandlePeriodic(), spell_dru_elunes_favored_proc::HandlePeriodic(), spell_item_bracing_chill_proc::HandleProc(), spell_dk_obliteration::HandleProc(), spell_item_blessing_of_ancient_kings::HandleProc(), spell_item_persistent_shield::HandleProc(), spell_sha_t10_elemental_4p_bonus::HandleProc(), spell_dru_power_of_the_archdruid::HandleProc(), spell_hun_focused_aim::HandleProc(), spell_dru_innervate::HandleRank2(), spell_dru_eclipse_aura::HandleRemoved(), spell_warr_raging_blow_cooldown_reset::HandleResetCooldown(), spell_mage_arcane_explosion::HandleReverberate(), spell_sartura_whirlwind::HandleScript(), spell_leotheras_the_blind_whirlwind_effect::HandleScript(), spell_dru_wild_growth_aura::HandleTickUpdate(), spell_dh_soul_fragments_damage_taken_tracker::Load(), spell_evo_essence_burst_trigger::Load(), spell_hun_wilderness_medicine::Load(), MeleeDamageBonusTaken(), CriteriaHandler::ModifierSatisfied(), spell_evo_fire_breath::OnComplete(), spell_pri_mind_devourer_buff::OnPrecast(), at_dk_death_and_decay::OnUnitExit(), spell_dru_shooting_stars::ProcessDoT(), spell_sha_earthquake::SnapshotDamageMultiplier(), SpellDamageBonusTaken(), SpellHealingBonusTaken(), spell_dru_eclipse_ooc::Tick(), WindfuryProcEvent::Trigger(), spell_sha_artifact_gathering_storms::TriggerBuff(), spell_sha_converging_storms::TriggerBuff(), spell_warl_perpetual_unstability::TriggerExplosion(), spell_warl_volatile_agony::TriggerExplosion(), spell_sha_thorims_invocation_trigger::TriggerLightningSpell(), spell_item_amalgams_seventh_spine_mana_restore::TriggerManaRestoration(), spell_dh_demonic::TriggerMetamorphosis(), Player::UpdateInventorySlotCount(), spell_pri_atonement::UpdateSinsOfTheManyValue(), and spell_pri_atonement::UpdateTrinityEffect().

◆ GetAuraEffectOfRankedSpell()

AuraEffect * Unit::GetAuraEffectOfRankedSpell ( uint32  spellId,
uint8  effIndex,
ObjectGuid  casterGUID = ObjectGuid::Empty 
) const

Definition at line 4636 of file Unit.cpp.

References GetAuraEffect(), and sSpellMgr.

◆ GetAuraEffectsByType() [1/2]

AuraEffectList & Unit::GetAuraEffectsByType ( AuraType  type)
inline

Definition at line 1363 of file Unit.h.

◆ GetAuraEffectsByType() [2/2]

AuraEffectList const & Unit::GetAuraEffectsByType ( AuraType  type) const
inline

Definition at line 1362 of file Unit.h.

Referenced by Player::ActivateTalentGroup(), Spell::AddUnitTarget(), AttackerStateUpdate(), CalcAbsorbResist(), CalcArmorReducedDamage(), CalcHealAbsorb(), SpellInfo::CalcPowerCost(), AuraEffect::CalculateAmount(), CalculateDisplayPowerType(), Spell::CanAutoCast(), PlayerAI::CancelAllShapeshifts(), CancelShapeshiftForm(), ChangeSeat(), spell_gen_two_forms::CheckCast(), Spell::CheckCasterAuras(), SpellInfo::CheckLocation(), Spell::CheckSpellCancelsAuraEffect(), DealDamage(), DealMeleeDamage(), Spell::EffectApplyMountEquipment(), Spell::EffectTransmitted(), VehicleJoinEvent::Execute(), GetAuraEffect(), GetCastSpellInfo(), GetCastSpellXSpellVisualId(), SpellHistory::GetChargeRecoveryTime(), GetDoTsByCaster(), GetHighestExclusiveSameEffectSpellGroupValue(), WorldObject::GetMagicHitRedirectTarget(), GetMaxNegativeAuraModifier(), GetMaxPositiveAuraModifier(), GetMeleeHitRedirectTarget(), Player::GetMirrorTimerMaxValue(), GetMountCapability(), Player::GetQuestXPReward(), npc_thorim_trashAI::AIHelper::GetRemainingHealOn(), GetTotalAuraModifier(), GetTotalAuraMultiplier(), GetUnitConditionVariable(), AuraEffect::HandleAuraModSilence(), AuraEffect::HandleAuraTransform(), WorldSession::HandleChatMessage(), AuraEffect::HandleDetectAmore(), WorldSession::HandleMirrorImageDataRequest(), AuraEffect::HandleModCastingSpeed(), AuraEffect::HandleModGravity(), AuraEffect::HandleModOverrideZonePVPType(), AuraEffect::HandleModRequiredMountCapabilityFlags(), AuraEffect::HandleNoReagentUseAura(), spell_dk_glyph_of_scourge_strike_script::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), HasAuraTypeWithAffectMask(), HasAuraTypeWithCaster(), HasAuraTypeWithFamilyFlags(), HasAuraTypeWithMiscvalue(), HasAuraTypeWithTriggerSpell(), HasAuraTypeWithValue(), HasBreakableByDamageAuraType(), Player::HasItemTotemCategory(), Player::InitializeSelfResurrectionSpells(), Player::IsAlwaysDetectableFor(), IsHighestExclusiveAuraEffect(), IsImmunedToSpellEffect(), IsScriptOverriden(), Player::isTotalImmune(), list_commandscript::ListAurasCommand(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), MeleeSpellHitResult(), PhasingHandler::OnConditionChange(), Spell::PrepareTriggersExecutedOnHit(), SceneMgr::RemoveAurasDueToSceneId(), RestoreDisplayId(), RestoreFaction(), Creature::SelectVictim(), Player::SetBattlegroundEntryPoint(), SetFeared(), Player::SetSkill(), SpellBaseDamageBonusDone(), SpellBaseHealingBonusDone(), SpellCritChanceTaken(), SpellDamageBonusTaken(), SpellHealingBonusDone(), SpellHealingPctDone(), SpellHistory::StartCooldown(), ThreatManager::TauntUpdate(), TriggerOnHealthChangeAuras(), TriggerOnPowerChangeAuras(), SimpleCharmedPlayerAI::UpdateAI(), Player::UpdateHealingDonePercentMod(), Player::UpdateMirrorTimers(), UpdateMountCapability(), ThreatManager::UpdateMyTempModifiers(), UpdatePosition(), Player::UpdatePowerRegen(), Player::UpdateRating(), and Player::UpdateSpellDamageAndHealingBonus().

◆ GetAuraOfRankedSpell()

Aura * Unit::GetAuraOfRankedSpell ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
ObjectGuid  itemCasterGUID = ObjectGuid::Empty,
uint32  reqEffMask = 0 
) const

◆ GetBaseAttackTime()

◆ GetBattlePetCompanionExperience()

uint32 Unit::GetBattlePetCompanionExperience ( ) const
inline

Definition at line 1288 of file Unit.h.

◆ GetBattlePetCompanionGUID()

◆ GetBattlePetCompanionNameTimestamp()

uint32 Unit::GetBattlePetCompanionNameTimestamp ( ) const
inline

Definition at line 1286 of file Unit.h.

Referenced by WorldSession::HandleQueryBattlePetName().

◆ GetBlockPercent()

virtual float Unit::GetBlockPercent ( uint8  ) const
inlinevirtual

Reimplemented in Player.

Definition at line 1003 of file Unit.h.

Referenced by CalculateMeleeDamage(), and CalculateSpellDamageTaken().

◆ GetBonusResistanceMod()

int32 Unit::GetBonusResistanceMod ( SpellSchools  school) const
inline

Definition at line 794 of file Unit.h.

Referenced by Guardian::UpdateResistances().

◆ GetBoundingRadius()

float Unit::GetBoundingRadius ( ) const
inline

Definition at line 719 of file Unit.h.

Referenced by IsWithinBoundaryRadius().

◆ GetCastSpellInfo() [1/2]

◆ GetCastSpellInfo() [2/2]

◆ GetCastSpellXSpellVisualId()

◆ GetChannelScriptVisualId()

uint32 Unit::GetChannelScriptVisualId ( ) const
inline

Definition at line 1452 of file Unit.h.

◆ GetChannelSpellId()

uint32 Unit::GetChannelSpellId ( ) const
inline

◆ GetChannelSpellXSpellVisualId()

uint32 Unit::GetChannelSpellXSpellVisualId ( ) const
inline

Definition at line 1451 of file Unit.h.

◆ GetCharmed()

◆ GetCharmedGUID()

◆ GetCharmer()

◆ GetCharmerGUID()

◆ GetCharmerOrOwner()

◆ GetCharmerOrOwnerGUID()

◆ GetCharmInfo()

◆ GetClass()

uint8 Unit::GetClass ( ) const
inline

Definition at line 776 of file Unit.h.

Referenced by Player::_LoadGlyphs(), Player::_LoadHomeBind(), Player::_LoadSkills(), Player::_LoadTraits(), spell_monk_stagger::Absorb(), Player::ActivateTalentGroup(), Player::ActivateTaxiPathTo(), ArenaTeam::AddMember(), Group::AddMember(), Player::AddSpell(), spell_item_dire_brew::AfterApply(), CalcArmorReducedDamage(), CalculateDisplayPowerType(), Creature::CanResetTalents(), Player::CanRollNeedForItem(), Player::CanUseItem(), Spell::CheckCast(), spell_dk_advantage_t10_4p::CheckProc(), Spell::CheckRuneCost(), Player::Create(), Player::CreateCorpse(), Player::DuelComplete(), Spell::EffectCreateTamedPet(), Spell::EffectLearnSkill(), Spell::EffectSkill(), Spell::EffectTameCreature(), Player::EquipItem(), lfg::LFGMgr::FilterClassRoles(), ReputationMgr::GetBaseReputation(), GetDebugInfo(), Player::GetDefaultSpecId(), ReputationMgr::GetFactionDataIndexForRaceAndClass(), SocialMgr::GetFriendInfo(), GetModelForForm(), npc_tournament_mount::npc_tournament_mountAI::GetPennantSpellId(), Player::GetPowerIndex(), Player::GetPowerTypes(), Player::GetPrimaryStat(), GetUnitConditionVariable(), Player::GiveLevel(), WorldSession::HandleAdventureJournalOpenQuest(), WorldSession::HandleAdventureJournalUpdateSuggestions(), WorldSession::HandleAlterAppearance(), spell_gen_battleground_mercenary_shapeshift::HandleApply(), AuraEffect::HandleAuraModShapeshift(), WorldSession::HandleAzeriteEmpoweredItemSelectPower(), spell_malacrass_siphon_soul::HandleDummy(), spell_item_flask_of_the_north::HandleDummy(), WorldSession::HandleEquipmentSetSave(), learn_commandscript::HandleLearnAllTalentsCommand(), learn_commandscript::HandleLearnMySpellsCommand(), WorldSession::HandleMirrorImageDataRequest(), modify_commandscript::HandleModifyGenderCommand(), WorldSession::HandleOpeningCinematic(), AuraEffect::HandleOverridePetSpecs(), spell_dalaran_order_campaign_intro_aura::HandlePeriodic(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), spell_item_aura_of_madness::HandleProc(), spell_item_deathbringers_will< StrengthSpellId, AgilitySpellId, APSpellId, CriticalSpellId, HasteSpellId >::spell_item_deathbringers_will_AuraScript< Strength, Agility, AttackPower, Critical, Haste >::HandleProc(), spell_item_soul_preserver::HandleProc(), spell_pal_t3_6p_bonus::HandleProc(), spell_sha_t3_6p_bonus::HandleProc(), spell_gen_battleground_mercenary_shapeshift::HandleRemove(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsOrLevelHelper(), spell_gen_pet_summoned::HandleScript(), WorldPackets::Query::PlayerGuidLookupData::Initialize(), WorldPackets::Inspect::PlayerModelDisplayInfo::Initialize(), WorldPackets::Spells::SpellCastLogData::Initialize(), npc_stolen_soul::InitializeAI(), Player::InitializeSkillFields(), Player::InitRunes(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), Player::InitTalentForLevel(), Pet::IsPermanentPetFor(), Player::IsSpellFitByClassAndRace(), npc_sparring_partner_combat_training::IsSummonedBy(), boss_archimonde::KilledUnit(), Player::LearnCustomSpells(), Player::LearnDefaultSkill(), Player::LearnDefaultSkills(), Player::LearnPvpTalent(), Player::LearnTalent(), AzeriteEmpoweredItem::LoadAzeriteEmpoweredItemData(), Player::LoadFromDB(), CriteriaHandler::ModifierSatisfied(), DuelResetScript::OnDuelEnd(), at_aggro_radius_check_enhanced_combat_tactics::OnUnitEnter(), Trinity::WorldObjectSpellTargetCheck::operator()(), Player::PrepareGossipMenu(), ProcSkillsAndReactives(), Spell::RefundRunePower(), Player::RegenerateAll(), RemoveCharmedBy(), spell_evo_blessing_of_the_bronze::RemoveInvalidTargets(), Player::RemoveSpecializationSpells(), Player::RemoveSpell(), Player::ResetSpells(), Player::ResetTalents(), Player::ResetTalentSpecialization(), Player::RewardHonor(), Player::SaveToDB(), Spell::SendSpellGo(), Player::SendTalentsInfoData(), SetCharmedBy(), Player::SetSkill(), Guild::Member::SetStats(), SparringPartnerEnhancedCombatTrainingSelector(), quest_brace_for_impact::SpawnPet(), boss_volazj::SpellHitTarget(), Player::StoreNewItemInBestSlots(), Spell::TakeRunePower(), Player::TeleportTo(), npc_sinster_reflection::npc_sinster_reflectionAI::UpdateAI(), Player::UpdateAttackPowerAndDamage(), Player::UpdateDamageDoneMods(), Player::UpdateDodgePercentage(), Player::UpdateParryPercentage(), Player::UpdatePowerRegen(), spell_gen_battleground_mercenary_shapeshift::UpdateRacials(), Player::UpdateSkillsForLevel(), spell_item_amalgams_seventh_spine::UpdateSpecAura(), Guardian::UpdateStats(), and Player::UpdateVersatilityDamageDone().

◆ GetClassMask()

◆ GetCollisionHeight()

◆ GetCombatManager() [1/2]

◆ GetCombatManager() [2/2]

CombatManager const & Unit::GetCombatManager ( ) const
inline

Definition at line 1054 of file Unit.h.

◆ GetCombatRatingDamageReduction()

uint32 Unit::GetCombatRatingDamageReduction ( CombatRating  cr,
float  rate,
float  cap,
uint32  damage 
) const
private

Definition at line 12629 of file Unit.cpp.

References CalculatePct(), and GetCombatRatingReduction().

◆ GetCombatRatingReduction()

float Unit::GetCombatRatingReduction ( CombatRating  cr) const
private

Definition at line 12617 of file Unit.cpp.

References WorldObject::GetOwner(), IsPet(), and Object::ToPlayer().

Referenced by GetCombatRatingDamageReduction().

◆ GetCombatReach()

◆ GetContentTuning()

int32 Unit::GetContentTuning ( ) const
inline

Definition at line 768 of file Unit.h.

Referenced by Spell::EffectSkinning().

◆ GetControllingPlayer()

Player * Unit::GetControllingPlayer ( ) const

◆ GetCosmeticMountDisplayId()

uint32 Unit::GetCosmeticMountDisplayId ( ) const
inline

Definition at line 930 of file Unit.h.

◆ GetCreateHealth()

◆ GetCreateMana()

uint32 Unit::GetCreateMana ( ) const
inline

Definition at line 1437 of file Unit.h.

Referenced by SpellInfo::CalcPowerCost(), GetCreatePowerValue(), and Player::GiveLevel().

◆ GetCreatePowerValue()

int32 Unit::GetCreatePowerValue ( Powers  power) const
virtual

Reimplemented in Creature.

Definition at line 90 of file StatSystem.cpp.

References GetCreateMana(), POWER_MANA, and sDB2Manager.

Referenced by Creature::GetCreatePowerValue(), Player::InitStatsForLevel(), and Player::UpdateMaxPower().

◆ GetCreateStat()

float Unit::GetCreateStat ( Stats  stat) const

◆ GetCreatorGUID()

◆ GetCreatureType()

◆ GetCreatureTypeMask()

uint32 Unit::GetCreatureTypeMask ( ) const

◆ GetCritterGUID()

◆ GetCurrentSpell()

◆ GetCurrentSpellCastTime()

int32 Unit::GetCurrentSpellCastTime ( uint32  spell_id) const

Definition at line 3276 of file Unit.cpp.

References FindCurrentSpellBySpellId(), and Spell::GetCastTime().

Referenced by CasterAI::JustEngagedWith(), and CasterAI::UpdateAI().

◆ GetDamageImmunityMask()

uint32 Unit::GetDamageImmunityMask ( ) const

Definition at line 7844 of file Unit.cpp.

References IMMUNITY_DAMAGE, and m_spellImmune.

Referenced by IsImmunedToDamage().

◆ GetDamageMultiplierForTarget()

virtual float Unit::GetDamageMultiplierForTarget ( WorldObject const *  ) const
inlinevirtual

Reimplemented in Creature.

Definition at line 820 of file Unit.h.

Referenced by DealDamageMods().

◆ GetDamageReduction()

uint32 Unit::GetDamageReduction ( uint32  damage) const
inline

Definition at line 983 of file Unit.h.

References CR_RESILIENCE_PLAYER_DAMAGE.

Referenced by ApplyResilience().

◆ getDeathState()

◆ GetDebugInfo()

◆ GetDefaultMovementType()

MovementGeneratorType Unit::GetDefaultMovementType ( ) const
virtual

Reimplemented in Creature.

Definition at line 10748 of file Unit.cpp.

References IDLE_MOTION_TYPE.

Referenced by FactorySelector::SelectMovementGenerator().

◆ GetDemonCreator()

◆ GetDemonCreatorGUID()

◆ GetDemonCreatorPlayer()

◆ GetDiminishing()

◆ GetDirectTransport()

TransportBase * Unit::GetDirectTransport ( ) const

Returns the transport this unit is on directly (if on vehicle and transport, return vehicle)

Definition at line 12246 of file Unit.cpp.

References WorldObject::GetTransport(), and GetVehicle().

Referenced by SmartScript::ProcessAction(), Creature::RemoveCorpse(), CharmInfo::SaveStayPosition(), quest_brace_for_impact::SpawnActor(), and UpdateSplinePosition().

◆ GetDiseasesByCaster()

uint32 Unit::GetDiseasesByCaster ( ObjectGuid  casterGUID,
bool  remove = false 
)

◆ GetDispellableAuraList()

◆ GetDisplayId()

◆ GetDisplayScale()

float Unit::GetDisplayScale ( ) const
inline

◆ GetDoTsByCaster()

uint32 Unit::GetDoTsByCaster ( ObjectGuid  casterGUID) const

◆ GetDynObject()

DynamicObject * Unit::GetDynObject ( uint32  spellId) const

Definition at line 5332 of file Unit.cpp.

References GetDynObjects().

Referenced by Spell::CheckCast(), and Spell::DelayedChannel().

◆ GetDynObjects()

std::vector< DynamicObject * > Unit::GetDynObjects ( uint32  spellId) const

Definition at line 5338 of file Unit.cpp.

References m_dynObj.

Referenced by GetDynObject().

◆ GetEffectiveLevel()

uint8 Unit::GetEffectiveLevel ( ) const
inline

◆ GetEmoteState()

Emote Unit::GetEmoteState ( ) const
inline

◆ GetFaction()

uint32 Unit::GetFaction ( ) const
inlineoverridevirtual

Implements WorldObject.

Definition at line 886 of file Unit.h.

Referenced by Player::ActivateTaxiPathTo(), Creature::CanAssistTo(), Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectTransmitted(), DynamicObject::GetFaction(), UF::ViewerDependentValue< UF::UnitData::FactionTemplateTag >::GetValue(), WorldSession::HandleAuctionBrowseQuery(), WorldSession::HandleAuctionCancelCommoditiesPurchase(), WorldSession::HandleAuctionConfirmCommoditiesPurchase(), WorldSession::HandleAuctionGetCommodityQuote(), WorldSession::HandleAuctionListBiddedItems(), WorldSession::HandleAuctionListBucketsByBucketKeys(), WorldSession::HandleAuctionListItemsByBucketKey(), WorldSession::HandleAuctionListItemsByItemID(), WorldSession::HandleAuctionListOwnedItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionReplicateItems(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleGossipHelloOpcode(), modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcInfoCommand(), EscortAI::InitializeAI(), Minion::InitStats(), InitTamedPet(), go_wg_vehicle_teleporter::IsFriendly(), IsInPartyWith(), IsInRaidWith(), boss_balinda::JustSummoned(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::JustSummoned(), npc_felfire_portal::npc_felfire_portalAI::JustSummoned(), Pet::LoadPetFromDB(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::npc_engineer_spark_overgrindAI(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::npc_taskmaster_fizzuleAI(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::OnGossipSelect(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::ReceiveEmote(), WorldSession::SendAuctionHello(), SetCharmedBy(), Player::SetGameMaster(), Creature::SummonGraveyardTeleporter(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), Player::SummonPet(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_toc_shaman::UpdateAI(), npc_toc_enh_shaman::UpdateAI(), npc_akama_shade::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::UpdateAI(), and npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::WaypointReached().

◆ GetFirstControlled()

Unit * Unit::GetFirstControlled ( ) const

◆ GetFirstMinion()

◆ GetFlatModifierValue()

◆ GetFlightCapabilityID()

int32 Unit::GetFlightCapabilityID ( ) const
inline

Definition at line 1738 of file Unit.h.

Referenced by UpdateAdvFlyingSpeed(), and UpdateAdvFlyingSpeed().

◆ GetFollowAngle()

◆ GetGameObject()

◆ GetGameObjects()

std::vector< GameObject * > Unit::GetGameObjects ( uint32  spellId) const

Definition at line 5375 of file Unit.cpp.

References m_gameObj.

Referenced by GetGameObject().

◆ GetGender()

◆ GetGuardianPet()

◆ GetHealth()

uint64 Unit::GetHealth ( ) const
inline

Definition at line 800 of file Unit.h.

Referenced by spell_pri_guardian_spirit::Absorb(), boss_twilight_halion::boss_twilight_halion(), boss_valithria_dreamwalker::boss_valithria_dreamwalker(), SpellInfo::CalcPowerCost(), Creature::CalculateDamageForSparring(), boss_supremus::CalculateHatefulStrikeTarget(), spell_razorscale_flame_breath::CheckDamage(), Spell::CheckPower(), boss_garothi_worldbreaker::DamageTaken(), npc_volatile_sapling::DamageTaken(), boss_argaloth::DamageTaken(), boss_mother_smolderweb::DamageTaken(), boss_attumen::boss_attumenAI::DamageTaken(), boss_midnight::boss_midnightAI::DamageTaken(), boss_nightbane::boss_nightbaneAI::DamageTaken(), npc_felblood_kaelthas_phoenix::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), boss_apothecary_hummel::DamageTaken(), npc_madrigosa::DamageTaken(), boss_felmyst::DamageTaken(), npc_volatile_felfire_fiend::npc_volatile_felfire_fiendAI::DamageTaken(), boss_muru::DamageTaken(), npc_dark_fiend::DamageTaken(), npc_ohgan::DamageTaken(), npc_sparring_partner_exiles_reach::DamageTaken(), npc_sparring_partner_combat_training::DamageTaken(), npc_captain_garrick_q55879::DamageTaken(), npc_warlord_grimaxe_q59942::DamageTaken(), boss_mal_ganis::boss_mal_ganisAI::DamageTaken(), boss_lockmaw::DamageTaken(), boss_cthun::cthunAI::DamageTaken(), boss_twinemperorsAI::DamageTaken(), boss_lord_waycrest::DamageTaken(), boss_slabhide::boss_slabhideAI::DamageTaken(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::DamageTaken(), boss_baltharus_the_warborn::DamageTaken(), npc_baltharus_the_warborn_clone::DamageTaken(), boss_eadric::boss_eadricAI::DamageTaken(), boss_paletress::boss_paletressAI::DamageTaken(), npc_frost_sphere::DamageTaken(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::DamageTaken(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::DamageTaken(), npc_uther_quel_delar::npc_uther_quel_delarAI::DamageTaken(), boss_drakkari_colossus::DamageTaken(), boss_deathbringer_saurfang::DamageTaken(), npc_gunship::npc_gunshipAI::DamageTaken(), npc_high_overlord_saurfang_igb::DamageTaken(), npc_muradin_bronzebeard_igb::DamageTaken(), npc_crok_scourgebane::DamageTaken(), npc_terenas_menethil::DamageTaken(), boss_valithria_dreamwalker::DamageTaken(), boss_sapphiron::DamageTaken(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), boss_malygos::DamageTaken(), boss_magus_telestra::DamageTaken(), boss_urom::DamageTaken(), boss_volkhan::DamageTaken(), boss_algalon_the_observer::DamageTaken(), npc_collapsing_star::DamageTaken(), npc_feral_defender::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), boss_hodir::DamageTaken(), npc_flash_freeze_init::DamageTaken(), npc_flash_freeze_combat::DamageTaken(), npc_boombot::DamageTaken(), boss_sara::boss_saraAI::DamageTaken(), npc_immortal_guardian::npc_immortal_guardianAI::DamageTaken(), boss_ingvar_the_plunderer::DamageTaken(), npc_frost_tomb::DamageTaken(), boss_ymiron::DamageTaken(), npc_ichor_globule::DamageTaken(), npc_wild_wyrm::DamageTaken(), npc_akama_illidan::DamageTaken(), npc_maiev::DamageTaken(), boss_essence_of_suffering::DamageTaken(), boss_essence_of_desire::DamageTaken(), npc_enslaved_soul::DamageTaken(), boss_vazruden_the_herald::DamageTaken(), boss_alar::DamageTaken(), AdvisorBaseAI::DamageTaken(), npc_phoenix_the_eye::DamageTaken(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), npc_nagrand_banner::npc_kil_sorrow_spellbinderAI::DamageTaken(), npc_nagrand_banner::npc_kil_sorrow_deathswornAI::DamageTaken(), npc_nagrand_banner::npc_giselda_the_croneAI::DamageTaken(), npc_nagrand_banner::npc_warmaul_shamanAI::DamageTaken(), npc_volkaal_reanimation_totem::DamageTaken(), boss_black_knight::boss_black_knightAI::DamageTaken(), boss_majordomo::DamageTaken(), boss_felblood_kaelthas::DamageTaken(), Scripts::Kalimdor::Durotar::npc_durotar_tiki_target::DamageTaken(), boss_halion::DamageTaken(), boss_twilight_halion::DamageTaken(), npc_volkhan_molten_golem::DamageTaken(), npc_vrykul_skeleton::DamageTaken(), npc_scourge_hulk::DamageTaken(), SmartAI::DamageTaken(), npc_death_knight_initiate::npc_death_knight_initiateAI::DamageTaken(), npc_argent_valiant::DamageTaken(), boss_julianne::DamageTaken(), boss_romulo::DamageTaken(), boss_headless_horseman::DamageTaken(), boss_sacrolash::DamageTaken(), boss_alythess::DamageTaken(), boss_kalecgos::DamageTaken(), boss_sathrovarr::DamageTaken(), boss_archimonde::DamageTaken(), boss_freya::boss_freyaAI::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_vx_001::boss_vx_001AI::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), ControllerBaseAI::DamageTaken(), boss_illidan_stormrage::DamageTaken(), IllidariCouncilBossAI::DamageTaken(), npc_warden_mellichar::DamageTaken(), DealDamage(), DealMeleeDamage(), spell_pri_shadow_word_death::DetermineKillStatus(), spell_warr_execute_refund_rage::DetermineKillStatus(), boss_lady_vashj::DoAction(), boss_ichoron::DoAction(), Spell::EffectHeal(), Spell::EffectHealMaxHealth(), Pet::FillPetInfo(), npc_thorim_trashAI::AIHelper::GetHealTarget(), GetHealthGain(), boss_volazj::GetHealthPct(), GetUnitConditionVariable(), AuraEffect::HandleAuraModIncreaseHealth(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModIncreaseMaxHealth(), spell_aqusirr_erupting_waters::HandleDamage(), misc_commandscript::HandleDieCommand(), spell_mandokir_bloodletting::HandleEffectPeriodic(), Player::HandleFall(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcInfoCommand(), spell_lord_and_lady_waycrest_vitality_transfer::HandlePeriodic(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), WorldPackets::Party::PartyMemberFullState::Initialize(), WorldPackets::Spells::SpellCastLogData::Initialize(), boss_attumen::boss_attumenAI::JustSummoned(), boss_baltharus_the_warborn::JustSummoned(), Kill(), CriteriaHandler::ModifierSatisfied(), ModifyHealth(), spell_mage_alter_time_aura::OnApply(), spell_xt002_gravity_bomb_aura::OnPeriodic(), Trinity::MostHPMissingInRange::operator()(), npc_thorim_trashAI::AIHelper::MostHPMissingInRange::operator()(), Trinity::Predicates::HealthPctOrderPred::operator()(), Trinity::Predicates::HealthPctOrderPred::operator()(), Creature::RegenerateHealth(), Player::RegenerateHealth(), Creature::ResetPlayerDamageReq(), Pet::SavePetToDB(), Player::SaveToDB(), SendAttackStateUpdate(), boss_xt002::SetData(), SetHealth(), SetMaxHealth(), boss_felmyst::SpellHit(), boss_twinemperorsAI::SpellHit(), Aura::Update(), boss_priestess_delrissa::UpdateAI(), boss_blood_council_controller::UpdateAI(), boss_patchwerk::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), and Creature::UpdateEntry().

◆ GetHealthGain()

int64 Unit::GetHealthGain ( int64  dVal)

Definition at line 8660 of file Unit.cpp.

References GetHealth(), and GetMaxHealth().

Referenced by Spell::EffectHealthLeech().

◆ GetHealthMultiplierForTarget()

virtual float Unit::GetHealthMultiplierForTarget ( WorldObject const *  ) const
inlinevirtual

Reimplemented in Creature.

Definition at line 819 of file Unit.h.

Referenced by DealDamage().

◆ GetHealthPct()

float Unit::GetHealthPct ( ) const
inline

Definition at line 808 of file Unit.h.

Referenced by spell_mage_firestarter_dots::CalcCritChance(), spell_mage_firestarter::CalcCritChance(), spell_mage_scorch::CalcCritChance(), Creature::CalculateDamageForSparring(), spell_warl_burning_rush::CheckApplyAura(), spell_item_grips_of_forsaken_sanity::CheckHealth(), spell_item_trample_the_weak::CheckHealthPct(), spell_pri_twist_of_fate::CheckProc(), npc_sparring_partner_exiles_reach::DamageDealt(), npc_sparring_partner_combat_training::DamageDealt(), boss_eregos::DamageTaken(), boss_viscidus::boss_viscidusAI::DamageTaken(), boss_hadronox::DamageTaken(), npc_thorim_trashAI::AIHelper::GetHealTarget(), GetUnitConditionVariable(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModIncreaseMaxHealth(), spell_buru_egg_explosion::HandleDummy(), spell_dk_blood_bond_periodic::HandleDummyTick(), AuraEffect::HandleModTotalPercentStat(), spell_dk_soul_reaper::HandleOnTick(), spell_moorabi_mojo_frenzy::HandlePeriodic(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), boss_skeram::boss_skeramAI::JustSummoned(), CriteriaHandler::ModifierSatisfied(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), Trinity::MostHPPercentMissingInRange::operator()(), SmartScript::ProcessEvent(), Creature::SaveToDB(), Creature::ShouldFakeDamageFrom(), SpellHealingPctDone(), boss_viscidus::boss_viscidusAI::SpellHit(), boss_skeram::boss_skeramAI::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), boss_grobbulus::UpdateAI(), boss_malygos::UpdateAI(), npc_ruby_emerald_amber_drake::UpdateAI(), npc_wyrmrest_defender::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::UpdateAI(), and Player::UpdateItemLevelAreaBasedScaling().

◆ GetHighestExclusiveSameEffectSpellGroupValue()

SpellEffectValue Unit::GetHighestExclusiveSameEffectSpellGroupValue ( AuraEffect const *  aurEff,
AuraType  auraType,
bool  checkMiscValue = false,
int32  miscValue = 0 
) const

◆ GetHoverOffset()

float Unit::GetHoverOffset ( ) const
inline

◆ GetInsideAreaTriggers()

std::vector< AreaTrigger * > const & Unit::GetInsideAreaTriggers ( ) const
inline

Definition at line 1680 of file Unit.h.

◆ GetLastDamagedTargetGuid()

ObjectGuid Unit::GetLastDamagedTargetGuid ( ) const
inline

Definition at line 977 of file Unit.h.

◆ GetLastExtraAttackSpell()

uint32 Unit::GetLastExtraAttackSpell ( ) const
inline

Definition at line 974 of file Unit.h.

Referenced by AuraEffect::CheckEffectProc().

◆ GetLevel()

uint8 Unit::GetLevel ( ) const
inline

Definition at line 769 of file Unit.h.

Referenced by KillRewarder::_InitGroupData(), KillRewarder::_RewardPlayer(), KillRewarder::_RewardXP(), Player::_SaveStats(), spell_monk_stagger::Absorb(), Player::AddHonorXP(), AddItemsSetItem(), RestMgr::AddRestBonus(), Player::ApplyEnchantment(), AuctionHouseObject::BuildListBuckets(), SpellEffectInfo::CalcBaseValue(), SpellInfo::CalcPowerCost(), Aura::CalcProcChance(), spell_item_arcane_shroud::CalculateAmount(), spell_item_the_eye_of_diminution::CalculateAmount(), CalculateMeleeDamage(), Player::CalculateReputationGain(), CalculateSpellDamageTaken(), SpellEffectInfo::CalcValue(), Player::CanEquipItem(), ReputationMgr::CanGainParagonReputationForFaction(), Group::CanJoinBattlegroundQueue(), Spell::CanOpenLock(), Creature::CanResetTalents(), Player::CanSeeStartQuest(), Player::CanUseItem(), Player::CanUseItem(), Player::CheckAreaExplore(), spell_hun_tame_beast::CheckCast(), Spell::CheckCast(), spell_ethereal_pet_aura::CheckProc(), Pet::CreateBaseAtTamed(), CreateTamedPetFrom(), CreateTamedPetFrom(), DealMeleeDamage(), Spell::EffectDuel(), Spell::EffectEnergize(), Spell::EffectFeedPet(), Spell::EffectPickPocket(), Spell::EffectSummonObject(), Pet::FillPetInfo(), lfg::LFGMgr::FinishDungeon(), Trinity::XP::Gain(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), Creature::GetArmorMultiplierForTarget(), Player::GetBarberShopCost(), Player::GetBGAccessByLevel(), Creature::GetDamageMultiplierForTarget(), SocialMgr::GetFriendInfo(), Player::GetHealthBonusFromStamina(), Item::GetItemLevel(), lfg::LFGMgr::GetLockedDungeons(), Pet::GetNativeObjectScale(), ConditionMgr::GetPlayerConditionLfgValue(), Player::GetQuestDialogStatus(), Player::GetQuestLevel(), Player::GetRatingMultiplier(), Trainer::Trainer::GetSpellState(), Player::GetsRecruitAFriendBonus(), GetUnitConditionVariable(), Player::GiveLevel(), Pet::GivePetLevel(), Pet::GivePetXP(), Player::GiveXP(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleChatMessage(), group_commandscript::HandleGroupLevelCommand(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleInspectOpcode(), list_commandscript::HandleListMailCommand(), npc_commandscript::HandleNpcInfoCommand(), WorldSession::HandlePartyInviteOpcode(), pet_commandscript::HandlePetLevelCommand(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), WorldSession::HandleRequestBattlefieldStatusOpcode(), reset_commandscript::HandleResetLevelCommand(), spell_item_scroll_of_recall::HandleScript(), WorldSession::HandleSendMail(), WorldSession::HandleSocketGems(), WorldSession::HandleTransmogOutfitUpdateSlots(), WorldPackets::Query::PlayerGuidLookupData::Initialize(), WorldPackets::Party::PartyMemberFullState::Initialize(), Pet::InitLevelupSpellsForLevel(), Guardian::InitStats(), Player::InitStatsForLevel(), Player::InitTalentForLevel(), Battlefield::InvitePlayerToWar(), Player::isHonorOrXPTarget(), Player::IsMaxLevel(), ConditionMgr::IsPlayerMeetingCondition(), ItemTemplate::IsUsableByLootSpecialization(), npc_pet_hunter_snake_trap::JustAppeared(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::JustSummoned(), npc_felfire_portal::npc_felfire_portalAI::JustSummoned(), Player::LearnDefaultSkill(), Player::LearnDefaultSkills(), Player::LearnPvpTalent(), Player::LearnSkillRewardedSpells(), Pet::LearnSpecializationSpells(), Player::LearnSpecializationSpells(), Pet::LoadPetFromDB(), WorldSession::LogoutPlayer(), CriteriaHandler::ModifierSatisfied(), item_generic_limit_chance_above_60::OnCastItemCombatSpell(), at_nearby_scarshield_infiltrator::OnTrigger(), Player::RegenerateHealth(), Player::RemovedInsignia(), Player::ResurrectPlayer(), Player::RewardHonor(), Player::RewardQuest(), Player::Satisfy(), Player::SatisfyQuestMaxLevel(), Player::SatisfyQuestMinLevel(), Pet::SavePetToDB(), Player::SaveToDB(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInvite(), WorldSession::SendLfgPlayerLockInfo(), Group::SendUpdateToPlayer(), RestMgr::SetRestBonus(), Guild::Member::SetStats(), Player::SetXP(), SpellCritChanceTaken(), Player::StoreNewItem(), Player::SummonPet(), Pet::SynchronizeLevelWithOwner(), Player::UpdateAttackPowerAndDamage(), Player::UpdateAverageItemLevelEquipped(), CriteriaHandler::UpdateCriteria(), Creature::UpdateLevelDependantStats(), Player::UpdatePowerRegen(), GameObject::Use(), and Quest::XPValue().

◆ GetLevelForTarget()

◆ GetMaxHealth()

uint64 Unit::GetMaxHealth ( ) const
inline

Definition at line 801 of file Unit.h.

Referenced by Player::_SaveStats(), SpellInfo::CalcPowerCost(), spell_gen_gift_of_naaru::CalculateAmount(), Creature::CalculateDamageForSparring(), boss_twinemperorsAI::DamageTaken(), boss_algalon_the_observer::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), npc_boombot::DamageTaken(), DealDamage(), npc_terenas_menethil::DoAction(), Spell::EffectHeal(), Spell::EffectHealMaxHealth(), Trinity::XP::Gain(), npc_thorim_trashAI::AIHelper::GetHealTarget(), GetHealthGain(), boss_volazj::GetHealthPct(), spell_monk_stagger::GetStaggerSpellId(), AuraEffect::HandleAuraModIncreaseHealthPercent(), spell_buru_egg_explosion::HandleDummy(), spell_dk_death_strike::HandleDummy(), spell_mage_tempest_barrier::HandleEffectProc(), Player::HandleFall(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcInfoCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), spell_dru_bristling_fur::HandleProc(), spell_hun_rejuvenating_wind::HandleProc(), spell_warr_item_t10_prot_4p_bonus::HandleProc(), WorldPackets::Party::PartyMemberFullState::Initialize(), boss_skeram::boss_skeramAI::JustSummoned(), boss_drakkari_colossus::JustSummoned(), spell_dk_anti_magic_shell::Load(), Player::LoadFromDB(), ModifyHealth(), Trinity::MostHPMissingInRange::operator()(), npc_thorim_trashAI::AIHelper::MostHPMissingInRange::operator()(), Trinity::Predicates::HealthPctOrderPred::operator()(), Trinity::Predicates::HealthPctOrderPred::operator()(), Player::outDebugValues(), SmartScript::ProcessEvent(), Creature::RegenerateHealth(), Player::RegenerateHealth(), boss_baltharus_the_warborn::Reset(), Player::ResurrectPlayer(), SetHealth(), boss_felmyst::SpellHit(), boss_twinemperorsAI::SpellHit(), npc_simon_bunny::npc_simon_bunnyAI::SpellHitTarget(), Aura::Update(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), Player::UpdateItemLevelAreaBasedScaling(), and Player::UpdateMirrorTimers().

◆ GetMaxNegativeAuraModifier() [1/2]

◆ GetMaxNegativeAuraModifier() [2/2]

float Unit::GetMaxNegativeAuraModifier ( AuraType  auraType,
std::function< bool(AuraEffect const *)> const &  predicate 
) const

Definition at line 5071 of file Unit.cpp.

References GetAuraEffectsByType().

◆ GetMaxNegativeAuraModifierByAffectMask()

float Unit::GetMaxNegativeAuraModifierByAffectMask ( AuraType  auraType,
SpellInfo const *  affectedSpell 
) const

Definition at line 5217 of file Unit.cpp.

References GetMaxNegativeAuraModifier(), and AuraEffect::IsAffectingSpell().

◆ GetMaxNegativeAuraModifierByMiscMask()

float Unit::GetMaxNegativeAuraModifierByMiscMask ( AuraType  auraType,
uint32  misc_mask 
) const

Definition at line 5137 of file Unit.cpp.

References GetMaxNegativeAuraModifier(), and AuraEffect::GetMiscValue().

◆ GetMaxNegativeAuraModifierByMiscValue()

float Unit::GetMaxNegativeAuraModifierByMiscValue ( AuraType  auraType,
int32  misc_value 
) const

Definition at line 5177 of file Unit.cpp.

References GetMaxNegativeAuraModifier(), and AuraEffect::GetMiscValue().

Referenced by WorldObject::ModSpellDuration().

◆ GetMaxPositiveAuraModifier() [1/2]

◆ GetMaxPositiveAuraModifier() [2/2]

float Unit::GetMaxPositiveAuraModifier ( AuraType  auraType,
std::function< bool(AuraEffect const *)> const &  predicate 
) const

Definition at line 5055 of file Unit.cpp.

References GetAuraEffectsByType().

◆ GetMaxPositiveAuraModifierByAffectMask()

float Unit::GetMaxPositiveAuraModifierByAffectMask ( AuraType  auraType,
SpellInfo const *  affectedSpell 
) const

Definition at line 5207 of file Unit.cpp.

References GetMaxPositiveAuraModifier(), and AuraEffect::IsAffectingSpell().

◆ GetMaxPositiveAuraModifierByMiscMask()

float Unit::GetMaxPositiveAuraModifierByMiscMask ( AuraType  auraType,
uint32  misc_mask,
AuraEffect const *  except = nullptr 
) const

Definition at line 5127 of file Unit.cpp.

References GetMaxPositiveAuraModifier(), and AuraEffect::GetMiscValue().

Referenced by CalcAbsorbResist(), and Player::RewardHonor().

◆ GetMaxPositiveAuraModifierByMiscValue()

float Unit::GetMaxPositiveAuraModifierByMiscValue ( AuraType  auraType,
int32  misc_value 
) const

Definition at line 5167 of file Unit.cpp.

References GetMaxPositiveAuraModifier(), and AuraEffect::GetMiscValue().

◆ GetMaxPower()

int32 Unit::GetMaxPower ( Powers  power) const

Definition at line 10105 of file Unit.cpp.

References GetPowerIndex(), m_unitData, and MAX_POWERS_PER_CLASS.

Referenced by BaseEntity::BuildMovementUpdate(), spell_gen_replenishment_aura::CalculateAmount(), spell_bronjahm_magic_bane::CalculateDamage(), Spell::CheckItems(), spell_dk_advantage_t10_4p::CheckProc(), Spell::CheckRuneCost(), spell_mage_arcane_barrage::ConsumeArcaneCharges(), Spell::EffectEnergize(), Spell::EffectEnergizePct(), Spell::EffectResurrect(), Spell::EffectResurrectWithAura(), Spell::EffectSelfResurrect(), boss_curator::boss_curatorAI::ExecuteEvent(), Player::GetRunesState(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), AuraEffect::HandleAuraModMaxPowerPct(), Aura::HandleAuraSpecificMods(), AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), spell_dru_bristling_fur::HandleProc(), spell_kelthuzad_detonate_mana::HandleScript(), AuraEffect::HandleTriggerSpellOnPowerPercent(), WorldPackets::Party::PartyMemberFullState::Initialize(), Player::InitStatsForLevel(), ConditionMgr::IsPlayerMeetingCondition(), boss_galecaller_faye::JustAppeared(), Player::LoadFromDB(), ModifyPower(), Player::outDebugValues(), spell_gen_restoration::PeriodicTick(), spell_shade_of_medivh_mana_regen::PeriodicTick(), SmartScript::ProcessEvent(), Spell::RefundRunePower(), Creature::Regenerate(), Player::Regenerate(), boss_lady_deathwhisper::Reset(), Player::ResurrectPlayer(), Player::ResyncRunes(), Spell::SendSpellGo(), SetPower(), Player::SetRuneCooldown(), boss_deathbringer_saurfang::SpellHitTarget(), Spell::TakeRunePower(), TriggerOnPowerChangeAuras(), Aura::Update(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_moam::UpdateAI(), and boss_faction_championsAI::UpdatePower().

◆ GetMaxSkillValueForLevel()

◆ GetMechanicImmunityMask()

uint64 Unit::GetMechanicImmunityMask ( ) const

◆ GetMechanicResistChance()

float Unit::GetMechanicResistChance ( SpellInfo const *  spellInfo) const

◆ GetMeleeAnimKitId()

uint16 Unit::GetMeleeAnimKitId ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 945 of file Unit.h.

◆ GetMeleeDamageSchoolMask()

virtual SpellSchoolMask Unit::GetMeleeDamageSchoolMask ( WeaponAttackType  attackType = BASE_ATTACK) const
pure virtual

◆ GetMeleeHitRedirectTarget()

◆ GetMeleeRange()

float Unit::GetMeleeRange ( Unit const *  target) const

◆ GetMinionGUID()

◆ GetMinPower()

int32 Unit::GetMinPower ( Powers  power) const
inline

Definition at line 830 of file Unit.h.

References POWER_LUNAR_POWER.

Referenced by AuraEffect::HandleObsModPowerAuraTick(), and ModifyPower().

◆ GetModelForForm()

◆ GetMotionMaster() [1/2]

MotionMaster * Unit::GetMotionMaster ( )
inline

Definition at line 1750 of file Unit.h.

Referenced by _ExitVehicle(), npc_elwynn_forest_wolf::_ScheduleAfterChasingEvents(), npc_elwynn_forest_wolf::_ScheduleBeforeChasingEvents(), npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), AtEngage(), Creature::AtEngage(), npc_molten_barrage::npc_molten_barrageAI::AttackStart(), UnitAI::AttackStart(), CreatureAI::AttackStart(), boss_tyrannus::AttackStart(), boss_lady_deathwhisper::AttackStart(), SmartAI::AttackStart(), npc_hearthglen_crusader::AttackStart(), boss_veklor::boss_veklorAI::AttackStart(), UnitAI::AttackStartCaster(), boss_ionar::CallBackSparks(), spell_the_lich_king_valkyr_charge::ChargeDest(), Map::CreatureRespawnRelocation(), boss_the_lich_king::DamageTaken(), boss_amalgam_of_souls::DamageTaken(), npc_inquisitor_baleful_molten_shore::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), boss_ayamiss::DamageTaken(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::DamageTaken(), npc_frost_sphere::DamageTaken(), boss_drakkari_colossus::DamageTaken(), boss_drakkari_elemental::DamageTaken(), boss_ymiron::DamageTaken(), npc_wild_wyrm::DamageTaken(), boss_essence_of_suffering::DamageTaken(), boss_essence_of_desire::DamageTaken(), Scripts::Pandaria::TheWanderingIsle::npc_tushui_huojin_trainee::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::DestroyDoor(), Player::DisablePetControlsOnMount(), npc_inquisitor_baleful_molten_shore::DoAction(), npc_auchindoun_soulbinder_tuulani::DoAction(), boss_nightbane::boss_nightbaneAI::DoAction(), boss_selin_fireheart::DoAction(), npc_apothecary_genericAI::DoAction(), npc_safe_technician_sanitron::DoAction(), npc_silverpine_fallen_human::DoAction(), npc_chained_spirit::DoAction(), boss_infinite_corruptor::boss_infinite_corruptorAI::DoAction(), boss_adarogg::DoAction(), boss_lava_guard_gordoth::DoAction(), boss_slabhide::boss_slabhideAI::DoAction(), npc_twilight_volunteer::DoAction(), npc_hadronox_crusherPackAI::DoAction(), npc_xerestrasza::DoAction(), npc_ball_of_flame::DoAction(), npc_kinetic_bomb::DoAction(), boss_deathbringer_saurfang::DoAction(), npc_high_overlord_saurfang_icc::DoAction(), npc_muradin_bronzebeard_icc::DoAction(), npc_saurfang_event::DoAction(), npc_high_overlord_saurfang_igb::DoAction(), npc_muradin_bronzebeard_igb::DoAction(), boss_professor_putricide::DoAction(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), npc_argent_captainAI::DoAction(), npc_icc_nerubar_broodkeeper::DoAction(), boss_four_horsemen_baseAI::DoAction(), npc_kelthuzad_guardian::DoAction(), boss_malygos::DoAction(), npc_caster_hover_disk::DoAction(), npc_azure_ring_captain::DoAction(), boss_algalon_the_observer::DoAction(), npc_brann_bronzebeard_algalon::DoAction(), boss_flame_leviathan::boss_flame_leviathanAI::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_ominous_cloud::npc_ominous_cloudAI::DoAction(), npc_turned_champion::npc_turned_championAI::DoAction(), boss_leotheras_the_blind::DoAction(), npc_earthen_ring_flamecaller::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), npc_barada::npc_baradaAI::DoAction(), boss_anduin_wrynn::DoAction(), npc_bg_deephaul_ravine_commander< Path1, Path2, Path3, Path4 >::DoAction(), boss_edna::DoAction(), boss_krick::DoAction(), boss_razorscale::DoAction(), npc_expedition_defender::DoAction(), npc_expedition_trapper::DoAction(), boss_illidan_stormrage::DoAction(), npc_akama_shade::DoAction(), boss_headless_horseman::DoAction(), boss_ymiron_the_fallen_king::DoAction(), npc_silverpine_forsaken_bat::DoAction(), npc_silverpine_deathstalker_rane_yorick::DoAction(), npc_briarpatch_prisoner::DoAction(), Scripts::Kalimdor::Durotar::npc_captive_spitescale_scout::DoAction(), npc_martha_goslin::npc_martha_goslinAI::DoAction(), PetAI::DoAttack(), npc_snufflenose_gopher::npc_snufflenose_gopherAI::DoFindNewTubber(), Creature::DoFleeToGetAssistance(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), boss_alar::DoMoveToCenter(), boss_alar::DoMoveToPlatform(), npc_announcer_toc5::npc_announcer_toc5AI::DoStartArgentChampionEncounter(), ScriptedAI::DoStartNoMovement(), Spell::EffectCharge(), Spell::EffectChargeDest(), Spell::EffectDistract(), Spell::EffectJump(), Spell::EffectJumpCharge(), Spell::EffectJumpDest(), boss_jormungarAI::Emerge(), EscortAI::EnterEvadeMode(), SmartAI::EnterEvadeMode(), hyjalAI::EnterEvadeMode(), firelands_bossAI::EnterEvadeMode(), boss_blood_queen_lana_thel::EnterEvadeMode(), npc_argent_captainAI::EnterEvadeMode(), boss_urom::EnterEvadeMode(), npc_daegarn::EnterEvadeMode(), CreatureAI::EnterEvadeMode(), GuardAI::EnterEvadeMode(), boss_alizabal::boss_alizabalAI::EnterEvadeMode(), gunship_npc_AI::EnterEvadeMode(), npc_high_overlord_saurfang_igb::EnterEvadeMode(), npc_muradin_bronzebeard_igb::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), VehicleJoinEvent::Execute(), DelayedMovementEvent::Execute(), DaranavanMoveEvent::Execute(), FrostwyrmLandEvent::Execute(), OrbAirPositionEvent::Execute(), OrbFlyEvent::Execute(), boss_nightbane::boss_nightbaneAI::ExecuteEvent(), boss_icehowl::ExecuteEvent(), boss_twin_baseAI::ExecuteEvent(), AssistanceMovementGenerator::Finalize(), npc_rocket_propelled_warhead::FinishQuest(), Player::FinishTaxiFlight(), ScriptedAI::ForceCombatStop(), SplineChainMovementGenerator::GetResumeInfo(), spell_harlan_blades_of_light::HandleAfterCast(), spell_apothecary_lingering_fumes::HandleAfterCast(), spell_mimiron_fire_search::spell_mimiron_fire_search_SpellScript::HandleAftercast(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), AuraEffect::HandleAuraAllowFlight(), HandleAuraDisableGravity(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), npc_expedition_engineer::HandleBaseMovement(), misc_commandscript::HandleComeToMeCommand(), spell_ragefire_chasm_general_trigger_221_to_self::HandleDummy(), spell_malygos_random_portal::HandleDummy(), spell_sholazar_shoot_rjr::HandleDummy(), spell_swamplord_muselek_move_away_primer::HandleDummy(), spell_lord_stormsong_fixate::HandleFixate(), boss_felmyst::HandleFlightSequence(), npc_expedition_engineer::HandleFourthHarpoonMovement(), npc_expedition_engineer::HandleHarpoonMovement(), spell_headlong_charge_trigger::HandleHit(), spell_azhiccar_devour_selector::HandleHitTarget(), spell_azhiccar_devour_intro_selector::HandleHitTarget(), boss_northrend_beastsAI::HandleInitialMovement(), boss_razorscale::HandleInitialMovement(), AuraEffect::HandleModPossessPet(), misc_commandscript::HandleMovegensCommand(), WorldSession::HandleMoveWorldportAck(), npc_commandscript::HandleNpcFollowCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetWanderDistanceCommand(), npc_commandscript::HandleNpcUnFollowCommand(), spell_sapphiron_change_blizzard_target::HandlePeriodic(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePlayerLogin(), PetAI::HandleReturnMovement(), spell_saviana_conflagration_throwback::HandleScript(), spell_soulbound_goliath_burning_brush::HandleScript(), spell_nexus_lord_align_disk_aggro::HandleScript(), spell_mimiron_fire_search::spell_mimiron_fire_search_SpellScript::HandleScript(), spell_gen_pet_wait::HandleScript(), npc_expedition_engineer::HandleSecondHarpoonMovement(), npc_enslaved_soul::HandleSoulRelease(), npc_headless_horseman_head::HandleStartPhase(), npc_expedition_engineer::HandleThirdHarpoonMovement(), wp_commandscript::HandleWpLoadCommand(), wp_commandscript::HandleWpUnLoadCommand(), npc_troll_volunteer::InitializeAI(), npc_jena_anderson::npc_jena_andersonAI::InitializeAI(), npc_malcolm_moore::npc_malcolm_mooreAI::InitializeAI(), npc_anubarak_anub_ar_assassin::InitializeAI(), npc_molten_flame::InitializeAI(), IsMutualChase(), Creature::IsReturningHome(), boss_gizrul_the_slavener::IsSummonedBy(), Scripts::EasternKingdoms::Gilneas::Chapter1::npc_frightened_citizen::IsSummonedBy(), boss_darkmaster_gandling::IsSummonedBy(), npc_malacrass_blood_worm::IsSummonedBy(), npc_spirit_bomb::IsSummonedBy(), npc_danica_the_reclaimer::IsSummonedBy(), npc_silverpine_orc_sea_pup::IsSummonedBy(), npc_silverpine_orc_sea_dog::IsSummonedBy(), npc_akilzon_amani_kidnapper::IsSummonedBy(), npc_taelia_get_your_bearings::IsSummonedBy(), npc_devout_follower::npc_devout_followerAI::IsSummonedBy(), npc_ruby_emerald_amber_drake::IsSummonedBy(), npc_frostbrood_skytalon::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_min_dimwind_summon::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_aysa_cloudsinger_summon::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_master_li_fei_summon::IsSummonedBy(), npc_spirit_shade::npc_spirit_shadeAI::IsSummonedBy(), npc_bg_deephaul_ravine_earthen_mine_cart_horde::JustAppeared(), npc_bg_deephaul_ravine_earthen_mine_cart_alliance::JustAppeared(), npc_amalgam_of_souls_restless_soul::JustAppeared(), npc_kayn_sunfury_ashtongue_intro_private::JustAppeared(), npc_sevis_brightflame_ashtongue_gateway_private::JustAppeared(), npc_sevis_brightflame_coilskar_gateway_private::JustAppeared(), npc_baleful_beaming_eye::JustAppeared(), npc_cyana_nightglaive_freed_private::JustAppeared(), npc_izal_whitemoon_freed_private::JustAppeared(), npc_belath_dawnblade_freed_private::JustAppeared(), npc_mannethrel_darkstar_freed_private::JustAppeared(), npc_kalecgos::JustAppeared(), ShadowswordBaseAI::JustAppeared(), Scripts::EasternKingdoms::Vashjir::AbyssalDepths::npc_abyssal_depths_whirlpool_vehicle::JustAppeared(), npc_silverpine_agatha_fenris_isle::JustAppeared(), npc_amanishi_hatcher::JustAppeared(), npc_ship_captain_brace_for_impact_private::JustAppeared(), npc_crew_ship_private::JustAppeared(), npc_captain_garrick_q55879::JustAppeared(), npc_prisoner_q55879_private::JustAppeared(), npc_warlord_grimaxe_q59942::JustAppeared(), boss_anetheron::JustAppeared(), npc_doomfire::JustAppeared(), boss_azgalor::JustAppeared(), boss_kazrogal::JustAppeared(), boss_rage_winterchill::JustAppeared(), boss_aeonus::JustAppeared(), npc_lockmaw_augh_boss::JustAppeared(), npc_hive_zara_larva::JustAppeared(), npc_hive_zara_swarmer::JustAppeared(), npc_drustvar_frightend_woodsman_private::JustAppeared(), boss_lord_stormsong_intro_npc< ConvoIntroSpellId, ConvoOutroSpellId >::JustAppeared(), npc_malformed_ooze::JustAppeared(), npc_ingvar_throw_dummy::JustAppeared(), npc_brood_of_anzu::JustAppeared(), npc_void_traveler::JustAppeared(), npc_enchanted_elemental::JustAppeared(), npc_toxic_sporebat::JustAppeared(), npc_coilfang_ambusher::JustAppeared(), npc_coilfang_guardian::JustAppeared(), npc_steamrigger_mechanic::JustAppeared(), npc_nether_vapor::JustAppeared(), npc_anduin_wrynn_anduin_doubt::JustAppeared(), npc_anduin_wrynn_anduin_hope::JustAppeared(), npc_priestess_alun_za_corrupted_gold::JustAppeared(), boss_the_golden_serpent::JustAppeared(), npc_blood_wave_stalker::JustAppeared(), npc_frost_wyrm::npc_frost_wyrmAI::JustDied(), boss_flame_leviathan_safety_container::boss_flame_leviathan_safety_containerAI::JustDied(), npc_mechanolift::npc_mechanoliftAI::JustDied(), boss_kologarn::boss_kologarnAI::JustDied(), boss_mimiron::boss_mimironAI::JustDied(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), npc_gargoyle::npc_gargoyleAI::JustDied(), boss_the_lich_king::JustDied(), boss_high_inquisitor_whitemane::JustEngagedWith(), boss_lord_waycrest::JustEngagedWith(), boss_scarlet_commander_mograine::JustEngagedWith(), npc_murloc_spearhunter_watershaper_higher_ground::JustEngagedWith(), boss_ayamiss::JustEngagedWith(), boss_alar::JustEngagedWith(), FollowerAI::JustReachedHome(), SmartAI::JustReachedHome(), npc_headless_horseman_head::JustReachedHome(), npc_arthas_stratholme::npc_arthas_stratholmeAI::JustReachedHome(), boss_aeonus::JustReachedHome(), boss_razuvious::JustReachedHome(), npc_rocket_propelled_warhead::JustReachedHome(), Scripts::Pandaria::TheWanderingIsle::npc_amberleaf_scamp::JustReachedHome(), boss_felblood_kaelthas::JustSummoned(), boss_hogger::JustSummoned(), boss_randolph_moloch::JustSummoned(), boss_general_husam::JustSummoned(), npc_crystal_channel_target::JustSummoned(), boss_trollgore::JustSummoned(), boss_bronjahm::JustSummoned(), boss_slad_ran::JustSummoned(), boss_prince_valanar_icc::JustSummoned(), boss_the_lich_king::JustSummoned(), boss_eregos::JustSummoned(), boss_algalon_the_observer::JustSummoned(), boss_kologarn::boss_kologarnAI::JustSummoned(), boss_thorim::boss_thorimAI::JustSummoned(), boss_massive_jormungar::JustSummoned(), boss_skadi::JustSummoned(), boss_xevozz::JustSummoned(), npc_daegarn::JustSummoned(), boss_warchief_kargath_bladefist::JustSummoned(), npc_colonel_jules::npc_colonel_julesAI::JustSummoned(), boss_anduin_wrynn::JustSummoned(), boss_vexallus::JustSummoned(), npc_restless_soul::npc_restless_soulAI::JustSummoned(), boss_ionar::JustSummoned(), npc_maghar_captive::npc_maghar_captiveAI::JustSummoned(), npc_kurenai_captive::npc_kurenai_captiveAI::JustSummoned(), Player::KillPlayer(), KnockbackFrom(), spell_alysrazor_turn_monstrosity::spell_alysrazor_turn_monstrosity_SpellScript::KnockBarrage(), spell_svalna_revive_champion::Land(), npc_frogger_trigger_naxx::LaunchSpline(), boss_high_inquisitor_whitemane::MograineResurrected(), MonsterMoveWithSpeed(), Creature::Motion_Initialize(), npc_snobold_vassal::MountOnBoss(), npc_arthas_stratholme::npc_arthas_stratholmeAI::MoveInfiniteOnSpawn(), npc_anubarak_spike::MoveInLineOfSight(), boss_shade_of_aran::boss_aranAI::MoveInLineOfSight(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::MoveInLineOfSight(), npc_ashtongue_sorcerer::MoveInLineOfSight(), npc_spectator::MovementInform(), npc_voljin_zulaman::npc_voljin_zulamanAI::MovementInform(), PetAI::MovementInform(), npc_amanishi_hatcher::MovementInform(), npc_malcolm_moore::npc_malcolm_mooreAI::MovementInform(), boss_onyxia::MovementInform(), boss_slabhide::boss_slabhideAI::MovementInform(), boss_professor_putricide::MovementInform(), boss_malygos::MovementInform(), npc_azure_ring_captain::MovementInform(), npc_malformed_ooze::MovementInform(), npc_wild_wyrm::MovementInform(), npc_barada::npc_baradaAI::MovementInform(), Scripts::Pandaria::TheWanderingIsle::npc_amberleaf_scamp::MovementInform(), boss_ymiron_the_fallen_king::MovementInform(), boss_guarm::MovementInform(), npc_kayn_sunfury_invasion_begins::MovementInform(), npc_jayce_darkweaver_invasion_begins::MovementInform(), npc_allari_the_souleater_invasion_begins::MovementInform(), npc_korvas_bloodthorn_invasion_begins::MovementInform(), npc_sevis_brightflame_invasion_begins::MovementInform(), npc_cyana_nightglaive_invasion_begins::MovementInform(), npc_safe_technician_sanitron::MovementInform(), dummy_dragonAI::MovementInform(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::MovementInform(), boss_razorscale::MovementInform(), npc_grauf::MovementInform(), npc_skadi_trashAI::MovementInform(), Scripts::Pandaria::TheWanderingIsle::npc_aysa_cloudsinger_summon::MovementInform(), npc_malacrass_blood_worm::MovementInform(), npc_sparring_partner_exiles_reach::MovementInform(), npc_sparring_partner_combat_training::MovementInform(), npc_amalgam_of_souls_restless_soul::MovementInform(), npc_valarjar_paying_respect_to_odyn::MovementInform(), boss_gluth::MovementInform(), boss_cragmaw_the_infested::MovementInform(), arena_empyrean_domain::MovePlayerDown(), npc_cameron::MoveTheChildren(), npc_onyx_flamecaller::MoveToGeneral(), npc_power_spark::MoveToMalygos(), npc_unleashed_ballAI::MoveToNextPoint(), NearTeleportTo(), npc_geezle::npc_geezleAI::NextStep(), npc_argent_valiant::npc_argent_valiant(), npc_freya_ward_summon::npc_freya_ward_summonAI::npc_freya_ward_summonAI(), npc_omen::npc_omen(), boss_ymiron_the_fallen_king::OnChannelFinished(), PetAI::OnCharmed(), SimpleCharmedPlayerAI::OnCharmed(), SmartAI::OnCharmed(), conversation_dawnspair_spire_to_ghostlands::OnCreate(), Scripts::EasternKingdoms::StormwindCity::conversation_quest_ancient_curses_accept::OnCreate(), conversation_natalia_pearces_complete_precious_gems::OnCreate(), conversation_boralus_hub_tour::OnCreate(), conversation_boralus_enter_harbormaster_office::OnCreate(), conversation_boralus_cyrus_meets_genn::OnCreate(), npc_tirion_fordring_tft::OnGossipSelect(), npc_7th_legion_magus_sanctum_of_the_sages::OnGossipSelect(), npc_barrett_toc::OnGossipSelect(), npc_thassarian::OnGossipSelect(), npc_akama_illidan::OnGossipSelect(), npc_belnistrasz::npc_belnistraszAI::OnQuestAccept(), spell_soulbound_goliath_burning_brush_aura::OnRemove(), spell_anduin_wrynn_pre_introduction::OnRemove(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), npc_whisperwind_lasher::npc_whisperwind_lasherAI::OnSpellClick(), conversation_dawnspair_spire_followup_to_ghostlands::OnStart(), conversation_natalia_pearces_accept_precious_gems::OnStart(), conversation_drustvar_really_big_problem_complete::OnStart(), Scripts::QuelThalas::Harandar::Chapter1::conversation_the_root_cause_open_portal::OnStart(), Scripts::QuelThalas::Harandar::Chapter1::conversation_to_harathir_talk_to_kupaal::OnStart(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), conversation_rokmora_intro::OnUpdate(), conversation_the_invasion_begins::OnUpdate(), conversation_aberrus_sabellian_intro::OnUpdate(), conversation_aberrus_kazzara_intro::OnUpdate(), conversation_an_unlikely_informant::OnUpdate(), conversation_the_new_classington_estate::OnUpdate(), Scripts::EasternKingdoms::StormwindCity::conversation_start_council_tides_of_war::OnUpdate(), Scripts::EasternKingdoms::StormwindCity::conversation_quest_ancient_curses_accept::OnUpdate(), conversation_waycrest_manor_waycrests_defeated::OnUpdate(), conversation_boralus_hub_tour::OnUpdate(), conversation_cyrus_crestfall_shaking_hands::OnUpdate(), conversation_sylvanas_windrunner_introduction::OnUpdate(), npc_sharpbeak::npc_sharpbeak_AI::PassengerBoarded(), npc_akilzon_amani_kidnapper::PassengerBoarded(), npc_eagle_spirit::npc_eagle_spirit_AI::PassengerBoarded(), npc_wyrmrest_skytalon::PassengerBoarded(), npc_silverpine_horde_hauler::PassengerBoarded(), npc_wild_wyrm::PassengerBoarded(), npc_sanitron_5000::PassengerBoarded(), npc_silverpine_forsaken_bat::PassengerBoarded(), npc_bone_spike::PassengerBoarded(), Scripts::Pandaria::TheJadeForest::npc_rappelling_rope::PassengerBoarded(), npc_bountiful_table::npc_bountiful_tableAI::PassengerBoarded(), npc_grauf::PassengerBoarded(), npc_king_jokkum_vehicle::PassengerBoarded(), PauseMovement(), SmartAI::PausePath(), Spell::prepare(), npc_jungle_punch_target::proceedCwEvent(), SmartScript::ProcessAction(), PropagateSpeedChange(), npc_lake_frog::ReceiveEmote(), RemoveCharmedBy(), boss_prince_taldaram::RemovePrison(), npc_feasting_valarjar::Reset(), npc_valarjar_paying_respect_to_odyn::Reset(), npc_spectating_valarjar::Reset(), npc_valkyr_of_odyn::Reset(), npc_image_of_medivh::npc_image_of_medivhAI::Reset(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::Reset(), npc_silverpine_agatha_fenris_isle::Reset(), npc_frost_sphere::Reset(), npc_mechanolift::npc_mechanoliftAI::Reset(), npc_scrapbot::Reset(), npc_boombot::Reset(), npc_garona::npc_garonaAI::Reset(), npc_released_offspring_harkoa::Reset(), npc_ashtongue_sorcerer::Reset(), npc_doom_blossom::Reset(), npc_infernal_attacker::npc_infernal_attackerAI::Reset(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ResetBossEncounter(), Creature::Respawn(), ResumeMovement(), SmartAI::ReturnToLastOOCPos(), EscortAI::ReturnToLastPoint(), npc_sevis_brightflame_shivarra_gateway::SacrificePlayer(), npc_sinclari_vh::ScheduleIntro(), boss_selin_fireheart::SelectNearestCrystal(), npc_barrett_toc::SendActionToTirion(), Creature::SetCanMelee(), SetCharmedBy(), SmartAI::SetCombatMove(), SetConfused(), npc_zombie_chow::SetData(), gunship_npc_AI::SetData(), npc_enslaved_proto_drake::SetData(), npc_announcer_toc5::npc_announcer_toc5AI::SetData(), setDeathState(), Creature::setDeathState(), EscortAI::SetEscortPaused(), npc_silverpine_agatha_fenris_isle::SetEventNoEscape(), SetFacingTo(), SetFacingToObject(), SetFeared(), SmartAI::SetFollow(), FollowerAI::SetFollowComplete(), FollowerAI::SetFollowPaused(), npc_arthas_stratholme::npc_arthas_stratholmeAI::SetGUID(), npc_shadow_demon::SetGUID(), boss_hadronox::SetStep(), boss_attumen::boss_attumenAI::SpellHit(), npc_garrick_summoned_beach::SpellHit(), npc_grimaxe_summoned_beach::SpellHit(), npc_leader_northbound::SpellHit(), boss_onyxia::SpellHit(), npc_hive_zara_swarmer::SpellHit(), npc_taelia_get_your_bearings::SpellHit(), npc_high_overlord_saurfang_icc::SpellHit(), npc_muradin_bronzebeard_icc::SpellHit(), npc_saurfang_event::SpellHit(), boss_ionar::SpellHit(), boss_vazruden_the_herald::SpellHit(), npc_redridge_subdued_canyon_ettin::SpellHit(), Scripts::Kalimdor::Durotar::npc_lazy_peon::npc_lazy_peonAI::SpellHit(), npc_troll_volunteer::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_ichor_globule::SpellHit(), npc_wounded_skirmisher::SpellHit(), npc_wild_wyrm::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), npc_malformed_ooze::SpellHitTarget(), EscortAI::Start(), conversation_the_invasion_begins::StartCloneMovement(), Creature::StartDefaultCombatMovement(), npc_image_of_medivh::npc_image_of_medivhAI::StartEvent(), FollowerAI::StartFollow(), npc_azure_saboteur::StartMovement(), spell_doomwalker_overrun::StartMovement(), SmartAI::StartPath(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), Player::StartTaxiMovement(), PetAI::StopAttack(), SmartAI::StopFollow(), SmartAI::StopPath(), boss_jormungarAI::Submerge(), Player::TeleportTo(), CreatureAI::TriggerAlert(), npc_rokmora_navarrogg_intro::TriggerRokmoraIntro(), SimpleCharmedPlayerAI::UpdateAI(), EscortAI::UpdateAI(), boss_guarm::UpdateAI(), boss_alizabal::boss_alizabalAI::UpdateAI(), boss_gyth::UpdateAI(), boss_rend_blackhand::UpdateAI(), boss_victor_nefarius::UpdateAI(), Scripts::EasternKingdoms::Gilneas::Chapter1::npc_frightened_citizen::UpdateAI(), boss_felblood_kaelthas::UpdateAI(), boss_selin_fireheart::UpdateAI(), npc_unworthy_initiate::npc_unworthy_initiateAI::UpdateAI(), npc_eye_of_acherus::UpdateAI(), npc_dark_rider_of_acherus::UpdateAI(), npc_koltira_deathweaver::UpdateAI(), npc_scarlet_courier::npc_scarlet_courierAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), npc_headless_horseman_head::UpdateAI(), npc_madrigosa::UpdateAI(), boss_kalecgos::UpdateAI(), npc_shield_orb::npc_shield_orbAI::UpdateAI(), boss_ironaya::UpdateAI(), Scripts::EasternKingdoms::Vashjir::Chapter1::npc_vashjir_drowning_soldier::UpdateAI(), npc_frozen_mountaineer::npc_frozen_mountaineerAI::UpdateAI(), npc_wounded_coldridge_mountaineer::npc_wounded_coldridge_mountaineerAI::UpdateAI(), npc_milos_gyro::npc_milos_gyro_AI::UpdateAI(), npc_cameron::UpdateAI(), npc_partygoer_pather::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), npc_redridge_subdued_canyon_ettin::UpdateAI(), npc_redridge_citizen::npc_redridge_citizenAI::UpdateAI(), npc_silverpine_horde_hauler::UpdateAI(), npc_silverpine_fallen_human::UpdateAI(), npc_silverpine_deathstalker_rane_yorick::UpdateAI(), npc_silverpine_orc_sea_dog_not_sick::UpdateAI(), npc_silverpine_mutant_bush_chicken::UpdateAI(), npc_silverpine_skitterweb_matriarch::UpdateAI(), npc_silverpine_agatha_fenris_isle::UpdateAI(), npc_silverpine_fenris_keep_camera::UpdateAI(), npc_voljin_zulaman::npc_voljin_zulamanAI::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_elder_kekek::npc_elder_kekekAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_ship_captain_warming_up_private::UpdateAI(), npc_sparring_partner_exiles_reach::UpdateAI(), npc_ship_captain_brace_for_impact_private::UpdateAI(), npc_first_mate_brace_for_impact_private::UpdateAI(), npc_pet_ship_private::UpdateAI(), npc_captain_warlord_first_aid_private::UpdateAI(), npc_survivors_healed_by_leader_beach_private< PathId, WaitTime >::UpdateAI(), npc_horde_survivors_beach_q59930_private< PathId >::UpdateAI(), npc_survivors_beach_leave_private< PathId, WaitTime >::UpdateAI(), npc_garrick_summoned_beach::UpdateAI(), npc_grimaxe_summoned_beach::UpdateAI(), npc_sparring_partner_combat_training::UpdateAI(), npc_leader_northbound::UpdateAI(), npc_huxsworth_briarpatch_quest_private::UpdateAI(), npc_dawntracker_briarpatch_quest_private::UpdateAI(), npc_briarpatch_prisoner::UpdateAI(), npc_scoutomatic_5000::UpdateAI(), npc_choppy_booster_scout::UpdateAI(), npc_lindie_springstock_q56034::UpdateAI(), npc_cork_fizzlepop_q59941::UpdateAI(), npc_re_sized_boar_q56034::UpdateAI(), npc_captain_garrick_q55879::UpdateAI(), npc_warlord_grimaxe_q59942::UpdateAI(), npc_bjorn_stouthands_q55965_private::UpdateAI(), npc_lana_jordan_q59948_private::UpdateAI(), npc_companion_q55965_q59948_private< PitPathId >::UpdateAI(), boss_archimonde::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), npc_frost_wyrm::npc_frost_wyrmAI::UpdateAI(), npc_gargoyle::npc_gargoyleAI::UpdateAI(), npc_martha_goslin::npc_martha_goslinAI::UpdateAI(), npc_jena_anderson::npc_jena_andersonAI::UpdateAI(), npc_bartleby_battson::npc_bartleby_battsonAI::UpdateAI(), npc_malcolm_moore::npc_malcolm_mooreAI::UpdateAI(), npc_sergeant_morigan::npc_sergeant_moriganAI::UpdateAI(), npc_roger_owens::npc_roger_owensAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), boss_lieutenant_drake::UpdateAI(), boss_anraphet::UpdateAI(), npc_brann_bronzebeard_anraphet::UpdateAI(), npc_lockmaw_augh_add::UpdateAI(), boss_onyxia::UpdateAI(), npc_andorov::UpdateAI(), boss_veklor::boss_veklorAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_draenei_survivor::npc_draenei_survivorAI::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), Scripts::Kalimdor::Durotar::npc_darkspear_jailor::UpdateAI(), Scripts::Kalimdor::Durotar::npc_echo_isles_class_trainer< PitPos, QuestID >::UpdateAI(), boss_lord_stormsong_intro_npc< ConvoIntroSpellId, ConvoOutroSpellId >::UpdateAI(), boss_high_priestess_azil::boss_high_priestess_azilAI::UpdateAI(), boss_slabhide::boss_slabhideAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), npc_prince_taldaram_flame_sphere::UpdateAI(), boss_hadronox::UpdateAI(), npc_hadronox_foeAI::UpdateAI(), dummy_dragonAI::UpdateAI(), boss_saviana_ragefire::UpdateAI(), boss_jaraxxus::UpdateAI(), npc_unleashed_dark::UpdateAI(), npc_unleashed_light::UpdateAI(), boss_lich_king_toc::UpdateAI(), npc_fizzlebang_toc::UpdateAI(), boss_devourer_of_souls::UpdateAI(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), npc_uther_quel_delar::npc_uther_quel_delarAI::UpdateAI(), npc_quel_delar_sword::npc_quel_delar_swordAI::UpdateAI(), boss_garfrost::UpdateAI(), boss_krick::UpdateAI(), boss_tyrannus::UpdateAI(), boss_rimefang::UpdateAI(), npc_blood_queen_lana_thel::UpdateAI(), npc_kinetic_bomb::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), npc_high_overlord_saurfang_icc::UpdateAI(), npc_muradin_bronzebeard_icc::UpdateAI(), boss_lord_marrowgar::UpdateAI(), boss_professor_putricide::UpdateAI(), boss_sindragosa::UpdateAI(), npc_rimefang_icc::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), npc_valkyr_shadowguard::UpdateAI(), npc_strangulate_vehicle::UpdateAI(), npc_dream_cloud::UpdateAI(), boss_four_horsemen_baseAI::UpdateAI(), boss_gluth::UpdateAI(), npc_zombie_chow::UpdateAI(), boss_noth::UpdateAI(), boss_razuvious::UpdateAI(), boss_sapphiron::UpdateAI(), boss_malygos::UpdateAI(), npc_melee_hover_disk::UpdateAI(), npc_ruby_emerald_amber_drake::UpdateAI(), boss_volkhan::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_brann_bronzebeard_algalon::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_mechanolift::npc_mechanoliftAI::UpdateAI(), npc_saronite_vapors::npc_saronite_vaporsAI::UpdateAI(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::UpdateAI(), boss_razorscale::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), npc_annhylde_the_caller::UpdateAI(), boss_svala::UpdateAI(), npc_thassarian::UpdateAI(), npc_minigob_manabonk::UpdateAI(), npc_commander_eligor_dawnbringer::UpdateAI(), npc_venture_co_straggler::UpdateAI(), npc_frostbrood_skytalon::UpdateAI(), npc_freed_protodrake::UpdateAI(), npc_brann_bronzebeard_keystone::UpdateAI(), npc_crusade_recruit::UpdateAI(), boss_illidan_stormrage::UpdateAI(), npc_akama_illidan::UpdateAI(), npc_akama_shade::UpdateAI(), boss_lady_vashj::UpdateAI(), boss_warlord_kalithresh::UpdateAI(), npc_claw::UpdateAI(), boss_wrath_scryer_soccothrates::UpdateAI(), boss_alar::UpdateAI(), boss_kaelthas::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), npc_colonel_jules::npc_colonel_julesAI::UpdateAI(), npc_barada::npc_baradaAI::UpdateAI(), npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), Scripts::Pandaria::TheWanderingIsle::npc_delivery_cart::UpdateAI(), npc_pet_gen_pandaren_monk::UpdateAI(), npc_elwynn_forest_wolf::UpdateAI(), npc_dream_fog::npc_dream_fogAI::UpdateAI(), npc_priestess_alun_za_spirit_of_gold::UpdateAI(), boss_cragmaw_the_infested::UpdateAI(), boss_eadric::boss_eadricAI::UpdateAI(), boss_paletress::boss_paletressAI::UpdateAI(), boss_ionar::UpdateAI(), npc_spark_of_ionar::UpdateAI(), npc_power_spark::UpdateAI(), npc_tooga::npc_toogaAI::UpdateFollowerAI(), boss_kirtonos_the_herald::UpdateIntroEvents(), npc_millhouse_manastorm::UpdateIntroEvents(), boss_nalorakk::UpdateOutOfCombatEvents(), boss_broggok::UpdateOutOfCombatEvents(), npc_kelthuzad_minionAI::UpdateRandomMovement(), boss_majordomo::UpdateSpecialEvents(), boss_vazruden_the_herald::UpdateSpecialEvents(), UpdateSpeed(), npc_bg_deephaul_ravine_earthen_mine_cart_horde::WaypointPathEnded(), npc_bg_deephaul_ravine_earthen_mine_cart_alliance::WaypointPathEnded(), npc_bg_deephaul_ravine_commander< Path1, Path2, Path3, Path4 >::WaypointPathEnded(), npc_bg_silvershard_mines_mine_cart::WaypointPathEnded(), npc_kayn_sunfury_invasion_begins::WaypointPathEnded(), npc_jayce_darkweaver_invasion_begins::WaypointPathEnded(), npc_allari_the_souleater_invasion_begins::WaypointPathEnded(), npc_korvas_bloodthorn_invasion_begins::WaypointPathEnded(), npc_sevis_brightflame_invasion_begins::WaypointPathEnded(), npc_cyana_nightglaive_invasion_begins::WaypointPathEnded(), npc_danica_the_reclaimer::WaypointPathEnded(), npc_valkyr_of_odyn::WaypointPathEnded(), Scripts::EasternKingdoms::StormwindCity::npc_jaina_proudmoore_tides_of_war::WaypointPathEnded(), Scripts::EasternKingdoms::StormwindCity::npc_arkonarin_starshade_ancient_curses::WaypointPathEnded(), Scripts::EasternKingdoms::StormwindCity::npc_lysande_starshade_ancient_curses::WaypointPathEnded(), boss_anetheron::WaypointPathEnded(), boss_rage_winterchill::WaypointPathEnded(), boss_adarogg::WaypointPathEnded(), boss_the_golden_serpent::WaypointPathEnded(), npc_toxic_sporebat::WaypointPathEnded(), SmartAI::WaypointReached(), npc_cameron::WaypointReached(), npc_silverpine_forsaken_bat::WaypointReached(), Scripts::Pandaria::TheWanderingIsle::npc_min_dimwind_summon::WaypointReached(), npc_emily::WaypointReached(), and npc_7th_legion_magus_sanctum_of_the_sages::WaypointReached().

◆ GetMotionMaster() [2/2]

MotionMaster const * Unit::GetMotionMaster ( ) const
inline

Definition at line 1751 of file Unit.h.

◆ GetMountCapability()

◆ GetMountDisplayId()

◆ GetMovementAnimKitId()

uint16 Unit::GetMovementAnimKitId ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 943 of file Unit.h.

◆ GetMovementForces()

MovementForces const * Unit::GetMovementForces ( ) const
inline

◆ GetNativeDisplayId()

◆ GetNativeDisplayScale()

float Unit::GetNativeDisplayScale ( ) const
inline

Definition at line 1641 of file Unit.h.

Referenced by Creature::Respawn().

◆ GetNativeGender()

◆ GetNativeObjectScale()

virtual float Unit::GetNativeObjectScale ( ) const
inlinevirtual

Reimplemented in Creature, and Pet.

Definition at line 1635 of file Unit.h.

Referenced by RecalculateObjectScale().

◆ GetNegStat()

float Unit::GetNegStat ( Stats  stat) const
inline

Definition at line 1440 of file Unit.h.

◆ GetNextRandomRaidMemberOrPet()

◆ GetNpcFlags()

◆ GetNpcFlags2()

NPCFlags2 Unit::GetNpcFlags2 ( ) const
inline

◆ GetOwnedAura()

Aura * Unit::GetOwnedAura ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
ObjectGuid  itemCasterGUID = ObjectGuid::Empty,
uint32  reqEffMask = 0,
Aura *  except = nullptr 
) const

◆ GetOwnedAuras() [1/2]

◆ GetOwnedAuras() [2/2]

AuraMap const & Unit::GetOwnedAuras ( ) const
inline

Definition at line 1306 of file Unit.h.

◆ GetOwnerGUID()

◆ GetPartyMembers()

◆ GetPctModifierValue()

◆ GetPetFlags()

UnitPetFlag Unit::GetPetFlags ( ) const
inline

Definition at line 905 of file Unit.h.

◆ GetPetGUID()

◆ GetPlayerMovingMe()

◆ GetPosStat()

float Unit::GetPosStat ( Stats  stat) const
inline

Definition at line 1439 of file Unit.h.

◆ GetPower()

int32 Unit::GetPower ( Powers  power) const

Definition at line 10096 of file Unit.cpp.

References GetPowerIndex(), m_unitData, and MAX_POWERS_PER_CLASS.

Referenced by SpellInfo::CalcPowerCost(), SpellInfo::CalcPowerCost(), SpellEffectInfo::CalcValue(), Spell::CheckItems(), Spell::CheckPower(), boss_lady_deathwhisper::DamageTaken(), boss_curator::boss_curatorAI::ExecuteEvent(), HeartsbaneTriadSharedAI::ExecuteEvent(), boss_priestess_alun_za::ExecuteEvent(), Pet::FillPetInfo(), GetUnitConditionVariable(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), AuraEffect::HandleAuraModMaxPowerPct(), spell_dru_ferocious_bite::HandleLaunchTarget(), AuraEffect::HandleObsModPowerAuraTick(), spell_telash_ice_power_periodic::HandlePeriodic(), spell_cragmaw_power_energize_tantrum::HandlePeriodic(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandleTriggerSpellOnPowerAmount(), AuraEffect::HandleTriggerSpellOnPowerPercent(), WorldPackets::Party::PartyMemberFullState::Initialize(), WorldPackets::Spells::SpellCastLogData::Initialize(), Player::InitStatsForLevel(), ConditionMgr::IsPlayerMeetingCondition(), npc_azhiccar_frenzied_mite::JustAppeared(), Player::LoadFromDB(), ModifyPower(), spell_ymiron_the_fallen_king_power_periodic::OnPeriodic(), spell_mark_of_kazrogal_aura::OnPeriodic(), spell_gen_mark_of_kazrogal_hellfire_aura::OnPeriodic(), spell_deathbringer_blood_power_aura::RecalculateHook(), spell_anduin_wrynn_force_of_will::RecalculateHook(), spell_anduin_wrynn_force_of_will::RecalculateHookDamageTaken(), Creature::Regenerate(), Player::Regenerate(), Pet::SavePetToDB(), SetMaxPower(), Player::SetRuneCooldown(), boss_deathbringer_saurfang::SpellHitTarget(), spell_igb_incinerating_blast::StoreEnergy(), Aura::Update(), boss_king_deepbeard::UpdateAI(), boss_ymiron_the_fallen_king::UpdateAI(), boss_rokmora::UpdateAI(), boss_guarm::UpdateAI(), boss_telash_greywing::UpdateAI(), boss_mana_devourer::UpdateAI(), boss_the_curator_rtk::UpdateAI(), boss_moam::UpdateAI(), boss_azhiccar::UpdateAI(), boss_orator_krix_vizk::UpdateAI(), boss_edna::UpdateAI(), boss_skarmorak::UpdateAI(), boss_lord_stormsong::UpdateAI(), boss_cragmaw_the_infested::UpdateAI(), boss_sporecaller_zancha::UpdateAI(), and Scripts::EasternKingdoms::TwilightHighlands::JulakDoom::worldboss_julak_doom::WorldBossAI().

◆ GetPowerIndex()

◆ GetPowerPct()

◆ GetPowerType()

Powers Unit::GetPowerType ( ) const
inline

Definition at line 823 of file Unit.h.

Referenced by Player::ActivateTalentGroup(), AttackerStateUpdate(), spell_bronjahm_magic_bane::CalculateDamage(), Spell::CheckCast(), Spell::EffectPowerBurn(), Spell::EffectPowerDrain(), spell_moam_drain_mana::FilterTargets(), Creature::GetPowerIndex(), Creature::GetPowerTypes(), spell_edna_earth_shatterer::HandleAfterCast(), spell_pri_divine_star_shadow::HandleHitTarget(), spell_pri_halo_shadow::HandleHitTarget(), spell_telash_ice_power_periodic::HandlePeriodic(), spell_anduin_wrynn_energize_willpower_lfr::HandlePeriodic(), spell_remnant_of_a_fallen_king_energize_runic_power::HandlePeriodic(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), spell_item_heartpierce< Energy, Mana, Rage, RunicPower >::HandleProc(), spell_gen_pet_summoned::HandleScript(), WorldPackets::Party::PartyMemberFullState::Initialize(), WorldPackets::Spells::SpellCastLogData::Initialize(), boss_king_deepbeard::JustAppeared(), boss_ymiron_the_fallen_king::JustAppeared(), boss_telash_greywing::JustAppeared(), boss_sylvanas_windrunner::JustAppeared(), boss_anduin_wrynn::JustAppeared(), boss_remnant_of_a_fallen_king::JustAppeared(), spell_gen_replenishment_aura::Load(), spell_anduin_wrynn_force_of_will::OnApply(), DuelResetScript::OnDuelEnd(), ValithriaManaVoidSelector::operator()(), PowerUsersSelector::operator()(), ManaUserTargetSelector::operator()(), boss_anduin_wrynn::PhaseEvents(), spell_anduin_wrynn_force_of_will::RecalculateHook(), spell_anduin_wrynn_force_of_will::RecalculateHookDamageTaken(), Player::ResetAllPowers(), spell_item_mad_alchemists_potion::SecondaryEffect(), spell_item_crazy_alchemists_potion::SecondaryEffect(), setDeathState(), SetPowerType(), Creature::SetSpawnHealth(), Pet::Update(), Creature::Update(), boss_king_deepbeard::UpdateAI(), boss_ymiron_the_fallen_king::UpdateAI(), boss_telash_greywing::UpdateAI(), boss_vaelastrasz::UpdateAI(), boss_maleki_the_pallid::UpdateAI(), boss_anzu::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), and boss_faction_championsAI::UpdatePower().

◆ GetPowerTypes()

virtual ClassPowerTypes Unit::GetPowerTypes ( ) const
pure virtual

◆ GetPPMProcChance()

float Unit::GetPPMProcChance ( uint32  WeaponSpeed,
float  PPM,
SpellInfo const *  spellProto 
) const

Definition at line 8289 of file Unit.cpp.

References WorldObject::GetSpellModOwner(), and ProcFrequency.

Referenced by Player::CastItemCombatSpell().

◆ GetProcAurasTriggeredOnEvent()

◆ GetProcChainLength()

int32 Unit::GetProcChainLength ( ) const
inline

Definition at line 1790 of file Unit.h.

Referenced by Spell::Spell().

◆ GetPvpFlags()

UnitPVPStateFlags Unit::GetPvpFlags ( ) const
inline

Definition at line 894 of file Unit.h.

Referenced by SetCharm(), and SetMinion().

◆ GetRace()

uint8 Unit::GetRace ( ) const
inline

Definition at line 773 of file Unit.h.

Referenced by Player::_LoadHomeBind(), Player::_LoadSkills(), Group::AddLeaderInvite(), Group::AddMember(), Player::AddSpell(), SpellInfo::CalcProcPPM(), Player::CanRollNeedForItem(), Player::CanUseItem(), Group::ChangeLeader(), Group::Create(), Player::CreateCorpse(), Spell::EffectLearnSkill(), Spell::EffectSkill(), ReputationMgr::GetBaseReputation(), GetCreatureType(), ReputationMgr::GetFactionDataIndexForRaceAndClass(), GetModelForForm(), Player::GetQuestMinLevel(), GetRaceMask(), GetUnitConditionVariable(), Player::GiveLevel(), WorldSession::HandleAlterAppearance(), spell_gen_battleground_mercenary_shapeshift::HandleApply(), AuraEffect::HandleAuraTransform(), spell_pri_shadowy_apparition_dummy::HandleEffectHit(), WorldSession::HandleMirrorImageDataRequest(), modify_commandscript::HandleModifyGenderCommand(), spell_pal_divine_steed::HandleOnCast(), WorldSession::HandleOpeningCinematic(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), spell_gen_battleground_mercenary_shapeshift::HandleRemove(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsOrLevelHelper(), spell_quest_uther_grom_tribute::HandleScript(), WorldSession::HandleTransmogOutfitUpdateSlots(), Player::InitDisplayIds(), WorldPackets::Query::PlayerGuidLookupData::Initialize(), WorldPackets::Inspect::PlayerModelDisplayInfo::Initialize(), npc_stolen_soul::InitializeAI(), Player::InitializeSkillFields(), Player::InitStatsForLevel(), SpellArea::IsFitToRequirements(), ConditionMgr::IsPlayerMeetingCondition(), Player::IsSpellFitByClassAndRace(), Player::LearnCustomSpells(), Player::LearnDefaultSkills(), Player::LoadFromDB(), PlayerAchievementMgr::LoadFromDB(), CriteriaHandler::ModifierSatisfied(), Player::RemoveSpell(), RestoreFaction(), Player::ResurrectPlayer(), Player::RewardHonor(), Player::SatisfyQuestRace(), Player::SaveToDB(), Player::SetSkill(), Guild::Member::SetStats(), ReputationMgr::SetVisible(), quest_brace_for_impact::SpawnPet(), Player::StoreNewItemInBestSlots(), UpdateCreatureType(), Player::UpdateSkillPro(), and Player::UpdateSkillsForLevel().

◆ GetRaceMask()

uint64 Unit::GetRaceMask ( ) const

◆ GetResistance() [1/2]

int32 Unit::GetResistance ( SpellSchoolMask  mask) const

Definition at line 13295 of file Unit.cpp.

References GetResistance(), MAX_SPELL_SCHOOL, and SPELL_SCHOOL_NORMAL.

◆ GetResistance() [2/2]

◆ GetScheduledChangeAI()

UnitAI * Unit::GetScheduledChangeAI ( )
protected

Definition at line 10285 of file Unit.cpp.

References sCreatureAIRegistry, and Object::ToCreature().

Referenced by ScheduleAIChange().

◆ GetSchoolImmunityMask()

uint32 Unit::GetSchoolImmunityMask ( ) const

Definition at line 7834 of file Unit.cpp.

References IMMUNITY_SCHOOL, and m_spellImmune.

Referenced by IsImmunedToDamage(), and Spell::SendChannelStart().

◆ GetShapeshiftForm()

◆ GetSharedVisionList()

◆ GetSheath()

SheathState Unit::GetSheath ( ) const
inline

Definition at line 882 of file Unit.h.

◆ GetSingleCastAuras() [1/2]

◆ GetSingleCastAuras() [2/2]

AuraList const & Unit::GetSingleCastAuras ( ) const
inline

Definition at line 1365 of file Unit.h.

◆ GetSpeed()

◆ GetSpeedRate()

◆ GetSpellEmpowerStage()

int8 Unit::GetSpellEmpowerStage ( ) const
inline

Definition at line 1470 of file Unit.h.

◆ GetSpellHistory() [1/2]

SpellHistory * Unit::GetSpellHistory ( )
inline

Definition at line 1521 of file Unit.h.

Referenced by Aura::_ApplyForTarget(), Spell::_cast(), CreatureAI::_EnterEvadeMode(), Aura::_UnapplyForTarget(), AddGameObject(), spell_mage_alter_time_aura::AfterRemove(), Player::ApplyEquipCooldown(), AtEndOfEncounter(), AtExitCombat(), Spell::cancel(), Spell::CancelGlobalCooldown(), Player::CanExecutePendingSpellCastRequest(), Player::CanRequestSpellCast(), Player::CharmSpellInitialize(), Spell::CheckCast(), Spell::CheckPetCast(), Spell::EffectCastButtons(), Spell::EffectInterruptCast(), Spell::EffectModifyCooldown(), Spell::EffectModifyCooldowns(), Spell::EffectModifyCooldownsByCategory(), Spell::EffectModifySpellCharges(), Spell::EffectStuck(), spell_sha_lava_burst::EnsureLavaSurgeCanBeImmediatelyConsumed(), Player::EquipItem(), spell_torghast_dimensional_blade::FilterTargets(), spell_mage_ethereal_blink_triggered::FilterTargets(), Spell::finish(), boss_the_candle_king::GetCooldownOfSpell(), spell_dh_moment_of_craving::HandleAfterRemove(), Aura::HandleAuraSpecificMods(), WorldSession::HandleAzeriteEssenceActivateEssence(), spell_dh_glide::HandleCast(), spell_evo_glide::HandleCast(), spell_mage_spontaneous_combustion::HandleCharges(), spell_dh_chaotic_transformation::HandleCooldown(), spell_evo_causality_pyre::HandleCooldown(), spell_sha_downpour::HandleCooldown(), spell_warr_strategist::HandleCooldown(), misc_commandscript::HandleCooldownCommand(), spell_sha_chain_lightning_crash_lightning::HandleCooldownReduction(), spell_warr_rumbling_earth::HandleCooldownReduction(), spell_dh_cycle_of_hatred::HandleCycleOfHatred(), spell_item_rocket_boots::HandleDummy(), spell_mage_cold_snap::HandleDummy(), spell_pri_protector_of_the_frail::HandleEffectHit(), spell_pal_grand_crusader::HandleEffectProc(), spell_pal_crusader_might::HandleEffectProc(), spell_pal_fist_of_justice::HandleEffectProc(), spell_pal_righteous_protector::HandleEffectProc(), spell_dh_cycle_of_binding::HandleEffectProc(), spell_hun_scrappy::HandleEffectProc(), spell_warl_cull_the_weak::HandleEffectProc(), spell_pri_heavens_wrath::HandleEffectProc(), spell_dh_darkglare_boon::HandleEffectRemove(), AuraEffect::HandleModChargeRecoveryRate(), AuraEffect::HandleModRecoveryRate(), AuraEffect::HandleModRecoveryRateBySpellLabel(), spell_pal_moment_of_glory::HandleOnHit(), spell_hun_steady_shot::HandleOnHit(), spell_hun_take_aim::HandleOnHit(), spell_warr_victorious_state::HandleOnProc(), spell_dh_unhindered_assault::HandleOnProc(), spell_dh_violent_transformation::HandleOnProc(), spell_pri_epiphany::HandleOnProc(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), spell_dru_gore::HandleProc(), spell_pal_art_of_war::HandleProc(), spell_hun_hunting_party::HandleProc(), spell_rog_restless_blades::HandleProc(), spell_dh_felblade_cooldown_reset_proc::HandleProc(), spell_warr_anger_management_proc::HandleProc(), spell_rog_deepening_shadows::HandleProc(), spell_dk_crimson_scourge::HandleProc(), spell_hun_surging_shots::HandleProc(), spell_warr_tactician::HandleProc(), spell_hun_focused_aim::HandleProc(), spell_warr_raging_blow_cooldown_reset::HandleResetCooldown(), spell_gen_divine_storm_cd_reset::HandleScript(), WorldSession::HandleTraitsCommitConfig(), Spell::HasGlobalCooldown(), Player::InitializeSelfResurrectionSpells(), Player::LearnPvpTalent(), Player::LearnTalent(), Player::LoadFromDB(), spell_pri_holy_words_base::ModifyCooldown(), npc_gunship_boarding_addAI::MovementInform(), DuelResetScript::OnDuelEnd(), DuelResetScript::OnDuelStart(), spell_warr_devastator::OnProc(), spell_dh_restless_hunter::OnRemove(), spell_evo_causality_disintegrate::OnTick(), Player::PetSpellInitialize(), Player::PossessSpellInitialize(), spell_pri_holy_word_salvation_cooldown_reduction::ReduceCooldown(), spell_sha_ashen_catalyst::ReduceLavaLashCooldown(), spell_pri_train_of_thought::ReducePenanceCooldown(), spell_pri_train_of_thought::ReducePowerWordShieldCooldown(), Player::RemoveArenaSpellCooldowns(), RemoveGameObjectImpl(), spell_sha_lava_surge_proc::ResetCooldown(), spell_dru_berserk::ResetCooldowns(), DuelResetScript::ResetSpellCooldowns(), npc_sparring_partner_enhanced_combat_training_warrior::ResetWarrior(), spell_sha_molten_thunder_sundering::RollReset(), Pet::SavePetToDB(), Player::SaveToDB(), Player::SendInitialPacketsBeforeAddToMap(), Spell::SendSpellCooldown(), SetMinion(), gunship_npc_AI::TriggerBurningPitch(), Spell::TriggerGlobalCooldown(), spell_warl_shadowburn::TryEnergize(), Totem::UnSummon(), boss_general_bjarngrim::UpdateAI(), PetAI::UpdateAI(), npc_gunship_rocketeer::UpdateAI(), spell_gen_trainer_heal_cooldown::UpdateReviveBattlePetCooldown(), Player::VehicleSpellInitialize(), and PlayerAI::VerifySpellCast().

◆ GetSpellHistory() [2/2]

SpellHistory const * Unit::GetSpellHistory ( ) const
inline

Definition at line 1522 of file Unit.h.

◆ GetSpellOtherImmunityMask()

EnumFlag< SpellOtherImmunity > Unit::GetSpellOtherImmunityMask ( ) const

Definition at line 7864 of file Unit.cpp.

References IMMUNITY_OTHER, and m_spellImmune.

Referenced by SpellInfo::CheckTarget().

◆ GetSpellSchoolByAuraGroup()

◆ GetStandState()

◆ GetStat()

◆ GetStatByAuraGroup()

◆ GetTarget()

◆ GetThreatManager() [1/2]

ThreatManager & Unit::GetThreatManager ( )
inline

Definition at line 1093 of file Unit.h.

Referenced by boss_four_horsemen_lady::_UpdateAI(), boss_four_horsemen_sir::_UpdateAI(), ThreatManager::AddThreat(), ScriptedAI::AddThreat(), spell_opera_picnic_basket_smell::AfterRemove(), Creature::AtEngage(), boss_four_horsemen_baron::BeginFighting(), boss_four_horsemen_thane::BeginFighting(), boss_supremus::CalculateHatefulStrikeTarget(), ThreatManager::CalculateModifiedThreat(), Creature::CallForHelp(), boss_veknilash::boss_veknilashAI::CastSpellOnBug(), Creature::Create(), Pet::Create(), Player::Create(), npc_dark_nucleus::DamageTaken(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::DeleteAllFromThreatList(), boss_professor_putricide::DoAction(), boss_gothik::DoAction(), boss_ick::DoAction(), boss_guarm::DoAction(), Spell::TargetInfo::DoDamageAndTriggers(), Spell::EffectModifyThreatPercent(), Spell::EffectRedirectThreat(), Spell::EffectSanctuary(), Spell::EffectTaunt(), Spell::EffectThreat(), CombatManager::EndAllPvECombat(), CombatReference::EndCombat(), boss_faction_championsAI::EnemiesInRange(), EnergizeBySpell(), boss_malchezaar::boss_malchezaarAI::EnfeebleHealthEffect(), VehicleJoinEvent::Execute(), boss_the_maker::ExecuteEvent(), spell_gruul_hurtful_strike_primer::FilterTargets(), boss_shade_of_aran::boss_aranAI::FlameWreathEffect(), ThreatManager::ForwardThreatForAssistingMe(), SmartScript::GetTargets(), ScriptedAI::GetThreat(), GetUnitConditionVariable(), spell_rajaxx_thundercrash::HandleAfterCast(), spell_leotheras_the_blind_whirlwind_init::HandleAfterCast(), spell_omrogg_beatdown::HandleAfterCast(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModDmgImmunity(), AuraEffect::HandleAuraModFixate(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleAuraModStun(), AuraEffect::HandleAuraModStunAndDisableGravity(), AuraEffect::HandleAuraModTotalThreat(), spell_thaddius_magnetic_pull::HandleCast(), debug_commandscript::HandleDebugThreatInfoCommand(), debug_commandscript::HandleDebugThreatListCommand(), spell_omor_the_unscarred_orbital_strike_target::HandleDummy(), spell_gen_hate_to_zero::HandleDummy(), spell_gen_hate_to_50::HandleDummy(), spell_gen_hate_to_75::HandleDummy(), spell_auriaya_agro_creator::HandleDummyEffect(), spell_alysrazor_aggro_closest::spell_alysrazor_aggro_closest_SpellScript::HandleEffect(), spell_ulduar_random_aggro_periodic::HandleEffectPeriodic(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleModConfuse(), AuraEffect::HandleModDetaunt(), AuraEffect::HandleModTaunt(), AuraEffect::HandleModThreat(), AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), spell_rog_tricks_of_the_trade_proc::HandleRemove(), spell_frostwarden_handler_focus_fire::HandleScript(), spell_the_lich_king_vile_spirit_move_target_search::HandleScript(), spell_sartura_whirlwind::HandleScript(), spell_toravon_random_aggro::HandleScript(), spell_leotheras_the_blind_whirlwind_effect::HandleScript(), spell_gen_knock_away_threat_reduction::HandleScript(), Spell::HandleThreatSpells(), Vehicle::InstallAccessory(), AdvisorBaseAI::IsEnemyInRange(), npc_suppresser::IsSummonedBy(), boss_attumen::boss_attumenAI::IsSummonedBy(), boss_blackheart_the_inciter_mc_dummy::IsSummonedBy(), CriteriaHandler::ModifierSatisfied(), ScriptedAI::ModifyThreatByPercent(), spell_hun_misdirection::OnRemove(), spell_hun_misdirection_proc::OnRemove(), spell_rog_tricks_of_the_trade_aura::OnRemove(), NonTankTargetSelector::operator()(), DevastatingSlamTargetSelector::operator()(), StoneGripTargetSelector::operator()(), UnitAI::PrepareTargetListSelection(), Spell::PreprocessSpellHit(), SmartScript::ProcessAction(), ScriptedAI::ResetThreat(), ScriptedAI::ResetThreatList(), boss_blood_queen_lana_thel::SelectRandomTarget(), Creature::SelectVictim(), gunship_npc_AI::SelectVictim(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::SpellHit(), spell_putricide_ooze_channel::StartAttack(), npc_anubarak_spike::StartChase(), ThreatReference::UnregisterAndFree(), Creature::Update(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), boss_prince_taldaram::UpdateAI(), boss_patchwerk::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_mimiron_assault_bot::npc_mimiron_assault_botAI::UpdateAI(), boss_blackheart_the_inciter::UpdateAI(), boss_murmur::UpdateAI(), boss_fathomlord_karathress::UpdateAI(), boss_void_reaver::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), Creature::UpdateEntry(), boss_faction_championsAI::UpdateThreat(), and npc_pet_mage_mirror_image::UpdateVictim().

◆ GetThreatManager() [2/2]

ThreatManager const & Unit::GetThreatManager ( ) const
inline

Definition at line 1094 of file Unit.h.

◆ GetTopAI()

UnitAI * Unit::GetTopAI ( ) const
inlineprotected

Definition at line 686 of file Unit.h.

Referenced by RestoreDisabledAI().

◆ GetTotalAttackPowerValue()

◆ GetTotalAuraModifier() [1/2]

float Unit::GetTotalAuraModifier ( AuraType  auraType) const

Definition at line 5087 of file Unit.cpp.

References GetTotalAuraModifier().

Referenced by Player::BuyItemFromVendorSlot(), CalcArmorReducedDamage(), spell_sha_lava_crit_chance::CalcCritChance(), SpellInfo::CalcPowerCost(), Player::CalculateMinMaxDamage(), Player::CalculateReputationGain(), Spell::Delayed(), Spell::DelayedChannel(), Creature::GetAggroRange(), Creature::GetAttackDistance(), RestMgr::GetRestBonusFor(), GetTotalAuraModifier(), GetTotalAuraModifierByAffectMask(), GetTotalAuraModifierByMiscMask(), GetTotalAuraModifierByMiscValue(), GetUnitBlockChance(), GetUnitCriticalChanceDone(), GetUnitCriticalChanceTaken(), GetUnitDodgeChance(), GetUnitParryChance(), Player::HandleFall(), IsBlockCritical(), IsWithinMeleeRangeAt(), WorldObject::MagicSpellHitResult(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), MeleeSpellHitResult(), MeleeSpellMissChance(), WorldObject::ModSpellDuration(), RecalculateObjectScale(), Creature::RegenerateHealth(), Player::RegenerateHealth(), DuelResetScript::ResetSpellCooldowns(), RewardRage(), Battleground::RewardReputationToTeam(), RollMeleeOutcomeAgainst(), WorldSession::SendListInventory(), SpellAbsorbBonusDone(), SpellBaseHealingBonusDone(), SpellCritChanceTaken(), SpellCriticalDamageBonus(), SpellDamageBonusDone(), SpellHealingBonusDone(), WorldObject::SpellHitResult(), SpellHistory::StartCooldown(), Player::UpdateArmor(), Player::UpdateBlockPercentage(), UpdateDamageDoneMods(), Player::UpdateDodgePercentage(), Player::UpdateExpertise(), Player::UpdateHealingDonePercentMod(), Player::UpdateMastery(), Player::UpdateParryPercentage(), UpdateSpeed(), Player::UpdateSpellCritChance(), Player::UpdateSpellHitChances(), UpdateStatBuffMod(), and Player::UpdateWeaponDependentCritAuras().

◆ GetTotalAuraModifier() [2/2]

float Unit::GetTotalAuraModifier ( AuraType  auraType,
std::function< bool(AuraEffect const *)> const &  predicate 
) const

Definition at line 5001 of file Unit.cpp.

References GetAuraEffectsByType(), and sSpellMgr.

◆ GetTotalAuraModifierByAffectMask()

float Unit::GetTotalAuraModifierByAffectMask ( AuraType  auraType,
SpellInfo const *  affectedSpell 
) const

Definition at line 5187 of file Unit.cpp.

References GetTotalAuraModifier(), and AuraEffect::IsAffectingSpell().

◆ GetTotalAuraModifierByMiscMask()

◆ GetTotalAuraModifierByMiscValue()

◆ GetTotalAuraModValue()

float Unit::GetTotalAuraModValue ( UnitMods  unitMod) const

◆ GetTotalAuraMultiplier() [1/2]

◆ GetTotalAuraMultiplier() [2/2]

float Unit::GetTotalAuraMultiplier ( AuraType  auraType,
std::function< bool(AuraEffect const *)> const &  predicate 
) const

Definition at line 5028 of file Unit.cpp.

References AddPct(), GetAuraEffectsByType(), and sSpellMgr.

◆ GetTotalAuraMultiplierByAffectMask()

float Unit::GetTotalAuraMultiplierByAffectMask ( AuraType  auraType,
SpellInfo const *  affectedSpell 
) const

Definition at line 5197 of file Unit.cpp.

References GetTotalAuraMultiplier(), and AuraEffect::IsAffectingSpell().

◆ GetTotalAuraMultiplierByMiscMask()

◆ GetTotalAuraMultiplierByMiscValue()

float Unit::GetTotalAuraMultiplierByMiscValue ( AuraType  auraType,
int32  misc_value 
) const

◆ GetTotalStatValue()

◆ GetTransformSpell()

◆ GetTransGUID()

◆ GetUnitBeingMoved()

◆ GetUnitBlockChance()

◆ GetUnitCriticalChanceAgainst()

float Unit::GetUnitCriticalChanceAgainst ( WeaponAttackType  attackType,
Unit const *  victim 
) const

Definition at line 2929 of file Unit.cpp.

References GetUnitCriticalChanceDone(), and GetUnitCriticalChanceTaken().

Referenced by RollMeleeOutcomeAgainst().

◆ GetUnitCriticalChanceDone()

◆ GetUnitCriticalChanceTaken()

◆ GetUnitDodgeChance()

◆ GetUnitMissChance()

float Unit::GetUnitMissChance ( ) const

Definition at line 2825 of file Unit.cpp.

Referenced by MeleeSpellMissChance().

◆ GetUnitMovementFlags()

◆ GetUnitParryChance()

◆ GetUpdateFieldFlagsFor()

UF::UpdateFieldFlag Unit::GetUpdateFieldFlagsFor ( Player const *  target) const
overrideprotectedvirtual

◆ GetVehicle()

Vehicle * Unit::GetVehicle ( ) const
inline

Definition at line 1800 of file Unit.h.

Referenced by KillRewarder::_InitXP(), boss_flame_leviathan_defense_cannon::boss_flame_leviathan_defense_cannonAI::CanAIAttack(), boss_flame_leviathan_defense_turret::boss_flame_leviathan_defense_turretAI::CanAIAttack(), SpellInfo::CheckVehicle(), firelands_bossAI::EnterEvadeMode(), npc_argent_captainAI::EnterEvadeMode(), npc_daegarn::EnterEvadeMode(), CreatureAI::EnterEvadeMode(), VehicleJoinEvent::Execute(), Creature::ExitVehicle(), spell_putricide_choking_gas_filter::FilterTargets(), GetDirectTransport(), spell_pilgrims_bounty_on_plate::GetTable(), SmartScript::GetTargets(), GetTransGUID(), WorldSession::HandleAttackSwingOpcode(), WorldSession::HandleMoveChangeVehicleSeats(), WorldSession::HandleMovementOpcode(), spell_pilgrims_bounty_a_serving_of::HandlePlate(), WorldSession::HandleRequestVehicleNextSeat(), WorldSession::HandleRequestVehiclePrevSeat(), WorldSession::HandleRequestVehicleSwitchSeat(), spell_ulduar_cancel_stone_grip::spell_ulduar_cancel_stone_gripSpellScript::HandleScript(), WorldPackets::Party::PartyMemberFullState::Initialize(), InterruptMovementBasedAuras(), npc_tiger_matriarch::IsSummonedBy(), WorldObject::IsValidAssistTarget(), achievement_wg_didnt_stand_a_chance::OnCheck(), boss_flame_leviathan_overload_device::boss_flame_leviathan_overload_deviceAI::OnSpellClick(), OutDebugInfo(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), Vehicle::RemovePassenger(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), Creature::SelectVictim(), SetControlled(), setDeathState(), SetDisableGravity(), lfg::LFGMgr::TeleportPlayer(), npc_impaling_spear::UpdateAI(), npc_mechanolift::npc_mechanoliftAI::UpdateAI(), npc_brunnhildar_prisoner::UpdateAI(), Player::UpdateLiquidMirrorTimerFlagsOnPositionChange(), UpdateSpeed(), GameObject::Use(), Trinity::MessageDistDeliverer< PacketSender >::Visit(), and Trinity::MessageDistDelivererToHostile< PacketSender >::Visit().

◆ GetVehicleBase()

Unit * Unit::GetVehicleBase ( ) const

Definition at line 12206 of file Unit.cpp.

References Vehicle::GetBase(), and m_vehicle.

Referenced by boss_flame_leviathan_defense_cannon::boss_flame_leviathan_defense_cannonAI::CanAIAttack(), boss_flame_leviathan_defense_turret::boss_flame_leviathan_defense_turretAI::CanAIAttack(), WorldObject::CanSeeOrDetect(), spell_dh_glide::CheckCast(), CreatureAI::DoZoneInCombat(), Spell::EffectScriptEffect(), ExitVehicle(), spell_mimiron_magnetic_core::spell_mimiron_magnetic_core_SpellScript::FilterTargets(), spell_pilgrims_bounty_on_plate::GetTable(), GetTransGUID(), GetVehicleCreatureBase(), GetVehicleRoot(), spell_pilgrims_bounty_on_plate::HandleDummy(), WorldSession::HandleMoveDismissVehicle(), WorldSession::HandleRequestVehicleNextSeat(), WorldSession::HandleRequestVehiclePrevSeat(), WorldSession::HandleRequestVehicleSwitchSeat(), spell_svalna_remove_spear::HandleScript(), spell_mimiron_weld::spell_mimiron_weld_AuraScript::HandleTick(), WorldObject::IsValidAssistTarget(), boss_mimiron::boss_mimironAI::JustEngagedWith(), achievement_denyin_the_scion::OnCheck(), BattlefieldTB::OnCreatureCreate(), scene_darkmaul_plains_skeleton_army_alliance::OnSceneTriggerEvent(), boss_flame_leviathan_overload_device::boss_flame_leviathan_overload_deviceAI::OnSpellClick(), OutDebugInfo(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), Player::SetViewpoint(), npc_tournament_training_dummy::SpellHit(), Transport::TeleportTransport(), npc_snobold_vassal::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), and UpdateSpeed().

◆ GetVehicleCreatureBase()

◆ GetVehicleKit()

Vehicle * Unit::GetVehicleKit ( ) const
inline

Definition at line 1798 of file Unit.h.

Referenced by _EnterVehicle(), Creature::AddToWorld(), spell_stable_master_repo::AfterApply(), Creature::AIM_Initialize(), Creature::AtEngage(), boss_deathbringer_saurfang::boss_deathbringer_saurfang(), BaseEntity::BuildMovementUpdate(), CalculateDisplayPowerType(), Aura::CanStackWith(), VehicleAI::CheckConditions(), SmartAI::CheckConditions(), Spell::CheckEffectTarget(), Map::CreatureRelocation(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), instance_ulduar::instance_ulduar_InstanceMapScript::DespawnLeviatanVehicle(), Dismount(), npc_orb_carrier::DoAction(), npc_ioc_siege_engine::DoAction(), npc_melee_hover_disk::DoAction(), HomeMovementGenerator< T >::DoFinalize(), firelands_bossAI::EnterEvadeMode(), npc_daegarn::EnterEvadeMode(), boss_gormok::ExecuteEvent(), npc_sanitron_5000::ForceCastOnPassenger(), GetDebugInfo(), SmartScript::GetTargets(), go_wg_vehicle_teleporter::GetValidVehicle(), AuraEffect::HandleAuraControlVehicle(), spell_elementium_spike_shield::spell_elementium_spike_shield_SpellScript::HandleBouncerSpikes(), spell_icecrown_jump_jets::HandleCast(), spell_pilgrims_bounty_feast_on::HandleDummy(), spell_pilgrims_bounty_on_plate::HandleDummy(), spell_icecrown_illidan_kill_credit_master::HandleDummy(), spell_icecrown_plant_battle_standard::HandleDummy(), WorldSession::HandleEjectPassenger(), spell_eject_spirits_of_redemption::HandleHitTarget(), spell_auto_repair::spell_auto_repair_SpellScript::HandleScript(), spell_zuldrak_gymers_throw::HandleScript(), spell_gen_eject_passengers_3_8::HandleScriptEffect(), HandleSpellClick(), npc_vp_slipstream::InitializeAI(), IsOnVehicle(), boss_ick::JustDied(), npc_iceborn_protodrake::JustEngagedWith(), boss_kologarn::boss_kologarnAI::JustEngagedWith(), boss_rimefang::JustReachedHome(), spell_gal_darah_impaling_charge::Load(), spell_mimiron_plasma_blast::spell_mimiron_plasma_blast_SpellScript::Load(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadResetScript(), Mount(), npc_snobold_vassal::MountOnBoss(), Map::MoveAllCreaturesInMoveList(), npc_melee_hover_disk::MovementInform(), Scripts::Pandaria::TheJadeForest::npc_rappelling_rope::MovementInform(), npc_bone_spike::npc_bone_spike(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfang_icc(), npc_mechanolift::npc_mechanoliftAI::npc_mechanoliftAI(), npc_orb_carrier::npc_orb_carrier(), VehicleAI::OnCharmed(), spell_blood_queen_frenzied_bloodthirst::OnRemove(), spell_lord_stormsong_ancient_mindbender_aura::OnRemove(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), spell_skadi_ride_vehicle::OnRemoveVehicle(), FlameLeviathanPursuedTargetSelector::operator()(), OutDebugInfo(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), npc_bountiful_table::npc_bountiful_tableAI::PassengerBoarded(), Map::PlayerRelocation(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), boss_ignis::boss_ignis_AI::Reset(), spell_malygos_surge_of_power_warning_selector_25::SendThreeTargets(), SetCharmedBy(), boss_flame_leviathan::boss_flame_leviathanAI::SpellHit(), npc_brunnhildar_prisoner::SpellHit(), npc_storm_cloud::SpellHit(), boss_flame_leviathan::boss_flame_leviathanAI::SpellHitTarget(), npc_silverpine_orc_sea_pup::UpdateAI(), npc_mechanolift::npc_mechanoliftAI::UpdateAI(), boss_kologarn::boss_kologarnAI::UpdateAI(), boss_vx_001::boss_vx_001AI::UpdateAI(), npc_freed_protodrake::UpdateAI(), npc_hyldsmeet_protodrake::UpdateAI(), generic_vehicleAI_toc5::generic_vehicleAI_toc5AI::UpdateAI(), UpdateHeight(), UpdateOrientation(), PhasingHandler::ControlledUnitVisitor::VisitControlledOf(), npc_bg_deephaul_ravine_earthen_mine_cart_horde::WaypointPathEnded(), npc_bg_deephaul_ravine_earthen_mine_cart_alliance::WaypointPathEnded(), and npc_silverpine_forsaken_bat::WaypointReached().

◆ GetVehicleKitWeakPtr()

Trinity::unique_weak_ptr< Vehicle > Unit::GetVehicleKitWeakPtr ( ) const
inline

Definition at line 1799 of file Unit.h.

Referenced by Vehicle::GetWeakPtr().

◆ GetVehicleRoot()

Unit * Unit::GetVehicleRoot ( ) const

Definition at line 12211 of file Unit.cpp.

References GetVehicleBase().

◆ GetVictim()

Unit * Unit::GetVictim ( ) const
inline

Definition at line 738 of file Unit.h.

Referenced by EscortAI::AssistPlayerInCombatAgainst(), SmartAI::AssistPlayerInCombatAgainst(), PetAI::AttackStart(), BaseEntity::BuildMovementUpdate(), boss_supremus::CalculateHatefulStrikeTarget(), Creature::CallAssistance(), PetAI::CanAttack(), player_overlord_brandAI::DamageDealt(), boss_lady_deathwhisper::DamageTaken(), boss_selin_fireheart::DoAction(), boss_professor_putricide::DoAction(), boss_leotheras_the_blind::DoAction(), boss_ick::DoAction(), UnitAI::DoCast(), UnitAI::DoCastVictim(), ConfusedMovementGenerator< T >::DoFinalize(), Creature::DoFleeToGetAssistance(), DoMeleeAttackIfReady(), PlayerAI::DoRangedAttackIfReady(), UnitAI::DoSpellAttackIfReady(), ScriptedAI::DoStopAttack(), boss_jormungarAI::Emerge(), boss_malchezaar::boss_malchezaarAI::EnfeebleHealthEffect(), AqusirrEventHandler::Execute(), boss_epoch::boss_epochAI::ExecuteEvent(), boss_nexusprince_shaffar::ExecuteEvent(), spell_occuthar_focused_fire::spell_occuthar_focused_fire_SpellScript::FilterTargets(), spell_baleroc_shards_of_torment_target_search::FilterTargets(), FleeingMovementGenerator::Finalize(), boss_shade_of_aran::boss_aranAI::FlameWreathEffect(), ThreatManager::GetAnyTarget(), getAttackerForHelper(), SmartScript::GetTargets(), boss_moroes::GuestsAttack(), cast_commandscript::HandleCastTargetCommad(), debug_commandscript::HandleDebugThreatListCommand(), AuraEffect::HandleModPossessPet(), WorldSession::HandlePetActionHelper(), spell_dk_dancing_rune_weapon::HandleProc(), spell_nexus_lord_align_disk_aggro::HandleScript(), HasLostTarget(), Spell::InitExplicitTargets(), boss_attumen::boss_attumenAI::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro_hawk::IsSummonedBy(), npc_dark_fiend::JustAppeared(), npc_water_globule::JustAppeared(), npc_acolyte_of_shadron::JustDied(), npc_acolyte_of_vesperon::JustDied(), npc_shadow_image::JustEngagedWith(), npc_ancient_wisp::JustEngagedWith(), npc_anubarak_anub_ar_assassin::JustEngagedWith(), npc_slad_ran_constrictor::JustEngagedWith(), npc_stolen_soul::JustEngagedWith(), npc_angered_soul_fragment::JustEngagedWith(), Scripts::Pandaria::TheWanderingIsle::npc_tushui_huojin_trainee::JustEngagedWith(), npc_dark_nucleus::JustEngagedWith(), boss_emalon::JustEngagedWith(), npc_guard_generic::JustEngagedWith(), boss_midnight::boss_midnightAI::JustSummoned(), npc_silverpine_skitterweb_matriarch::JustSummoned(), boss_black_knight::boss_black_knightAI::JustSummoned(), boss_ignis::boss_ignis_AI::JustSummoned(), boss_warp_splinter::JustSummoned(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::JustSummoned(), boss_emalon::JustSummoned(), npc_emily::JustSummoned(), PetAI::KilledUnit(), boss_high_inquisitor_whitemane::MograineResurrected(), alliance_rifleman::alliance_riflemanAI::MoveInLineOfSight(), boss_twinemperorsAI::MoveInLineOfSight(), npc_tooga::npc_toogaAI::MoveInLineOfSight(), boss_nefarian::MovementInform(), boss_high_priestess_azil::boss_high_priestess_azilAI::MovementInform(), PetAI::NeedToStop(), spell_leotheras_the_blind_demon_link::OnPeriodic(), spell_omor_the_unscarred_orbital_strike_whip::OnPeriodic(), spell_malygos_vortex_visual::OnRemove(), DeathPlagueTargetSelector::operator()(), NonTankTargetSelector::operator()(), WebTargetSelector::operator()(), TargetHandler::VictimCheck::operator()(), SindragosaIcyGripTargetFilter::operator()(), PetAI::OwnerAttacked(), PetAI::OwnerAttackedBy(), Scripts::Pandaria::TheWanderingIsle::spell_feet_of_fury::PeriodicTick(), UnitAI::PrepareTargetListSelection(), SmartScript::ProcessEvent(), npc_darkfallen_noble::ScheduleSpells(), npc_guard_shattrath_faction::ScheduleVanish(), PlayerAI::SelectAttackTarget(), SimpleCharmedPlayerAI::SelectAttackTarget(), Spell::SelectImplicitAreaTargets(), SelectNearbyTarget(), PetAI::SelectNextTarget(), boss_blood_queen_lana_thel::SelectRandomTarget(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::SelectVictim(), gunship_npc_AI::SelectVictim(), Creature::SetCanMelee(), SmartAI::SetCombatMove(), SetConfused(), npc_twisted_visage::SetData(), SetFeared(), SetStunned(), FollowerAI::ShouldAssistPlayerInCombatAgainst(), StopAttackFaction(), CasterAI::UpdateAI(), SimpleCharmedPlayerAI::UpdateAI(), boss_garothi_worldbreaker::UpdateAI(), boss_alizabal::boss_alizabalAI::UpdateAI(), boss_ambassador_flamelash::boss_ambassador_flamelashAI::UpdateAI(), boss_general_angerforge::boss_general_angerforgeAI::UpdateAI(), boss_broodlord::UpdateAI(), boss_firemaw::UpdateAI(), boss_flamegor::UpdateAI(), boss_victor_nefarius::UpdateAI(), boss_vaelastrasz::UpdateAI(), boss_ragnaros::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_garaxxas::UpdateAI(), boss_selin_fireheart::UpdateAI(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), boss_maleki_the_pallid::UpdateAI(), npc_volatile_felfire_fiend::npc_volatile_felfire_fiendAI::UpdateAI(), npc_sinster_reflection::npc_sinster_reflectionAI::UpdateAI(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::UpdateAI(), boss_archimonde::UpdateAI(), npc_frost_wyrm::npc_frost_wyrmAI::UpdateAI(), npc_gargoyle::npc_gargoyleAI::UpdateAI(), alliance_rifleman::alliance_riflemanAI::UpdateAI(), hyjalAI::UpdateAI(), boss_onyxia::UpdateAI(), boss_slagmaw::UpdateAI(), boss_kurinnaxx::UpdateAI(), boss_ossirian::boss_ossirianAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), boss_fankriss::UpdateAI(), boss_skeram::boss_skeramAI::UpdateAI(), boss_veklor::boss_veklorAI::UpdateAI(), npc_muglash::npc_muglashAI::UpdateAI(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::UpdateAI(), boss_ozruk::boss_ozrukAI::UpdateAI(), boss_prince_taldaram::UpdateAI(), boss_hadronox::UpdateAI(), npc_anub_ar_skirmisher::UpdateAI(), npc_toc_hunter::UpdateAI(), npc_toc_warrior::UpdateAI(), npc_toc_dk::UpdateAI(), npc_toc_rogue::UpdateAI(), boss_bronjahm::UpdateAI(), boss_devourer_of_souls::UpdateAI(), npc_raging_ghoul::npc_raging_ghoulAI::UpdateAI(), boss_garfrost::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), npc_high_overlord_saurfang_igb::UpdateAI(), npc_muradin_bronzebeard_igb::UpdateAI(), npc_darnavan::UpdateAI(), boss_lord_marrowgar::UpdateAI(), boss_professor_putricide::UpdateAI(), npc_blazing_skeleton::UpdateAI(), boss_gothik::UpdateAI(), npc_gothik_minion_baseAI::UpdateAI(), boss_noth::UpdateAI(), boss_razuvious::UpdateAI(), boss_thaddius::UpdateAI(), boss_malygos::UpdateAI(), boss_steelbreaker::boss_steelbreakerAI::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_feral_defender::UpdateAI(), npc_detonating_lasher::npc_detonating_lasherAI::UpdateAI(), boss_ignis::boss_ignis_AI::UpdateAI(), boss_kologarn::boss_kologarnAI::UpdateAI(), boss_razorscale::UpdateAI(), npc_scourge_hulk::UpdateAI(), boss_murmur::UpdateAI(), boss_gurtogg_bloodboil::UpdateAI(), npc_maiev::UpdateAI(), boss_essence_of_anger::UpdateAI(), boss_doom_lord_kazzak::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_omor_the_unscarred::UpdateAI(), boss_alar::UpdateAI(), boss_void_reaver::UpdateAI(), boss_nethermancer_sepethrea::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), npc_nagrand_banner::npc_kil_sorrow_spellbinderAI::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), boss_anduin_wrynn::UpdateAI(), npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI(), boss_mage_toc5::boss_mage_toc5AI::UpdateAI(), boss_ionar::UpdateAI(), PossessedAI::UpdateAI(), PetAI::UpdateAI(), npc_hearthglen_crusader::UpdateAI(), npc_felmyst_vapor::UpdateAI(), InstanceScript::UpdateMinionState(), Creature::UpdateMovementCapabilities(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), boss_faction_championsAI::UpdateThreat(), CreatureAI::UpdateVictim(), npc_pet_mage_mirror_image::UpdateVictim(), npc_thorim_trashAI::UseAbility(), ValidateAttackersAndOwnTarget(), PlayerAI::VerifySpellCast(), and instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::VortexHandling().

◆ GetVignette()

Vignettes::VignetteData const * Unit::GetVignette ( ) const
inline

◆ GetVirtualItemAppearanceMod()

uint16 Unit::GetVirtualItemAppearanceMod ( uint32  slot) const

Definition at line 14513 of file Unit.cpp.

References m_unitData, and MAX_EQUIPMENT_ITEMS.

◆ GetVirtualItemId()

◆ GetVisibleAuras()

VisibleAuraContainer const & Unit::GetVisibleAuras ( ) const
inline

◆ GetWeaponDamageRange()

float Unit::GetWeaponDamageRange ( WeaponAttackType  attType,
WeaponDamageRange  type 
) const

◆ GetWeaponProcChance()

float Unit::GetWeaponProcChance ( ) const

◆ GetWildBattlePetLevel()

uint32 Unit::GetWildBattlePetLevel ( ) const
inline

Definition at line 1290 of file Unit.h.

◆ HandleAttackPowerModifier()

◆ HandleEmoteCommand()

void Unit::HandleEmoteCommand ( Emote  emoteId,
Player *  target = nullptr,
Trinity::IteratorPair< int32 const * >  spellVisualKitIds = {},
int32  sequenceVariation = 0 
)

Definition at line 1662 of file Unit.cpp.

References ANIM_MOUNT_SELF_SPECIAL, ANIM_MOUNT_SPECIAL, Trinity::IteratorPair< iterator, end_iterator >::begin(), WorldPackets::Chat::Emote::EmoteID, Trinity::IteratorPair< iterator, end_iterator >::end(), BaseEntity::GetGUID(), WorldPackets::Chat::Emote::Guid, sEmotesStore, Player::SendDirectMessage(), WorldObject::SendMessageToSet(), WorldPackets::Chat::Emote::SequenceVariation, WorldPackets::Chat::Emote::SpellVisualKitIDs, and WorldPackets::Chat::Emote::Write().

Referenced by npc_elwynn_forest_wolf::_ScheduleBeforeChasingEvents(), spell_ahune_summoning_rhyme_aura::AfterApply(), spell_pet_gen_lich_pet_emote::AfterApply(), Scripts::Pandaria::TheWanderingIsle::npc_huojin_trainee::BeginSparring(), npc_frost_sphere::DamageTaken(), Scripts::Pandaria::TheWanderingIsle::npc_li_fei_combat::DamageTaken(), CoolestFriendBaseAI::DoAction(), Scripts::Pandaria::TheWanderingIsle::npc_huojin_trainee::DoAction(), boss_illidan_stormrage::DoAction(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), npc_guard_generic::DoReplyToTextEmote(), StandUpEvent::Execute(), PartyTimeEmoteEvent::Execute(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), spell_icecrown_plant_battle_standard::HandleDummy(), spell_gen_spectator_cheer_trigger::HandleDummy(), spell_defender_of_azeroth_speak_with_mograine::HandleDummy(), npc_nokhudon_proving_grounds_nokhud_combatant::HandleEmoteSequence(), boss_felmyst::HandleFlightSequence(), npc_commandscript::HandleNpcSayCommand(), npc_commandscript::HandleNpcYellCommand(), spell_operation_gnomeregan_basic_orders_emote::HandlePeriodic(), spell_wintergrasp_activate_robotic_arms::HandleScript(), spell_gen_stand::HandleScript(), WorldSession::HandleTextEmoteOpcode(), npc_raging_ghoul::npc_raging_ghoulAI::IsSummonedBy(), npc_risen_witch_doctor::npc_risen_witch_doctorAI::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_instructor_zhi::JustAppeared(), boss_svala::JustDied(), boss_the_lich_king::JustSummoned(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::JustSummoned(), boss_slabhide::boss_slabhideAI::MovementInform(), npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::MovementInform(), boss_nightbane::boss_nightbaneAI::MovementInform(), npc_kalecgos::MovementInform(), npc_turned_champion::npc_turned_championAI::MovementInform(), npc_valarjar_paying_respect_to_odyn::MovementInform(), boss_ulgrax_the_devourer::MovementInform(), conversation_the_new_classington_estate::OnUpdate(), Scripts::Pandaria::TheWanderingIsle::npc_tushui_huojin_trainee::PlayRandomEmote(), npc_spectral_ghostly_citizen::npc_spectral_ghostly_citizenAI::ReceiveEmote(), npc_dancing_flames::ReceiveEmote(), PetAI::ReceiveEmote(), npc_feasting_valarjar::Reset(), npc_spectating_valarjar::Reset(), DarkFallenAI::Reset(), boss_sapphiron::Reset(), npc_sinclari_vh::ScheduleIntro(), npc_giant_boar_vehicle_q55879::SpellHit(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), boss_jormungarAI::Submerge(), boss_rend_blackhand::UpdateAI(), boss_vaelastrasz::UpdateAI(), boss_felblood_kaelthas::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), npc_madrigosa::UpdateAI(), boss_kalecgos::UpdateAI(), npc_vanessa_vancleef_human_heritage_lions_pride_inn_basement::UpdateAI(), npc_partygoer_pather::UpdateAI(), npc_partygoer::UpdateAI(), npc_redridge_citizen::npc_redridge_citizenAI::UpdateAI(), npc_silverpine_fallen_human::UpdateAI(), npc_silverpine_generic_actor_fenris_keep::UpdateAI(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::UpdateAI(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_ship_captain_warming_up_private::UpdateAI(), npc_survivors_healed_by_leader_beach_private< PathId, WaitTime >::UpdateAI(), npc_survivors_beach_leave_private< PathId, WaitTime >::UpdateAI(), npc_bartleby_battson::npc_bartleby_battsonAI::UpdateAI(), npc_roger_owens::npc_roger_owensAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), boss_mordresh_fire_eye::UpdateAI(), boss_ouro::boss_ouroAI::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), Scripts::Kalimdor::Durotar::npc_lazy_peon::npc_lazy_peonAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::UpdateAI(), boss_lich_king_toc::UpdateAI(), npc_tirion_toc::UpdateAI(), npc_fizzlebang_toc::UpdateAI(), npc_uther_quel_delar::npc_uther_quel_delarAI::UpdateAI(), boss_professor_putricide::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), npc_highlord_tirion_fordring_lh::UpdateAI(), boss_sapphiron::UpdateAI(), npc_valiance_keep_cannoneer::UpdateAI(), npc_minigob_manabonk::UpdateAI(), boss_illidan_stormrage::UpdateAI(), npc_akama_illidan::UpdateAI(), npc_maiev::UpdateAI(), npc_akama_shade::UpdateAI(), npc_warden_mellichar::UpdateAI(), npc_barada::npc_baradaAI::UpdateAI(), npc_watch_commander_leonus::UpdateAI(), npc_pet_gen_pandaren_monk::UpdateAI(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::UpdateEscortAI(), boss_kirtonos_the_herald::UpdateIntroEvents(), npc_millhouse_manastorm::UpdateIntroEvents(), boss_vazruden_the_herald::UpdateSpecialEvents(), Scripts::Kalimdor::Durotar::npc_darkspear_jailor::WaypointPathEnded(), boss_the_black_stalker::WaypointReached(), npc_nagrand_banner::npc_nagrand_bannerAI::WaypointReached(), npc_rocknot::npc_rocknotAI::WaypointReached(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), npc_thrall_old_hillsbrad::WaypointReached(), and npc_taretha::WaypointReached().

◆ HandleProcExtraAttackFor()

void Unit::HandleProcExtraAttackFor ( Unit *  victim,
uint32  count 
)

Definition at line 2354 of file Unit.cpp.

References AttackerStateUpdate(), and BASE_ATTACK.

Referenced by Update().

◆ HandleSpellClick() [1/2]

◆ HandleSpellClick() [2/2]

void Unit::HandleSpellClick ( Unit *  clicker,
int8  seatId = -1 
)

◆ HandleStatFlatModifier()

◆ HasAura() [1/2]

bool Unit::HasAura ( std::function< bool(Aura const *)> const &  predicate) const

Definition at line 4827 of file Unit.cpp.

References GetAuraApplication().

◆ HasAura() [2/2]

bool Unit::HasAura ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
ObjectGuid  itemCasterGUID = ObjectGuid::Empty,
uint32  reqEffMask = 0 
) const

Definition at line 4822 of file Unit.cpp.

References GetAuraApplication().

Referenced by spell_magus_telestra_clone_dies::AfterApply(), spell_alar_ashtongue_ruse_master::AfterApply(), spell_mage_alter_time_aura::AfterRemove(), spell_warl_health_funnel::ApplyEffect(), boss_leotheras_the_blind::AttackStart(), spell_sha_lava_crit_chance::CalcCritChance(), SpellInfo::CalcPowerCost(), SpellInfo::CalcProcPPM(), spell_mage_scald::CalculateDamage(), gunship_npc_AI::CanAIAttack(), npc_high_overlord_saurfang_igb::CanAIAttack(), npc_muradin_bronzebeard_igb::CanAIAttack(), npc_gunship_boarding_addAI::CanAIAttack(), boss_the_lich_king::CanAIAttack(), npc_anduin_wrynn_sylvanas::CanAIAttack(), npc_anduin_wrynn_jaina::CanAIAttack(), npc_anduin_wrynn_uther::CanAIAttack(), boss_gurtogg_bloodboil::CanAIAttack(), spell_marrowgar_coldflame_damage::CanBeAppliedOn(), Group::CanJoinBattlegroundQueue(), boss_veras_darkshadow::CanSeeAlways(), Spell::CheckCast(), spell_item_seal_of_darkshire_nobility::CheckCooldownAura(), spell_item_blur_of_talons::CheckCoordinatedAssaultActive(), spell_dru_umbral_embrace::CheckEclipse(), spell_sha_elemental_weapons::CheckEnchantments(), spell_warr_bloodthirst_enrage::CheckEnrageProc(), spell_dh_shattered_destiny::CheckFurySpent(), spell_mage_radiant_spark::CheckProc(), spell_rog_kingsbane::CheckProc(), spell_soulbind_sulfuric_emission::CheckProc(), spell_sha_hot_hand::CheckProc(), spell_dk_crimson_scourge::CheckProc(), spell_pri_holy_mending::CheckProc(), spell_mage_improved_scorch::CheckProc(), spell_sha_natures_guardian::CheckProc(), spell_pri_eternal_sanctity::CheckProc(), spell_eredar_twins_dark_flame_aura_shadow::CheckProc(), spell_eredar_twins_dark_flame_aura_fire::CheckProc(), spell_illidan_parasitic_shadowfiend_proc::CheckProc(), spell_item_conflict_rank3::CheckProc(), spell_dru_moonless_night::CheckProc(), spell_item_shadowmourne::CheckProc(), spell_item_infurious_crafted_gear_mettle::CheckProc(), spell_monk_crackling_jade_lightning_knockback_proc_aura::CheckProc(), spell_pal_light_s_beacon::CheckProc(), spell_evo_permeating_chill::CheckProc(), spell_pri_angelic_bulwark::CheckProc(), spell_mage_hot_streak::CheckProc(), SpellInfo::CheckTarget(), spell_sha_maelstrom_weapon_base::ConsumeMaelstromWeapon(), boss_king_deepbeard::DamageTaken(), boss_mandokir::DamageTaken(), boss_ozruk::boss_ozrukAI::DamageTaken(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::DamageTaken(), boss_anub_arak::DamageTaken(), npc_high_overlord_saurfang_igb::DamageTaken(), npc_muradin_bronzebeard_igb::DamageTaken(), npc_terenas_menethil::DamageTaken(), npc_feral_defender::DamageTaken(), npc_iron_construct::npc_iron_constructAI::DamageTaken(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), boss_pathaleon_the_calculator::DamageTaken(), boss_elder_stonebark::boss_elder_stonebarkAI::DamageTaken(), npc_kinetic_bomb::DoAction(), npc_nerubian_burrower::DoAction(), boss_ambassador_hellmaw::DoAction(), boss_ambassador_hellmaw::DoIntro(), Spell::EffectHeal(), Spell::EffectResurrectWithAura(), Spell::EffectScriptEffect(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::EnterEvadeMode(), npc_phantom_mage::npc_phantom_mageAI::EnterEvadeMode(), npc_phantom_hallucination::npc_phantom_hallucinationAI::EnterEvadeMode(), boss_kalecgos::EnterEvadeMode(), PartyTimeEmoteEvent::Execute(), spell_item_bracing_chill_search_jump_target::FilterTarget(), spell_mixed_elements< SpellId1, SpellId2 >::FilterTargets(), spell_volatile_foam_selector< ExcludeSpellId >::FilterTargets(), spell_the_candle_king_darkflame_pickaxe_cast::FilterTargets(), spell_frost_giant_death_plague::FilterTargets(), spell_anduin_wrynn_wicked_star_selector::FilterTargets(), spell_gen_bloodlust::FilterTargets(), spell_mage_ring_of_frost_freeze::FilterTargets(), spell_pri_purge_the_wicked_dummy::FilterTargets(), spell_warl_channel_demonfire_selector::FilterTargets(), spell_sha_maelstrom_weapon_base::GenerateMaelstromWeapon(), npc_bg_silvershard_mines_mine_cart::GetControlZone(), instance_sunwell_plateau::instance_sunwell_plateau_InstanceMapScript::GetPlayerInMap(), go_wind_stone::go_wind_stoneAI::GetPlayerTwilightSetRank(), spell_pri_power_word_radiance::GetRadianceRules(), GetUnitConditionVariable(), go_wg_vehicle_teleporter::GetValidVehicle(), spell_dh_last_resort::HandleAbsorb(), spell_rog_cheat_death::HandleAbsorb(), spell_warr_kill_or_be_killed::HandleAbsorb(), spell_item_shiver_venom_weapon_proc::HandleAdditionalProc(), spell_shade_of_medivh_vo_controller_cast::HandleAfterCast(), spell_pri_holy_word_chastise::HandleAfterHit(), OutdoorPvPSI::HandleAreaTrigger(), battleground_seething_shore::HandleAssaultPoint(), Aura::HandleAuraSpecificMods(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinOpcode(), spell_warr_charge_effect::HandleCharge(), WorldSession::HandleChatMessage(), WorldSession::HandleChatMessageAFKOpcode(), WorldSession::HandleChatMessageDNDOpcode(), spell_rog_shadowstrike::HandleCheckCast(), spell_heartsbane_triad_aura_of_thorns::HandleCheckProc(), spell_warr_rampaging_ruin::HandleCone(), spell_capacitus_polarity_charge::HandleDamage(), spell_dh_eradicate::HandleDamage(), spell_impale::HandleDamageCalc(), spell_borean_tundra_signal_alliance::HandleDummy(), spell_dk_death_strike::HandleDummy(), spell_dk_birth::HandleDummy(), spell_pal_judgment_of_justice::HandleDummy(), spell_pri_purge_the_wicked::HandleDummy(), spell_hun_trailblazer::HandleDummyTick(), spell_midsummer_braziers_hit::HandleEffectApply(), spell_storm_peaks_flaming_arrow_triggered_effect::HandleEffectApply(), spell_pri_prayer_of_mending_dummy::HandleEffectDummy(), spell_pri_holy_10_1_class_set_2pc_chooser::HandleEffectDummy(), spell_pri_shadow_mend::HandleEffectHit(), spell_pri_harsh_discipline::HandleEffectHit(), spell_warr_tenderize::HandleEffectProc(), spell_rog_shadowstrike::HandleEnergize(), spell_putricide_gaseous_bloat::HandleExtraEffect(), gm_commandscript::HandleGMVisibleCommand(), spell_warr_colossus_smash::HandleHit(), spell_garothi_annihilation_triggered::HandleHit(), spell_blades_edge_arena_game_event::HandleHit(), spell_undermine_arena_reaction_trigger_low_health::HandleHit(), spell_enigma_arena_reaction_trigger_low_health::HandleHit(), spell_zandalar_arena_reaction_trigger_low_health::HandleHit(), spell_nokhudon_proving_grounds_trigger_low_health::HandleHit(), spell_rog_poisoned_knife::HandleHit(), spell_sindragosa_frost_breath::HandleInfusion(), spell_rog_deadly_poison::HandleInstantDamage(), lookup_commandscript::HandleLookupSpellCommand(), lookup_commandscript::HandleLookupSpellIdCommand(), AuraEffect::HandleModAdvFlying(), spell_pri_crystalline_reflection::HandleOnApply(), spell_pri_power_word_shield::HandleOnApply(), spell_dru_abundance::HandleOnApplyOrReapply(), spell_hun_steady_shot::HandleOnHit(), spell_mage_ice_lance::HandleOnHit(), spell_dh_violent_transformation::HandleOnProc(), spell_pri_power_leech_passive::HandleOnProc(), spell_rog_leeching_poison::HandleOnRemove(), OPvPCapturePointZM_Graveyard::HandleOpenGo(), spell_give_me_sight_beyond_sight_periodic::HandlePeriodic(), spell_dru_barkskin::HandlePeriodic(), spell_dru_thrash_bear_bleed::HandlePeriodic(), spell_dh_enduring_torment::HandlePeriodic(), spell_dh_monster_rising::HandlePeriodic(), spell_azhiccar_player_detection::HandlePlayerDetection(), WorldSession::HandlePlayerLogin(), spell_torghast_uncontrolled_darkness_proc::HandleProc(), spell_dru_omen_of_clarity::HandleProc(), spell_baleroc_torment_AuraScript::HandleProc(), spell_eredar_twins_dark_flame_aura_shadow::HandleProc(), spell_eredar_twins_dark_flame_aura_fire::HandleProc(), spell_mage_hot_streak::HandleProc(), spell_undermine_arena_warning_countdown::HandleRemove(), spell_enigma_arena_warning_countdown::HandleRemove(), spell_warr_raging_blow_cooldown_reset::HandleResetCooldown(), spell_festergut_blighted_spores::HandleResidue(), spell_rotface_slime_spray::HandleResidue(), spell_brutallus_burn_primer::HandleScript(), spell_brutallus_burn_ally::HandleScript(), spell_hallow_end_tricky_treat::HandleScript(), spell_pilgrims_bounty_turkey_tracker::HandleScript(), spell_winter_veil_px_238_winter_wondervolt::HandleScript(), spell_freya_attuned_to_nature_dose_reduction::spell_freya_attuned_to_nature_dose_reduction_SpellScript::HandleScript(), spell_borean_tundra_magnataur_on_death_1::HandleScript(), spell_sholazar_deathbolt::HandleScript(), spell_illidari_council_judgement::HandleScript(), spell_magtheridon_shadow_grasp_cube::HandleScript(), spell_shadowmoon_quest_credit_crazed_colossus::HandleScript(), spell_hun_pet_heart_of_the_phoenix::HandleScript(), spell_warl_seduction::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), spell_warr_rampaging_ruin::HandleSingleTarget(), spell_priestess_alun_za_transfusion::HandleTransfusion(), spell_warl_soul_fire::HandleTriggers(), spell_pal_execution_sentence::HandleVisual(), SpellHistory::HasCooldown(), SpellArea::IsFitToRequirements(), npc_coldflame::IsSummonedBy(), npc_pet_pri_shadowfiend_mindbender::IsSummonedBy(), IsVampire(), lfg::LFGMgr::JoinLfg(), npc_pet_hunter_snake_trap::JustAppeared(), npc_acolyte_of_shadron::JustDied(), npc_acolyte_of_vesperon::JustDied(), boss_blood_queen_lana_thel::JustDied(), boss_professor_putricide::JustDied(), boss_sindragosa::JustDied(), boss_ymiron_the_fallen_king::JustEngagedWith(), boss_elder_brightleaf::boss_elder_brightleafAI::JustEngagedWith(), boss_elder_stonebark::boss_elder_stonebarkAI::JustEngagedWith(), boss_elder_ironbranch::boss_elder_ironbranchAI::JustEngagedWith(), npc_arthas_stratholme::npc_arthas_stratholmeAI::JustReachedHome(), npc_silverpine_sylvanas_windrunner_high_command::JustSummoned(), boss_leotheras_the_blind::KilledUnit(), spell_dh_army_unto_oneself::Load(), spell_dh_calcified_spikes::Load(), spell_dh_chaos_theory::Load(), spell_dh_chaotic_transformation::Load(), spell_dh_collective_anguish::Load(), spell_dh_darkglare_boon::Load(), spell_dh_demonic_appetite_energize::Load(), spell_dh_feast_of_souls::Load(), spell_dh_fel_flame_fortification::Load(), spell_dh_furious_gaze::Load(), spell_dh_inner_demon::Load(), spell_dh_moment_of_craving::Load(), spell_dh_repeat_decree_conduit::Load(), spell_dh_restless_hunter::Load(), spell_dh_retaliation::Load(), spell_dh_swallowed_anger::Load(), spell_dh_student_of_suffering::Load(), spell_dh_tactical_retreat::Load(), spell_dh_voidglare_boon::Load(), spell_dh_wave_of_debilitation::Load(), spell_dk_heartbreaker::Load(), spell_dk_ice_prison::Load(), spell_dk_subduing_grasp::Load(), spell_dk_vestigial_shell::Load(), spell_dk_voracious::Load(), spell_dru_astral_communion_celestial_alignment::Load(), spell_dru_flower_walk::Load(), spell_dru_mangle::Load(), spell_dru_twin_moonfire::Load(), spell_dru_umbral_embrace_damage::Load(), spell_dru_umbral_inspiration::Load(), spell_evo_call_of_ysera::Load(), spell_evo_causality_disintegrate::Load(), spell_evo_causality_pyre::Load(), spell_evo_panacea::Load(), spell_evo_ruby_embers::Load(), spell_evo_snapfire::Load(), spell_hun_aspect_of_the_fox::Load(), spell_hun_emergency_salve::Load(), spell_hun_no_hard_feelings::Load(), spell_hun_no_scope::Load(), spell_hun_posthaste::Load(), spell_hun_scouts_instincts::Load(), spell_hun_streamline::Load(), spell_mage_flame_patch::Load(), spell_mage_ignition_burst::Load(), spell_mage_improved_combustion::Load(), spell_mage_scald::Load(), spell_mage_spontaneous_combustion::Load(), spell_monk_pressure_points::Load(), spell_monk_rising_sun_kick::Load(), spell_pal_blade_of_vengeance::Load(), spell_pal_divine_auxiliary::Load(), spell_pal_holy_ritual::Load(), spell_pri_archangel::Load(), spell_pri_atonement_effect::Load(), spell_pri_auspicious_spirits::Load(), spell_pri_empyreal_blaze_extend::Load(), spell_pri_entropic_rift::Load(), spell_pri_expiation::Load(), spell_pri_harsh_discipline::Load(), spell_pri_inescapable_torment::Load(), spell_pri_mind_devourer::Load(), spell_pri_pain_transformation::Load(), spell_pri_assured_safety::Load(), spell_pri_shadow_covenant::Load(), spell_pri_translucent_image::Load(), spell_rog_airborne_irritant::Load(), spell_rog_improved_garrote::Load(), spell_rog_improved_shiv::Load(), spell_rog_leeching_poison::Load(), spell_rog_night_terrors::Load(), spell_rog_premeditation::Load(), spell_rog_shadow_focus::Load(), spell_rog_shot_in_the_dark::Load(), spell_rog_soothing_darkness::Load(), spell_sha_deluge_healing_rain::Load(), spell_sha_feral_lunge::Load(), spell_sha_molten_assault::Load(), spell_sha_molten_thunder_sundering::Load(), spell_sha_stormblast_proc::Load(), spell_sha_stormflurry::Load(), spell_sha_stormweaver::Load(), spell_sha_thorims_invocation_trigger::Load(), spell_sha_unrelenting_storms::Load(), spell_warl_absolute_corruption::Load(), spell_warl_backdraft::Load(), spell_warl_roaring_blaze::Load(), spell_warr_brutal_finish::Load(), spell_warr_cold_steel_hot_blood_bloodthirst::Load(), spell_warr_deft_experience::Load(), spell_warr_execute_refund_rage::Load(), spell_warr_frenzied_enrage::Load(), spell_warr_overpowering_finish::Load(), spell_warr_powerful_enrage::Load(), spell_warr_heroic_leap_damage::Load(), spell_warr_improved_whirlwind::Load(), spell_warr_improved_whirlwind_cleave::Load(), spell_warr_invigorating_fury::Load(), spell_warr_meat_cleaver_damage_bonus::Load(), spell_warr_meat_cleaver_damage_bonus_thunder_clap::Load(), spell_warr_raging_blow_cooldown_reset::Load(), spell_warr_rumbling_earth::Load(), spell_warr_storm_bolts::Load(), spell_warr_surge_of_adrenaline::Load(), spell_warr_vicious_contempt::Load(), CriteriaHandler::ModifierSatisfied(), WorldObject::ModSpellCastTime(), WorldObject::ModSpellDuration(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::MoveInLineOfSight(), npc_scorch_ground::npc_scorch_groundAI::MoveInLineOfSight(), npc_mageguard_dalaran::MoveInLineOfSight(), npc_guardian_pavilion::MoveInLineOfSight(), boss_ambassador_hellmaw::MoveInLineOfSight(), boss_doomwalker::MoveInLineOfSight(), npc_priestess_alun_za_spirit_of_gold::MovementInform(), spell_amanitar_potent_fungus::OnApply(), spell_dru_glyph_of_stars::OnApply(), spell_sha_spirit_wolf::OnApply(), spell_brewfest_giddyup::OnChange(), achievement_flirt_with_disaster_perf_check::OnCheck(), at_hun_binding_shot::OnCreate(), spell_warl_soul_swap_exhale::OnEffectHit(), go_gauntlet_gate::go_gauntlet_gateAI::OnGossipHello(), go_kalecgos_spectral_rift::go_kalecgos_spectral_riftAI::OnGossipHello(), go_blackfathom_altar::OnGossipHello(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::OnGossipHello(), npc_alchemist_adrianna::OnGossipHello(), npc_wg_demolisher_engineer::OnGossipHello(), npc_argent_squire_gruntling::npc_argent_squire_gruntlingAI::OnGossipSelect(), spell_rog_vanish::OnLaunchTarget(), battleground_silvershard_mines::OnMineCartCaptured(), spell_love_is_in_the_air_romantic_picnic::OnPeriodic(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), spell_brewfest_ram::OnPeriodic(), spell_hodir_flash_freeze::OnPeriodic(), spell_hodir_biting_cold_area_aura::OnPeriodic(), spell_fetch_ingredient_aura::OnRemove(), spell_dru_eclipse_dummy::OnSpellCast(), arena_cage_of_carnage::OnStart(), arena_empyrean_domain::OnStart(), arena_enigma_crucible::OnStart(), at_hor_intro_start::OnTrigger(), at_commander_dawnforge::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_cave_of_meditation::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_inside_of_cave_of_meditation::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_singing_pools_transform_base< CurseSpellID >::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_singing_pools_transform_frog::OnTrigger(), AreaTrigger_at_nats_landing::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), at_enter_the_illidari_shivarra_conversation::OnUnitEnter(), at_telash_greywing_vault_rune::OnUnitEnter(), areatrigger_find_the_lost_expedition_follower::OnUnitEnter(), at_northbound_linger::OnUnitEnter(), at_azhiccar_devour::OnUnitEnter(), at_waycrest_manor_wildfire::OnUnitEnter(), at_anduin_wrynn_blasphemy::OnUnitEnter(), at_anduin_wrynn_hopelessness::OnUnitEnter(), at_dk_death_and_decay::OnUnitEnter(), at_hun_binding_shot::OnUnitEnter(), at_priestess_alun_za_tainted_blood::OnUnitEnter(), at_shade_of_medivh_flame_wreath::OnUnitExit(), at_anduin_wrynn_hopelessness::OnUnitExit(), at_hun_binding_shot::OnUnitExit(), item_gor_dreks_ointment::OnUse(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), npc_thorim_trashAI::AIHelper::MostHPMissingInRange::operator()(), Trinity::FriendlyMissingBuffInRange::operator()(), CorruptingPlagueSearcher::operator()(), StasisFieldSearcher::operator()(), Trinity::UnitAuraCheck::operator()(), SnobolledTargetSelector::operator()(), BoneSpikeTargetSelector::operator()(), NecroticPlagueTargetCheck::operator()(), DeathPlagueTargetSelector::operator()(), FireNovaTargetCheck::operator()(), DefaultTargetSelector::operator()(), KelThuzadCharmedPlayerAI::CharmedPlayerTargetSelectPred::operator()(), WebTargetSelector::operator()(), SindragosaIcyGripTargetFilter::operator()(), spell_midsummer_test_ribbon_pole_channel::PeriodicTick(), spell_midsummer_ribbon_pole_periodic_visual::PeriodicTick(), spell_dru_germination::PickRejuvenationVariant(), BattlefieldTB::PromotePlayer(), npc_lake_frog::ReceiveEmote(), npc_dancing_flames::ReceiveEmote(), boss_najentus::RemoveImpalingSpine(), spell_sha_maelstrom_weapon_proc::RemoveMaelstromAuras(), boss_keristrasza::RemovePrison(), npc_dumpy_and_keeshan::npc_dumpy_and_keeshanAI::Reset(), npc_belnistrasz::npc_belnistraszAI::Reset(), npc_tomb_creature::npc_tomb_creatureAI::Reset(), boss_sartharion::Reset(), npc_shadron::Reset(), boss_magus_telestra::Reset(), boss_elder_brightleaf::boss_elder_brightleafAI::Reset(), boss_elder_stonebark::boss_elder_stonebarkAI::Reset(), boss_elder_ironbranch::boss_elder_ironbranchAI::Reset(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::SelectVictim(), npc_omen::SpellHit(), npc_pool_of_tar::npc_pool_of_tarAI::SpellHit(), boss_najentus::SpellHit(), npc_animated_gold::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), boss_sister_svalna::SpellHit(), npc_tournament_training_dummy::SpellHit(), npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::SpellHit(), boss_apothecary_hummel::SummonedCreatureDies(), lfg::LFGMgr::TeleportPlayer(), spell_dru_eclipse_ooc::Tick(), spell_sha_unrelenting_storms::Trigger(), spell_sha_elemental_blast::TriggerBuff(), spell_sha_molten_assault::TriggerFlameShocks(), spell_pri_unfurling_darkness::TriggerUnfurlingDarkness(), Aura::Update(), boss_garothi_worldbreaker::UpdateAI(), boss_vaelastrasz::UpdateAI(), boss_majordomo::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), boss_kirtonos_the_herald::UpdateAI(), boss_boss_ras_frostwhisper::UpdateAI(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::UpdateAI(), npc_redridge_citizen::npc_redridge_citizenAI::UpdateAI(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::UpdateAI(), boss_mandokir::UpdateAI(), npc_abomination::npc_abominationAI::UpdateAI(), boss_ossirian::boss_ossirianAI::UpdateAI(), npc_eye_tentacle::eye_tentacleAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), npc_giant_eye_tentacle::giant_eye_tentacleAI::UpdateAI(), boss_elder_nadox::UpdateAI(), boss_prince_taldaram::UpdateAI(), npc_shadron::UpdateAI(), boss_anubarak_trial::UpdateAI(), npc_nerubian_burrower::UpdateAI(), npc_toc_shaman::UpdateAI(), npc_toc_paladin::UpdateAI(), npc_toc_enh_shaman::UpdateAI(), npc_toc_retro_paladin::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), npc_gunship_boarding_leader::UpdateAI(), npc_cult_fanatic::UpdateAI(), npc_cult_adherent::UpdateAI(), boss_lord_marrowgar::UpdateAI(), npc_putricide_oozeAI::UpdateAI(), npc_ice_tomb::UpdateAI(), boss_faerlina::UpdateAI(), boss_maexxna::UpdateAI(), boss_anomalus::UpdateAI(), npc_chaotic_rift::UpdateAI(), boss_sjonnir::UpdateAI(), npc_mimirons_inferno::npc_mimirons_infernoAI::UpdateAI(), npc_freyas_ward::npc_freyas_wardAI::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), boss_elder_brightleaf::boss_elder_brightleafAI::UpdateAI(), boss_elder_stonebark::boss_elder_stonebarkAI::UpdateAI(), boss_elder_ironbranch::boss_elder_ironbranchAI::UpdateAI(), CoolestFriendBaseAI::UpdateAI(), npc_mimiron_proximity_mine::npc_mimiron_proximity_mineAI::UpdateAI(), boss_sara::boss_saraAI::UpdateAI(), npc_corruptor_tentacle::npc_corruptor_tentacleAI::UpdateAI(), npc_crusher_tentacle::npc_crusher_tentacleAI::UpdateAI(), boss_ichoron::UpdateAI(), npc_lake_frog::UpdateAI(), npc_tournament_training_dummy::UpdateAI(), boss_doom_lord_kazzak::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::UpdateAI(), npc_priestess_alun_za_spirit_of_gold::UpdateAI(), npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI(), boss_paletress::boss_paletressAI::UpdateAI(), generic_vehicleAI_toc5::generic_vehicleAI_toc5AI::UpdateAI(), npc_scorch_ground::npc_scorch_groundAI::UpdateAI(), npc_portal_eoe::UpdateAI(), npc_thorims_hammer::npc_thorims_hammerAI::UpdateAI(), npc_hodirs_fury::npc_hodirs_furyAI::UpdateAI(), npc_snaplasher::npc_snaplasherAI::UpdateAI(), npc_iron_construct::npc_iron_constructAI::UpdateAI(), battleground_silvershard_mines::UpdateCartWorldStates(), boss_ambassador_hellmaw::UpdateEscortAI(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), spell_item_amalgams_seventh_spine::UpdateSpecAura(), Spell::UpdateSpellHealPrediction(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), and violet_hold_trashAI::WaypointReached().

◆ HasAuraEffect()

◆ HasAuraState()

◆ HasAuraType()

bool Unit::HasAuraType ( AuraType  auraType) const

Definition at line 4832 of file Unit.cpp.

References m_modAuras.

Referenced by _UpdateAutoRepeatSpell(), Player::AddPvpTalent(), Spell::AddUnitTarget(), ApplyControlStatesIfNeeded(), Player::ApplySpellPowerBonus(), Attack(), AttackerStateUpdate(), SpellInfo::CanBeUsedInCombat(), CanCastSpellWhileMoving(), CancelMountAura(), Creature::CanCreatureAttack(), spell_rog_turn_the_tables_periodic_check::CheckForStun(), boss_erekem::CheckGuardAuras(), SpellInfo::CheckLocation(), spell_bem_check_fly_mount::CheckRequirement(), SpellInfo::CheckTarget(), SpellInfo::CheckTargetCreatureType(), npc_valkyr_shadowguard::DamageTaken(), DealDamage(), Creature::DoFleeToGetAssistance(), Player::DurabilityPointLossForEquipSlot(), Player::DurabilityPointsLoss(), Battleground::EndBattleground(), Player::GetBarberShopCost(), SpellHistory::GetChargeRecoveryTime(), GetMountCapability(), Player::GetPowerRegen(), GetUnitConditionVariable(), AuraEffect::HandleAllowUsingGameobjectsWhileMounted(), AuraEffect::HandleArenaPreparation(), AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraAllowTalentSwapping(), AuraEffect::HandleAuraCanTurnWhileFalling(), HandleAuraDisableGravity(), AuraEffect::HandleAuraEmpathy(), AuraEffect::HandleAuraFeatherFall(), AuraEffect::HandleAuraGhost(), AuraEffect::HandleAuraHover(), AuraEffect::HandleAuraModDmgImmunity(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), AuraEffect::HandleAuraModNoActions(), AuraEffect::HandleAuraModPacify(), AuraEffect::HandleAuraModPacifyAndSilence(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraModStalked(), AuraEffect::HandleAuraTrackStealthed(), AuraEffect::HandleAuraUntrackable(), AuraEffect::HandleAuraWaterWalk(), AuraEffect::HandleComprehendLanguage(), AuraEffect::HandleDetectAmore(), AuraEffect::HandleDisableInertia(), spell_brewfest_mount_transformation::HandleDummy(), spell_winter_veil_reindeer_transformation::HandleDummy(), Player::HandleFall(), AuraEffect::HandleForceMoveForward(), spell_eject_spirits_of_redemption::HandleHitTarget(), AuraEffect::HandleIgnoreMovementForces(), WorldSession::HandleMirrorImageDataRequest(), AuraEffect::HandleModAlternativeDefaultLanguage(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleModInvisibilityDetect(), AuraEffect::HandleModOverrideZonePVPType(), AuraEffect::HandleModStealthDetect(), AuraEffect::HandleModUnattackable(), AuraEffect::HandlePhaseAlwaysVisible(), AuraEffect::HandlePreventFleeing(), reset_commandscript::HandleResetStatsOrLevelHelper(), WorldSession::HandleSelfResOpcode(), AuraEffect::HandleSetCantSwim(), spell_gen_two_forms::HandleTransform(), WorldSession::HandleTransmogOutfitUpdateSlots(), WorldSession::HandleTransmogrifyItems(), SpellArea::IsFitToRequirements(), Player::KillPlayer(), Pet::LoadPetFromDB(), WorldSession::LogoutPlayer(), WorldObject::MagicSpellHitResult(), MeleeSpellHitResult(), MeleeSpellMissChance(), CriteriaHandler::ModifierSatisfied(), Trinity::AnyDeadUnitObjectInRangeCheck::operator()(), Player::RegenerateAll(), Player::RegenerateHealth(), Battleground::RemovePlayerAtLeave(), RestoreFaction(), Player::RewardHonor(), RollMeleeOutcomeAgainst(), Player::SendInitialPacketsAfterAddToMap(), Map::SendZoneWeather(), SetControlled(), Player::SetGameMaster(), Creature::SetSpellFocus(), ThreatReference::ShouldBeSuppressed(), TriggerOnHealthChangeAuras(), Player::Update(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), Player::UpdateAttackPowerAndDamage(), Creature::UpdateFloatingMovementFlags(), Player::UpdateLiquidMirrorTimerFlagsOnPositionChange(), Player::UpdateMirrorTimers(), Player::UpdatePvPState(), Creature::UpdateSessileMovementFlags(), Player::UpdateSpellDamageAndHealingBonus(), Player::UpdateTriggerVisibility(), and WorldSession::ValidateMovementInfo().

◆ HasAuraTypeWithAffectMask()

bool Unit::HasAuraTypeWithAffectMask ( AuraType  auraType,
SpellInfo const *  affectedSpell 
) const

◆ HasAuraTypeWithCaster()

bool Unit::HasAuraTypeWithCaster ( AuraType  auraType,
ObjectGuid  caster 
) const

◆ HasAuraTypeWithFamilyFlags()

bool Unit::HasAuraTypeWithFamilyFlags ( AuraType  auraType,
uint32  familyName,
flag128  familyFlags 
) const

Definition at line 766 of file Unit.cpp.

References GetAuraEffectsByType().

◆ HasAuraTypeWithMiscvalue()

◆ HasAuraTypeWithTriggerSpell()

bool Unit::HasAuraTypeWithTriggerSpell ( AuraType  auratype,
uint32  triggerSpell 
) const

◆ HasAuraTypeWithValue()

bool Unit::HasAuraTypeWithValue ( AuraType  auraType,
int32  value 
) const

Definition at line 4863 of file Unit.cpp.

References GetAuraEffectsByType().

◆ HasAuraWithMechanic()

bool Unit::HasAuraWithMechanic ( uint64  mechanicMask) const

◆ HasBreakableByDamageAuraType()

bool Unit::HasBreakableByDamageAuraType ( AuraType  type,
uint32  excludeAura = 0 
) const

Definition at line 774 of file Unit.cpp.

References AnyDamageMask, and GetAuraEffectsByType().

Referenced by ThreatReference::ShouldBeSuppressed().

◆ HasBreakableByDamageCrowdControlAura()

◆ HasInterruptFlag() [1/2]

bool Unit::HasInterruptFlag ( SpellAuraInterruptFlags  flags) const
inline

◆ HasInterruptFlag() [2/2]

bool Unit::HasInterruptFlag ( SpellAuraInterruptFlags2  flags) const
inline

Definition at line 1627 of file Unit.h.

References flags.

◆ HasInvisibilityAura()

bool Unit::HasInvisibilityAura ( ) const
inline

◆ HasNegativeAuraWithInterruptFlag()

template<typename InterruptFlags >
template TC_GAME_API bool Unit::HasNegativeAuraWithInterruptFlag ( InterruptFlags  flag,
ObjectGuid  guid = ObjectGuid::Empty 
) const

Definition at line 4881 of file Unit.cpp.

References HasInterruptFlag(), and m_interruptableAuras.

Referenced by GetUnitConditionVariable().

◆ HasNpcFlag()

◆ HasNpcFlag2()

bool Unit::HasNpcFlag2 ( NPCFlags2  flags) const
inline

◆ HasPetFlag()

bool Unit::HasPetFlag ( UnitPetFlag  flags) const
inline

Definition at line 906 of file Unit.h.

References flags.

Referenced by Pet::FillPetInfo(), WorldSession::HandlePetRename(), and Pet::SavePetToDB().

◆ HasPvpFlag()

bool Unit::HasPvpFlag ( UnitPVPStateFlags  flags) const
inline

Definition at line 895 of file Unit.h.

References flags.

Referenced by WorldObject::IsValidAttackTarget().

◆ HasRootAura()

bool Unit::HasRootAura ( ) const
inline

◆ HasScheduledAIChange()

bool Unit::HasScheduledAIChange ( ) const
protected

Definition at line 10293 of file Unit.cpp.

References GetAI().

Referenced by Update().

◆ HasSharedVision()

◆ HasSpell()

◆ HasSpellFocus()

virtual bool Unit::HasSpellFocus ( Spell const *  = nullptr) const
inlinevirtual

Reimplemented in Creature.

Definition at line 1513 of file Unit.h.

Referenced by WorldSession::HandlePetActionHelper().

◆ HasStealthAura()

bool Unit::HasStealthAura ( ) const
inline

◆ HasStrongerAuraWithDR()

bool Unit::HasStrongerAuraWithDR ( SpellInfo const *  auraSpellInfo,
Unit *  caster 
) const

◆ HasUnitFlag()

◆ HasUnitFlag2()

◆ HasUnitFlag3()

bool Unit::HasUnitFlag3 ( UnitFlags3  flags) const
inline

Definition at line 870 of file Unit.h.

References flags.

Referenced by npc_commandscript::HandleNpcInfoCommand().

◆ HasUnitMovementFlag()

◆ HasUnitState()

bool Unit::HasUnitState ( const uint32  f) const
inline

Definition at line 755 of file Unit.h.

Referenced by Creature::_IsTargetAcceptable(), boss_four_horsemen_lady::_UpdateAI(), boss_four_horsemen_sir::_UpdateAI(), npc_gothik_minion_spectralrider::_UpdateAI(), Player::ActivateTaxiPathTo(), ApplyControlStatesIfNeeded(), AtEngage(), Attack(), AttackerStateUpdate(), CreatureAI::AttackStart(), boss_baleroc::boss_baleroc(), Player::BuildPlayerRepop(), PathGenerator::CalculatePath(), CombatManager::CanBeginCombat(), Player::CanEquipItem(), Player::CanExecutePendingSpellCastRequest(), CanFreeMove(), spell_dk_death_grip_initial::CheckCast(), Spell::CheckCast(), Spell::CheckPetCast(), SpellInfo::CheckTarget(), CreatureUnitRelocationWorker(), boss_professor_putricide::DamageTaken(), boss_drakkari_elemental::DamageTaken(), boss_viscidus::boss_viscidusAI::DamageTaken(), DealDamageMods(), DealMeleeDamage(), DealSpellDamage(), PetAI::DoAttack(), UnitAI::DoCast(), FormationMovementGenerator::DoInitialize(), DoMeleeAttackIfReady(), PlayerAI::DoRangedAttackIfReady(), UnitAI::DoSpellAttackIfReady(), FormationMovementGenerator::DoUpdate(), Spell::EffectDistract(), Spell::EffectKnockBack(), SmartAI::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), Spell::finish(), ThreatManager::ForwardThreatForAssistingMe(), spell_pal_justicars_vengeance::HandleDamage(), spell_dru_starfall_dummy::HandleDummy(), spell_mistress_kiss::HandleDummyTick(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandlePlayerLogin(), PetAI::HandleReturnMovement(), WorldSession::HandleTextEmoteOpcode(), boss_lady_deathwhisper::Initialize(), boss_skadi::Initialize(), PointMovementGenerator::Initialize(), MalacrassCompanionBaseAI::InitializeAI(), CoolestFriendBaseAI::InitializeAI(), AdvisorBaseAI::InitializeAI(), isAttackingPlayer(), Creature::IsInEvadeMode(), isPossessedByPlayer(), isTargetableForAttack(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), ShadowswordBaseAI::JustAppeared(), npc_focus_fire::JustAppeared(), npc_tainted_elemental::JustAppeared(), boss_harbinger_skyriss_illusion::JustAppeared(), npc_coren_direbrew_sisters::JustEngagedWith(), boss_dorothee::JustEngagedWith(), boss_strawman::JustEngagedWith(), boss_tinhead::JustEngagedWith(), boss_roar::JustEngagedWith(), npc_greyheart_spellbinder::JustEngagedWith(), npc_shadowmoon_channeler::JustEngagedWith(), npc_hellfire_channeler::JustEngagedWith(), npc_solarium_priest::JustEngagedWith(), WorldObject::MagicSpellHitResult(), MeleeSpellHitResult(), MotionMaster::MoveFall(), npc_erekem_guard::npc_erekem_guard(), npc_firelands_flame_archon::npc_firelands_flame_archon(), npc_firelands_molten_flamefather::npc_firelands_molten_flamefather(), npc_guard_generic::npc_guard_generic(), npc_guard_shattrath_faction::npc_guard_shattrath_faction(), npc_nagrand_banner::npc_nagrand_bannerAI::npc_nagrand_bannerAI(), npc_skadi_trashAI::npc_skadi_trashAI(), ICCOrbControllerMinionSearch::operator()(), Trinity::FriendlyCCedInRange::operator()(), JumpCheck::operator()(), Spell::PreprocessSpellHit(), RemoveCharmedBy(), GuestBaseAI::Reset(), npc_twisted_visage::Reset(), npc_fel_infernal::Reset(), npc_cult_fanatic::Reset(), npc_cult_adherent::Reset(), DarkFallenAI::Reset(), OgreBaseAI::Reset(), Player::ResurrectPlayer(), RollMeleeOutcomeAgainst(), Player::SendInitialPacketsAfterAddToMap(), boss_novos::SetBubbled(), Player::SetClientControl(), Player::SetContestedPvP(), SetControlled(), Creature::setDeathState(), SetDisableGravity(), FollowerAI::SetFollowComplete(), FollowerAI::SetFollowPaused(), SetHover(), SetInFront(), SetStunned(), HomeMovementGenerator< T >::SetTargetLocation(), FleeingMovementGenerator::SetTargetLocation(), boss_vx_001::boss_vx_001AI::SpellHit(), lfg::LFGMgr::TeleportPlayer(), CreatureAI::TriggerAlert(), gunship_npc_AI::TriggerBurningPitch(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), FleeingMovementGenerator::Update(), PointMovementGenerator::Update(), boss_high_inquisitor_whitemane::UpdateAI(), npc_thorim_trashAI::UpdateAI(), CombatAI::UpdateAI(), CasterAI::UpdateAI(), SimpleCharmedPlayerAI::UpdateAI(), BossAI::UpdateAI(), WorldBossAI::UpdateAI(), boss_garothi_worldbreaker::UpdateAI(), npc_av_marshal_or_warmaster::UpdateAI(), boss_balinda::UpdateAI(), boss_drekthar::UpdateAI(), boss_galvangar::UpdateAI(), boss_ioc_horde_alliance::UpdateAI(), boss_amalgam_of_souls::UpdateAI(), boss_king_deepbeard::UpdateAI(), boss_ymiron_the_fallen_king::UpdateAI(), boss_rokmora::UpdateAI(), boss_guarm::UpdateAI(), npc_illidari_fighting_invasion_begins::UpdateAI(), npc_inquisitor_baleful_molten_shore::UpdateAI(), npc_fel_lord_caza_cryptic_hollow::UpdateAI(), boss_leymor::UpdateAI(), npc_arcane_tender::UpdateAI(), boss_telash_greywing::UpdateAI(), boss_argaloth::UpdateAI(), boss_occuthar::boss_occutharAI::UpdateAI(), boss_ascendant_lord_obsidius::boss_ascendant_lord_obsidiusAI::UpdateAI(), boss_beauty::boss_beautyAI::UpdateAI(), boss_karsh_steelbender::boss_karsh_steelbenderAI::UpdateAI(), boss_romogg_bonecrusher::boss_romogg_bonecrusherAI::UpdateAI(), boss_coren_direbrew::UpdateAI(), boss_drakkisath::UpdateAI(), boss_gizrul_the_slavener::UpdateAI(), boss_gyth::UpdateAI(), boss_halycon::UpdateAI(), boss_highlord_omokk::UpdateAI(), boss_lord_valthalak::UpdateAI(), boss_mother_smolderweb::UpdateAI(), boss_overlord_wyrmthalak::UpdateAI(), boss_pyroguard_emberseer::UpdateAI(), quartermaster_zigris::UpdateAI(), boss_rend_blackhand::UpdateAI(), boss_shadow_hunter_voshgajin::UpdateAI(), boss_the_beast::boss_thebeastAI::UpdateAI(), boss_urok_doomhowl::UpdateAI(), boss_warmaster_voone::UpdateAI(), boss_chromaggus::UpdateAI(), boss_ebonroc::UpdateAI(), boss_firemaw::UpdateAI(), boss_flamegor::UpdateAI(), boss_victor_nefarius::UpdateAI(), boss_nefarian::UpdateAI(), boss_razorgore::UpdateAI(), boss_vaelastrasz::UpdateAI(), boss_baron_geddon::UpdateAI(), boss_garr::UpdateAI(), boss_gehennas::UpdateAI(), boss_golemagg::UpdateAI(), boss_lucifron::UpdateAI(), boss_magmadar::UpdateAI(), boss_majordomo::UpdateAI(), boss_ragnaros::UpdateAI(), boss_shazzrah::UpdateAI(), boss_sulfuron::UpdateAI(), npc_flamewaker_priest::UpdateAI(), boss_maiden_of_virtue::UpdateAI(), boss_moroes::UpdateAI(), boss_nightbane::boss_nightbaneAI::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), boss_felblood_kaelthas::UpdateAI(), npc_felblood_kaelthas_phoenix::UpdateAI(), boss_selin_fireheart::UpdateAI(), boss_vexallus::UpdateAI(), boss_maiden_of_virtue_rtk::UpdateAI(), boss_mana_devourer::UpdateAI(), boss_shade_of_medivh::UpdateAI(), boss_shade_of_medivh_guardians_image::UpdateAI(), boss_the_curator_rtk::UpdateAI(), boss_arcanist_doan::UpdateAI(), boss_azshir_the_sleepless::UpdateAI(), npc_headless_horseman_head::UpdateAI(), boss_headless_horseman::UpdateAI(), boss_high_inquisitor_fairbanks::UpdateAI(), boss_scarlet_commander_mograine::UpdateAI(), boss_armsmaster_harlan::UpdateAI(), boss_darkmaster_gandling::UpdateAI(), boss_death_knight_darkreaver::UpdateAI(), boss_doctor_theolen_krastinov::UpdateAI(), boss_illucia_barov::UpdateAI(), boss_instructor_malicia::UpdateAI(), boss_jandice_barov::UpdateAI(), boss_kirtonos_the_herald::UpdateAI(), boss_kormok::UpdateAI(), boss_lord_alexei_barov::UpdateAI(), boss_lorekeeper_polkelt::UpdateAI(), boss_boss_ras_frostwhisper::UpdateAI(), boss_the_ravenian::UpdateAI(), boss_vectus::UpdateAI(), boss_apothecary_hummel::UpdateAI(), npc_apothecary_baxter::UpdateAI(), boss_baron_rivendare::UpdateAI(), boss_baroness_anastari::UpdateAI(), boss_cannon_master_willey::UpdateAI(), boss_dathrohan_balnazzar::UpdateAI(), boss_magistrate_barthilas::UpdateAI(), boss_maleki_the_pallid::UpdateAI(), boss_nerubenkan::UpdateAI(), boss_postmaster_malown::UpdateAI(), boss_ramstein_the_gorger::UpdateAI(), boss_timmy_the_cruel::UpdateAI(), boss_brutallus::UpdateAI(), boss_sacrolash::UpdateAI(), boss_alythess::UpdateAI(), boss_kalecgos::UpdateAI(), boss_kalecgos_human::UpdateAI(), boss_muru::UpdateAI(), boss_entropius::UpdateAI(), Scripts::EasternKingdoms::TwilightHighlands::JulakDoom::worldboss_julak_doom::UpdateAI(), boss_archaedas::UpdateAI(), boss_ironaya::UpdateAI(), Scripts::EasternKingdoms::Vashjir::Mobus::worldboss_mobus::UpdateAI(), npc_milos_gyro::npc_milos_gyro_AI::UpdateAI(), boss_twilight_corrupter::boss_twilight_corrupterAI::UpdateAI(), npc_silverpine_agatha_fenris_isle::UpdateAI(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::UpdateAI(), boss_akilzon::UpdateAI(), boss_daakara::boss_daakaraAI::UpdateAI(), boss_halazzi::UpdateAI(), boss_hexlord_malacrass::UpdateAI(), boss_janalai::UpdateAI(), boss_nalorakk::UpdateAI(), boss_grilek::UpdateAI(), boss_hazzarah::UpdateAI(), boss_jindo_the_godbreaker::boss_jindo_the_godbreakerAI::UpdateAI(), boss_kilnara::UpdateAI(), boss_mandokir::UpdateAI(), boss_renataki::UpdateAI(), boss_venoxis::UpdateAI(), boss_wushoolay::UpdateAI(), boss_zanzil::boss_zanzilAI::UpdateAI(), boss_doomwalker_anniversary::UpdateAI(), boss_lord_kazzak_anniversary::UpdateAI(), boss_tunk::UpdateAI(), npc_blackfathom_deeps_event::UpdateAI(), boss_kelris::UpdateAI(), boss_anetheron::UpdateAI(), boss_archimonde::UpdateAI(), boss_azgalor::UpdateAI(), boss_kazrogal::UpdateAI(), boss_rage_winterchill::UpdateAI(), boss_mal_ganis::boss_mal_ganisAI::UpdateAI(), boss_captain_skarloc::UpdateAI(), boss_epoch_hunter::UpdateAI(), boss_lieutenant_drake::UpdateAI(), boss_aeonus::UpdateAI(), boss_chrono_lord_deja::UpdateAI(), boss_temporus::UpdateAI(), npc_harbinger_of_flame::npc_harbinger_of_flameAI::UpdateAI(), npc_egg_pile::npc_egg_pileAI::UpdateAI(), boss_anraphet::UpdateAI(), boss_earthrager_ptah::UpdateAI(), boss_temple_guardian_anhuur::UpdateAI(), boss_general_husam::UpdateAI(), boss_lockmaw::UpdateAI(), npc_lockmaw_augh_boss::UpdateAI(), boss_onyxia::UpdateAI(), boss_adarogg::UpdateAI(), boss_dark_shaman_koranthal::UpdateAI(), boss_lava_guard_gordoth::UpdateAI(), boss_slagmaw::UpdateAI(), boss_amnennar_the_coldbringer::UpdateAI(), boss_glutton::UpdateAI(), boss_mordresh_fire_eye::UpdateAI(), boss_tuten_kash::UpdateAI(), npc_belnistrasz::npc_belnistraszAI::UpdateAI(), boss_ayamiss::UpdateAI(), boss_buru::UpdateAI(), boss_kurinnaxx::UpdateAI(), boss_moam::UpdateAI(), boss_rajaxx::UpdateAI(), npc_andorov::UpdateAI(), boss_kri::UpdateAI(), boss_vem::UpdateAI(), boss_yauj::UpdateAI(), boss_fankriss::UpdateAI(), boss_huhuran::UpdateAI(), boss_sartura::UpdateAI(), npc_sartura_royal_guard::UpdateAI(), npc_cairne_bloodhoof::UpdateAI(), boss_azhiccar::UpdateAI(), boss_orator_krix_vizk::UpdateAI(), boss_the_candle_king::UpdateAI(), boss_edna::UpdateAI(), boss_skarmorak::UpdateAI(), npc_helena_gentle_witch_hunt::UpdateAI(), boss_aqusirr::UpdateAI(), boss_aqusirr_aqualing::UpdateAI(), boss_lord_stormsong::UpdateAI(), boss_lord_stormsong_intro_npc< ConvoIntroSpellId, ConvoOutroSpellId >::UpdateAI(), TidesageCouncilSharedAI::UpdateAI(), HeartsbaneTriadSharedAI::UpdateAI(), boss_lord_waycrest::UpdateAI(), boss_lady_waycrest::UpdateAI(), boss_soulbound_goliath::UpdateAI(), npc_matron_bryndle::UpdateAI(), boss_corborus::boss_corborusAI::UpdateAI(), npc_rock_borer::npc_rock_borerAI::UpdateAI(), boss_high_priestess_azil::boss_high_priestess_azilAI::UpdateAI(), boss_ozruk::boss_ozrukAI::UpdateAI(), boss_slabhide::boss_slabhideAI::UpdateAI(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::UpdateAI(), boss_amanitar::UpdateAI(), boss_elder_nadox::UpdateAI(), npc_ahnkahar_nerubian::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_prince_taldaram::UpdateAI(), boss_anub_arak::UpdateAI(), boss_hadronox::UpdateAI(), boss_krik_thir::UpdateAI(), npc_watcher_gashra::UpdateAI(), npc_watcher_narjil::UpdateAI(), npc_watcher_silthik::UpdateAI(), npc_anub_ar_warrior::UpdateAI(), npc_anub_ar_skirmisher::UpdateAI(), npc_anub_ar_shadowcaster::UpdateAI(), boss_baltharus_the_warborn::UpdateAI(), npc_baltharus_the_warborn_clone::UpdateAI(), boss_general_zarithrian::UpdateAI(), npc_onyx_flamecaller::UpdateAI(), boss_halion::UpdateAI(), boss_twilight_halion::UpdateAI(), npc_orb_carrier::UpdateAI(), boss_saviana_ragefire::UpdateAI(), boss_anubarak_trial::UpdateAI(), npc_nerubian_burrower::UpdateAI(), npc_toc_druid::UpdateAI(), npc_toc_shaman::UpdateAI(), npc_toc_paladin::UpdateAI(), npc_toc_priest::UpdateAI(), npc_toc_shadow_priest::UpdateAI(), npc_toc_warlock::UpdateAI(), npc_toc_mage::UpdateAI(), npc_toc_hunter::UpdateAI(), npc_toc_boomkin::UpdateAI(), npc_toc_warrior::UpdateAI(), npc_toc_dk::UpdateAI(), npc_toc_rogue::UpdateAI(), npc_toc_enh_shaman::UpdateAI(), npc_toc_retro_paladin::UpdateAI(), npc_toc_pet_warlock::UpdateAI(), boss_jaraxxus::UpdateAI(), npc_mistress_of_pain::UpdateAI(), boss_northrend_beastsAI::UpdateAI(), npc_snobold_vassal::UpdateAI(), boss_jormungarAI::UpdateAI(), boss_twin_baseAI::UpdateAI(), boss_king_dred::UpdateAI(), boss_novos::UpdateAI(), boss_tharon_ja::UpdateAI(), boss_trollgore::UpdateAI(), boss_bronjahm::UpdateAI(), boss_devourer_of_souls::UpdateAI(), boss_falric::boss_falricAI::UpdateAI(), boss_marwyn::boss_marwynAI::UpdateAI(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::UpdateAI(), npc_ghostly_priest::npc_ghostly_priestAI::UpdateAI(), npc_phantom_mage::npc_phantom_mageAI::UpdateAI(), npc_shadowy_mercenary::npc_shadowy_mercenaryAI::UpdateAI(), npc_spectral_footman::npc_spectral_footmanAI::UpdateAI(), npc_tortured_rifleman::npc_tortured_riflemanAI::UpdateAI(), npc_frostsworn_general::npc_frostsworn_generalAI::UpdateAI(), npc_spiritual_reflection::npc_spiritual_reflectionAI::UpdateAI(), npc_raging_ghoul::npc_raging_ghoulAI::UpdateAI(), npc_risen_witch_doctor::npc_risen_witch_doctorAI::UpdateAI(), npc_lumbering_abomination::npc_lumbering_abominationAI::UpdateAI(), npc_quel_delar_sword::npc_quel_delar_swordAI::UpdateAI(), boss_garfrost::UpdateAI(), boss_ick::UpdateAI(), boss_tyrannus::UpdateAI(), npc_ymirjar_flamebearer::UpdateAI(), boss_drakkari_colossus::UpdateAI(), boss_drakkari_elemental::UpdateAI(), boss_moorabi::UpdateAI(), boss_blood_council_controller::UpdateAI(), boss_prince_keleseth_icc::UpdateAI(), boss_prince_taldaram_icc::UpdateAI(), boss_prince_valanar_icc::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), boss_deathbringer_saurfang::UpdateAI(), boss_festergut::UpdateAI(), npc_stinky_icc::UpdateAI(), npc_gunship_boarding_leader::UpdateAI(), npc_darnavan::UpdateAI(), boss_lord_marrowgar::UpdateAI(), boss_professor_putricide::UpdateAI(), boss_rotface::UpdateAI(), npc_precious_icc::UpdateAI(), boss_sindragosa::UpdateAI(), npc_spinestalker::UpdateAI(), npc_rimefang_icc::UpdateAI(), npc_sindragosa_trash::UpdateAI(), boss_sister_svalna::UpdateAI(), npc_captain_arnath::UpdateAI(), npc_captain_brandon::UpdateAI(), npc_captain_grondel::UpdateAI(), npc_captain_rupert::UpdateAI(), npc_frostwing_ymirjar_vrykul::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), npc_shambling_horror_icc::UpdateAI(), npc_raging_spirit::UpdateAI(), npc_valkyr_shadowguard::UpdateAI(), boss_valithria_dreamwalker::UpdateAI(), npc_the_lich_king_controller::UpdateAI(), npc_risen_archmage::UpdateAI(), npc_blazing_skeleton::UpdateAI(), npc_suppresser::UpdateAI(), npc_gluttonous_abomination::UpdateAI(), npc_rotting_frost_giant::UpdateAI(), npc_icc_nerubar_broodkeeper::UpdateAI(), boss_faerlina::UpdateAI(), boss_gluth::UpdateAI(), boss_kelthuzad::UpdateAI(), boss_noth::UpdateAI(), boss_thaddius::UpdateAI(), boss_malygos::UpdateAI(), boss_keristrasza::UpdateAI(), boss_magus_telestra::UpdateAI(), boss_ormorok::UpdateAI(), boss_drakos::UpdateAI(), boss_eregos::UpdateAI(), boss_urom::UpdateAI(), boss_varos::UpdateAI(), boss_general_bjarngrim::UpdateAI(), npc_bjarngrim_stormforged_lieutenant::UpdateAI(), boss_volkhan::UpdateAI(), npc_volkhan_molten_golem::UpdateAI(), boss_krystallus::UpdateAI(), boss_maiden_of_grief::UpdateAI(), boss_sjonnir::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_steelbreaker::boss_steelbreakerAI::UpdateAI(), boss_runemaster_molgeim::boss_runemaster_molgeimAI::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), boss_auriaya::UpdateAI(), npc_sanctum_sentry::UpdateAI(), npc_feral_defender::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), boss_elder_brightleaf::boss_elder_brightleafAI::UpdateAI(), boss_elder_stonebark::boss_elder_stonebarkAI::UpdateAI(), boss_elder_ironbranch::boss_elder_ironbranchAI::UpdateAI(), boss_general_vezax::boss_general_vezaxAI::UpdateAI(), boss_saronite_animus::boss_saronite_animusAI::UpdateAI(), boss_hodir::UpdateAI(), boss_ignis::boss_ignis_AI::UpdateAI(), boss_kologarn::boss_kologarnAI::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::UpdateAI(), boss_vx_001::boss_vx_001AI::UpdateAI(), boss_aerial_command_unit::boss_aerial_command_unitAI::UpdateAI(), npc_mimiron_assault_bot::npc_mimiron_assault_botAI::UpdateAI(), boss_razorscale::UpdateAI(), npc_darkrune_watcher::UpdateAI(), npc_darkrune_guardian::UpdateAI(), npc_darkrune_sentinel::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), npc_runic_colossus::npc_runic_colossusAI::UpdateAI(), npc_ancient_rune_giant::npc_ancient_rune_giantAI::UpdateAI(), npc_sif::npc_sifAI::UpdateAI(), boss_xt002::UpdateAI(), npc_life_spark::UpdateAI(), boss_sara::boss_saraAI::UpdateAI(), boss_yogg_saron::boss_yogg_saronAI::UpdateAI(), npc_guardian_of_yogg_saron::npc_guardian_of_yogg_saronAI::UpdateAI(), npc_corruptor_tentacle::npc_corruptor_tentacleAI::UpdateAI(), npc_crusher_tentacle::npc_crusher_tentacleAI::UpdateAI(), npc_immortal_guardian::npc_immortal_guardianAI::UpdateAI(), npc_yogg_saron_keeper::npc_yogg_saron_keeperAI::UpdateAI(), boss_ingvar_the_plunderer::UpdateAI(), boss_keleseth::UpdateAI(), npc_vrykul_skeleton::UpdateAI(), npc_enslaved_proto_drake::UpdateAI(), npc_ritual_channeler::UpdateAI(), boss_archavon::UpdateAI(), boss_emalon::UpdateAI(), npc_tempest_minion::UpdateAI(), boss_koralon::UpdateAI(), boss_toravon::UpdateAI(), npc_tournament_training_dummy::UpdateAI(), boss_exarch_maladaar::UpdateAI(), boss_shirrak_the_dead_watcher::UpdateAI(), npc_ethereal_beacon::UpdateAI(), npc_ethereal_apprentice::UpdateAI(), boss_anzu::UpdateAI(), boss_blackheart_the_inciter::UpdateAI(), boss_grandmaster_vorpil::UpdateAI(), boss_murmur::UpdateAI(), npc_angered_soul_fragment::UpdateAI(), boss_gurtogg_bloodboil::UpdateAI(), boss_illidan_stormrage::UpdateAI(), npc_akama_illidan::UpdateAI(), npc_flame_of_azzinoth::UpdateAI(), npc_maiev::UpdateAI(), boss_illidari_council::UpdateAI(), boss_high_nethermancer_zerevor::UpdateAI(), boss_lady_malande::UpdateAI(), boss_reliquary_of_souls::UpdateAI(), boss_essence_of_suffering::UpdateAI(), boss_essence_of_desire::UpdateAI(), boss_essence_of_anger::UpdateAI(), boss_teron_gorefiend::UpdateAI(), npc_doom_blossom::UpdateAI(), npc_shadowy_construct::UpdateAI(), boss_doom_lord_kazzak::UpdateAI(), boss_doomwalker::UpdateAI(), boss_fathomlord_karathress::UpdateAI(), FathomGuardBaseAI::UpdateAI(), boss_hydross_the_unstable::UpdateAI(), boss_lady_vashj::UpdateAI(), boss_leotheras_the_blind::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_morogrim_tidewalker::UpdateAI(), boss_mekgineer_steamrigger::UpdateAI(), boss_mennu_the_betrayer::UpdateAI(), boss_quagmirran::UpdateAI(), boss_rokmar_the_crackler::UpdateAI(), boss_swamplord_muselek::UpdateAI(), npc_claw::UpdateAI(), boss_the_black_stalker::UpdateAI(), boss_broggok::UpdateAI(), boss_kelidan_the_breaker::UpdateAI(), boss_omor_the_unscarred::UpdateAI(), boss_vazruden_the_herald::UpdateAI(), boss_vazruden::UpdateAI(), boss_watchkeeper_gargolmar::UpdateAI(), boss_magtheridon::UpdateAI(), boss_grand_warlock_nethekurse::UpdateAI(), boss_warbringer_omrogg::UpdateAI(), npc_millhouse_manastorm::UpdateAI(), boss_dalliah_the_doomsayer::UpdateAI(), boss_harbinger_skyriss::UpdateAI(), boss_wrath_scryer_soccothrates::UpdateAI(), boss_zereketh_the_unbound::UpdateAI(), boss_commander_sarannis::UpdateAI(), boss_high_botanist_freywinn::UpdateAI(), boss_laj::UpdateAI(), boss_thorngrin_the_tender::UpdateAI(), boss_warp_splinter::UpdateAI(), boss_alar::UpdateAI(), boss_high_astromancer_solarian::UpdateAI(), boss_kaelthas::UpdateAI(), boss_void_reaver::UpdateAI(), boss_gatewatcher_gyrokill::UpdateAI(), boss_gatewatcher_iron_hand::UpdateAI(), boss_mechano_lord_capacitus::UpdateAI(), boss_nethermancer_sepethrea::UpdateAI(), boss_pathaleon_the_calculator::UpdateAI(), npc_maghar_captive::npc_maghar_captiveAI::UpdateAI(), npc_kurenai_captive::npc_kurenai_captiveAI::UpdateAI(), npc_nagrand_banner::npc_kil_sorrow_spellbinderAI::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::UpdateAI(), Scripts::Pandaria::TheWanderingIsle::npc_li_fei_combat::UpdateAI(), npc_pet_mage_mirror_image::UpdateAI(), npc_pet_shaman_fire_elemental::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::UpdateAI(), boss_anduin_wrynn::UpdateAI(), npc_anduin_wrynn_lost_soul::UpdateAI(), npc_anduin_wrynn_fiendish_soul::UpdateAI(), npc_anduin_wrynn_monstrous_soul::UpdateAI(), boss_remnant_of_a_fallen_king::UpdateAI(), npc_anduin_wrynn_grim_reflection::UpdateAI(), npc_anduin_wrynn_sylvanas::UpdateAI(), npc_anduin_wrynn_jaina::UpdateAI(), npc_anduin_wrynn_uther::UpdateAI(), emerald_dragonAI::UpdateAI(), npc_priestess_alun_za_spirit_of_gold::UpdateAI(), boss_volkaal::UpdateAI(), boss_the_golden_serpent::UpdateAI(), npc_kings_rest_animated_guardian::UpdateAI(), npc_kings_rest_shadow_borne_warrior::UpdateAI(), npc_kings_rest_shadow_borne_witch_doctor::UpdateAI(), npc_kings_rest_shadow_borne_champion::UpdateAI(), boss_cragmaw_the_infested::UpdateAI(), npc_cragmaw_blood_tick::UpdateAI(), boss_elder_leaxa::UpdateAI(), npc_blood_effigy::UpdateAI(), boss_sporecaller_zancha::UpdateAI(), npc_sporecaller_zancha_musashitake::UpdateAI(), PetAI::UpdateAI(), npc_gunship_rocketeer::UpdateAI(), npc_faerlina_add::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAICombat(), npc_crok_scourgebane::UpdateEscortAI(), boss_ambassador_hellmaw::UpdateEscortAI(), UpdateSplinePosition(), SmartScript::UpdateTimer(), npc_pet_mage_mirror_image::UpdateVictim(), and violet_hold_trashAI::violet_hold_trashAI().

◆ HasUnitTypeMask()

◆ HasVisibleAura()

bool Unit::HasVisibleAura ( AuraApplication *  aurApp) const
inline

Definition at line 1620 of file Unit.h.

Referenced by AuraApplication::BuildUpdatePacket().

◆ haveOffhandWeapon()

◆ HealBySpell()

◆ HealthAbovePct()

◆ HealthAbovePctHealed()

bool Unit::HealthAbovePctHealed ( float  pct,
uint32  heal 
) const
inline

◆ HealthBelowPct()

bool Unit::HealthBelowPct ( float  pct) const
inline

Definition at line 804 of file Unit.h.

Referenced by spell_warl_shadowburn::CalcCritChance(), spell_warl_drain_soul::CalculateDamage(), spell_mage_scald::CalculateDamage(), spell_warr_overpowering_finish::CalculateDamage(), spell_hun_bullseye::CheckEffectProc(), spell_soulbind_sulfuric_emission::CheckProc(), spell_mage_improved_scorch::CheckProc(), spell_sha_natures_guardian::CheckProc(), Scripts::EasternKingdoms::TwilightHighlands::JulakDoom::spell_julak_doom_dark_whisper::CheckProc(), spell_warr_t3_prot_8p_bonus::CheckProc(), spell_monk_save_them_all::CheckProc(), npc_akama_shade::DamageTaken(), boss_hadronox::DamageTaken(), boss_illidan_stormrage::DamageTaken(), boss_houndmaster_loksey::ExecuteEvent(), GetUnitCriticalChanceTaken(), spell_pri_shadow_word_death::HandleDamageCalculation(), spell_warl_deaths_embrace_impl::HandleDamageOrHealingCalculation(), spell_warr_colossus_smash::HandleHit(), spell_headless_horseman_head_periodic::HandleHPCheck(), spell_dru_cultivation::HandleOnTick(), AuraEffect::HandleTriggerSpellOnHealthPercent(), ScriptedAI::HealthBelowPct(), npc_guard_generic::JustEngagedWith(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipHello(), spell_warr_kill_or_be_killed_warrior::OnRemove(), Trinity::FriendlyBelowHpPctEntryInRange::operator()(), npc_wild_wyrm::PassengerBoarded(), SpellCritChanceTaken(), Update(), boss_elder_nadox::UpdateAI(), boss_krik_thir::UpdateAI(), boss_xt002::UpdateAI(), npc_akama_illidan::UpdateAI(), and npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI().

◆ HealthBelowPctDamaged()

bool Unit::HealthBelowPctDamaged ( float  pct,
uint32  damage 
) const
inline

Definition at line 805 of file Unit.h.

Referenced by spell_item_highfathers_machination::CheckHealth(), spell_gen_proc_below_pct_damaged::CheckProc(), spell_pri_angelic_bulwark::CheckProc(), boss_garothi_worldbreaker::DamageTaken(), boss_balinda::DamageTaken(), boss_amalgam_of_souls::DamageTaken(), boss_king_deepbeard::DamageTaken(), npc_inquisitor_baleful_molten_shore::DamageTaken(), boss_argaloth::DamageTaken(), boss_coren_direbrew::DamageTaken(), boss_general_angerforge::boss_general_angerforgeAI::DamageTaken(), boss_magmus::boss_magmusAI::DamageTaken(), boss_nefarian::DamageTaken(), boss_baron_geddon::DamageTaken(), boss_golemagg::DamageTaken(), npc_core_rager::DamageTaken(), boss_magmadar::DamageTaken(), boss_attumen::boss_attumenAI::DamageTaken(), boss_midnight::boss_midnightAI::DamageTaken(), boss_moroes::DamageTaken(), boss_azshir_the_sleepless::DamageTaken(), boss_bloodmage_thalnos::DamageTaken(), boss_herod::DamageTaken(), boss_high_inquisitor_fairbanks::DamageTaken(), boss_interrogator_vishas::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), boss_armsmaster_harlan::DamageTaken(), boss_doctor_theolen_krastinov::DamageTaken(), boss_kormok::DamageTaken(), boss_dathrohan_balnazzar::DamageTaken(), boss_hogger::DamageTaken(), boss_randolph_moloch::DamageTaken(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::DamageTaken(), boss_halazzi::DamageTaken(), boss_hexlord_malacrass::DamageTaken(), boss_janalai::DamageTaken(), boss_mandokir::DamageTaken(), boss_doomwalker_anniversary::DamageTaken(), boss_lord_kazzak_anniversary::DamageTaken(), npc_sparring_partner_exiles_reach::DamageTaken(), npc_sparring_partner_combat_training::DamageTaken(), npc_blackfathom_deeps_event::DamageTaken(), boss_aku_mai::DamageTaken(), boss_earthrager_ptah::DamageTaken(), boss_temple_guardian_anhuur::DamageTaken(), boss_lockmaw::DamageTaken(), boss_landslide::DamageTaken(), boss_lava_guard_gordoth::DamageTaken(), boss_ayamiss::DamageTaken(), boss_buru::DamageTaken(), boss_kurinnaxx::DamageTaken(), boss_rajaxx::DamageTaken(), boss_huhuran::DamageTaken(), boss_sartura::DamageTaken(), npc_helena_gentle_witch_hunt::DamageTaken(), boss_aqusirr::DamageTaken(), HeartsbaneTriadSharedAI::DamageTaken(), boss_lord_waycrest::DamageTaken(), boss_ozruk::boss_ozrukAI::DamageTaken(), boss_anub_arak::DamageTaken(), npc_anub_ar_crusher::DamageTaken(), boss_baltharus_the_warborn::DamageTaken(), boss_drakkari_colossus::DamageTaken(), boss_drakkari_elemental::DamageTaken(), boss_eck::DamageTaken(), npc_gunship::npc_gunshipAI::DamageTaken(), npc_high_overlord_saurfang_igb::DamageTaken(), npc_muradin_bronzebeard_igb::DamageTaken(), npc_gunship_boarding_addAI::DamageTaken(), npc_shambling_horror_icc::DamageTaken(), npc_valkyr_shadowguard::DamageTaken(), boss_valithria_dreamwalker::DamageTaken(), boss_keristrasza::DamageTaken(), boss_magus_telestra::DamageTaken(), boss_loken::DamageTaken(), boss_volkhan::DamageTaken(), boss_sjonnir::DamageTaken(), boss_algalon_the_observer::DamageTaken(), boss_razorscale::DamageTaken(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), npc_immortal_guardian::npc_immortal_guardianAI::DamageTaken(), boss_ymiron::DamageTaken(), boss_exarch_maladaar::DamageTaken(), boss_mother_shahraz::DamageTaken(), boss_fathomlord_karathress::DamageTaken(), boss_lady_vashj::DamageTaken(), boss_leotheras_the_blind::DamageTaken(), boss_morogrim_tidewalker::DamageTaken(), boss_mekgineer_steamrigger::DamageTaken(), boss_rokmar_the_crackler::DamageTaken(), boss_hungarfen::DamageTaken(), npc_claw::DamageTaken(), boss_high_king_maulgar::DamageTaken(), boss_omor_the_unscarred::DamageTaken(), boss_vazruden_the_herald::DamageTaken(), boss_vazruden::DamageTaken(), boss_watchkeeper_gargolmar::DamageTaken(), boss_magtheridon::DamageTaken(), boss_grand_warlock_nethekurse::DamageTaken(), npc_millhouse_manastorm::DamageTaken(), boss_dalliah_the_doomsayer::DamageTaken(), boss_wrath_scryer_soccothrates::DamageTaken(), boss_commander_sarannis::DamageTaken(), boss_high_astromancer_solarian::DamageTaken(), boss_kaelthas::DamageTaken(), boss_pathaleon_the_calculator::DamageTaken(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), npc_nagrand_banner::npc_kil_sorrow_spellbinderAI::DamageTaken(), npc_nagrand_banner::npc_kil_sorrow_deathswornAI::DamageTaken(), npc_nagrand_banner::npc_giselda_the_croneAI::DamageTaken(), npc_nagrand_banner::npc_warmaul_shamanAI::DamageTaken(), npc_anduin_wrynn_monstrous_soul::DamageTaken(), npc_kings_rest_animated_guardian::DamageTaken(), boss_felblood_kaelthas::DamageTaken(), boss_halion::DamageTaken(), boss_twilight_halion::DamageTaken(), boss_thorim::boss_thorimAI::DamageTaken(), Scripts::Pandaria::TheWanderingIsle::npc_tushui_huojin_trainee::DamageTaken(), Scripts::Pandaria::TheWanderingIsle::npc_li_fei_combat::DamageTaken(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), npc_dumpy_and_keeshan::npc_dumpy_and_keeshanAI::DamageTaken(), npc_big_earl::npc_big_earlAI::DamageTaken(), boss_archimonde::DamageTaken(), and boss_hadronox::DamageTaken().

◆ Heartbeat()

void Unit::Heartbeat ( )
overridevirtual

◆ IncrDiminishing()

◆ InitCharmInfo()

CharmInfo * Unit::InitCharmInfo ( )

Definition at line 10447 of file Unit.cpp.

References m_charmInfo.

Referenced by Guardian::Guardian(), Minion::Minion(), Pet::Pet(), and SetCharmedBy().

◆ InitStatBuffMods()

void Unit::InitStatBuffMods ( )

◆ InitTamedPet()

◆ InterruptMovementBasedAuras()

void Unit::InterruptMovementBasedAuras ( )
private

◆ InterruptNonMeleeSpells()

void Unit::InterruptNonMeleeSpells ( bool  withDelayed,
uint32  spellid = 0,
bool  withInstant = true 
)

Definition at line 3253 of file Unit.cpp.

References CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, InterruptSpell(), and m_currentSpells.

Referenced by Player::ActivateTalentGroup(), spell_magtheridon_shadow_grasp::AfterRemove(), CleanupBeforeRemoveFromMap(), CombatStop(), boss_the_lich_king::DamageTaken(), boss_taerar::boss_taerarAI::DamageTaken(), boss_garothi_worldbreaker::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), boss_temple_guardian_anhuur::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), HeartsbaneTriadSharedAI::DamageTaken(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::DamageTaken(), boss_volazj::DamageTaken(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), boss_ingvar_the_plunderer::DamageTaken(), boss_ymiron::DamageTaken(), boss_essence_of_suffering::DamageTaken(), boss_essence_of_desire::DamageTaken(), boss_felblood_kaelthas::DamageTaken(), boss_sacrolash::DamageTaken(), boss_alythess::DamageTaken(), boss_illidan_stormrage::DamageTaken(), DealDamage(), boss_maiden_of_virtue_rtk::DoAction(), npc_raging_spirit::DoAction(), boss_leotheras_the_blind::DoAction(), npc_earthen_ring_flamecaller::DoAction(), boss_razorscale::DoAction(), npc_expedition_trapper::DoAction(), boss_illidan_stormrage::DoAction(), npc_sironas::npc_sironasAI::DoAction(), npc_ranshalla::npc_ranshallaAI::DoContinueEscort(), LightningFieldEvent::Execute(), boss_curator::boss_curatorAI::ExecuteEvent(), boss_illidan_stormrage::ExecuteSpecialEvents(), boss_thorim::boss_thorimAI::FinishEncounter(), WorldSession::HandleCancelCastOpcode(), HeartsbaneTriadSharedAI::HandleClaimIris(), AuraEffect::HandleFeignDeath(), boss_felmyst::HandleFlightSequence(), WorldSession::HandleLootOpcode(), boss_lady_waycrest::HealLordWaycrest(), npc_kayn_sunfury_ashtongue_intro_private::JustAppeared(), npc_sevis_brightflame_ashtongue_gateway_private::JustAppeared(), boss_freya::boss_freyaAI::JustDied(), npc_greyheart_spellbinder::JustEngagedWith(), npc_shadowmoon_channeler::JustEngagedWith(), npc_hellfire_channeler::JustEngagedWith(), SmartAI::JustEngagedWith(), boss_ymiron_the_fallen_king::JustEngagedWith(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::JustEngagedWith(), boss_baltharus_the_warborn::JustEngagedWith(), boss_gal_darah::JustEngagedWith(), npc_frostwing_ymirjar_vrykul::JustEngagedWith(), boss_algalon_the_observer::JustEngagedWith(), boss_kelidan_the_breaker::JustEngagedWith(), npc_risen_archmage::JustEnteredCombat(), PetAI::KilledUnit(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::OnHealthDepleted(), dummy_dragonAI::OpenPortal(), SmartScript::ProcessAction(), boss_twinemperorsAI::SetAfterTeleport(), setDeathState(), boss_shade_of_aran::boss_aranAI::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), conversation_the_invasion_begins::StartCloneMovement(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), PetAI::StopAttack(), StopAttackFaction(), boss_garothi_worldbreaker::SummonedCreatureDies(), Player::TeleportTo(), boss_aqusirr::ToggleSplit(), CasterAI::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_madrigosa::UpdateAI(), boss_kalecgos::UpdateAI(), hyjalAI::UpdateAI(), boss_onyxia::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_devourer_of_souls::UpdateAI(), boss_malygos::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), boss_svala::UpdateAI(), npc_warden_mellichar::UpdateAI(), boss_kaelthas::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::UpdateAI(), boss_remnant_of_a_fallen_king::UpdateAI(), boss_eadric::boss_eadricAI::UpdateAI(), boss_paletress::boss_paletressAI::UpdateAI(), boss_mage_toc5::boss_mage_toc5AI::UpdateAI(), boss_hunter_toc5::boss_hunter_toc5AI::UpdateAI(), boss_ionar::UpdateAI(), PetAI::UpdateAI(), boss_vazruden_the_herald::UpdateSpecialEvents(), and npc_pet_mage_mirror_image::UpdateVictim().

◆ InterruptSpell()

void Unit::InterruptSpell ( CurrentSpellTypes  spellType,
bool  withDelayed = true,
bool  withInstant = true,
SpellCastResult  result = SPELL_FAILED_INTERRUPTED,
Optional< SpellCastResult >  resultOther = {},
ObjectGuid const &  interrupter = ObjectGuid::Empty 
)

Definition at line 3158 of file Unit.cpp.

References Creature::AI(), Spell::cancel(), CURRENT_AUTOREPEAT_SPELL, Spell::GetCastTime(), Spell::GetSpellInfo(), Spell::getState(), BaseEntity::GetTypeId(), IsAIEnabled(), Spell::IsInterruptable(), m_currentSpells, CreatureAI::OnSpellFailed(), Player::SendAutoRepeatCancel(), Spell::SetReferencedFromCurrent(), SPELL_STATE_CHANNELING, SPELL_STATE_FINISHED, SPELL_STATE_LAUNCHED, Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, and TYPEID_UNIT.

Referenced by _UpdateAutoRepeatSpell(), Player::ActivateTaxiPathTo(), AtEnterCombat(), Attack(), AttackStop(), CastStop(), Spell::EffectInterruptCast(), VehicleJoinEvent::Execute(), WorldSession::HandleCancelAuraOpcode(), WorldSession::HandleCancelChanneling(), spell_hun_scatter_shot::HandleDummy(), WorldSession::HandlePetActionHelper(), spell_yogg_saron_diminsh_power::spell_yogg_saron_diminsh_power_AuraScript::HandleProc(), InterruptNonMeleeSpells(), InterruptSpellsWithPreventionTypeOnAuraApply(), npc_harbinger_of_flame::npc_harbinger_of_flameAI::JustEngagedWith(), boss_archimonde::JustEngagedWith(), npc_pet_gen_pandaren_monk::ReceiveEmote(), RemoveAurasWithInterruptFlags(), Player::RemoveItemDependentAurasAndCasts(), SetCurrentCastSpell(), boss_flame_leviathan::boss_flame_leviathanAI::SpellHit(), npc_sif::npc_sifAI::SpellHit(), boss_high_botanist_freywinn::SpellHit(), boss_corla::boss_corlaAI::UpdateAI(), npc_belnistrasz::npc_belnistraszAI::UpdateAI(), npc_pet_gen_pandaren_monk::UpdateAI(), Scripts::EasternKingdoms::StormwindCity::npc_jaina_proudmoore_tides_of_war::WaypointPathEnded(), and npc_7th_legion_magus_sanctum_of_the_sages::WaypointReached().

◆ IsAffectedByDiminishingReturns()

virtual bool Unit::IsAffectedByDiminishingReturns ( ) const
inlinevirtual

◆ IsAIEnabled()

bool Unit::IsAIEnabled ( ) const
inline

Definition at line 678 of file Unit.h.

Referenced by _RegisterAreaTrigger(), _RegisterDynObject(), _UnregisterAreaTrigger(), _UnregisterDynObject(), AddGameObject(), Creature::AtEngage(), Creature::CanAlwaysSee(), spell_icehowl_trample::CheckTargets(), spell_baleroc_blades_of_baleroc::ChooseBlade(), CreatureUnitRelocationWorker(), SummonList::DoActionImpl(), Spell::TargetInfo::DoDamageAndTriggers(), Spell::GOTargetInfo::DoTargetSpellHit(), SummonList::DoZoneInCombat(), GetDebugInfo(), debug_commandscript::HandleDebugBoundaryCommand(), spell_headless_horseman_head_is_dead::HandleDummy(), spell_garothi_cannon_chooser::HandleDummyEffect(), spell_auriaya_agro_creator::HandleDummyEffect(), spell_ulduar_random_aggro_periodic::HandleEffectPeriodic(), spell_guardians_breath::HandleHit(), spell_silverpine_release_diseased_mutant_bush_chicken::HandleHit(), npc_commandscript::HandleNpcEvadeCommand(), spell_ahnkahet_shadow_sickle::HandlePeriodic(), WorldSession::HandlePetActionHelper(), spell_headless_horseman_send_head::HandleScriptEffect(), spell_headless_horseman_command_head_request_body::HandleScriptEffect(), spell_headless_horseman_return_head::HandleScriptEffect(), spell_headless_horseman_sprouting::HandleScriptEffect(), HandleSpellClick(), spell_dreamwalker_summon_suppresser::HandleSummon(), spell_garothi_fel_bombardment_selector::HandleWarningEffect(), TempSummon::InitSummon(), InterruptSpell(), npc_kayn_sunfury_ashtongue_intro_private::JustAppeared(), npc_cragmaw_blood_tick::JustAppeared(), npc_ley_line_sprouts::JustSummoned(), Kill(), spell_marrowgar_bone_spike_graveyard::Load(), npc_animated_gold::MovementInform(), spell_headless_horseman_yell_timer::OnApply(), instance_azure_vault::instance_azure_vault_InstanceMapScript::OnCreatureGroupDepleted(), at_guardians_breath< ColorSpellId >::at_guardians_breathAI< ColorSpell >::OnRemove(), SmartScript::ProcessAction(), RemoveGameObjectImpl(), Vehicle::RemovePassenger(), Creature::Update(), and boss_malygos::UpdateAI().

◆ IsAlive()

bool Unit::IsAlive ( ) const
inline

Definition at line 1205 of file Unit.h.

References ALIVE.

Referenced by _CreateAuraApplication(), CreatureAI::_EnterEvadeMode(), _EnterVehicle(), KillRewarder::_InitGroupData(), Player::_LoadItem(), BossAI::_Reset(), WorldBossAI::_Reset(), KillRewarder::_RewardHonor(), KillRewarder::_RewardKillCredit(), KillRewarder::_RewardXP(), AddAura(), Map::AddPlayerToMap(), Spell::AddUnitTarget(), spell_sunken_temple_hex_of_jammalan::AfterRemove(), boss_janalai::AllEggsWereHatched(), npc_amanishi_hatcher::AreEggsHatchedA(), npc_amanishi_hatcher::AreEggsHatchedB(), Creature::AtDisengage(), AtStartOfEncounter(), Attack(), AttackerStateUpdate(), PetAI::AttackStart(), npc_snobold_vassal::AttackStart(), boss_malchezaar::boss_malchezaarAI::AxesCleanup(), boss_four_horsemen_baseAI::boss_four_horsemen_baseAI(), Player::BuyCurrencyFromVendorSlot(), Player::BuyItemFromVendorSlot(), CalcAbsorbResist(), CalculateMeleeDamage(), CalculateSpellDamageTaken(), boss_ionar::CallBackSparks(), Creature::CallForHelp(), npc_pet_mage_mirror_image::CanAIAttack(), Creature::CanAssistTo(), PetAI::CanAttack(), CombatManager::CanBeginCombat(), Player::CanCaptureTowerPoint(), Player::CanInteractWithQuestGiver(), CreatureGroup::CanLeaderStartMoving(), boss_thorim::boss_thorimAI::CanStartPhase2(), Player::CanUseBattlegroundObject(), Player::CanUseItem(), Player::CastItemCombatSpell(), Player::CheckAreaExplore(), spell_redridge_control_ettin::CheckCast(), Spell::CheckCast(), spell_razorscale_flame_breath::CheckDamage(), spell_devourer_of_souls_mirrored_soul_proc::CheckProc(), spell_item_necrotic_touch::CheckProc(), spell_item_shadowmourne::CheckProc(), spell_putricide_mutation_init::CheckRequirementInternal(), Map::CheckRespawn(), SpellInfo::CheckTarget(), instance_violet_hold::instance_violet_hold_InstanceMapScript::CheckWipe(), netherspite_infernal::netherspite_infernalAI::Cleanup(), CreatureUnitRelocationWorker(), instance_dire_maul::instance_dire_maul_InstanceMapScript::CrystalCreatureCheck(), boss_prince_taldaram::DamageTaken(), DealDamageMods(), DealMeleeDamage(), DealSpellDamage(), npc_brann_hos::DespawnDwarf(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::DestroyDoor(), boss_dorothee::DoAction(), boss_archaedas::DoAction(), npc_vault_warder::DoAction(), boss_ossirian::boss_ossirianAI::DoAction(), boss_rajaxx::DoAction(), npc_andorov::DoAction(), boss_krik_thir::DoAction(), boss_sister_svalna::DoAction(), npc_crok_scourgebane::DoAction(), boss_gluth::DoAction(), boss_teron_gorefiend::DoAction(), boss_lady_vashj::DoAction(), npc_greyheart_spellbinder::DoAction(), boss_high_king_maulgar::DoAction(), boss_grand_warlock_nethekurse::DoAction(), npc_expedition_trapper::DoAction(), npc_expedition_engineer::DoAction(), boss_erekem::DoAction(), boss_ichoron::DoAction(), spell_hun_masters_call::DoCheckCast(), WorldSession::DoLootRelease(), Spell::TargetInfo::DoTargetSpellHit(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomcheck(), Spell::EffectAddExtraAttacks(), Spell::EffectEnergize(), Spell::EffectEnergizePct(), Spell::EffectEnvironmentalDMG(), Spell::EffectFeedPet(), Spell::EffectHeal(), Spell::EffectHealMaxHealth(), Spell::EffectHealMechanical(), Spell::EffectHealPct(), Spell::EffectHealthLeech(), Spell::EffectInstaKill(), Spell::EffectInterruptCast(), Spell::EffectPowerBurn(), Spell::EffectPowerDrain(), Spell::EffectResurrect(), Spell::EffectResurrectNew(), Spell::EffectResurrectPet(), Spell::EffectResurrectWithAura(), Spell::EffectSchoolDMG(), Spell::EffectScriptEffect(), Spell::EffectSelfResurrect(), Spell::EffectSkinPlayerCorpse(), Spell::EffectThreat(), Spell::EffectWeaponDmg(), Battleground::EndBattleground(), Arena::EndBattleground(), boss_malchezaar::boss_malchezaarAI::EnfeebleHealthEffect(), boss_malchezaar::boss_malchezaarAI::EnfeebleResetHealth(), hyjalAI::EnterEvadeMode(), boss_thaddius::EnterEvadeMode(), GuardAI::EnterEvadeMode(), npc_sparring_partner_exiles_reach::EnterEvadeMode(), npc_sparring_partner_combat_training::EnterEvadeMode(), gunship_npc_AI::EnterEvadeMode(), npc_high_overlord_saurfang_igb::EnterEvadeMode(), npc_muradin_bronzebeard_igb::EnterEvadeMode(), npc_terenas_menethil::EnterEvadeMode(), boss_kelthuzad::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), npc_pet_pri_lightwell::EnterEvadeMode(), Player::EnvironmentalDamage(), Player::EquipItem(), npc_wild_wyrm::EvadeCheck(), Battleground::EventPlayerLoggedOut(), BattleExperienceEvent::Execute(), VehicleJoinEvent::Execute(), DelayedMovementEvent::Execute(), Creature::ExitVehicle(), UnitAura::FillTargetMap(), spell_anduin_wrynn_wicked_star_selector::FilterTargets(), AssistanceMovementGenerator::Finalize(), Creature::ForcedDespawn(), CreatureGroup::FormationReset(), OPvPCapturePointNA::GetAliveGuardsCount(), Battleground::GetAlivePlayersCountByTeam(), FollowerAI::GetLeaderForFollower(), GetNextRandomRaidMemberOrPet(), Player::GetNPCIfCanInteractWith(), GetPartyMembers(), Pet::GivePetXP(), Player::GiveXP(), boss_moroes::GuestsAttack(), WorldSession::HandleAreaTriggerOpcode(), AuraEffect::HandleAuraModFixate(), AuraEffect::HandleAuraModTotalThreat(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleChatMessage(), misc_commandscript::HandleDamageCommand(), debug_commandscript::HandleDebugThreatListCommand(), misc_commandscript::HandleDieCommand(), Player::HandleFall(), WorldSession::HandleInitiateTradeOpcode(), AuraEffect::HandleModDetaunt(), AuraEffect::HandleModTaunt(), AuraEffect::HandleModTotalPercentStat(), WorldSession::HandleMovementOpcode(), WorldSession::HandleMoveWorldportAck(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetWanderDistanceCommand(), AuraEffect::HandleObsModPowerAuraTick(), WorldSession::HandleOpenItemOpcode(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), WorldSession::HandlePetAction(), WorldSession::HandlePetCancelAuraOpcode(), WorldSession::HandlePetStopAttack(), misc_commandscript::HandlePInfoCommand(), spell_item_mana_drain::HandleProc(), spell_warr_kill_or_be_killed_target::HandleProc(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleReclaimCorpse(), spell_rotface_large_ooze_combine::HandleScript(), spell_marrowgar_bone_spike_graveyard::HandleSpikes(), AuraEffect::HandleSpiritOfRedemption(), WorldSession::HandleSummonResponseOpcode(), WorldSession::HandleTextEmoteOpcode(), CreatureGroup::HasAliveMembers(), WorldPackets::Party::PartyMemberFullState::Initialize(), FleeingMovementGenerator::Initialize(), boss_priestess_delrissa::InitializeLackeys(), Player::IsAtGroupRewardDistance(), Player::IsAtRecruitAFriendDistance(), Creature::IsInvisibleDueToDespawn(), Player::IsOutdoorPvPActive(), Player::IsPetNeedBeTemporaryUnsummoned(), isTargetableForAttack(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), Spell::IsValidDeadOrAliveTarget(), AELootCreatureCheck::IsValidLootTarget(), npc_joren_ironstock::JustAppeared(), boss_priestess_lackey_commonAI::JustDied(), npc_fel_crystal::JustDied(), npc_chained_spirit::JustDied(), npc_watcher_gashra::JustDied(), npc_watcher_narjil::JustDied(), npc_watcher_silthik::JustDied(), npc_acolyte_of_shadron::JustDied(), npc_acolyte_of_vesperon::JustDied(), boss_freya::boss_freyaAI::JustDied(), boss_emalon::JustEngagedWith(), npc_green_dragon_combat_trigger::JustExitedCombat(), Kill(), CreatureGroup::LeaderStartedMoving(), Player::LoadCorpse(), Player::LoadFromDB(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadInitializeScript(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadResetScript(), WorldObject::MagicSpellHitResult(), CriteriaHandler::ModifierSatisfied(), npc_snobold_vassal::MountOnBoss(), npc_twiggy_flathead::npc_twiggy_flatheadAI::MoveInLineOfSight(), boss_selin_fireheart::MovementInform(), npc_guard_generic::npc_guard_generic(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::OnCreatureCreate(), instance_gundrak::instance_gundrak_InstanceMapScript::OnCreatureCreate(), instance_oculus::instance_oculus_InstanceMapScript::OnCreatureCreate(), instance_shadow_labyrinth::instance_shadow_labyrinth_InstanceMapScript::OnCreatureCreate(), Scripts::Pandaria::TheWanderingIsle::at_inside_of_cave_of_meditation::OnExit(), go_prince_taldaram_sphere::OnGossipHello(), containment_sphere::OnGossipHello(), CreatureAI::OnOwnerCombatInteraction(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::OnPlayerLeave(), npc_daegarn::OnQuestAccept(), spell_illidari_council_seal::OnRemove(), at_dragonspire_hall::OnTrigger(), at_blackrock_stadium::OnTrigger(), at_nearby_scarshield_infiltrator::OnTrigger(), at_silverpine_forsaken_rear_guard::OnTrigger(), at_silverpine_no_escape::OnTrigger(), Scripts::EasternKingdoms::Westfall::at_westfall_two_shoed_lou_thugs::OnTrigger(), Scripts::EasternKingdoms::Westfall::at_westfall_small_time_hustler::OnTrigger(), at_commander_dawnforge::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_cave_of_meditation::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_inside_of_cave_of_meditation::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_singing_pools_transform_base< CurseSpellID >::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_singing_pools_transform_frog::OnTrigger(), AreaTrigger_at_legion_teleporter::OnTrigger(), AreaTrigger_at_nats_landing::OnTrigger(), AreaTrigger_at_area_52_entrance::OnTrigger(), at_sylvanas_windrunner_z_check::OnUnitEnter(), at_anduin_wrynn_blasphemy::OnUnitEnter(), at_anduin_wrynn_hopelessness::OnUnitEnter(), at_sporecaller_zancha_intro::OnUnitEnter(), at_anduin_wrynn_hopelessness::OnUnitExit(), TrashRespawnWorker::operator()(), ICCOrbControllerMinionSearch::operator()(), Trinity::AnyDeadUnitObjectInRangeCheck::operator()(), Trinity::NearestCreatureEntryWithLiveStateInObjectRangeCheck::operator()(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), Trinity::PlayerAtMinimumRangeAway::operator()(), Trinity::AnyDeadUnitObjectInRangeCheck::operator()(), Trinity::AnyPlayerInPositionRangeCheck::operator()(), Trinity::NearestPlayerInObjectRangeCheck::operator()(), Trinity::MostHPMissingInRange::operator()(), Trinity::MostHPPercentMissingInRange::operator()(), Trinity::FriendlyBelowHpPctEntryInRange::operator()(), Trinity::NearestAttackableNoTotemUnitInObjectRangeCheck::operator()(), npc_thorim_trashAI::AIHelper::MostHPMissingInRange::operator()(), Trinity::FriendlyCCedInRange::operator()(), Trinity::FriendlyMissingBuffInRange::operator()(), Trinity::AnyUnfriendlyUnitInObjectRangeCheck::operator()(), Trinity::AnyFriendlyUnitInObjectRangeCheck::operator()(), Trinity::AnyGroupedUnitInObjectRangeCheck::operator()(), Trinity::AnyUnitInObjectRangeCheck::operator()(), Trinity::AnyDeadUnitCheck::operator()(), Trinity::AllFriendlyCreaturesInGrid::operator()(), FrostwingVrykulSearcher::operator()(), Trinity::WorldObjectSpellTargetCheck::operator()(), PetAI::OwnerAttacked(), PetAI::OwnerAttackedBy(), SmartScript::ProcessEvent(), FormationMgr::RemoveCreatureFromGroup(), Group::RemoveMember(), Battleground::RemovePlayerAtLeave(), Player::RepopAtGraveyard(), boss_moroes::Reset(), npc_frostwing_ymirjar_vrykul::Reset(), boss_four_horsemen_baseAI::Reset(), boss_kelthuzad::Reset(), npc_dragonflayer_forge_master::Reset(), boss_ambassador_hellmaw::Reset(), Creature::Respawn(), Player::RewardPlayerAndGroupAtEvent(), boss_erekem::ScheduleTasks(), SendMeleeAttackStop(), SetConfused(), Player::setDeathState(), SetDisableGravity(), SetFeared(), SetHover(), Player::SetPetSlot(), Creature::SetSpellFocus(), SetStunned(), FleeingMovementGenerator::SetTargetLocation(), Battlefield::ShowNpc(), npc_pet_dk_ebon_gargoyle::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), boss_volazj::SpellHitTarget(), npc_malformed_ooze::SpellHitTarget(), PetAI::StopAttack(), PassengerController::SummonCreatures(), Player::SwapItem(), lfg::LFGMgr::TeleportPlayer(), Player::TeleportTo(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadResetScript(), TempSummon::Update(), Totem::Update(), Creature::Update(), Puppet::Update(), Player::Update(), Update(), ChaseMovementGenerator::Update(), TimedFleeingMovementGenerator::Update(), FollowMovementGenerator::Update(), FleeingMovementGenerator::Update(), TotemAI::UpdateAI(), SmartAI::UpdateAI(), npc_grimstone::npc_grimstoneAI::UpdateAI(), boss_selin_fireheart::UpdateAI(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), hyjalAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_hadronox_foeAI::UpdateAI(), npc_risen_archmage::UpdateAI(), boss_gluth::UpdateAI(), boss_emalon::UpdateAI(), boss_void_reaver::UpdateAI(), npc_spark_of_ionar::UpdateAI(), PetAI::UpdateAI(), npc_air_force_bots::npc_air_force_botsAI::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), npc_tooga::npc_toogaAI::UpdateFollowerAI(), InstanceScript::UpdateMinionState(), Player::UpdateMirrorTimers(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), CreatureAI::UpdateVictim(), Player::UpdateZone(), GameObject::Use(), Trinity::CreatureRelocationNotifier::Visit(), npc_giant_infernal::npc_giant_infernalAI::WaypointReached(), npc_abomination::npc_abominationAI::WaypointReached(), npc_ghoul::npc_ghoulAI::WaypointReached(), npc_necromancer::npc_necromancerAI::WaypointReached(), npc_banshee::npc_bansheeAI::WaypointReached(), npc_crypt_fiend::npc_crypt_fiendAI::WaypointReached(), npc_fel_stalker::npc_fel_stalkerAI::WaypointReached(), npc_frost_wyrm::npc_frost_wyrmAI::WaypointReached(), npc_gargoyle::npc_gargoyleAI::WaypointReached(), and npc_demolitionist_legoso::npc_demolitionist_legosoAI::WaypointReached().

◆ IsAlwaysDetectableFor()

bool Unit::IsAlwaysDetectableFor ( WorldObject const *  seer) const
overrideprotectedvirtual

◆ IsAlwaysVisibleFor()

bool Unit::IsAlwaysVisibleFor ( WorldObject const *  seer) const
overrideprotectedvirtual

◆ IsAreaSpiritHealer()

◆ IsAreaSpiritHealerIndividual()

bool Unit::IsAreaSpiritHealerIndividual ( ) const
inline

◆ IsArmorer()

bool Unit::IsArmorer ( ) const
inline

Definition at line 1035 of file Unit.h.

References UNIT_NPC_FLAG_REPAIR.

◆ isAttackingPlayer()

◆ isAttackReady()

◆ IsAuctioner()

bool Unit::IsAuctioner ( ) const
inline

Definition at line 1034 of file Unit.h.

References UNIT_NPC_FLAG_AUCTIONEER.

◆ IsBanker()

bool Unit::IsBanker ( ) const
inline

Definition at line 1029 of file Unit.h.

References UNIT_NPC_FLAG_BANKER.

◆ IsBattleMaster()

bool Unit::IsBattleMaster ( ) const
inline

Definition at line 1028 of file Unit.h.

References UNIT_NPC_FLAG_BATTLEMASTER.

Referenced by Creature::isCanInteractWithBattleMaster().

◆ IsBlockCritical()

bool Unit::IsBlockCritical ( ) const

◆ IsCharmed()

◆ IsCharmedOwnedByPlayerOrPlayer()

◆ IsCombatDisallowed()

bool Unit::IsCombatDisallowed ( ) const
inline

Definition at line 1884 of file Unit.h.

Referenced by CombatManager::CanBeginCombat().

◆ IsContestedGuard()

bool Unit::IsContestedGuard ( ) const

Definition at line 12328 of file Unit.cpp.

References WorldObject::GetFactionTemplateEntry().

◆ IsControlledByPlayer()

◆ IsCritter()

◆ IsDamageReducedByArmor()

◆ isDead()

bool Unit::isDead ( ) const
inline

Definition at line 1207 of file Unit.h.

References CORPSE, and DEAD.

Referenced by npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), boss_flame_leviathan::boss_flame_leviathanAI::DoAction(), Spell::EffectStuck(), Spell::EffectSummonPet(), YmironSoulSiphonVisual::Execute(), WorldSession::HandleAzeriteEssenceActivateEssence(), Player::HandleFall(), npc_commandscript::HandleNpcShowLootCommand(), misc_commandscript::HandleRespawnCommand(), Creature::HasSpellFocus(), UnitAI::InitializeAI(), npc_troll_volunteer::InitializeAI(), BloodPrincesBossAI::InitializeAI(), npc_spinestalker::InitializeAI(), npc_rimefang_icc::InitializeAI(), npc_sindragosa_trash::InitializeAI(), boss_sister_svalna::InitializeAI(), boss_anubrekhan::InitializeAI(), boss_faerlina::InitializeAI(), boss_razuvious::InitializeAI(), boss_flame_leviathan::boss_flame_leviathanAI::InitializeAI(), Player::isAllowedToLoot(), SmartAI::JustAppeared(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), Player::LearnPvpTalent(), Player::LearnTalent(), CriteriaHandler::ModifierSatisfied(), at_tidesage_council_reinforcing_ward::OnCreate(), at_guardians_breath< ColorSpellId >::at_guardians_breathAI< ColorSpell >::OnRemove(), at_telash_greywing_vault_rune::OnRemove(), Scripts::Pandaria::TheWanderingIsle::at_min_dimwind_captured::OnTrigger(), AreaTrigger_at_scent_larkorwi::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), AreaTrigger_at_sholazar_waygate::OnTrigger(), at_fel_lord_caza_intro::OnUnitEnter(), at_telash_greywing_vault_rune::OnUnitExit(), Scripts::Pandaria::TheWanderingIsle::HuojinTraineePartnerSearch::operator()(), Scripts::Pandaria::TheWanderingIsle::TushuiTraineeSearch::operator()(), Map::PlayerCannotEnter(), Player::PrepareGossipMenu(), SmartScript::ProcessAction(), Player::RepopAtGraveyard(), npc_anubisath_sentinel::aqsentinelAI::Reset(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ResetBossEncounter(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), npc_grimstone::npc_grimstoneAI::UpdateAI(), npc_ice_tomb::UpdateAI(), and boss_anomalus::UpdateAI().

◆ IsDisallowedMountForm()

◆ IsDuringRemoveFromWorld()

bool Unit::IsDuringRemoveFromWorld ( ) const
inline

Definition at line 1836 of file Unit.h.

Referenced by _AddAura(), and Aura::CanBeAppliedOn().

◆ isDying()

bool Unit::isDying ( ) const
inline

Definition at line 1206 of file Unit.h.

References JUST_DIED.

Referenced by Creature::IsInvisibleDueToDespawn(), and SetHover().

◆ IsEngaged()

◆ IsEngagedBy()

bool Unit::IsEngagedBy ( Unit const *  who) const
inline

◆ IsFalling()

◆ IsFeared()

bool Unit::IsFeared ( ) const
inline

Definition at line 1105 of file Unit.h.

References SPELL_AURA_MOD_FEAR.

Referenced by Trinity::FriendlyCCedInRange::operator()().

◆ IsFFAPvP()

◆ IsFlying()

◆ IsFrozen()

bool Unit::IsFrozen ( ) const
inline

Definition at line 1108 of file Unit.h.

References AURA_STATE_FROZEN.

◆ IsFullHealth()

◆ IsGossip()

bool Unit::IsGossip ( ) const
inline

Definition at line 1025 of file Unit.h.

References UNIT_NPC_FLAG_GOSSIP.

Referenced by Player::SendQuestReward().

◆ IsGravityDisabled()

bool Unit::IsGravityDisabled ( ) const
inline

◆ IsGuardian()

◆ IsGuildMaster()

bool Unit::IsGuildMaster ( ) const
inline

Definition at line 1027 of file Unit.h.

References UNIT_NPC_FLAG_PETITIONER.

◆ IsHighestExclusiveAura()

bool Unit::IsHighestExclusiveAura ( Aura const *  aura,
bool  removeOtherAuraApplications = false 
)

◆ IsHighestExclusiveAuraEffect()

◆ IsHovering()

bool Unit::IsHovering ( ) const
inline

◆ IsHunterPet()

◆ IsImmunedToAuraPeriodicTick()

◆ IsImmunedToDamage() [1/2]

◆ IsImmunedToDamage() [2/2]

◆ IsImmunedToSpell()

◆ IsImmunedToSpellEffect()

◆ IsImmuneToAll()

bool Unit::IsImmuneToAll ( ) const
inline

Definition at line 1057 of file Unit.h.

◆ IsImmuneToNPC()

bool Unit::IsImmuneToNPC ( ) const
inline

◆ IsImmuneToPC()

bool Unit::IsImmuneToPC ( ) const
inline

◆ isInAccessiblePlaceFor()

◆ isInBackInMap()

bool Unit::isInBackInMap ( Unit const *  target,
float  distance,
float  arc = float(M_PI) 
) const

◆ IsInCombat()

bool Unit::IsInCombat ( ) const
inline

Definition at line 1073 of file Unit.h.

References UNIT_FLAG_IN_COMBAT.

Referenced by boss_four_horsemen_lady::_UpdateAI(), boss_four_horsemen_sir::_UpdateAI(), Player::ActivateTaxiPathTo(), npc_anubisath_sentinel::aqsentinelAI::CallBuddiesToAttack(), Player::CanEquipItem(), Player::CanUnequipItem(), Spell::CheckCast(), spell_icc_teleport_check::CheckCombat(), SpellInfo::CheckTarget(), boss_krik_thir::DoAction(), boss_hodir::DoAction(), npc_greyheart_spellbinder::DoAction(), boss_grand_warlock_nethekurse::DoAction(), gunship_npc_AI::EnterEvadeMode(), Player::EquipItem(), ScriptedAI::ForceCombatStop(), spell_dru_travel_form::GetFormSpellId(), Player::GetNPCIfCanInteractWith(), Player::GetPowerRegen(), Player::GetQuestDialogStatus(), GetUnitConditionVariable(), UF::ViewerDependentValue< UF::UnitData::NpcFlagsTag >::GetValue(), UF::ViewerDependentValue< UF::UnitData::NpcFlags2Tag >::GetValue(), spell_apothecary_lingering_fumes::HandleAfterCast(), WorldSession::HandleAzeriteEssenceActivateEssence(), WorldSession::HandleBattlefieldLeaveOpcode(), WorldSession::HandleChatMessageAFKOpcode(), WorldSession::HandleChatMessageDNDOpcode(), SpellHistory::HandleCooldowns(), debug_commandscript::HandleDebugCombatListCommand(), spell_dru_twin_moonfire::HandleEffectHit(), WorldSession::HandleLogoutRequestOpcode(), spell_monk_jade_walk::HandlePeriodicTick(), WorldSession::HandleSummonResponseOpcode(), tele_commandscript::HandleTeleCommand(), WorldSession::HandleTraitsCommitConfig(), misc_commandscript::HandleUnstuckCommand(), WorldSession::HandleUseEquipmentSet(), boss_twinemperorsAI::JustEngagedWith(), boss_prince_valanar_icc::JustSummoned(), boss_professor_putricide::JustSummoned(), boss_anubrekhan::JustSummoned(), boss_gothik::JustSummoned(), Player::LearnPvpTalent(), Player::LearnTalent(), npc_harbinger_of_flame::npc_harbinger_of_flameAI::MoveInLineOfSight(), boss_shade_of_aran::boss_aranAI::MoveInLineOfSight(), boss_malygos::MoveInLineOfSight(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::MoveInLineOfSight(), Scripts::Pandaria::TheWanderingIsle::npc_amberleaf_scamp::MovementInform(), Movement::MoveSplineInit::MoveSplineInit(), SmartAI::OnCharmed(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipHello(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipSelect(), spell_gen_mount_check_aura::OnPeriodic(), AreaTrigger_at_legion_teleporter::OnTrigger(), at_waycrest_manor_wildfire::OnUnitEnter(), at_rezan_pile_of_bones_spawn_raptor::OnUnitEnter(), at_rezan_pile_of_bones_slow::OnUnitEnter(), Scripts::Pandaria::TheWanderingIsle::HuojinTraineePartnerSearch::operator()(), Scripts::Pandaria::TheWanderingIsle::TushuiTraineeSearch::operator()(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), Trinity::MostHPMissingInRange::operator()(), Trinity::MostHPPercentMissingInRange::operator()(), Trinity::FriendlyBelowHpPctEntryInRange::operator()(), Trinity::FriendlyCCedInRange::operator()(), Trinity::FriendlyMissingBuffInRange::operator()(), Spell::PreprocessSpellHit(), Spell::TargetInfo::PreprocessTarget(), SmartScript::ProcessEvent(), Player::ProcessItemCast(), Creature::Regenerate(), Player::RegenerateAll(), Player::RegenerateHealth(), npc_dumpy_and_keeshan::npc_dumpy_and_keeshanAI::Reset(), npc_swarm_scarab::Reset(), npc_nerubian_burrower::Reset(), spell_item_crazy_alchemists_potion::SecondaryEffect(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::SelectVictim(), SetFeared(), SetInteractionAllowedInCombat(), SetSpeedRate(), Player::SetWarModeDesired(), boss_the_lich_king::SpellHit(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), npc_fel_lord_caza_cryptic_hollow::SpellHitTarget(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::SpellHitTarget(), spell_dru_eclipse_ooc::Tick(), TempSummon::Update(), Map::Update(), CritterAI::UpdateAI(), npc_scarlet_courier::npc_scarlet_courierAI::UpdateAI(), npc_scarlet_trainee::UpdateAI(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::UpdateAI(), boss_mal_ganis::boss_mal_ganisAI::UpdateAI(), npc_harbinger_of_flame::npc_harbinger_of_flameAI::UpdateAI(), npc_andorov::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), npc_whisperwind_lasher::npc_whisperwind_lasherAI::UpdateAI(), npc_risen_archmage::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), boss_sara::boss_saraAI::UpdateAI(), npc_yogg_saron_keeper::npc_yogg_saron_keeperAI::UpdateAI(), boss_taerar::boss_taerarAI::UpdateAI(), PassiveAI::UpdateAI(), PetAI::UpdateAI(), npc_scarlet_ghoul::UpdateAI(), Player::UpdateContestedPvP(), Creature::UpdateEntry(), InstanceScript::UpdateMinionState(), CombatManager::UpdateOwnerCombatState(), SmartAI::UpdatePath(), UpdateSpeed(), CreatureAI::UpdateVictim(), npc_pet_mage_mirror_image::UpdateVictim(), and boss_ymiron_the_fallen_king::WaypointPathEnded().

◆ IsInCombatWith()

◆ IsInDisallowedMountForm()

bool Unit::IsInDisallowedMountForm ( ) const

Definition at line 9565 of file Unit.cpp.

References GetDisplayId(), GetShapeshiftForm(), GetTransformSpell(), and IsDisallowedMountForm().

Referenced by Spell::CheckCast().

◆ IsInFeralForm()

◆ IsInFlight()

bool Unit::IsInFlight ( ) const
inline

Definition at line 1042 of file Unit.h.

References UNIT_STATE_IN_FLIGHT.

Referenced by Player::CheckAreaExplore(), Spell::CheckCast(), CreatureUnitRelocationWorker(), go_commandscript::DoTeleport(), Spell::EffectJump(), Spell::EffectJumpCharge(), Spell::EffectJumpDest(), Spell::EffectLeap(), Spell::EffectStuck(), Spell::EffectTeleportUnits(), Spell::EffectTeleUnitsFaceCaster(), Player::FinishTaxiFlight(), Player::GetGameObjectIfCanInteractWith(), Player::GetNPCIfCanInteractWith(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), misc_commandscript::HandleDismountCommand(), go_commandscript::HandleGoBossCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoInstanceCommand(), go_commandscript::HandleGoQuestCommand(), go_commandscript::HandleGoTicketCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleLogoutRequestOpcode(), WorldSession::HandleMovementOpcode(), WorldSession::HandleMoveWorldportAck(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), misc_commandscript::HandleUnstuckCommand(), Battlefield::InvitePlayerToWar(), Player::IsOutdoorPvPActive(), item_only_for_flight::OnUse(), and Player::UpdateLiquidMirrorTimerFlagsOnPositionChange().

◆ isInFrontInMap()

bool Unit::isInFrontInMap ( Unit const *  target,
float  distance,
float  arc = float(M_PI) 
) const

Definition at line 3318 of file Unit.cpp.

References Position::HasInArc(), and WorldObject::IsWithinDistInMap().

◆ IsInnkeeper()

bool Unit::IsInnkeeper ( ) const
inline

Definition at line 1030 of file Unit.h.

References UNIT_NPC_FLAG_INNKEEPER.

◆ IsInPartyWith()

◆ IsInRaidWith()

◆ IsInSanctuary()

bool Unit::IsInSanctuary ( ) const
inline

◆ IsInteractionAllowedInCombat()

◆ IsInteractionAllowedWhileHostile()

◆ IsInWater()

◆ IsLoading()

virtual bool Unit::IsLoading ( ) const
inlinevirtual

Reimplemented in Pet, and Player.

Definition at line 1835 of file Unit.h.

Referenced by UpdateMountCapability().

◆ IsMagnet()

bool Unit::IsMagnet ( ) const
Todo:
: find a more generic solution

Definition at line 6592 of file Unit.cpp.

References m_unitData.

Referenced by SpellInfo::CheckTargetCreatureType().

◆ IsMounted()

◆ IsMovementPreventedByCasting()

◆ isMoving()

◆ IsNonMeleeSpellCast()

◆ IsOnOceanFloor()

bool Unit::IsOnOceanFloor ( ) const

◆ IsOnVehicle()

◆ IsPet()

bool Unit::IsPet ( ) const
inline

Definition at line 763 of file Unit.h.

References UNIT_MASK_PET.

Referenced by Creature::AtDisengage(), Creature::AtEngage(), BeforeVisibilityDestroy< Creature >(), Creature::CallAssistance(), Creature::CallForHelp(), ThreatManager::CanHaveThreatList(), Creature::CanSwim(), Creature::CreateFromProto(), hyjal_trashAI::DamageTaken(), spell_hun_masters_call::DoCheckCast(), Spell::EffectDismissPet(), Spell::EffectRenamePet(), Spell::EffectTameCreature(), Creature::GetAggroRange(), getAttackerForHelper(), GetCombatRatingReduction(), GetNextRandomRaidMemberOrPet(), FactorySelector::GetSelectedAIId(), WorldObject::GetSpellModOwner(), AuraEffect::HandleAuraModBaseResistancePCT(), AuraEffect::HandleAuraModStat(), spell_buru_egg_explosion::HandleDummy(), spell_hun_no_hard_feelings::HandleHitTarget(), AuraEffect::HandleModBaseResistance(), AuraEffect::HandleModPossessPet(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcDeleteCommand(), npc_commandscript::HandleNpcEvadeCommand(), npc_commandscript::HandleNpcSetLevelCommand(), npc_commandscript::HandleNpcSetModelCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetPhaseCommand(), npc_commandscript::HandleNpcSetPhaseGroup(), npc_commandscript::HandleNpcShowLootCommand(), npc_commandscript::HandleNpcTameCommand(), WorldSession::HandlePetActionHelper(), pet_commandscript::HandlePetCreateCommand(), WorldSession::HandlePetRename(), misc_commandscript::HandleRespawnCommand(), Creature::InitEntry(), TempSummon::InitStats(), Guardian::InitStatsForLevel(), DisableMgr::IsDisabledFor(), Creature::IsElite(), Minion::IsGuardianPet(), WorldObject::IsValidAttackTarget(), Creature::isWorldBoss(), Kill(), spell_dk_pet_geist_transform::Load(), Map::MoveAllCreaturesInMoveList(), PetAI::ReceiveEmote(), Creature::ReleaseSpellFocus(), RemoveAllControlled(), RollMeleeOutcomeAgainst(), FactorySelector::SelectAI(), Spell::SendSpellGo(), Spell::SendSpellStart(), Creature::setDeathState(), SetDisplayId(), Creature::SetDisplayId(), SetMinion(), Creature::SetObjectScale(), SpellDamagePctDone(), TempSummon::UnSummon(), ChaseMovementGenerator::Update(), boss_vaelastrasz::UpdateAI(), Guardian::UpdateArmor(), Guardian::UpdateAttackPowerAndDamage(), UpdateAuraForGroup(), Creature::UpdateLevelDependantStats(), UpdatePetCombatState(), Guardian::UpdateResistances(), and ObjectGridEvacuator::Visit().

◆ IsPlayingHoverAnim()

bool Unit::IsPlayingHoverAnim ( ) const
inline

Definition at line 1159 of file Unit.h.

Referenced by SetPlayHoverAnim().

◆ IsPolymorphed()

◆ isPossessed()

bool Unit::isPossessed ( ) const
inline

◆ isPossessedByPlayer()

bool Unit::isPossessedByPlayer ( ) const

◆ isPossessing() [1/2]

bool Unit::isPossessing ( ) const

◆ isPossessing() [2/2]

bool Unit::isPossessing ( Unit *  u) const

Definition at line 6664 of file Unit.cpp.

References GetCharmedGUID(), BaseEntity::GetGUID(), and isPossessed().

◆ IsPvP()

◆ IsQuestGiver()

◆ IsScriptOverriden()

AuraEffect * Unit::IsScriptOverriden ( SpellInfo const *  spell,
int32  script 
) const

Definition at line 4934 of file Unit.cpp.

References GetAuraEffectsByType(), and SPELL_AURA_OVERRIDE_CLASS_SCRIPTS.

Referenced by Spell::EffectWeaponDmg().

◆ IsServiceProvider()

◆ IsSilenced()

bool Unit::IsSilenced ( SpellSchoolMask  schoolMask) const
inline

Definition at line 1517 of file Unit.h.

Referenced by Spell::CheckCasterAuras(), and ScriptedAI::SelectSpell().

◆ IsSitState()

◆ IsSpiritHealer()

bool Unit::IsSpiritHealer ( ) const
inline

Definition at line 1031 of file Unit.h.

References UNIT_NPC_FLAG_SPIRIT_HEALER.

Referenced by Creature::Create(), and Spell::SendResurrectRequest().

◆ IsSpiritService()

bool Unit::IsSpiritService ( ) const
inline

◆ IsSplineEnabled()

bool Unit::IsSplineEnabled ( ) const

◆ IsStandState()

◆ IsStopped()

bool Unit::IsStopped ( ) const
inline

◆ IsSummon()

bool Unit::IsSummon ( ) const
inline

◆ IsTabardDesigner()

bool Unit::IsTabardDesigner ( ) const
inline

Definition at line 1033 of file Unit.h.

References UNIT_NPC_FLAG_TABARDDESIGNER.

◆ isTargetableForAttack()

◆ IsTaxi()

bool Unit::IsTaxi ( ) const
inline

◆ IsThreatened()

bool Unit::IsThreatened ( ) const

Definition at line 8599 of file Unit.cpp.

References ThreatManager::IsThreatListEmpty(), and m_threatManager.

Referenced by boss_noth::EnterPhaseGround().

◆ IsThreatenedBy()

bool Unit::IsThreatenedBy ( Unit const *  who) const
inline

Definition at line 1089 of file Unit.h.

References IsThreatenedBy().

Referenced by IsThreatenedBy().

◆ IsTotem()

◆ IsTrainer()

bool Unit::IsTrainer ( ) const
inline

Definition at line 1023 of file Unit.h.

References UNIT_NPC_FLAG_TRAINER.

◆ isTurning()

bool Unit::isTurning ( ) const
inline

Definition at line 1821 of file Unit.h.

References MOVEMENTFLAG_MASK_TURNING.

◆ IsUnderWater()

bool Unit::IsUnderWater ( ) const

◆ IsUninteractible()

◆ IsVehicle()

bool Unit::IsVehicle ( ) const
inline

Definition at line 766 of file Unit.h.

References UNIT_MASK_VEHICLE.

Referenced by Creature::AddToWorld(), ApplyResilience(), CanApplyResilience(), CleanupBeforeRemoveFromMap(), Map::CreatureRelocation(), DealDamage(), DealMeleeDamage(), HomeMovementGenerator< T >::DoFinalize(), Spell::EffectSummonType(), firelands_bossAI::EnterEvadeMode(), npc_daegarn::EnterEvadeMode(), SmartScript::GetTargets(), AuraEffect::HandleAuraControlVehicle(), spell_icecrown_jump_jets::HandleCast(), debug_commandscript::HandleDebugEnterVehicleCommand(), spell_icecrown_illidan_kill_credit_master::HandleDummy(), spell_icecrown_plant_battle_standard::HandleDummy(), WorldSession::HandlePetActionHelper(), spell_zuldrak_gymers_throw::HandleScript(), spell_putricide_mutated_transformation::HandleSummon(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustDied(), KillRewarder::KillRewarder(), spell_igb_overheat::Load(), Map::MoveAllCreaturesInMoveList(), npc_salanar_the_horseman::npc_salanar_the_horsemanAI::MoveInLineOfSight(), npc_thorims_hammer::npc_thorims_hammerAI::MoveInLineOfSight(), npc_hodirs_fury::npc_hodirs_furyAI::MoveInLineOfSight(), SmartAI::OnCharmed(), BattlefieldWG::OnUnitDeath(), battleground_isle_of_conquest::OnUnitKilled(), OutDebugInfo(), VehicleAI::Permissible(), Map::PlayerRelocation(), RemoveCharmedBy(), RemoveFromWorld(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), Creature::SetTappedBy(), boss_ioc_horde_alliance::SpellHit(), Player::StopCastingCharm(), UpdateCharmAI(), Creature::UpdateEntry(), UpdateHeight(), and UpdateOrientation().

◆ IsVendor()

◆ IsVisible()

◆ IsWalking()

◆ IsWildBattlePet()

bool Unit::IsWildBattlePet ( ) const
inline

Definition at line 1036 of file Unit.h.

References UNIT_NPC_FLAG_WILD_BATTLE_PET.

Referenced by Creature::SelectWildBattlePetLevel().

◆ IsWithinBoundaryRadius()

◆ IsWithinCombatRange()

◆ IsWithinMeleeRange()

bool Unit::IsWithinMeleeRange ( Unit const *  obj) const
inline

Definition at line 722 of file Unit.h.

Referenced by boss_supremus::CalculateHatefulStrikeTarget(), boss_thaddius::CanAIAttack(), PetAI::CanAttack(), DoMeleeAttackIfReady(), AqusirrEventHandler::Execute(), boss_nexusprince_shaffar::ExecuteEvent(), spell_baleroc_shards_of_torment_target_search::FilterTargets(), spell_dh_felblade::HandleCharge(), spell_dh_voidblade::HandleCharge(), npc_shadow_image::JustEngagedWith(), npc_angered_soul_fragment::JustEngagedWith(), npc_guard_generic::JustEngagedWith(), ThreatManager::ReselectVictim(), npc_scrapbot::Reset(), npc_boombot::Reset(), npc_shadow_demon::Reset(), boss_garothi_worldbreaker::UpdateAI(), boss_ragnaros::UpdateAI(), npc_sinster_reflection::npc_sinster_reflectionAI::UpdateAI(), boss_archimonde::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), boss_skeram::boss_skeramAI::UpdateAI(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::UpdateAI(), boss_bronjahm::UpdateAI(), npc_high_overlord_saurfang_igb::UpdateAI(), npc_muradin_bronzebeard_igb::UpdateAI(), npc_darnavan::UpdateAI(), npc_blazing_skeleton::UpdateAI(), boss_noth::UpdateAI(), boss_thaddius::UpdateAI(), boss_steelbreaker::boss_steelbreakerAI::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), boss_kologarn::boss_kologarnAI::UpdateAI(), boss_murmur::UpdateAI(), npc_maiev::UpdateAI(), boss_doom_lord_kazzak::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_omor_the_unscarred::UpdateAI(), and boss_alar::UpdateAI().

◆ IsWithinMeleeRangeAt()

◆ Kill()

void Unit::Kill ( Unit *  attacker,
Unit *  victim,
bool  durabilityLoss = true,
bool  skipSettingDeathState = false 
)
static

Definition at line 11311 of file Unit.cpp.

References Creature::AI(), Creature::AllLootRemovedFromCorpse(), ASSERT_NODEBUGINFO, ASSERT_NOTNULL, Creature::CanHaveLoot(), CONFIG_DURABILITY_LOSS_IN_PVP, DeliveredKillingBlow, DUEL_INTERRUPTED, Loot::FillLoot(), GenerateDungeonEncounterPersonalLoot(), Loot::generateMoneyLoot(), WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), ItemBonusMgr::GetContextForPlayer(), Creature::GetCreatureDifficulty(), Pet::GetDebugInfo(), Player::GetEffectiveTeam(), Object::GetEntry(), BaseEntity::GetGUID(), GetHealth(), WorldObject::GetInstanceScript(), Group::GetLooterGuid(), Creature::GetLootId(), Creature::GetLootMode(), WorldObject::GetMap(), Map::GetMapDifficulty(), Player::GetOutdoorPvP(), WorldObject::GetOwner(), GetOwnerGUID(), ObjectAccessor::GetPlayer(), WorldPackets::Packet::GetRawPacket(), Creature::GetTapList(), BaseEntity::GetTypeId(), GetVignette(), WorldObject::GetZoneId(), CreatureDifficulty::GoldMax, CreatureDifficulty::GoldMin, LootStore::HaveLootFor(), DungeonEncounterEntry::ID, Player::InBattleground(), IsAIEnabled(), IsAlive(), Pet::isControlled(), IsCritter(), Map::IsDungeon(), Creature::IsFullyLooted(), WorldObject::IsInMap(), Loot::isLooted(), IsPet(), ObjectGuid::IsPlayer(), IsTotem(), Item, JUST_DIED, KilledByCreature, KilledByPlayer, CreatureAI::KilledUnit(), LOOT_CORPSE, LootTemplates_Creature, LootTemplates_Skinning, Creature::m_personalLoot, Loot::NotifyLootList(), WorldPackets::Party::PartyKillLog::Player, PROC_FLAG_2_TARGET_DIES, PROC_FLAG_DEATH, PROC_FLAG_KILL, PROC_FLAG_NONE, PROC_HIT_NONE, PROC_SPELL_PHASE_NONE, PROC_SPELL_TYPE_MASK_ALL, ProcSkillsAndAuras(), RATE_DURABILITY_LOSS_ON_DEATH, KillRewarder::Reward(), sBattlefieldMgr, setDeathState(), Loot::SetDungeonEncounterId(), Object::SetDynamicFlag(), SetUnitFlag(), CreatureDifficulty::SkinLootID, sObjectMgr, SPELL_AURA_MOD_DURABILITY_LOSS, sScriptMgr, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, Map::ToBattlegroundMap(), Object::ToCreature(), Object::ToPlayer(), ToTempSummon(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_DYNFLAG_CAN_SKIN, UNIT_DYNFLAG_LOOTABLE, UNIT_FLAG_SKINNABLE, Player::UpdateCriteria(), WorldPackets::Party::PartyKillLog::Victim, and WorldPackets::Party::PartyKillLog::Write().

Referenced by Spell::EffectInstaKill(), AuraEffect::HandleAuraControlVehicle(), misc_commandscript::HandleDieCommand(), spell_stratholme_crusader_strike::HandleDummy(), spell_yogg_saron_titanic_storm::spell_yogg_saron_titanic_storm_SpellScript::HandleScript(), IsEncounterFinished(), npc_glob_of_viscidus::npc_glob_of_viscidusAI::JustDied(), boss_yogg_saron::boss_yogg_saronAI::JustDied(), npc_baltharus_the_warborn_clone::JustDied(), boss_twilight_halion::JustDied(), boss_drakkari_elemental::JustDied(), boss_blood_council_controller::JustDied(), KillSelf(), boss_onyxia::MovementInform(), boss_shattered_executioner::SetData(), boss_valithria_dreamwalker::SpellHit(), boss_ioc_horde_alliance::SpellHit(), boss_sathrovarr::SpellHit(), boss_faerlina::SpellHit(), boss_sister_svalna::SpellHitTarget(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::Update(), and npc_emily::WaypointReached().

◆ KillSelf()

void Unit::KillSelf ( bool  durabilityLoss = true,
bool  skipSettingDeathState = false 
)
inline

Definition at line 951 of file Unit.h.

References Kill().

Referenced by boss_malchezaar::boss_malchezaarAI::AxesCleanup(), npc_stalagg::DoAction(), npc_feugen::DoAction(), npc_vrykul_skeleton::DoAction(), boss_reliquary_of_souls::DoAction(), npc_reliquary_combat_trigger::DoAction(), Spell::EffectStuck(), npc_raging_flames::EnterEvadeMode(), spell_ooze_zap_channel_end::HandleDummy(), spell_headless_horseman_head_is_dead::HandleDummy(), spell_sholazar_shoot_rjr::HandleDummy(), spell_sappy_burst::HandleHitTarget(), npc_enslaved_soul::HandleSoulRelease(), npc_shadow_image::JustAppeared(), boss_kalecgos::MovementInform(), npc_mortimer_moloch::MovementInform(), npc_wild_wyrm::MovementInform(), spell_kings_rest_pit_of_despair::OnApply(), spell_consuming_stomp::OnRemove(), spell_yogg_saron_insane::spell_yogg_saron_insane_AuraScript::OnRemove(), spell_teron_gorefiend_spiritual_vengeance::OnRemove(), spell_kings_rest_bound_by_shadow::OnRemove(), spell_anduin_wrynn_lost_soul::OnRemove(), npc_volatile_sapling::OnSpellFailed(), SmartScript::ProcessAction(), npc_vengeful_shade::Reset(), npc_sevis_brightflame_shivarra_gateway::SacrificeSelf(), npc_twilight_eggs::SpawnWhelps(), npc_ley_line_sprouts::SpellHit(), npc_drustvar_charging_familiar::SpellHit(), npc_vengeful_shade::SpellHitTarget(), SimpleCharmedPlayerAI::UpdateAI(), boss_selin_fireheart::UpdateAI(), npc_restless_soul::npc_restless_soulAI::UpdateAI(), npc_spectral_ghostly_citizen::npc_spectral_ghostly_citizenAI::UpdateAI(), npc_volatile_felfire_fiend::npc_volatile_felfire_fiendAI::UpdateAI(), npc_eye_tentacle::eye_tentacleAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), npc_twilight_fissure::UpdateAI(), npc_kayn_sunfury_invasion_begins::WaypointPathEnded(), and npc_sanitron_5000::WaypointReached().

◆ KnockbackFrom()

◆ MeleeDamageBonusDone()

int32 Unit::MeleeDamageBonusDone ( Unit *  pVictim,
int32  damage,
WeaponAttackType  attType,
DamageEffectType  damagetype,
SpellInfo const *  spellProto = nullptr,
SpellEffectInfo const *  spellEffectInfo = nullptr,
Mechanics  mechanic = MECHANIC_NONE,
SpellSchoolMask  damageSchoolMask = SPELL_SCHOOL_MASK_NORMAL,
Spell *  spell = nullptr,
AuraEffect const *  aurEff = nullptr 
)

◆ MeleeDamageBonusTaken()

◆ MeleeSpellHitResult()

◆ MeleeSpellMissChance()

◆ ModifyAuraState()

◆ ModifyHealth()

◆ ModifyPower()

int32 Unit::ModifyPower ( Powers  power,
int32  val,
bool  withPowerUpdate = true 
)

Definition at line 8716 of file Unit.cpp.

References GetMaxPower(), GetMinPower(), GetPower(), GetTotalAuraMultiplierByMiscValue(), SetPower(), and SPELL_AURA_MOD_POWER_GAIN_PCT.

Referenced by CalcAbsorbResist(), spell_mage_arcane_barrage::ConsumeArcaneCharges(), spell_warr_execute_refund_rage::DetermineKillStatus(), Spell::EffectPowerBurn(), Spell::EffectPowerDrain(), EnergizeBySpell(), boss_curator::boss_curatorAI::ExecuteEvent(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), AuraEffect::HandleAuraModMaxPowerPct(), spell_evo_living_flame::HandleLaunchTarget(), AuraEffect::HandleObsModPowerAuraTick(), spell_anduin_wrynn_energize_willpower_lfr::HandlePeriodic(), spell_remnant_of_a_fallen_king_energize_runic_power::HandlePeriodic(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), spell_rog_venomous_wounds::HandleProc(), spell_rog_ruthlessness::HandleProc(), spell_kelthuzad_detonate_mana::HandleScript(), boss_anduin_wrynn::JustAppeared(), boss_remnant_of_a_fallen_king::JustAppeared(), spell_rog_rupture::OnEffectRemoved(), spell_priestess_alun_za_energy_regen::OnPeriodic(), spell_gen_nitrous_boost::PeriodicTick(), spell_shade_of_medivh_mana_regen::PeriodicTick(), spell_azhiccar_energy_controller::PeriodicTick(), spell_edna_energize::PeriodicTick(), spell_skarmorak_fortified_shell_energize::PeriodicTick(), spell_lord_stormsong_energize::PeriodicTick(), spell_sporecaller_zancha_festering_harvest::PeriodicTick(), boss_anduin_wrynn::PhaseEvents(), Spell::RefundPower(), Creature::Regenerate(), RewardRage(), Spell::TakePower(), Aura::Update(), and boss_faction_championsAI::UpdatePower().

◆ MonsterMoveWithSpeed()

void Unit::MonsterMoveWithSpeed ( float  x,
float  y,
float  z,
float  speed,
bool  generatePath = false,
bool  forceDestination = false 
)

◆ Mount()

◆ NearTeleportTo() [1/3]

void Unit::NearTeleportTo ( float  x,
float  y,
float  z,
float  orientation,
bool  casting = false 
)
inline

Definition at line 1146 of file Unit.h.

References NearTeleportTo().

Referenced by NearTeleportTo().

◆ NearTeleportTo() [2/3]

void Unit::NearTeleportTo ( Position const &  pos,
bool  casting = false 
)

◆ NearTeleportTo() [3/3]

void Unit::NearTeleportTo ( TeleportLocation const &  target,
bool  casting = false 
)

Definition at line 13054 of file Unit.cpp.

References DisableSpline(), GetMotionMaster(), MotionMaster::InterruptOnTeleport(), TeleportLocation::Location, SendTeleportPacket(), TELE_TO_NONE, TELE_TO_NOT_LEAVE_COMBAT, TELE_TO_NOT_LEAVE_TRANSPORT, TELE_TO_SPELL, Object::ToPlayer(), UpdateObjectVisibility(), and UpdatePosition().

Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), spell_mage_alter_time_aura::AfterRemove(), boss_urom::DamageTaken(), boss_malygos::DoAction(), boss_anduin_wrynn::DoAction(), ScriptedAI::DoTeleportTo(), Spell::EffectLeap(), Spell::EffectResurrectPet(), Spell::EffectSummonPet(), Spell::EffectTeleportUnits(), Spell::EffectTeleUnitsFaceCaster(), boss_gothik::EnterEvadeMode(), boss_urom::EnterEvadeMode(), DelayedSpellTeleportEvent::Execute(), spell_boralus_find_cyrus_objective_complete::HandleHitTarget(), spell_pri_divine_image::HandleProc(), spell_headless_horseman_head_reposition::HandleScriptEffect(), spell_freya_iron_roots::spell_freya_iron_roots_SpellScript::HandleSummon(), spell_lich_king_teleport_corpse::HandleTeleport(), spell_undermine_arena_warning_teleport::HandleTeleport(), spell_enigma_arena_warning_teleport::HandleTeleport(), npc_coldflame::IsSummonedBy(), npc_bg_deephaul_ravine_earthen_mine_cart_horde::JustAppeared(), npc_bg_deephaul_ravine_earthen_mine_cart_alliance::JustAppeared(), npc_doomfire_spirit::JustAppeared(), boss_prince_keleseth_icc::JustSummoned(), npc_arthas_stratholme::npc_arthas_stratholmeAI::MovementInform(), NearTeleportTo(), spell_anduin_wrynn_pre_introduction::OnApply(), go_master_surveyor::OnGossipHello(), npc_baros_alexston::OnGossipSelect(), quest_ride_of_the_scientifically_enhanced_boar::OnQuestStatusChange(), quest_the_re_deather::OnQuestStatusChange(), spell_anduin_wrynn_lost_soul::OnRemove(), spell_anduin_wrynn_severed_soul::OnRemove(), conversation_sylvanas_windrunner_introduction::OnUpdate(), Map::ScriptsProcess(), npc_simon_bunny::npc_simon_bunnyAI::SetUpPreGame(), BossAI::TeleportCheaters(), battleground_strand_of_the_ancients::TeleportToEntrancePosition(), boss_rend_blackhand::UpdateAI(), boss_shade_of_medivh::UpdateAI(), npc_silverpine_deathstalker_rane_yorick::UpdateAI(), npc_silverpine_skitterweb_matriarch::UpdateAI(), boss_viscidus::boss_viscidusAI::UpdateAI(), npc_coldflame::UpdateAI(), boss_urom::UpdateAI(), npc_minigob_manabonk::UpdateAI(), boss_alar::UpdateAI(), boss_high_astromancer_solarian::UpdateAI(), boss_majordomo::UpdateSpecialEvents(), and GameObject::Use().

◆ OnPhaseChange()

void Unit::OnPhaseChange ( )
virtual

Reimplemented in Player.

Definition at line 12559 of file Unit.cpp.

Referenced by PhasingHandler::OnConditionChange(), and Player::OnPhaseChange().

◆ OutDebugInfo()

◆ PauseMovement()

◆ PlayOneShotAnimKitId()

◆ PopAI()

bool Unit::PopAI ( )

Definition at line 10244 of file Unit.cpp.

References i_AIs.

Referenced by Creature::AIM_Destroy(), spell_tyrannus_overlord_brand::OnRemove(), and RestoreDisabledAI().

◆ ProcessPositionDataChanged()

◆ ProcSkillsAndAuras()

◆ ProcSkillsAndReactives()

void Unit::ProcSkillsAndReactives ( bool  isVictim,
Unit *  procTarget,
ProcFlagsInit const &  typeMask,
ProcFlagsHit  hitMask,
WeaponAttackType  attType 
)
private

◆ PropagateSpeedChange()

void Unit::PropagateSpeedChange ( )

-------—End of Pet responses methods-------—

Definition at line 10743 of file Unit.cpp.

References GetMotionMaster(), and MotionMaster::PropagateSpeedChange().

Referenced by SetSpeedRate().

◆ PushAI()

void Unit::PushAI ( UnitAI *  newAI)

Definition at line 10233 of file Unit.cpp.

References i_AIs.

Referenced by spell_tyrannus_overlord_brand::OnApply(), ScheduleAIChange(), and SetAI().

◆ RecalculateObjectScale()

◆ RefreshAI()

void Unit::RefreshAI ( )
protected

Definition at line 10255 of file Unit.cpp.

References ASSERT, i_AI, i_AIs, and m_aiLocked.

Referenced by Creature::AIM_Destroy(), SetAI(), Update(), and UpdateCharmAI().

◆ RemoveAllAreaTriggers()

◆ RemoveAllAttackers()

◆ RemoveAllAuras()

void Unit::RemoveAllAuras ( )

Definition at line 4400 of file Unit.cpp.

References _UnapplyAura(), ABORT_MSG, AURA_REMOVE_BY_DEFAULT, GetDebugInfo(), m_appliedAuras, m_ownedAuras, RemoveOwnedAura(), and TC_LOG_ERROR.

Referenced by CleanupBeforeRemoveFromMap(), npc_felblood_kaelthas_phoenix::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), boss_ingvar_the_plunderer::DamageTaken(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), spell_rotface_unstable_ooze_explosion_suicide::DespawnSelf(), npc_kelthuzad_guardian::DoAction(), npc_briarpatch_prisoner::DoAction(), boss_razorgore::DoChangePhase(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DoNice(), EscortAI::EnterEvadeMode(), hyjalAI::EnterEvadeMode(), GuardAI::EnterEvadeMode(), boss_randolph_moloch::ExecuteEvent(), npc_rocket_propelled_warhead::FinishQuest(), spell_icecrown_plant_battle_standard::HandleDummy(), spell_garothi_annihilation_triggered::HandleHit(), misc_commandscript::HandleUnAuraCommand(), npc_prisoner_q55879_private::JustAppeared(), npc_husam_shockwave_visual::JustAppeared(), npc_gunship::npc_gunshipAI::JustDied(), boss_freya::boss_freyaAI::JustDied(), boss_urom::LeaveCombat(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::MovementInform(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::OnHealthDepleted(), npc_melee_hover_disk::PassengerBoarded(), npc_caster_hover_disk::PassengerBoarded(), spell_pursuing_spikes::PeriodicTick(), SmartScript::ProcessAction(), Creature::RemoveCorpse(), npc_koltira_deathweaver::Reset(), npc_twilight_whelp::Reset(), boss_paletress::boss_paletressAI::Reset(), boss_steelbreaker::boss_steelbreakerAI::Reset(), boss_runemaster_molgeim::boss_runemaster_molgeimAI::Reset(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::Reset(), boss_thorim::boss_thorimAI::Reset(), boss_sara::boss_saraAI::Reset(), npc_yogg_saron_keeper::npc_yogg_saron_keeperAI::Reset(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), Pet::SavePetToDB(), npc_frozen_mountaineer::npc_frozen_mountaineerAI::SetData(), npc_twilight_eggs::SpawnWhelps(), Scripts::Kalimdor::Durotar::npc_lazy_peon::npc_lazy_peonAI::SpellHit(), npc_felblood_kaelthas_phoenix::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), boss_kalecgos::UpdateAI(), npc_milos_gyro::npc_milos_gyro_AI::UpdateAI(), npc_sparring_partner_combat_training::UpdateAI(), npc_giant_boar_vehicle_q55879::UpdateAI(), boss_corborus::boss_corborusAI::UpdateAI(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::UpdateAI(), npc_twilight_fissure::UpdateAI(), npc_phantom_mage::npc_phantom_mageAI::UpdateAI(), npc_spirit_bomb::UpdateAI(), boss_noth::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_svala::UpdateAI(), boss_the_lurker_below::UpdateAI(), and boss_alar::UpdateAI().

◆ RemoveAllAurasExceptType() [1/2]

◆ RemoveAllAurasExceptType() [2/2]

void Unit::RemoveAllAurasExceptType ( AuraType  type1,
AuraType  type2 
)

◆ RemoveAllAurasOnDeath()

◆ RemoveAllAurasRequiringDeadTarget()

void Unit::RemoveAllAurasRequiringDeadTarget ( )

◆ RemoveAllControlled()

◆ RemoveAllDynObjects()

void Unit::RemoveAllDynObjects ( )

Definition at line 5363 of file Unit.cpp.

References m_dynObj.

Referenced by RemoveFromWorld(), and Player::TeleportTo().

◆ RemoveAllFollowers()

void Unit::RemoveAllFollowers ( )

Definition at line 9174 of file Unit.cpp.

References m_followingMe, and SetTarget().

Referenced by RemoveFromWorld().

◆ RemoveAllGameObjects()

void Unit::RemoveAllGameObjects ( )

◆ RemoveAllGroupBuffsFromCaster()

void Unit::RemoveAllGroupBuffsFromCaster ( ObjectGuid  casterGUID)
Todo:
: once we support variadic templates use them here

Definition at line 4577 of file Unit.cpp.

References Aura::GetCasterGUID(), Aura::GetSpellInfo(), SpellInfo::IsGroupBuff(), m_ownedAuras, and RemoveOwnedAura().

Referenced by Group::RemoveMember().

◆ RemoveAllMinionsByEntry()

void Unit::RemoveAllMinionsByEntry ( uint32  entry)

◆ RemoveAppliedAuras() [1/2]

◆ RemoveAppliedAuras() [2/2]

void Unit::RemoveAppliedAuras ( uint32  spellId,
std::function< bool(AuraApplication const *)> const &  check,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3945 of file Unit.cpp.

References m_appliedAuras, and RemoveAura().

◆ RemoveAreaAurasDueToLeaveWorld()

void Unit::RemoveAreaAurasDueToLeaveWorld ( )

◆ RemoveAreaTrigger() [1/2]

void Unit::RemoveAreaTrigger ( AuraEffect const *  aurEff)

Definition at line 5519 of file Unit.cpp.

References m_areaTrigger.

◆ RemoveAreaTrigger() [2/2]

void Unit::RemoveAreaTrigger ( uint32  spellId)

◆ RemoveArenaAuras()

◆ RemoveAura() [1/4]

void Unit::RemoveAura ( Aura *  aur,
AuraRemoveMode  mode = AURA_REMOVE_BY_DEFAULT 
)

◆ RemoveAura() [2/4]

◆ RemoveAura() [3/4]

void Unit::RemoveAura ( AuraApplicationMap::iterator &  i,
AuraRemoveMode  mode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3846 of file Unit.cpp.

References _UnapplyAura(), AuraApplication::GetBase(), Aura::GetOwner(), AuraApplication::GetRemoveMode(), and Aura::Remove().

Referenced by _EnterVehicle(), spell_monk_stagger::AddAndRefreshStagger(), spell_dru_travel_form_dummy_aura::AfterRemove(), spell_dru_travel_form::AfterRemove(), Player::ApplyArtifactPowerRank(), boss_viscidus::boss_viscidusAI::DamageTaken(), boss_drakkari_colossus::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), Player::DuelComplete(), Spell::EffectDispelMechanic(), Spell::EffectForceCast(), Spell::EffectHeal(), Battleground::EndBattleground(), GetDiseasesByCaster(), AuraEffect::HandleAuraLinked(), Aura::HandleAuraSpecificMods(), AuraEffect::HandleBreakableCCAuraProc(), deserter_commandscript::HandleDeserterRemove(), spell_rog_roll_the_bones::HandleDummy(), spell_valanar_kinetic_bomb_aura::HandleDummyTick(), spell_warl_demonic_circle_summon::HandleDummyTick(), spell_sindragosa_frost_breath::HandleInfusion(), spell_pri_sins_of_the_many::HandleOnRemove(), spell_pri_power_word_shield::HandleOnRemove(), spell_hallows_end_childrens_custome_aura::HandlePeriodic(), spell_dh_monster_rising::HandlePeriodic(), spell_torghast_uncontrolled_darkness_proc::HandleProc(), spell_gen_blood_reserve::HandleProc(), spell_mage_hot_streak::HandleProc(), quest_resizing_the_situation::HandleQuestStatusChange(), quest_northbound::HandleQuestStatusChange(), quest_finding_the_lost_expedition::HandleQuestStatusChange(), spell_warl_demonic_circle_summon::HandleRemove(), spell_dru_eclipse_dummy::HandleRemove(), spell_brewfest_dismount_ram::HandleScript(), spell_putricide_eat_ooze::HandleScript(), spell_ulduar_cancel_stone_grip::spell_ulduar_cancel_stone_gripSpellScript::HandleScript(), spell_midsummer_fling_torch_catch::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), spell_midsummer_fling_torch_triggered::HandleTriggerMissile(), IsHighestExclusiveAuraEffect(), npc_quilboar_warrior::JustEngagedWith(), npc_quilboar_geomancer::JustEngagedWith(), ModifyAuraState(), spell_brewfest_ram_fatigue::OnApply(), spell_brewfest_apple_trap::OnApply(), spell_baleroc_vital_flame::OnApply(), spell_bg_deephaul_ravine_earthen_mine_cart_ride::OnApply(), spell_riding_giant_boar_q55879::OnAuraRemoveHandler(), spell_blood_queen_vampiric_bite::OnCast(), spell_brewfest_giddyup::OnChange(), Scripts::Pandaria::TheWanderingIsle::at_cave_of_meditation::OnExit(), spell_love_is_in_the_air_romantic_picnic::OnPeriodic(), spell_anduin_wrynn_dark_zeal::OnProc(), quest_awaken_dracthyr::OnQuestStatusChange(), quest_enhanced_combat_tactics::OnQuestStatusChange(), quest_ride_of_the_scientifically_enhanced_boar::OnQuestStatusChange(), quest_the_re_deather::OnQuestStatusChange(), spell_monk_stagger_debuff_aura::OnRemove(), spell_silverpine_bond_of_the_valkyr::OnRemove(), spell_fetch_ingredient_aura::OnRemove(), spell_dh_glide_AuraScript::OnRemove(), spell_dh_glide_timer::OnRemove(), Scripts::EasternKingdoms::Vashjir::spell_vashjir_sea_legs_aura::OnRemove(), spell_dru_eclipse_dummy::OnSpellCast(), Scripts::Pandaria::TheWanderingIsle::at_singing_pools_transform_frog::OnTrigger(), at_maiden_of_virtue_rtk_sacred_ground::OnUnitExit(), at_anduin_wrynn_befouled_barrier::OnUnitExit(), areatrigger_dh_darkness::OnUnitExit(), areatrigger_pal_ashen_hallow::OnUnitExit(), BattlefieldWG::PromotePlayer(), spell_mage_alter_time_active::RemoveAlterTimeAura(), RemoveAppliedAuras(), RemoveAppliedAuras(), RemoveAreaAurasDueToLeaveWorld(), RemoveAura(), RemoveAura(), RemoveAura(), RemoveAurasByShapeShift(), RemoveAurasByType(), RemoveAurasByType(), RemoveAurasDueToItemSpell(), SceneMgr::RemoveAurasDueToSceneId(), RemoveAurasDueToSpell(), RemoveAurasWithAttribute(), RemoveAurasWithFamily(), RemoveAurasWithInterruptFlags(), spell_zuldrak_scourge_disguise::RemoveEffect(), Battleground::RemovePlayerAtLeave(), boss_pyroguard_emberseer::Reset(), boss_victor_nefarius::Reset(), npc_raz_the_crazed::npc_raz_the_crazedAI::SetData(), boss_paletress::boss_paletressAI::SetData(), boss_pyroguard_emberseer::SpellHit(), boss_viscidus::boss_viscidusAI::SpellHit(), npc_sparring_partner_enhanced_combat_training_warrior::SpellHit(), npc_sparring_partner_enhanced_combat_training_priest::SpellHit(), npc_sparring_partner_enhanced_combat_training_shaman::SpellHit(), npc_sparring_partner_enhanced_combat_training_mage::SpellHit(), npc_sparring_partner_enhanced_combat_training_warlock::SpellHit(), npc_sparring_partner_enhanced_combat_training_druid::SpellHit(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), spell_pal_hand_of_sacrifice::Split(), boss_alizabal::boss_alizabalAI::UpdateAI(), boss_gyth::UpdateAI(), boss_pyroguard_emberseer::UpdateAI(), boss_kirtonos_the_herald::UpdateAI(), npc_voljin_zulaman::npc_voljin_zulamanAI::UpdateAI(), npc_garrick_summoned_beach::UpdateAI(), npc_grimaxe_summoned_beach::UpdateAI(), Scripts::Kalimdor::Durotar::npc_voljin_garrosh_vision::UpdateAI(), Scripts::Kalimdor::Durotar::npc_voljin_thrall_vision::UpdateAI(), boss_thaddius::UpdateAI(), npc_barada::npc_baradaAI::UpdateAI(), npc_portal_eoe::UpdateAI(), npc_iron_construct::npc_iron_constructAI::UpdateAI(), Spell::UpdateChanneledTargetList(), and Player::UpdateCorruption().

◆ RemoveAura() [4/4]

void Unit::RemoveAura ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
uint32  reqEffMask = 0,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3859 of file Unit.cpp.

References Aura::GetCasterGUID(), Aura::GetEffectMask(), m_appliedAuras, and RemoveAura().

◆ RemoveAuraFromStack()

◆ RemoveAurasByShapeShift()

◆ RemoveAurasByType() [1/2]

void Unit::RemoveAurasByType ( AuraType  auraType,
ObjectGuid  casterGUID = ObjectGuid::Empty,
Aura *  except = nullptr,
bool  negative = true,
bool  positive = true 
)

◆ RemoveAurasByType() [2/2]

void Unit::RemoveAurasByType ( AuraType  auraType,
std::function< bool(AuraApplication const *)> const &  check,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3973 of file Unit.cpp.

References ASSERT, Aura::GetApplicationOfTarget(), BaseEntity::GetGUID(), m_modAuras, m_removedAurasCount, and RemoveAura().

Referenced by _EnterVehicle(), VehicleJoinEvent::Abort(), Player::ActivateTaxiPathTo(), Battleground::AddPlayer(), SpellInfo::ApplyAllSpellImmunitiesTo(), Attack(), CancelMountAura(), spell_gen_summon_tournament_mount::CheckIfLanceEquiped(), Spell::EffectTriggerSpell(), Battleground::EndBattleground(), VehicleJoinEvent::Execute(), ExitVehicle(), WorldSession::HandleAuctionBrowseQuery(), WorldSession::HandleAuctionCancelCommoditiesPurchase(), WorldSession::HandleAuctionConfirmCommoditiesPurchase(), WorldSession::HandleAuctionGetCommodityQuote(), WorldSession::HandleAuctionHelloOpcode(), WorldSession::HandleAuctionListBiddedItems(), WorldSession::HandleAuctionListBucketsByBucketKeys(), WorldSession::HandleAuctionListItemsByBucketKey(), WorldSession::HandleAuctionListItemsByItemID(), WorldSession::HandleAuctionListOwnedItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionReplicateItems(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), AuraEffect::HandleAuraModOverridePowerDisplay(), AuraEffect::HandleAuraModPowerDisplay(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraMounted(), AuraEffect::HandleAuraTransform(), WorldSession::HandleBankerActivateOpcode(), WorldSession::HandleBinderActivateOpcode(), WorldSession::HandleBlackMarketOpen(), WorldSession::HandleBuybackItem(), WorldSession::HandleCancelGrowthAuraOpcode(), WorldSession::HandleCancelModSpeedNoControlAuras(), WorldSession::HandleCancelMountAuraOpcode(), WorldSession::HandleConfirmRespecWipeOpcode(), misc_commandscript::HandleDismountCommand(), spell_brewfest_mount_transformation::HandleDummy(), spell_winter_veil_reindeer_transformation::HandleDummy(), WorldSession::HandleGossipSelectOptionOpcode(), spell_algalon_remove_phase::HandlePeriodic(), WorldSession::HandlePetitionBuy(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleRequestStabledPets(), WorldSession::HandleSaveGuildEmblem(), spell_jormungars_burning_bile::HandleScriptEffect(), WorldSession::HandleSellAllJunkItems(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSpiritHealerActivate(), WorldSession::HandleTabardVendorActivateOpcode(), WorldSession::HandleTaxiQueryAvailableNodesOpcode(), WorldSession::HandleTrainerBuySpellOpcode(), spell_gen_two_forms::HandleTransform(), WorldSession::LogoutPlayer(), Mount(), spell_rog_vanish::OnLaunchTarget(), Vehicle::RemoveAllPassengers(), RemoveBindSightAuras(), boss_faction_championsAI::RemoveCC(), RemoveCharmAuras(), Battleground::RemovePlayerAtLeave(), WorldSession::SendListInventory(), WorldSession::SendTrainerList(), SetCharmedBy(), npc_gothik_minion_baseAI::UpdateAI(), and GameObject::Use().

◆ RemoveAurasDueToItemSpell()

◆ RemoveAurasDueToSpell()

void Unit::RemoveAurasDueToSpell ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
uint32  reqEffMask = 0,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3992 of file Unit.cpp.

References Aura::GetCasterGUID(), Aura::GetEffectMask(), m_appliedAuras, and RemoveAura().

Referenced by Player::ActivateTalentGroup(), spell_midsummer_torch_tossing_training_practice::AfterApply(), spell_twin_valkyr_dark_essence::AfterApply(), spell_twin_valkyr_light_essence::AfterApply(), spell_zuldrak_akalis_stun::AfterApply(), spell_zuldrak_summon_escort_aura::AfterApply(), spell_exarch_maladaar_stolen_soul_dispel::AfterApply(), spell_commander_sarannis_arcane_devastation::AfterApply(), spell_sunken_temple_hex_of_jammalan_transform::AfterRemove(), spell_love_is_in_the_air_service_uniform::AfterRemove(), spell_midsummer_torch_tossing_training_practice::AfterRemove(), spell_azuremyst_isle_shadow_of_the_forest_player::AfterRemove(), spell_bjarngrim_stance_dummy::AfterRemove(), spell_thorim_aura_of_celerity::AfterRemove(), spell_fjord_worg_disguise::AfterRemove(), spell_fjord_worg_disguise_dummy::AfterRemove(), spell_zuldrak_scourge_disguise_expiring::AfterRemove(), spell_leotheras_the_blind_insidious_whisper_aura::AfterRemove(), spell_serpent_shrine_coilfang_water::AfterRemove(), spell_magtheridon_shadow_grasp_visual::AfterRemove(), spell_kaelthas_mind_control_aura::AfterRemove(), spell_bem_apexis_swiftness::AfterRemove(), spell_shadowmoon_illidari_agent_illusion::AfterRemove(), spell_terokkar_shadowy_disguise::AfterRemove(), spell_dru_lunar_inspiration::AfterRemove(), spell_dru_savage_roar_aura::AfterRemove(), spell_dru_survival_instincts::AfterRemove(), spell_item_thrallmar_and_honor_hold_favor::AfterRemove(), spell_mage_fiery_rush_aura::AfterRemove(), battleground_eye_of_the_storm::ApplyAssaultDebuffToPlayer(), battleground_twin_peaks::ApplyAssaultDebuffToPlayer(), battleground_warsong_gulch::ApplyAssaultDebuffToPlayer(), Player::ApplyAzeriteEssence(), Player::ApplyEquipSpell(), Player::ApplyItemObtainSpells(), boss_supremus::ChangePhase(), spell_sha_flame_shock_fire_nova_enabler::CheckFlameShocks(), Player::CheckTitanGripPenalty(), spell_sha_maelstrom_weapon_base::ConsumeMaelstromWeapon(), boss_apothecary_hummel::DamageTaken(), boss_muru::DamageTaken(), npc_dark_fiend::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), npc_frost_sphere::DamageTaken(), boss_lady_deathwhisper::DamageTaken(), boss_sjonnir::DamageTaken(), npc_feral_defender::DamageTaken(), boss_ingvar_the_plunderer::DamageTaken(), npc_wild_wyrm::DamageTaken(), npc_phoenix_the_eye::DamageTaken(), boss_anduin_wrynn::DamageTaken(), boss_felblood_kaelthas::DamageTaken(), Scripts::Pandaria::TheWanderingIsle::npc_li_fei_combat::DamageTaken(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::DestroyIceWall(), Player::DisablePvpRules(), boss_leymor::DoAction(), npc_barnes::DoAction(), boss_shade_of_medivh::DoAction(), npc_stone_keeper::DoAction(), npc_fire_bomb_zulaman::DoAction(), boss_temple_guardian_anhuur::DoAction(), npc_husam_tolvir_land_mine::DoAction(), npc_aqusirr_intro_lord_stormsong::DoAction(), npc_twilight_volunteer::DoAction(), boss_anub_arak::DoAction(), npc_halion_controller::DoAction(), boss_jaraxxus::DoAction(), BloodPrincesBossAI::DoAction(), npc_high_overlord_saurfang_icc::DoAction(), npc_muradin_bronzebeard_icc::DoAction(), boss_general_bjarngrim::DoAction(), npc_volkhan_molten_golem::DoAction(), boss_general_vezax::boss_general_vezaxAI::DoAction(), boss_vx_001::boss_vx_001AI::DoAction(), npc_mimiron_computer::npc_mimiron_computerAI::DoAction(), boss_yogg_saron::boss_yogg_saronAI::DoAction(), boss_anzu::DoAction(), npc_volcano::DoAction(), boss_lady_vashj::DoAction(), boss_leotheras_the_blind::DoAction(), boss_warlord_kalithresh::DoAction(), npc_frozen_core::DoAction(), npc_earthen_ring_flamecaller::DoAction(), npc_shaman_bonfire_bunny::DoAction(), boss_edna::DoAction(), boss_razorscale::DoAction(), boss_palehoof::DoAction(), PalehoofMinionsBossAI::DoAction(), boss_illidan_stormrage::DoAction(), boss_reliquary_of_souls::DoAction(), npc_headless_horseman_head::DoAction(), boss_headless_horseman::DoAction(), npc_pulsing_pumpkin::DoAction(), boss_ymiron_the_fallen_king::DoAction(), boss_ambassador_hellmaw::DoIntro(), InstanceScript::DoRemoveAurasDueToSpellOnPlayer(), Spell::DoTriggersOnSpellHit(), Spell::EffectApplyGlyph(), Spell::EffectHeal(), Spell::EffectRemoveAura(), boss_jormungarAI::Emerge(), HeartsbaneTriadSharedAI::EnterEvadeMode(), boss_felmyst::EnterPhase(), npc_unworthy_initiate::npc_unworthy_initiateAI::EventStart(), BattleExperienceEvent::Execute(), EmpyreanDomain::PlayerMoveDownEvent::Execute(), SummonScarab::Execute(), FrostBombExplosion::Execute(), ValithriaAuraRemoveEvent::Execute(), boss_terestian_illhoof::boss_terestianAI::ExecuteEvent(), boss_lady_waycrest::ExecuteEvent(), spell_sha_maelstrom_weapon_proc::ExpireMaelstromAuras(), lfg::LFGMgr::FinishDungeon(), spell_item_disco_ball_listening_to_music_check::HandleAfterCast(), spell_warr_impending_victory::HandleAfterCast(), Scripts::Pandaria::TheJadeForest::spell_cancel_blackout::HandleAfterEffectRemove(), Scripts::Pandaria::TheJadeForest::spell_rappelling_rope_aura::HandleAfterEffectRemove(), spell_dh_retaliation::HandleAfterRemove(), spell_pri_divine_image_spell_triggered::HandleAfterRemove(), spell_off_the_leash::HandleApply(), spell_illidan_remove_parasitic_shadowfiend::HandleApply(), OutdoorPvPSI::HandleAreaTrigger(), spell_mimiron_proximity_explosion::spell_mimiron_proximity_explosion_SpellScript::HandleAura(), AuraEffect::HandleAuraControlVehicle(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraMounted(), Aura::HandleAuraSpecificMods(), spell_rog_improved_garrote::HandleBuff(), boss_sister_briar::HandleClaimIris(), boss_sister_malady::HandleClaimIris(), boss_sister_solena::HandleClaimIris(), spell_putricide_choking_gas_filter::HandleDispel(), boss_sister_briar::HandleDropIris(), boss_sister_malady::HandleDropIris(), boss_sister_solena::HandleDropIris(), spell_midsummer_remove_torches::HandleDummy(), spell_pilgrims_bounty_feast_on::HandleDummy(), spell_buru_cancel_creeping_plague::HandleDummy(), spell_ahn_kahet_swarm::HandleDummy(), spell_putricide_ooze_eruption_searcher::HandleDummy(), spell_borean_tundra_magnataur_on_death_2::HandleDummy(), spell_dru_starfall_dummy::HandleDummy(), spell_item_hourglass_sand::HandleDummy(), spell_warl_random_sayaad::HandleDummy(), spell_mistress_kiss::HandleDummyTick(), spell_pri_prayer_of_mending_dummy::HandleEffectDummy(), spell_dru_pulverize::HandleEffectHit(), spell_zuldrak_quenching_mist::HandleEffectPeriodic(), spell_mage_molten_fury::HandleEffectProc(), spell_rog_shadow_focus::HandleEffectRemove(), spell_rog_stealth::HandleEffectRemove(), spell_rog_shot_in_the_dark_buff::HandleEffectRemove(), boss_felmyst::HandleFlightSequence(), boss_skarmorak::HandleFortifiedShellEnded(), gm_commandscript::HandleGMVisibleCommand(), spell_warr_victory_rush::HandleHeal(), spell_mage_heat_shimmer_remove::HandleHit(), spell_ymiron_the_fallen_king_arise_fallen_selector::HandleHit(), spell_sha_feral_lunge_damage::HandleHit(), spell_telash_absolute_zero_damage::HandleHitTarget(), Scripts::Pandaria::TheJadeForest::spell_the_mission_scene_end::HandleHitTarget(), boss_anduin_wrynn::HandleIntroduction(), spell_rog_leeching_poison::HandleOnRemove(), spell_hun_trailblazer::HandleOnRemove(), OPvPCapturePointZM_Graveyard::HandleOpenGo(), spell_give_me_sight_beyond_sight_periodic::HandlePeriodic(), spell_algalon_phase_punch::HandlePeriodic(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), spell_monk_jade_walk::HandlePeriodicTick(), OutdoorPvPHP::HandlePlayerLeaveZone(), OutdoorPvPNA::HandlePlayerLeaveZone(), OutdoorPvPSI::HandlePlayerLeaveZone(), OutdoorPvPTF::HandlePlayerLeaveZone(), OutdoorPvPZM::HandlePlayerLeaveZone(), spell_item_anger_capacitor< StackAmount >::spell_item_anger_capacitor_AuraScript< Stacks >::HandleProc(), spell_item_trinket_stack::spell_item_trinket_stack_AuraScript::HandleProc(), spell_eredar_twins_dark_flame_aura_shadow::HandleProc(), spell_eredar_twins_dark_flame_aura_fire::HandleProc(), spell_mage_pyrotechnics::HandleProc(), spell_hun_trailblazer::HandleProc(), spell_warr_kill_or_be_killed_target::HandleProc(), spell_pri_insidious_ire::HandleProc(), battleground_silvershard_mines::HandleProgressEvent(), battleground_deephaul_ravine::HandleProgressEvent(), spell_icc_harvest_blight_specimen::HandleQuestComplete(), spell_hallow_end_candy_pirate::HandleRemove(), spell_midsummer_test_ribbon_pole_channel::HandleRemove(), spell_sindragosa_ice_tomb_trap::HandleRemove(), spell_gen_burning_depths_necrolyte_image::HandleRemove(), spell_rog_killing_spree_aura::HandleRemove(), spell_dru_elunes_favored::HandleRemove(), spell_pilgrims_bounty_well_fed::HandleScript(), spell_baleroc_countdown_proximity_check::HandleScript(), spell_putricide_clear_aura_effect_value::HandleScript(), spell_the_lich_king_jump::HandleScript(), spell_the_lich_king_jump_remove_aura::HandleScript(), spell_icc_harvest_blight_specimen::HandleScript(), spell_vexallus_clear_energy_feedback::HandleScript(), spell_brutallus_stomp::HandleScript(), spell_love_is_in_the_air_cancel_service_uniform::HandleScript(), spell_love_is_in_the_air_perfume_cologne_immune::HandleScript(), spell_pilgrims_bounty_turkey_tracker::HandleScript(), spell_anhuur_disable_beacon_beams::HandleScript(), spell_aqusirr_surging_rush::HandleScript(), spell_halion_clear_debuffs::HandleScript(), spell_gal_darah_clear_puncture::HandleScript(), spell_festergut_pungent_blight::HandleScript(), spell_festergut_gastric_bloat::HandleScript(), spell_putricide_unbound_plague::HandleScript(), spell_putricide_eat_ooze::HandleScript(), spell_rotface_little_ooze_combine::HandleScript(), spell_rotface_large_ooze_combine::HandleScript(), spell_rotface_large_ooze_buff_combine::HandleScript(), spell_generic_remove_empowered_blood::HandleScript(), spell_borean_tundra_weakness_to_lightning_cancel_aura::HandleScript(), spell_borean_tundra_weakness_to_lightning_on_quest_complete::HandleScript(), spell_borean_tundra_strip_auras::HandleScript(), spell_dragonblight_cancel_banshees_magic_mirror::HandleScript(), spell_dragonblight_cancel_scarlet_raven_priest_image::HandleScript(), spell_dragonblight_scrape_corrosive_spit::HandleScript(), spell_dragonblight_focus_on_the_beach_quest_completion_script::HandleScript(), spell_dragonblight_atop_the_woodlands_quest_completion_script::HandleScript(), spell_dragonblight_end_of_the_line_quest_completion_script::HandleScript(), spell_grizzly_hills_ganjo_ressurection::HandleScript(), spell_icecrown_through_the_eye_kill_credit_to_master::HandleScript(), spell_icecrown_forcecast_bridenbrad_ascension::HandleScript(), spell_sholazar_sputum_collected::HandleScript(), spell_sholazar_lifeblood_dummy::HandleScript(), spell_storm_peaks_free_brunnhildar_prisoner::HandleScript(), spell_zuldrak_remove_akalis_stun::HandleScript(), spell_leotheras_the_blind_clear_consuming_madness::HandleScript(), spell_gruul_shatter::HandleScript(), spell_remove_kargath_executioner::HandleScript(), spell_kaelthas_explodes::HandleScript(), spell_bem_dispelling_analysis::HandleScript(), spell_terokkar_cancel_shadowy_disguise::HandleScript(), spell_pet_gen_lich_pet_aura_remove::HandleScript(), spell_gen_cancel_aura::HandleScript(), spell_volkaal_reanimate::HandleScript(), spell_deliver_stolen_horse::HandleScriptEffect(), spell_ethereal_pet_aura_remove::HandleScriptEffect(), npc_headless_horseman_head::HandleStartPhase(), misc_commandscript::HandleUnAuraCommand(), misc_commandscript::HandleUnFreezeCommand(), boss_valithria_dreamwalker::HealReceived(), npc_underbog_mushroom::InitializeAI(), npc_shard_of_torment::IsSummonedBy(), npc_bg_deephaul_cavern_mine_cart::JustAppeared(), boss_edna::JustAppeared(), dummy_dragonAI::JustDied(), npc_acolyte_of_vesperon::JustDied(), npc_gunship::npc_gunshipAI::JustDied(), npc_frostwing_ymirjar_vrykul::JustDied(), boss_high_astromancer_solarian::JustDied(), npc_anduin_wrynn_lost_soul::JustDied(), npc_pure_energy::JustDied(), npc_inner_demon::JustDied(), npc_blazing_monstrosity::npc_blazing_monstrosityAI::JustEngagedWith(), npc_matron_bryndle::JustEngagedWith(), npc_slad_ran_constrictor::JustEngagedWith(), npc_angered_soul_fragment::JustEngagedWith(), boss_ymiron_the_fallen_king::JustEngagedWith(), boss_kelris::JustEngagedWith(), boss_dark_shaman_koranthal::JustEngagedWith(), boss_jedoga_shadowseeker::JustEngagedWith(), boss_bronjahm::JustEngagedWith(), boss_lady_deathwhisper::JustEngagedWith(), boss_nexus_commanders::JustEngagedWith(), boss_mimiron::boss_mimironAI::JustEngagedWith(), npc_bone_spike::KilledUnit(), Player::LearnQuestRewardedSpells(), spell_pri_mind_devourer_buff::ModifyAuraValueAndRemoveBuff(), npc_anubarak_spike::MoveInLineOfSight(), boss_general_bjarngrim::MovementInform(), boss_headless_horseman::MovementInform(), boss_doomwalker_anniversary::MovementInform(), boss_high_priestess_azil::boss_high_priestess_azilAI::MovementInform(), boss_garfrost::MovementInform(), npc_ball_of_flame::MovementInform(), boss_doomwalker::MovementInform(), npc_jayce_darkweaver_invasion_begins::MovementInform(), npc_allari_the_souleater_invasion_begins::MovementInform(), npc_korvas_bloodthorn_invasion_begins::MovementInform(), npc_sevis_brightflame_invasion_begins::MovementInform(), npc_cyana_nightglaive_invasion_begins::MovementInform(), npc_frost_sphere::MovementInform(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::MovementInform(), npc_grauf::MovementInform(), npc_illidan_db_target::MovementInform(), boss_telash_greywing::MovementInform(), npc_anubarak_anub_ar_assassin::MovementInform(), spell_moroes_garrote_remove::OnApply(), spell_amanitar_potent_fungus::OnApply(), spell_halion_twilight_realm_handlers::OnApply(), spell_systems_shutdown::spell_systems_shutdown_AuraScript::OnApply(), spell_arcatraz_death_count::OnApply(), battleground_deephaul_ravine::OnCaptureFlag(), battleground_eye_of_the_storm::OnCaptureFlag(), battleground_twin_peaks::OnCaptureFlag(), battleground_warsong_gulch::OnCaptureFlag(), boss_skarmorak::OnChannelFinished(), npc_eye_of_acherus::OnCharmed(), npc_redridge_subdued_canyon_ettin::OnDespawn(), spell_warl_soul_swap_exhale::OnEffectHit(), Scripts::Kalimdor::Durotar::at_hellscreams_fist_gunship::OnExit(), Scripts::Pandaria::TheWanderingIsle::at_singing_pools_transform_base< CurseSpellID >::OnExit(), Scripts::Pandaria::TheWanderingIsle::at_singing_pools_transform_frog::OnExit(), battleground_temple_of_kotmogu::OnFlagDropped(), battleground_twin_peaks::OnFlagStateChange(), battleground_warsong_gulch::OnFlagStateChange(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::OnGossipHello(), npc_essence_of_twin::OnGossipHello(), Player::OnGossipSelect(), lfg::LFGPlayerScript::OnMapChanged(), movie_anduin_final::OnMovieComplete(), spell_love_is_in_the_air_romantic_picnic::OnPeriodic(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), spell_bg_defending_cart_aura_AuraScript::OnPeriodic(), spell_illidan_demon_transform2::OnPeriodic(), spell_kaelthas_gaining_power::OnPeriodic(), BattlefieldWG::OnPlayerLeaveWar(), BattlefieldWG::OnPlayerLeaveZone(), battleground_alterac_valley::OnPlayerLeft(), quest_the_cost_of_war::OnQuestStatusChange(), quest_blaze_of_glory::OnQuestStatusChange(), at_waycrest_manor_organ_missiles::OnRemove(), spell_kalecgos_spectral_realm_aura::OnRemove(), spell_baleroc_countdown::OnRemove(), spell_halion_combustion_consumption::OnRemove(), spell_halion_twilight_realm_handlers::OnRemove(), spell_jormungars_paralytic_toxin::OnRemove(), spell_icc_empowered_blood::OnRemove(), spell_icc_empowered_blood_3::OnRemove(), spell_algalon_phase_punch::OnRemove(), spell_load_into_catapult::spell_load_into_catapult_AuraScript::OnRemove(), spell_yogg_saron_sanity::spell_yogg_saron_sanity_AuraScript::OnRemove(), spell_palehoof_crazed::OnRemove(), Scripts::Pandaria::TheWanderingIsle::spell_flame_spout::OnRemove(), spell_dru_glyph_of_stars::OnRemove(), spell_gen_vehicle_control_link::OnRemove(), spell_gen_face_rage::OnRemove(), spell_hun_aspect_of_the_turtle::OnRemove(), spell_item_anger_capacitor< StackAmount >::spell_item_anger_capacitor_AuraScript< Stacks >::OnRemove(), spell_item_power_circle::OnRemove(), spell_item_shadowmourne::OnRemove(), spell_item_shadowmourne_soul_fragment::OnRemove(), spell_item_trinket_stack::spell_item_trinket_stack_AuraScript::OnRemove(), spell_item_water_strider::OnRemove(), spell_dh_cycle_of_hatred_talent::OnRemove(), spell_dh_fel_flame_fortification::OnRemove(), spell_dh_painbringer_reduce_damage::OnRemove(), spell_dru_incarnation::OnRemove(), spell_sha_spirit_wolf::OnRemove(), spell_pilgrims_bounty_a_serving_of::OnRemove(), spell_wintergrasp_tenacity_refresh::OnRemove(), spell_gen_impatient_mind::OnRemove(), spell_item_talisman_of_ascendance::OnRemove(), spell_item_jom_gabbar::OnRemove(), spell_item_battle_trance::OnRemove(), spell_item_world_queller_focus::OnRemove(), spell_item_brutal_kinship::OnRemove(), item_tainted_core::OnRemove(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveStun(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), scene_dark_portal_run_away::OnSceneComplete(), scene_bleeding_hollow_holdout::OnSceneComplete(), npc_descend_into_madness::npc_descend_into_madnessAI::OnSpellClick(), boss_hodir::OnSpellStart(), spell_exploding_orb_hasty_grow::OnStackChange(), spell_item_shadowmourne_soul_fragment::OnStackChange(), battleground_silvershard_mines::OnTrackSwitched(), at_the_candle_king_candlelight::OnUnitEnter(), at_lord_stormsong_waken_the_void::OnUnitEnter(), at_anduin_wrynn_beacon_of_hope::OnUnitEnter(), at_anduin_wrynn_blasphemy::OnUnitEnter(), at_bg_temple_of_kotmogu_small_area::OnUnitExit(), at_bg_temple_of_kotmogu_medium_area::OnUnitExit(), at_king_deepbeard_call_the_seas::OnUnitExit(), at_rokmora_choking_dust::OnUnitExit(), at_rokmora_crystalline_ground::OnUnitExit(), at_altar_altercation_reach_altar::OnUnitExit(), at_telash_greywing_vault_rune::OnUnitExit(), at_mana_devourer_energy_void::OnUnitExit(), at_shade_of_medivh_ceaseless_winter::OnUnitExit(), at_shade_of_medivh_flame_wreath::OnUnitExit(), at_the_curator_rtk_power_discharge::OnUnitExit(), at_azhiccar_digestive_spittle::OnUnitExit(), at_orator_krix_vizk_chains_of_oppression::OnUnitExit(), at_orator_krix_vizk_lingering_influence::OnUnitExit(), at_the_candle_king_molten_wax::OnUnitExit(), at_the_candle_king_candlelight::OnUnitExit(), at_tidesage_council_reinforcing_ward::OnUnitExit(), at_tidesage_council_swiftness_ward_boss::OnUnitExit(), at_tidesage_council_swiftness_ward_player::OnUnitExit(), at_heartsbane_triad_aura_of_apathy::OnUnitExit(), at_heartsbane_triad_aura_of_dread::OnUnitExit(), at_heartsbane_triad_aura_of_thorns::OnUnitExit(), at_waycrest_manor_wildfire::OnUnitExit(), Scripts::QuelThalas::MurderRow::KystiaManaheart::at_kystia_manaheart_fel_spray::OnUnitExit(), at_anduin_wrynn_hopelessness::OnUnitExit(), at_dk_death_and_decay::OnUnitExit(), at_hun_binding_shot::OnUnitExit(), at_hun_flare::OnUnitExit(), areatrigger_hun_tar_trap::OnUnitExit(), at_mage_meteor_burn::OnUnitExit(), areatrigger_pal_consecration::OnUnitExit(), areatrigger_sha_arctic_snowstorm::OnUnitExit(), at_volkaal_rapid_decay::OnUnitExit(), at_kings_rest_molten_gold::OnUnitExit(), conversation_an_unlikely_informant::OnUpdate(), conversation_kings_rest_intro::OnUpdate(), spell_dru_new_moon::OverrideMoon(), npc_constrictor_tentacle::npc_constrictor_tentacleAI::PassengerBoarded(), npc_tournament_mount::npc_tournament_mountAI::PassengerBoarded(), SmartScript::ProcessAction(), spell_gen_defend::RefreshVisualShields(), spell_sha_elemental_weapons::RemoveAllBuffs(), spell_mage_arcane_charge_clear::RemoveArcaneCharge(), battleground_eye_of_the_storm::RemoveAssaultDebuffFromPlayer(), battleground_twin_peaks::RemoveAssaultDebuffFromPlayer(), battleground_warsong_gulch::RemoveAssaultDebuffFromPlayer(), spell_teron_gorefiend_shadow_of_death_remove::RemoveAuras(), BattlefieldTB::RemoveAurasFromPlayer(), BattlefieldWG::RemoveAurasFromPlayer(), boss_festergut::RemoveBlight(), spell_warl_health_funnel::RemoveEffect(), spell_warl_channel_demonfire_activator::RemoveEffect(), RemoveGameObjectImpl(), boss_najentus::RemoveImpalingSpine(), spell_heartsbane_triad_drop_the_iris::RemoveIris(), spell_shirrak_inhibit_magic::RemoveOldAura(), boss_prince_taldaram::RemovePrison(), boss_keristrasza::RemovePrison(), Player::RemoveSpecializationSpells(), Player::RemoveSpell(), Pet::removeSpell(), spell_gen_defend::RemoveVisualShields(), boss_baroness_anastari::Reset(), boss_temple_guardian_anhuur::Reset(), boss_eye_of_cthun::eye_of_cthunAI::Reset(), boss_cthun::cthunAI::Reset(), boss_sartharion::Reset(), npc_shadron::Reset(), boss_deathbringer_saurfang::Reset(), boss_festergut::Reset(), boss_lord_marrowgar::Reset(), npc_frostwing_ymirjar_vrykul::Reset(), boss_elder_brightleaf::boss_elder_brightleafAI::Reset(), boss_elder_stonebark::boss_elder_stonebarkAI::Reset(), boss_elder_ironbranch::boss_elder_ironbranchAI::Reset(), npc_angered_soul_fragment::Reset(), boss_hydross_the_unstable::Reset(), boss_taerar::boss_taerarAI::Reset(), boss_volazj::ResetPlayersPhaseMask(), Player::ResurrectPlayer(), spell_volkaal_soul_anchor::SelectTotem(), Player::SendQuestUpdate(), Player::SetAreaSpiritHealer(), OPvPCapturePointZM_Graveyard::SetBeaconState(), boss_earthrager_ptah::SetData(), npc_sir_thomas::SpellHit(), npc_omen::SpellHit(), boss_buru::SpellHit(), boss_anub_arak::SpellHit(), boss_gal_darah::SpellHit(), boss_moorabi::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), npc_akama_shade::SpellHit(), boss_najentus::SpellHit(), boss_ahune::SpellHit(), boss_high_botanist_freywinn::SpellHit(), npc_infernal_attacker::npc_infernal_attackerAI::SpellHit(), npc_sporecaller_zancha_musashitake::SpellHit(), npc_troll_volunteer::SpellHit(), boss_ossirian::boss_ossirianAI::SpellHit(), boss_sister_svalna::SpellHit(), boss_felblood_kaelthas::SpellHitTarget(), boss_festergut::SpellHitTarget(), npc_malformed_ooze::SpellHitTarget(), npc_unstable_sun_beam::npc_unstable_sun_beamAI::SpellHitTarget(), boss_headless_horseman::StartPhase(), boss_jormungarAI::Submerge(), boss_ichoron::SummonedCreatureDespawn(), boss_moam::SummonedCreatureDies(), boss_garothi_worldbreaker::SummonedCreatureDies(), boss_netherspite::boss_netherspiteAI::SwitchToBanishPhase(), boss_netherspite::boss_netherspiteAI::SwitchToPortalPhase(), boss_aqusirr::ToggleSplit(), at_ds_pipe_knockback::Trigger(), spell_sha_thorims_invocation_trigger::TriggerLightningSpell(), npc_rokmora_navarrogg_intro::TriggerRokmoraIntro(), npc_kings_rest_shadow_of_zul::TriggerSerpentBossEvent(), AreaTrigger::UndoActions(), Totem::UnSummon(), boss_ioc_horde_alliance::UpdateAI(), boss_amalgam_of_souls::UpdateAI(), boss_telash_greywing::UpdateAI(), boss_chromaggus::UpdateAI(), boss_ragnaros::UpdateAI(), boss_moroes::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), boss_shade_of_medivh::UpdateAI(), boss_the_curator_rtk::UpdateAI(), npc_eye_of_acherus::UpdateAI(), npc_koltira_deathweaver::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_headless_horseman_head::UpdateAI(), boss_headless_horseman::UpdateAI(), boss_armsmaster_harlan::UpdateAI(), boss_baroness_anastari::UpdateAI(), npc_madrigosa::UpdateAI(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::UpdateAI(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), npc_medivh_bm::UpdateAI(), npc_husam_tolvir_land_mine::UpdateAI(), boss_slagmaw::UpdateAI(), boss_glutton::UpdateAI(), boss_buru::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_draenei_survivor::npc_draenei_survivorAI::UpdateAI(), boss_lord_stormsong_intro_npc< ConvoIntroSpellId, ConvoOutroSpellId >::UpdateAI(), npc_rock_borer::npc_rock_borerAI::UpdateAI(), boss_high_priestess_azil::boss_high_priestess_azilAI::UpdateAI(), npc_gravity_well::npc_gravity_wellAI::UpdateAI(), npc_lava_fissure::npc_lava_fissureAI::UpdateAI(), boss_volazj::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_prince_taldaram::UpdateAI(), boss_anubarak_trial::UpdateAI(), npc_nerubian_burrower::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), boss_professor_putricide::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), boss_anomalus::UpdateAI(), boss_magus_telestra::UpdateAI(), boss_loken::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_feral_defender::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), boss_elder_brightleaf::boss_elder_brightleafAI::UpdateAI(), npc_healthy_spore::npc_healthy_sporeAI::UpdateAI(), npc_eonars_gift::npc_eonars_giftAI::UpdateAI(), boss_hodir::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), boss_razorscale::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), boss_anzu::UpdateAI(), npc_akama_shade::UpdateAI(), boss_doomwalker::UpdateAI(), boss_hydross_the_unstable::UpdateAI(), boss_leotheras_the_blind::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_swamplord_muselek::UpdateAI(), boss_vazruden_the_herald::UpdateAI(), boss_magtheridon::UpdateAI(), npc_warden_mellichar::UpdateAI(), boss_laj::UpdateAI(), boss_alar::UpdateAI(), boss_kaelthas::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::UpdateAI(), boss_taerar::boss_taerarAI::UpdateAI(), npc_crok_scourgebane::UpdateEscortAI(), UpdateLiquidStatusOnPositionChange(), boss_archaedas::UpdateOutOfCombatEvents(), spell_item_amalgams_seventh_spine::UpdateSpecAura(), boss_vazruden_the_herald::UpdateSpecialEvents(), Player::UpdateWarModeAuras(), boss_guarm::WaypointPathEnded(), npc_earthen_ring_flamecaller::WaypointPathEnded(), boss_the_golden_serpent::WaypointPathEnded(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), and npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached().

◆ RemoveAurasDueToSpellByDispel()

◆ RemoveAurasDueToSpellBySteal()

◆ RemoveAurasOnEvade()

◆ RemoveAurasWithAttribute()

void Unit::RemoveAurasWithAttribute ( SpellAttr0  flags)

Definition at line 4165 of file Unit.cpp.

References flags, SpellInfo::HasAttribute(), m_appliedAuras, and RemoveAura().

Referenced by Player::UpdateIndoorsOutdoorsAuras().

◆ RemoveAurasWithFamily()

void Unit::RemoveAurasWithFamily ( SpellFamilyNames  family,
flag128 const &  familyFlag,
ObjectGuid  casterGUID 
)

◆ RemoveAurasWithInterruptFlags()

template<typename InterruptFlags >
template TC_GAME_API void Unit::RemoveAurasWithInterruptFlags ( InterruptFlags  flag,
SpellInfo const *  source = nullptr 
)

Definition at line 4259 of file Unit.cpp.

References AURA_REMOVE_BY_INTERRUPT, CURRENT_CHANNELED_SPELL, Aura::GetId(), Aura::GetSpellInfo(), SpellInfo::HasAuraInterruptFlag(), HasInterruptFlag(), SpellInfo::Id, InterruptSpell(), IsInterruptFlagIgnoredForSpell(), m_currentSpells, m_interruptableAuras, m_removedAurasCount, RemoveAura(), SPELL_STATE_CHANNELING, and UpdateInterruptMask().

Referenced by Spell::_cast(), _ExitVehicle(), Player::ActivateTalentGroup(), Map::AddPlayerToMap(), Player::AddTalent(), AddToWorld(), SpellInfo::ApplyAllSpellImmunitiesTo(), AtEndOfEncounter(), AtEnterCombat(), AtExitCombat(), AtStartOfEncounter(), AttackerStateUpdate(), AtTargetAttacked(), Player::BuildPlayerRepop(), DealDamage(), Dismount(), Player::DuelComplete(), Spell::EffectApplyGlyph(), VehicleJoinEvent::Execute(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraTransform(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleLootOpcode(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleModStealth(), WorldSession::HandleMovementOpcode(), WorldSession::HandlePlayerLogin(), WorldSession::HandleTextEmoteOpcode(), WorldSession::HandleTransmogOutfitNew(), WorldSession::HandleTransmogOutfitUpdateInfo(), WorldSession::HandleTransmogOutfitUpdateSituations(), WorldSession::HandleTransmogOutfitUpdateSlots(), InterruptMovementBasedAuras(), Mount(), battleground_eye_of_the_storm::OnCaptureFlag(), battleground_twin_peaks::OnCaptureFlag(), battleground_warsong_gulch::OnCaptureFlag(), battleground_eye_of_the_storm::OnFlagStateChange(), Spell::PreprocessSpellHit(), Player::ProcessItemCast(), RemoveFromWorld(), Battleground::RemovePlayerAtLeave(), Player::SetPetSlot(), SetSheath(), SetStandState(), Player::StartTaxiMovement(), Player::SummonIfPossible(), Player::TeleportTo(), Spell::update(), UpdateLiquidStatusOnPositionChange(), UpdatePosition(), and Player::UpdateWarModeAuras().

◆ RemoveAurasWithMechanic()

void Unit::RemoveAurasWithMechanic ( uint64  mechanicMaskToRemove,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT,
uint32  exceptSpellId = 0,
bool  withEffectMechanics = false 
)

◆ RemoveBindSightAuras()

void Unit::RemoveBindSightAuras ( )

Definition at line 6750 of file Unit.cpp.

References RemoveAurasByType(), and SPELL_AURA_BIND_SIGHT.

Referenced by RemoveFromWorld().

◆ RemoveChannelObject()

◆ RemoveCharmAuras()

◆ RemoveCharmedBy()

void Unit::RemoveCharmedBy ( Unit *  charmer)
Todo:
Handle SLOT_IDLE motion resume

Definition at line 12033 of file Unit.cpp.

References _oldFactionId, ApplyControlStatesIfNeeded(), ASSERT, AttackStop(), CastStop(), CHARM_TYPE_CHARM, CHARM_TYPE_CONVERT, CHARM_TYPE_POSSESS, CHARM_TYPE_VEHICLE, CLASS_WARLOCK, ClearUnitState(), CREATURE_TYPE_DEMON, DeleteCharmInfo(), GetAI(), GetCharmer(), GetCharmInfo(), GetClass(), Creature::GetCreatureTemplate(), GetFirstControlled(), BaseEntity::GetGUID(), GetMotionMaster(), BaseEntity::GetTypeId(), HasUnitState(), MotionMaster::InitializeDefault(), IsCharmed(), IsGuardian(), IsOnVehicle(), BaseEntity::IsPlayer(), IsVehicle(), LastCharmerGUID, m_combatManager, WorldObject::m_movementInfo, MOVEMENTFLAG_MASK_MOVING, MOVEMENTFLAG_MASK_TURNING, MovementInfo::RemoveMovementFlag(), RemoveUnitFlag(), RestoreFaction(), CombatManager::RevalidateCombat(), ScheduleAIChange(), Player::SendRemoveControlBar(), SetCharm(), SetClass(), Player::SetClientControl(), SetFaction(), CharmInfo::SetPetNumber(), StopMoving(), TC_LOG_ERROR, Object::ToCreature(), Object::ToPlayer(), Position::ToString(), CreatureTemplate::type, TYPEID_PLAYER, TYPEID_UNIT, CreatureTemplate::unit_class, UNIT_FLAG_POSSESSED, UNIT_FLAG_REMOVE_CLIENT_CONTROL, and UNIT_STATE_POSSESSED.

Referenced by AuraEffect::HandleCharmConvert(), AuraEffect::HandleModCharm(), AuraEffect::HandleModPossess(), AuraEffect::HandleModPossessPet(), RemoveFromWorld(), Vehicle::RemovePassenger(), and CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadResetScript().

◆ RemoveDynObject()

◆ RemoveFromWorld()

◆ RemoveGameObject() [1/2]

◆ RemoveGameObject() [2/2]

void Unit::RemoveGameObject ( uint32  spellid,
bool  del 
)

Definition at line 5446 of file Unit.cpp.

References m_gameObj, and RemoveGameObjectImpl().

◆ RemoveGameObjectImpl()

◆ RemoveInertia()

◆ RemoveMovementForce()

◆ RemoveMovementImpairingAuras()

◆ RemoveNotOwnSingleTargetAuras()

◆ RemoveNpcFlag()

void Unit::RemoveNpcFlag ( NPCFlags  flags)
inline

Definition at line 1013 of file Unit.h.

References flags, m_unitData, and UF::UnitData::NpcFlags.

Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), boss_victor_nefarius::BeginEvent(), boss_vaelastrasz::BeginSpeech(), npc_thalorien_dawnseeker::DoAction(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::DoAction(), npc_brann_bronzebeard_anraphet::DoAction(), Scripts::KhazAlgar::CampaignsVisionsOfAShadowedSun::npc_vereesa_windrunner_oztan_isle_private::DoAction(), npc_high_overlord_saurfang_icc::DoAction(), npc_muradin_bronzebeard_icc::DoAction(), npc_akama_illidan::DoAction(), VehicleJoinEvent::Execute(), quest_scout_chopper::HandleQuestStatusChange(), spell_deliver_stolen_horse::HandleScriptEffect(), npc_ship_captain_warming_up_private::InitializeAI(), npc_captain_warlord_first_aid_private::InitializeAI(), npc_huxsworth_hunter_quest_private::InitializeAI(), npc_huxsworth_briarpatch_quest_private::InitializeAI(), npc_dawntracker_hunter_quest_private::InitializeAI(), npc_dawntracker_briarpatch_quest_private::InitializeAI(), npc_prisoner_q55879_private::InitializeAI(), npc_bjorn_stouthands_q55965_private::InitializeAI(), npc_lana_jordan_q59948_private::InitializeAI(), TempSummon::InitStats(), npc_danica_the_reclaimer::IsSummonedBy(), npc_silverpine_orc_sea_pup::IsSummonedBy(), npc_jayce_darkweaver_cryptic_hollow_private::JustAppeared(), npc_silverpine_agatha_fenris_isle::JustAppeared(), npc_ship_captain_brace_for_impact_private::JustAppeared(), npc_medivh_bm::JustAppeared(), npc_drustvar_frightend_woodsman_private::JustAppeared(), npc_thassarian::JustAppeared(), npc_millhouse_manastorm::JustAppeared(), npc_akama_illidan::JustSummoned(), npc_wyrmrest_defender::OnCharmed(), conversation_the_invasion_begins::OnCreate(), conversation_an_unlikely_informant::OnCreate(), conversation_the_new_classington_estate::OnCreate(), Scripts::EasternKingdoms::StormwindCity::conversation_quest_ancient_curses_accept::OnCreate(), Scripts::KhazAlgar::CampaignsVisionsOfAShadowedSun::conversation_vereesas_tale::OnCreate(), conversation_natalia_pearces_accept_precious_gems::OnCreate(), conversation_natalia_pearces_complete_precious_gems::OnCreate(), conversation_burden_of_proof_speak_with_constable::OnCreate(), conversation_boralus_cyrus_meets_genn::OnCreate(), conversation_cyrus_crestfall_shaking_hands::OnCreate(), Scripts::QuelThalas::Harandar::Chapter1::conversation_the_root_cause_open_portal::OnCreate(), Scripts::QuelThalas::Harandar::Chapter1::conversation_to_harathir_follow_orweyna::OnCreate(), instance_stratholme::instance_stratholme_InstanceMapScript::OnCreatureCreate(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnCreatureCreate(), npc_brann_bronzebeard_anraphet::OnGossipSelect(), npc_tirion_fordring_tft::OnGossipSelect(), npc_high_overlord_saurfang_igb::OnGossipSelect(), npc_muradin_bronzebeard_igb::OnGossipSelect(), boss_apothecary_hummel::OnGossipSelect(), npc_voljin_zulaman::npc_voljin_zulamanAI::OnGossipSelect(), npc_7th_legion_magus_sanctum_of_the_sages::OnGossipSelect(), npc_sylvanas_fos::OnGossipSelect(), npc_jaina_fos::OnGossipSelect(), npc_brann_bronzebeard_ulduar_intro::npc_brann_bronzebeard_ulduar_introAI::OnGossipSelect(), npc_lorekeeper::npc_lorekeeperAI::OnGossipSelect(), npc_sinclari_vh::OnGossipSelect(), npc_observation_ring_keeper::npc_observation_ring_keeperAI::OnGossipSelect(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::OnGossipSelect(), npc_taretha::OnGossipSelect(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::OnGossipSelect(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::OnGossipSelect(), npc_expedition_commander::OnGossipSelect(), npc_thassarian::OnGossipSelect(), npc_akama_illidan::OnGossipSelect(), npc_barada::npc_baradaAI::OnGossipSelect(), npc_belnistrasz::npc_belnistraszAI::OnQuestAccept(), npc_kayn_sunfury_ashtongue_intro::OnQuestAccept(), boss_flame_leviathan_overload_device::boss_flame_leviathan_overload_deviceAI::OnSpellClick(), npc_whisperwind_lasher::npc_whisperwind_lasherAI::OnSpellClick(), RemoveVehicleKit(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), npc_sir_thomas::Reset(), npc_morridune::Reset(), npc_xerestrasza::Reset(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::Reset(), npc_tirion_fordring_tft::Reset(), npc_lake_frog::Reset(), npc_magister_aledis::npc_magister_aledisAI::Reset(), npc_chicken_cluck::npc_chicken_cluckAI::Reset(), hyjalAI::Retreat(), npc_barrett_toc::SendActionToTirion(), Creature::SetPetitioner(), Creature::SetVendor(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_announcer_toc5::npc_announcer_toc5AI::StartEncounter(), hyjalAI::StartEvent(), npc_magister_aledis::npc_magister_aledisAI::StartFight(), npc_thrall_old_hillsbrad::StartWP(), npc_brann_hos::StartWP(), npc_koltira_deathweaver::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_silverpine_orc_sea_pup::UpdateAI(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), npc_thassarian::UpdateAI(), npc_lake_frog::UpdateAI(), npc_brann_bronzebeard_keystone::UpdateAI(), npc_crusade_recruit::UpdateAI(), npc_akama_shade::UpdateAI(), boss_majordomo::UpdateSpecialEvents(), and Vehicle::Vehicle().

◆ RemoveNpcFlag2()

void Unit::RemoveNpcFlag2 ( NPCFlags2  flags)
inline

Definition at line 1019 of file Unit.h.

References flags, m_unitData, and UF::UnitData::NpcFlags2.

◆ RemoveOwnedAura() [1/3]

void Unit::RemoveOwnedAura ( Aura *  aura,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

◆ RemoveOwnedAura() [2/3]

◆ RemoveOwnedAura() [3/3]

void Unit::RemoveOwnedAura ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
uint32  reqEffMask = 0,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3790 of file Unit.cpp.

References m_ownedAuras, and RemoveOwnedAura().

◆ RemoveOwnedAuras() [1/2]

void Unit::RemoveOwnedAuras ( std::function< bool(Aura const *)> const &  check,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3932 of file Unit.cpp.

References m_ownedAuras, and RemoveOwnedAura().

Referenced by _RemoveNoStackAurasDueToAura(), and RemoveAurasOnEvade().

◆ RemoveOwnedAuras() [2/2]

void Unit::RemoveOwnedAuras ( uint32  spellId,
std::function< bool(Aura const *)> const &  check,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3959 of file Unit.cpp.

References m_ownedAuras, and RemoveOwnedAura().

◆ RemovePetFlag()

void Unit::RemovePetFlag ( UnitPetFlag  flags)
inline

Definition at line 908 of file Unit.h.

References flags, m_unitData, and UF::UnitData::PetFlags.

Referenced by WorldSession::HandlePetRename().

◆ RemovePlayerFromVision()

void Unit::RemovePlayerFromVision ( Player *  player)

◆ RemovePvpFlag()

◆ RemoveUnitFlag()

void Unit::RemoveUnitFlag ( UnitFlags  flags)
inline

Definition at line 862 of file Unit.h.

References flags, UF::UnitData::Flags, and m_unitData.

Referenced by AggroAllPlayers(), npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), Player::BuildPlayerRepop(), Player::CleanupAfterTaxiFlight(), Dismount(), boss_anub_arak::DoAction(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DoAction(), boss_vx_001::boss_vx_001AI::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_xt002_heart::DoAction(), FlightPathMovementGenerator::DoFinalize(), WorldSession::DoLootRelease(), Spell::EffectResurrectPet(), boss_jormungarAI::Emerge(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), AuraEffect::HandleArenaPreparation(), AuraEffect::HandleAuraModDmgImmunity(), AuraEffect::HandleAuraModFaction(), AuraEffect::HandleAuraModPacify(), AuraEffect::HandleAuraModPacifyAndSilence(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleFeignDeath(), boss_anduin_wrynn::HandleIntroduction(), WorldSession::HandleLogoutCancelOpcode(), AuraEffect::HandleModUnattackable(), PetAI::HandleReturnMovement(), Player::InitStatsForLevel(), boss_sylvanas_windrunner::JustAppeared(), boss_anubarak_trial::JustEngagedWith(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::JustReachedHome(), boss_ignis::boss_ignis_AI::JustSummoned(), npc_snobold_vassal::MountOnBoss(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), boss_flame_leviathan::boss_flame_leviathanAI::MovementInform(), npc_giant_infernal::npc_giant_infernalAI::npc_giant_infernalAI(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipSelect(), spell_systems_shutdown::spell_systems_shutdown_AuraScript::OnRemove(), spell_gen_feign_death_all_flags::OnRemove(), spell_gen_feign_death_all_flags_uninteractible::OnRemove(), spell_gen_feign_death_no_dyn_flag::OnRemove(), spell_gen_prevent_emotes::OnRemove(), spell_gen_feign_death_all_flags_no_uninteractible::OnRemove(), RemoveAllControlled(), RemoveCharmedBy(), boss_scarlet_commander_mograine::Reset(), boss_eye_of_cthun::eye_of_cthunAI::Reset(), boss_anub_arak::Reset(), dummy_dragonAI::Reset(), boss_anubarak_trial::Reset(), boss_ionar::Reset(), boss_mimiron::boss_mimironAI::Reset(), npc_venture_co_straggler::Reset(), npc_barada::npc_baradaAI::Reset(), emerald_dragonAI::Reset(), boss_novos::SetBubbled(), SetCharm(), setDeathState(), Creature::setDeathState(), Pet::setDeathState(), SetFeared(), SetImmuneToAll(), SetImmuneToNPC(), SetImmuneToPC(), SetStunned(), SetUninteractible(), Battlefield::ShowNpc(), boss_scarlet_commander_mograine::SpellHit(), npc_nether_drake::npc_nether_drakeAI::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::UpdateAI(), boss_anubarak_trial::UpdateAI(), boss_tyrannus::UpdateAI(), boss_sapphiron::UpdateAI(), boss_svala::UpdateAI(), npc_thassarian::UpdateAI(), npc_barada::npc_baradaAI::UpdateAI(), boss_taerar::boss_taerarAI::UpdateAI(), boss_ionar::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), CombatManager::UpdateOwnerCombatState(), and UpdatePetCombatState().

◆ RemoveUnitFlag2()

◆ RemoveUnitFlag3()

◆ RemoveUnitMovementFlag()

◆ RemoveVehicleKit()

◆ RemoveVisFlag()

◆ RemoveVisibleAura()

void Unit::RemoveVisibleAura ( AuraApplication *  aurApp)

Definition at line 729 of file Unit.cpp.

References m_visibleAuras, m_visibleAurasToUpdate, and UpdateAuraForGroup().

Referenced by AuraApplication::_Remove().

◆ RemoveVisibleAuraUpdate()

void Unit::RemoveVisibleAuraUpdate ( AuraApplication *  aurApp)

Definition at line 741 of file Unit.cpp.

References m_visibleAurasToUpdate.

◆ RemoveWorldEffect()

void Unit::RemoveWorldEffect ( int32  worldEffectId)

◆ ReplaceAllNpcFlags()

◆ ReplaceAllNpcFlags2()

◆ ReplaceAllPetFlags()

void Unit::ReplaceAllPetFlags ( UnitPetFlag  flags)
inline

◆ ReplaceAllPvpFlags()

void Unit::ReplaceAllPvpFlags ( UnitPVPStateFlags  flags)
inline

◆ ReplaceAllSilencedSchoolMask()

void Unit::ReplaceAllSilencedSchoolMask ( SpellSchoolMask  schoolMask)
inline

Definition at line 1519 of file Unit.h.

References m_unitData, and UF::UnitData::SilencedSchoolMask.

Referenced by AuraEffect::HandleAuraModSilence().

◆ ReplaceAllUnitFlags()

◆ ReplaceAllUnitFlags2()

void Unit::ReplaceAllUnitFlags2 ( UnitFlags2  flags)
inline

Definition at line 868 of file Unit.h.

References flags, UF::UnitData::Flags2, and m_unitData.

Referenced by Creature::setDeathState(), and Creature::UpdateEntry().

◆ ReplaceAllUnitFlags3()

void Unit::ReplaceAllUnitFlags3 ( UnitFlags3  flags)
inline

Definition at line 873 of file Unit.h.

References flags, UF::UnitData::Flags3, and m_unitData.

Referenced by Creature::setDeathState(), and Creature::UpdateEntry().

◆ ReplaceAllVisFlags()

void Unit::ReplaceAllVisFlags ( UnitVisFlags  flags)
inline

Definition at line 922 of file Unit.h.

References flags, m_unitData, and UF::UnitData::VisFlags.

Referenced by Creature::LoadCreaturesAddon().

◆ resetAttackTimer()

◆ RestoreDisabledAI()

void Unit::RestoreDisabledAI ( )
private

Definition at line 10277 of file Unit.cpp.

References GetTopAI(), and PopAI().

Referenced by ScheduleAIChange(), and UpdateCharmAI().

◆ RestoreDisplayId()

◆ RestoreFaction()

◆ ResumeMovement()

◆ RewardRage()

int32 Unit::RewardRage ( uint32  baseRage)

◆ RollMeleeOutcomeAgainst()

◆ Say() [1/2]

void Unit::Say ( std::string_view  text,
Language  language,
WorldObject const *  target = nullptr 
)
virtual

◆ Say() [2/2]

void Unit::Say ( uint32  textId,
WorldObject const *  target = nullptr 
)
virtual

Reimplemented in Player.

Definition at line 14546 of file Unit.cpp.

References CHAT_MSG_MONSTER_SAY, CONFIG_LISTEN_RANGE_SAY, and sWorld.

◆ ScheduleAIChange()

void Unit::ScheduleAIChange ( )

◆ SelectNearbyTarget()

Unit * Unit::SelectNearbyTarget ( Unit *  exclude = nullptr,
float  dist = NOMINAL_MELEE_RANGE 
) const

◆ SendAttackStateUpdate() [1/2]

◆ SendAttackStateUpdate() [2/2]

void Unit::SendAttackStateUpdate ( uint32  HitInfo,
Unit *  target,
uint8  SwingType,
SpellSchoolMask  damageSchoolMask,
uint32  Damage,
uint32  AbsorbDamage,
uint32  Resist,
VictimState  TargetState,
uint32  BlockedAmount,
uint32  RageGained 
)

◆ SendCancelSpellVisual()

◆ SendCancelSpellVisualKit()

◆ SendClearTarget()

◆ SendDurabilityLoss()

◆ SendEnergizeSpellLog()

◆ SendFlightSplineSyncUpdate()

◆ SendHealSpellLog()

◆ SendMeleeAttackStart()

◆ SendMeleeAttackStop()

◆ SendMoveKnockBack()

◆ SendPeriodicAuraLog()

void Unit::SendPeriodicAuraLog ( SpellPeriodicAuraLogInfo *  pInfo)
Todo:
: implement debug info

Definition at line 5621 of file Unit.cpp.

References SpellPeriodicAuraLogInfo::absorb, WorldPackets::CombatLog::PeriodicAuraLogEffect::AbsorbedOrAmplitude, WorldPackets::CombatLog::PeriodicAuraLogEffect::Amount, SpellPeriodicAuraLogInfo::auraEff, WorldPackets::CombatLog::SpellPeriodicAuraLog::CasterGUID, WorldPackets::CombatLog::PeriodicAuraLogEffect::ContentTuning, WorldPackets::CombatLog::PeriodicAuraLogEffect::Crit, SpellPeriodicAuraLogInfo::critical, SpellPeriodicAuraLogInfo::damage, WorldPackets::CombatLog::PeriodicAuraLogEffect::Effect, WorldPackets::CombatLog::SpellPeriodicAuraLog::Effects, WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), AuraEffect::GetAuraType(), AuraEffect::GetCasterGUID(), BaseEntity::GetGUID(), AuraEffect::GetId(), SpellInfo::GetSchoolMask(), AuraEffect::GetSpellInfo(), ObjectAccessor::GetUnit(), WorldPackets::Spells::SpellCastLogData::Initialize(), WorldPackets::CombatLog::CombatLogServerPacket::LogData, SpellPeriodicAuraLogInfo::originalDamage, WorldPackets::CombatLog::PeriodicAuraLogEffect::OriginalDamage, SpellPeriodicAuraLogInfo::overDamage, WorldPackets::CombatLog::PeriodicAuraLogEffect::OverHealOrKill, SpellPeriodicAuraLogInfo::resist, WorldPackets::CombatLog::PeriodicAuraLogEffect::Resisted, WorldPackets::CombatLog::PeriodicAuraLogEffect::SchoolMaskOrPower, WorldObject::SendCombatLogMessage(), WorldPackets::CombatLog::SpellPeriodicAuraLog::SpellID, and WorldPackets::CombatLog::SpellPeriodicAuraLog::TargetGUID.

Referenced by AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), and AuraEffect::HandlePeriodicManaLeechAuraTick().

◆ SendPetActionFeedback()

◆ SendPetActionSound()

◆ SendPetAIReaction()

◆ SendPetDismissSound()

◆ SendPlaySpellVisual() [1/2]

◆ SendPlaySpellVisual() [2/2]

◆ SendPlaySpellVisualKit()

void Unit::SendPlaySpellVisualKit ( uint32  id,
uint32  type,
uint32  duration 
) const

◆ SendSetVehicleRecId()

◆ SendSpellDamageImmune()

◆ SendSpellDamageResist()

◆ SendSpellNonMeleeDamageLog()

void Unit::SendSpellNonMeleeDamageLog ( SpellNonMeleeDamage const *  log)

Definition at line 5559 of file Unit.cpp.

References SpellNonMeleeDamage::absorb, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Absorbed, SpellNonMeleeDamage::attacker, SpellNonMeleeDamage::blocked, WorldPackets::CombatLog::SpellNonMeleeDamageLog::CasterGUID, SpellNonMeleeDamage::castId, WorldPackets::CombatLog::SpellNonMeleeDamageLog::CastID, WorldPackets::CombatLog::SpellNonMeleeDamageLog::ContentTuning, SpellNonMeleeDamage::damage, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Damage, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Flags, WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), BaseEntity::GetGUID(), SpellNonMeleeDamage::HitInfo, SpellInfo::Id, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Me, SpellNonMeleeDamage::originalDamage, WorldPackets::CombatLog::SpellNonMeleeDamageLog::OriginalDamage, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Overkill, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Periodic, SpellNonMeleeDamage::periodicLog, SpellNonMeleeDamage::preHitHealth, SpellNonMeleeDamage::reflectingSpellId, WorldPackets::CombatLog::SpellNonMeleeDamageLog::ReflectingSpellID, SpellNonMeleeDamage::resist, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Resisted, SpellNonMeleeDamage::schoolMask, WorldPackets::CombatLog::SpellNonMeleeDamageLog::SchoolMask, WorldObject::SendCombatLogMessage(), WorldPackets::CombatLog::SpellNonMeleeDamageLog::ShieldBlock, SpellNonMeleeDamage::Spell, WorldPackets::CombatLog::SpellNonMeleeDamageLog::SpellID, SpellNonMeleeDamage::SpellVisual, SpellNonMeleeDamage::target, and WorldPackets::CombatLog::SpellNonMeleeDamageLog::Visual.

Referenced by CalcAbsorbResist(), Spell::TargetInfo::DoDamageAndTriggers(), Spell::EffectEnvironmentalDMG(), misc_commandscript::HandleDamageCommand(), spell_sindragosa_s_fury::HandleDummy(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), spell_dk_dancing_rune_weapon::HandleProc(), AuraEffect::HandleProcTriggerDamageAuraProc(), and spell_warl_health_funnel::OnPeriodic().

◆ SendTeleportPacket()

◆ SetAI()

void Unit::SetAI ( UnitAI *  newAI)
protected

Definition at line 10238 of file Unit.cpp.

References PushAI(), and RefreshAI().

Referenced by Creature::AIM_Create(), and UpdateCharmAI().

◆ SetAIAnimKitId()

void Unit::SetAIAnimKitId ( uint16  animKitId)

Definition at line 11260 of file Unit.cpp.

References _aiAnimKitId, _meleeAnimKitId, _movementAnimKitId, CreateObjectBits::AnimKit, WorldPackets::Misc::SetAIAnimKit::AnimKitID, BaseEntity::GetGUID(), BaseEntity::m_updateFlag, sAnimKitStore, WorldObject::SendMessageToSet(), WorldPackets::Misc::SetAIAnimKit::Unit, and WorldPackets::Misc::SetAIAnimKit::Write().

Referenced by npc_silverpine_fallen_human::DoAction(), boss_lava_guard_gordoth::DoAction(), boss_azhiccar::DoAction(), boss_soulbound_goliath::DoAction(), npc_demon_hunter_hidden_no_more_private::DoAction(), quest_cooking_meat::HandleQuestStatusChange(), npc_amalgam_of_souls_soul_echoes_stalker::IsSummonedBy(), npc_kayn_sunfury_ashtongue_intro_private::JustAppeared(), npc_mannethrel_darkstar_freed_private::JustAppeared(), Scripts::EasternKingdoms::Vashjir::AbyssalDepths::npc_abyssal_depths_whirlpool_vehicle::JustAppeared(), npc_silverpine_skitterweb_matriarch::JustAppeared(), boss_azhiccar::JustAppeared(), boss_soulbound_goliath::JustAppeared(), npc_blood_effigy::JustDied(), npc_silverpine_skitterweb_matriarch::JustEngagedWith(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::JustEngagedWith(), boss_elder_leaxa::JustEngagedWith(), Creature::LoadCreaturesAddon(), npc_kayn_sunfury_invasion_begins::MovementInform(), conversation_the_invasion_begins::OnCreate(), npc_weapon_inspector_valarjar::Reset(), npc_sevis_brightflame_shivarra_gateway::SacrificePlayer(), conversation_the_invasion_begins::StartCloneMovement(), npc_silverpine_skitterweb_matriarch::UpdateAI(), and Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::UpdateAI().

◆ SetAlwaysAllowPitching()

◆ SetAnimTier()

◆ SetArmor()

◆ SetAttackPower()

void Unit::SetAttackPower ( int32  attackPower)
inline

◆ SetAttackPowerModNeg()

void Unit::SetAttackPowerModNeg ( int32  attackPowerMod)
inline

◆ SetAttackPowerModPos()

void Unit::SetAttackPowerModPos ( int32  attackPowerMod)
inline

◆ SetAttackPowerMultiplier()

void Unit::SetAttackPowerMultiplier ( float  attackPowerMult)
inline

◆ setAttackTimer()

void Unit::setAttackTimer ( WeaponAttackType  type,
uint32  time 
)
inline

Definition at line 710 of file Unit.h.

Referenced by Attack(), DealMeleeDamage(), DoMeleeAttackIfReady(), and Update().

◆ SetAuraStack()

◆ SetBaseAttackTime()

◆ SetBaseWeaponDamage()

void Unit::SetBaseWeaponDamage ( WeaponAttackType  attType,
WeaponDamageRange  damageRange,
float  value 
)
inline

◆ SetBattlePetCompanionExperience()

void Unit::SetBattlePetCompanionExperience ( uint32  experience)
inline

Definition at line 1289 of file Unit.h.

References UF::UnitData::BattlePetCompanionExperience, and m_unitData.

Referenced by Player::SetBattlePetData().

◆ SetBattlePetCompanionGUID()

void Unit::SetBattlePetCompanionGUID ( ObjectGuid  guid)
inline

Definition at line 1222 of file Unit.h.

References UF::UnitData::BattlePetCompanionGUID, and m_unitData.

Referenced by SetMinion().

◆ SetBattlePetCompanionNameTimestamp()

void Unit::SetBattlePetCompanionNameTimestamp ( uint32  timestamp)
inline

Definition at line 1287 of file Unit.h.

References UF::UnitData::BattlePetCompanionNameTimestamp, and m_unitData.

Referenced by SetMinion().

◆ SetBonusResistanceMod()

void Unit::SetBonusResistanceMod ( SpellSchools  school,
int32  val 
)
inline

◆ SetBoundingRadius()

void Unit::SetBoundingRadius ( float  boundingRadius)
inline

◆ SetCanAdvFly()

◆ SetCanDoubleJump()

◆ SetCanDualWield()

virtual void Unit::SetCanDualWield ( bool  value)
inlinevirtual

Reimplemented in Creature.

Definition at line 716 of file Unit.h.

Referenced by Spell::EffectDualWield(), Player::RemoveSpell(), and Creature::SetCanDualWield().

◆ SetCanFly()

bool Unit::SetCanFly ( bool  enable)

Definition at line 13538 of file Unit.cpp.

References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), Position::GetPositionZ(), BaseEntity::GetTypeId(), HasUnitMovementFlag(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_CAN_FLY, MOVEMENTFLAG_MASK_MOVING_FLY, MOVEMENTFLAG_SPLINE_ELEVATION, MOVEMENTFLAG_SWIMMING, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, Player::SetFallInformation(), SMSG_MOVE_SET_CAN_FLY, SMSG_MOVE_SPLINE_SET_FLYING, SMSG_MOVE_SPLINE_UNSET_FLYING, SMSG_MOVE_UNSET_CAN_FLY, WorldPackets::Movement::MoveUpdate::Status, Object::ToPlayer(), TYPEID_PLAYER, WorldPackets::Movement::MoveUpdate::Write(), WorldPackets::Movement::MoveSplineSetFlag::Write(), and WorldPackets::Movement::MoveSetFlag::Write().

Referenced by boss_slabhide::boss_slabhideAI::boss_slabhideAI(), boss_sindragosa::DoAction(), AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), gm_commandscript::HandleGMFlyCommand(), AuraEffect::HandleModAdvFlying(), boss_sindragosa::JustReachedHome(), boss_nefarian::MovementInform(), boss_onyxia::MovementInform(), boss_high_priestess_azil::boss_high_priestess_azilAI::MovementInform(), boss_slabhide::boss_slabhideAI::MovementInform(), boss_saviana_ragefire::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), npc_rimefang_icc::MovementInform(), npc_melee_hover_disk::PassengerBoarded(), npc_caster_hover_disk::PassengerBoarded(), npc_grauf::PassengerBoarded(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::Reset(), boss_high_priestess_azil::boss_high_priestess_azilAI::Reset(), boss_slabhide::boss_slabhideAI::Reset(), boss_saviana_ragefire::Reset(), npc_unleashed_ballAI::Reset(), boss_rimefang::Reset(), boss_sindragosa::Reset(), npc_spinestalker::Reset(), npc_rimefang_icc::Reset(), npc_simon_bunny::npc_simon_bunnyAI::SetGUID(), npc_pet_dk_ebon_gargoyle::SpellHit(), npc_silverpine_agatha_fenris_isle::UpdateAI(), boss_slabhide::boss_slabhideAI::UpdateAI(), boss_saviana_ragefire::UpdateAI(), boss_sindragosa::UpdateAI(), npc_rimefang_icc::UpdateAI(), boss_urom::UpdateAI(), and npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI().

◆ SetCanModifyStats()

void Unit::SetCanModifyStats ( bool  modifyStats)
inline

◆ SetCannotTurn()

void Unit::SetCannotTurn ( bool  apply)

Definition at line 8591 of file Unit.cpp.

References RemoveUnitFlag2(), SetUnitFlag2(), and UNIT_FLAG2_CANNOT_TURN.

◆ SetCantProc()

void Unit::SetCantProc ( bool  apply)

Definition at line 11111 of file Unit.cpp.

References ASSERT, and m_procDeep.

Referenced by TriggerAurasProcOnEvent().

◆ SetCanTransitionBetweenSwimAndFly()

◆ SetCanTurnWhileFalling()

◆ SetChannelObject()

void Unit::SetChannelObject ( uint32  slot,
ObjectGuid  guid 
)

◆ SetChannelSpellData()

void Unit::SetChannelSpellData ( uint32  startTimeMs,
uint32  durationMs 
)
inline

◆ SetChannelSpellId()

void Unit::SetChannelSpellId ( uint32  channelSpellId)
inline

◆ SetChannelVisual()

void Unit::SetChannelVisual ( SpellCastVisual  channelVisual)
inline

◆ SetCharm()

◆ SetCharmedBy()

bool Unit::SetCharmedBy ( Unit *  charmer,
CharmType  type,
AuraApplication const *  aurApp = nullptr 
)

Definition at line 11859 of file Unit.cpp.

References _oldFactionId, AddUnitState(), ASSERT, AttackStop(), CastStop(), CHARM_TYPE_CHARM, CHARM_TYPE_CONVERT, CHARM_TYPE_POSSESS, CHARM_TYPE_VEHICLE, Player::CharmSpellInitialize(), CLASS_MAGE, CLASS_WARLOCK, MotionMaster::Clear(), CREATURE_TYPE_DEMON, GetAI(), GetCharmerGUID(), GetCharmInfo(), GetClass(), Creature::GetCreatureTemplate(), GetFaction(), GameTime::GetGameTime(), BaseEntity::GetGUID(), GetMotionMaster(), AuraApplication::GetRemoveMode(), WorldObject::GetTransport(), BaseEntity::GetTypeId(), GetVehicleKit(), MotionMaster::HasMovementGenerator(), CharmInfo::InitCharmCreateSpells(), InitCharmInfo(), MotionMaster::InitializeDefault(), CharmInfo::InitPossessCreateSpells(), BaseEntity::IsInWorld(), m_combatManager, MOTION_PRIORITY_HIGHEST, MOTION_PRIORITY_NORMAL, PauseMovement(), Player::PossessSpellInitialize(), RemoveAurasByType(), CombatManager::RevalidateCombat(), ScheduleAIChange(), SetCharm(), SetClass(), Player::SetClientControl(), SetFaction(), SetPetNameTimestamp(), CharmInfo::SetPetNumber(), SetUnitFlag(), sObjectMgr, SPELL_AURA_MOUNTED, Player::StopCastingBindSight(), Player::StopCastingCharm(), StopMoving(), TC_LOG_DEBUG, TC_LOG_FATAL, Object::ToCreature(), Object::ToPlayer(), ObjectGuid::ToString(), Position::ToString(), CreatureTemplate::type, TYPEID_PLAYER, TYPEID_UNIT, UNIT_FLAG_POSSESSED, UNIT_FLAG_REMOVE_CLIENT_CONTROL, UNIT_STATE_CHARMED, UNIT_STATE_POSSESSED, and Player::VehicleSpellInitialize().

Referenced by VehicleJoinEvent::Execute(), AuraEffect::HandleCharmConvert(), AuraEffect::HandleModCharm(), AuraEffect::HandleModPossess(), AuraEffect::HandleModPossessPet(), and Puppet::InitSummon().

◆ SetClass()

◆ SetCollision()

◆ SetCombatReach()

◆ SetConfused()

◆ SetControlled()

void Unit::SetControlled ( bool  apply,
UnitState  state 
)

Definition at line 11631 of file Unit.cpp.

References AddUnitState(), ApplyControlStatesIfNeeded(), CastStop(), ClearUnitState(), GetVehicle(), HasAuraType(), HasUnitState(), SendMeleeAttackStop(), SetConfused(), SetFeared(), SetRooted(), SetStunned(), SPELL_AURA_MOD_CONFUSE, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_ROOT_2, SPELL_AURA_MOD_ROOT_DISABLE_GRAVITY, SPELL_AURA_MOD_STUN, SPELL_AURA_MOD_STUN_DISABLE_GRAVITY, Object::ToCreature(), UNIT_STATE_CONFUSED, UNIT_STATE_CONTROLLED, UNIT_STATE_FLEEING, UNIT_STATE_ROOT, and UNIT_STATE_STUNNED.

Referenced by _ExitVehicle(), Vehicle::ApplyAllImmunities(), boss_kologarn::boss_kologarnAI::boss_kologarnAI(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), boss_illidan_stormrage::DamageTaken(), npc_stalagg::DoAction(), npc_feugen::DoAction(), npc_briarpatch_prisoner::DoAction(), Creature::DoFleeToGetAssistance(), boss_jormungarAI::Emerge(), VehicleJoinEvent::Execute(), boss_illidan_stormrage::ExecuteSpecialEvents(), scene_odyn_intro::Finish(), AuraEffect::HandleAuraModRoot(), AuraEffect::HandleAuraModRootAndDisableGravity(), AuraEffect::HandleAuraModStun(), AuraEffect::HandleAuraModStunAndDisableGravity(), AuraEffect::HandleModConfuse(), AuraEffect::HandleModFear(), AuraEffect::HandlePreventFleeing(), npc_briarpatch_prisoner::JustAppeared(), boss_ignis::boss_ignis_AI::JustSummoned(), boss_malygos::MovementInform(), boss_alar::MovementInform(), npc_gunship_gunner::MovementInform(), npc_gunship_rocketeer::MovementInform(), npc_gunship_mage::MovementInform(), npc_scorch_ground::npc_scorch_groundAI::npc_scorch_groundAI(), battleground_isle_of_conquest::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::OnPlayerLeave(), spell_skadi_ride_vehicle::OnRemoveVehicle(), scene_odyn_intro::OnSceneStart(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::OnUnitDeath(), npc_gunship_cannon::PassengerBoarded(), npc_giant_boar_vehicle_q55879::PassengerBoarded(), boss_volazj::Reset(), boss_acidmaw::Reset(), boss_devourer_of_souls::Reset(), boss_urom::Reset(), boss_ionar::Reset(), boss_thorim::boss_thorimAI::Reset(), npc_tournament_training_dummy::Reset(), boss_illidan_stormrage::Reset(), npc_giant_boar_vehicle_q55879::SpellHit(), boss_ionar::SpellHit(), boss_volazj::SpellHitTarget(), boss_jormungarAI::Submerge(), npc_captain_garrick_q55879::UpdateAI(), npc_giant_boar_vehicle_q55879::UpdateAI(), boss_archimonde::UpdateAI(), boss_volazj::UpdateAI(), boss_devourer_of_souls::UpdateAI(), boss_urom::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), npc_tournament_training_dummy::UpdateAI(), boss_illidan_stormrage::UpdateAI(), boss_alar::UpdateAI(), boss_ionar::UpdateAI(), and Creature::UpdateSessileMovementFlags().

◆ SetCosmeticMountDisplayId()

void Unit::SetCosmeticMountDisplayId ( uint32  mountDisplayId)
inline

Definition at line 931 of file Unit.h.

References UF::UnitData::CosmeticMountDisplayID, and m_unitData.

Referenced by AuraEffect::HandleCosmeticMounted().

◆ SetCreatedBySpell()

void Unit::SetCreatedBySpell ( int32  spellId)
inline

◆ SetCreateHealth()

void Unit::SetCreateHealth ( uint32  val)
inline

◆ SetCreateMana()

void Unit::SetCreateMana ( uint32  val)
inline

◆ SetCreateStat()

void Unit::SetCreateStat ( Stats  stat,
float  val 
)

◆ SetCreatorGUID()

◆ SetCritterGUID()

void Unit::SetCritterGUID ( ObjectGuid  guid)
inline

Definition at line 1220 of file Unit.h.

References UF::UnitData::Critter, and m_unitData.

Referenced by SetMinion().

◆ SetCurrentCastSpell()

◆ setDeathState()

◆ SetDemonCreatorGUID()

void Unit::SetDemonCreatorGUID ( ObjectGuid  guid)
inline

Definition at line 1224 of file Unit.h.

References UF::UnitData::DemonCreator, and m_unitData.

Referenced by Spell::EffectSummonType(), and Map::SummonCreature().

◆ SetDisableGravity()

bool Unit::SetDisableGravity ( bool  disable,
bool  updateAnimTier = true,
bool  updatePlayHoverAnim = true 
)

Definition at line 13440 of file Unit.cpp.

References AddUnitMovementFlag(), Fly, BaseEntity::GetGUID(), GetPlayerMovingMe(), GetVehicle(), Ground, HasUnitState(), Hover, IsAlive(), BaseEntity::IsCreature(), IsGravityDisabled(), IsHovering(), BaseEntity::IsPlayer(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_DISABLE_GRAVITY, MOVEMENTFLAG_SPLINE_ELEVATION, MOVEMENTFLAG_SWIMMING, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SetAnimTier(), SetPlayHoverAnim(), SMSG_MOVE_DISABLE_GRAVITY, SMSG_MOVE_ENABLE_GRAVITY, SMSG_MOVE_SPLINE_DISABLE_GRAVITY, SMSG_MOVE_SPLINE_ENABLE_GRAVITY, WorldPackets::Movement::MoveUpdate::Status, UNIT_STATE_ROOT, WorldPackets::Movement::MoveUpdate::Write(), WorldPackets::Movement::MoveSplineSetFlag::Write(), and WorldPackets::Movement::MoveSetFlag::Write().

Referenced by boss_aerial_command_unit::boss_aerial_command_unitAI::boss_aerial_command_unitAI(), boss_prince_taldaram::boss_prince_taldaram(), boss_slabhide::boss_slabhideAI::boss_slabhideAI(), boss_vx_001::boss_vx_001AI::boss_vx_001AI(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), npc_high_overlord_saurfang_icc::DoAction(), npc_muradin_bronzebeard_icc::DoAction(), boss_sindragosa::DoAction(), boss_algalon_the_observer::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), boss_razorscale::DoAction(), boss_illidan_stormrage::DoAction(), npc_pulsing_pumpkin::DoAction(), npc_silverpine_deathstalker_rane_yorick::DoAction(), npc_briarpatch_prisoner::DoAction(), boss_nightbane::boss_nightbaneAI::EnterEvadeMode(), boss_felmyst::EnterPhase(), VehicleJoinEvent::Execute(), boss_nightbane::boss_nightbaneAI::ExecuteEvent(), spell_aqusirr_surging_rush_selector::HandleActionSet(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), HandleAuraDisableGravity(), spell_gen_gryphon_wyvern_mount_check::HandleEffectPeriodic(), boss_felmyst::HandleFlightSequence(), spell_aqusirr_surging_rush::HandleScript(), boss_razorscale::Initialize(), boss_headless_horseman::InitializeAI(), npc_pulsing_pumpkin::InitializeAI(), npc_icc_nerubar_broodkeeper::InitializeAI(), npc_raz_the_crazed::npc_raz_the_crazedAI::IsSummonedBy(), npc_silverpine_forsaken_bat::IsSummonedBy(), npc_bg_deephaul_ravine_commander< Path1, Path2, Path3, Path4 >::JustAppeared(), boss_kirtonos_the_herald::JustAppeared(), npc_silverpine_skitterweb_matriarch::JustAppeared(), npc_briarpatch_prisoner::JustAppeared(), npc_brood_of_anzu::JustAppeared(), boss_vazruden_the_herald::JustAppeared(), boss_alar::JustAppeared(), npc_anduin_wrynn_anduin_soul::JustAppeared(), boss_the_golden_serpent::JustAppeared(), boss_mimiron::boss_mimironAI::JustDied(), boss_the_lich_king::JustDied(), boss_ayamiss::JustEngagedWith(), boss_ayamiss::JustReachedHome(), boss_blood_queen_lana_thel::JustReachedHome(), boss_sindragosa::JustReachedHome(), boss_sister_svalna::JustReachedHome(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::JustSummoned(), boss_nefarian::MovementInform(), boss_onyxia::MovementInform(), boss_ayamiss::MovementInform(), boss_high_priestess_azil::boss_high_priestess_azilAI::MovementInform(), boss_slabhide::boss_slabhideAI::MovementInform(), boss_blood_queen_lana_thel::MovementInform(), boss_sister_svalna::MovementInform(), npc_icc_nerubar_broodkeeper::MovementInform(), boss_malygos::MovementInform(), npc_ruby_emerald_amber_drake::MovementInform(), boss_alar::MovementInform(), boss_saviana_ragefire::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), npc_rimefang_icc::MovementInform(), boss_nightbane::boss_nightbaneAI::MovementInform(), npc_kalecgos::MovementInform(), boss_razorscale::MovementInform(), npc_gothik_trigger::npc_gothik_trigger(), npc_rock_borer::npc_rock_borerAI::npc_rock_borerAI(), npc_seismic_shard::npc_seismic_shardAI::npc_seismic_shardAI(), npc_stalactite_trigger::npc_stalactite_triggerAI::npc_stalactite_triggerAI(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), Scripts::Pandaria::TheJadeForest::npc_rappelling_rope::PassengerBoarded(), npc_melee_hover_disk::PassengerBoarded(), npc_caster_hover_disk::PassengerBoarded(), npc_grauf::PassengerBoarded(), Vehicle::RemovePassenger(), boss_prince_taldaram::RemovePrison(), boss_nightbane::boss_nightbaneAI::Reset(), boss_felmyst::Reset(), boss_kalecgos_kj::boss_kalecgos_kjAI::Reset(), npc_shield_orb::npc_shield_orbAI::Reset(), boss_high_priestess_azil::boss_high_priestess_azilAI::Reset(), boss_slabhide::boss_slabhideAI::Reset(), boss_saviana_ragefire::Reset(), npc_unleashed_ballAI::Reset(), npc_open_portal_target_toc::Reset(), npc_blood_queen_lana_thel::Reset(), boss_sindragosa::Reset(), npc_spinestalker::Reset(), npc_rimefang_icc::Reset(), boss_malygos::Reset(), boss_urom::Reset(), boss_thorim::boss_thorimAI::Reset(), boss_svala::Reset(), boss_illidan_stormrage::Reset(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::Reset(), npc_raz_the_crazed::npc_raz_the_crazedAI::SetData(), Creature::setDeathState(), npc_hive_zara_swarmer::SpellHit(), npc_high_overlord_saurfang_icc::SpellHit(), npc_muradin_bronzebeard_icc::SpellHit(), npc_saurfang_event::SpellHit(), npc_image_of_medivh::npc_image_of_medivhAI::StartEvent(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), boss_telash_greywing::UpdateAI(), npc_madrigosa::UpdateAI(), boss_kalecgos::UpdateAI(), npc_silverpine_deathstalker_rane_yorick::UpdateAI(), npc_silverpine_skitterweb_matriarch::UpdateAI(), npc_silverpine_agatha_fenris_isle::UpdateAI(), npc_highborne_lamenter::npc_highborne_lamenterAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), boss_slabhide::boss_slabhideAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_saviana_ragefire::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), boss_sindragosa::UpdateAI(), boss_the_lich_king::UpdateAI(), boss_urom::UpdateAI(), npc_ruby_emerald_amber_drake::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_feral_defender::UpdateAI(), boss_razorscale::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), boss_svala::UpdateAI(), boss_illidan_stormrage::UpdateAI(), boss_alar::UpdateAI(), boss_kaelthas::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), Creature::UpdateFloatingMovementFlags(), boss_kirtonos_the_herald::UpdateIntroEvents(), Creature::UpdateSessileMovementFlags(), boss_vazruden_the_herald::UpdateSpecialEvents(), boss_headless_horseman::WaypointPathEnded(), Scripts::EasternKingdoms::StormwindCity::npc_arkonarin_starshade_ancient_curses::WaypointPathEnded(), Scripts::EasternKingdoms::StormwindCity::npc_lysande_starshade_ancient_curses::WaypointPathEnded(), boss_the_golden_serpent::WaypointPathEnded(), and npc_brood_of_anzu::WaypointPathEnded().

◆ SetDisableInertia()

◆ SetDisplayId()

◆ SetEmoteState()

void Unit::SetEmoteState ( Emote  emote)
inline

Definition at line 880 of file Unit.h.

References UF::UnitData::EmoteState, and m_unitData.

Referenced by Attack(), Scripts::Pandaria::TheWanderingIsle::npc_huojin_trainee::BeginSparring(), boss_vx_001::boss_vx_001AI::boss_vx_001AI(), Scripts::Pandaria::TheWanderingIsle::npc_tushui_huojin_trainee::DamageTaken(), npc_safe_technician_sanitron::DoAction(), npc_icc_nerubar_broodkeeper::DoAction(), CoolestFriendBaseAI::DoAction(), boss_vx_001::boss_vx_001AI::DoAction(), boss_grand_warlock_nethekurse::DoAction(), Scripts::Pandaria::TheWanderingIsle::npc_huojin_trainee::DoAction(), boss_lord_stormsong::DoAction(), npc_martha_goslin::npc_martha_goslinAI::DoAction(), WorldSession::HandleEmoteOpcode(), modify_commandscript::HandleModifyStandStateCommand(), WorldSession::HandleMovementOpcode(), npc_commandscript::HandleNpcPlayEmoteCommand(), spell_operation_gnomeregan_basic_orders_emote::HandlePeriodic(), spell_sholazar_freya_dummy::HandleScript(), WorldSession::HandleTextEmoteOpcode(), npc_icc_nerubar_broodkeeper::InitializeAI(), npc_martha_goslin::npc_martha_goslinAI::JustAppeared(), boss_anduin_wrynn::JustAppeared(), boss_cragmaw_the_infested::JustAppeared(), npc_lockmaw_augh_boss::JustEngagedWith(), npc_dk_understudy::JustEngagedWith(), npc_dragonflayer_forge_master::JustEngagedWith(), npc_tirion_fordring_tft::JustReachedHome(), Creature::LoadCreaturesAddon(), npc_martha_goslin::npc_martha_goslinAI::MovementInform(), npc_tirion_fordring_tft::MovementInform(), npc_apothecary_genericAI::MovementInform(), npc_safe_technician_sanitron::MovementInform(), npc_expedition_engineer::MovementInform(), npc_skadi_trashAI::MovementInform(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::OnHealthDepleted(), npc_kayn_sunfury_ashtongue_intro::OnQuestAccept(), conversation_an_unlikely_informant::OnUpdate(), conversation_the_new_classington_estate::OnUpdate(), npc_amberpine_woodsman::Reset(), npc_crusade_recruit::Reset(), boss_shade_of_akama::Reset(), npc_dancing_flames::Reset(), setDeathState(), boss_shade_of_akama::SpellHit(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::SpellHitTarget(), boss_felblood_kaelthas::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_partygoer_pather::UpdateAI(), npc_partygoer::UpdateAI(), npc_huxsworth_hunter_quest_private::UpdateAI(), npc_dawntracker_hunter_quest_private::UpdateAI(), npc_martha_goslin::npc_martha_goslinAI::UpdateAI(), npc_medivh_bm::UpdateAI(), npc_lockmaw_augh_boss::UpdateAI(), npc_andorov::UpdateAI(), boss_lich_king_toc::UpdateAI(), npc_fizzlebang_toc::UpdateAI(), npc_thassarian::UpdateAI(), npc_amberpine_woodsman::UpdateAI(), npc_brann_bronzebeard_keystone::UpdateAI(), npc_crusade_recruit::UpdateAI(), npc_alchemist_finklestein::UpdateAI(), npc_akama_illidan::UpdateAI(), boss_magtheridon::UpdateAI(), boss_grand_warlock_nethekurse::UpdateOutOfCombatEvents(), npc_thassarian::WaypointPathEnded(), boss_xt002::WaypointReached(), and npc_ghoul::npc_ghoulAI::WaypointReached().

◆ SetEnableFullSpeedPitching()

◆ SetEnableFullSpeedTurning()

◆ SetFacingTo()

void Unit::SetFacingTo ( float  ori,
bool  force = true,
uint32  movementId = EVENT_FACE 
)

Definition at line 13385 of file Unit.cpp.

References GetMotionMaster(), IsStopped(), MotionMaster::MoveFace(), and movespline.

Referenced by npc_expedition_engineer::ChangeOrientation(), boss_garothi_worldbreaker::DamageTaken(), npc_auchindoun_auchenai_defender::DoAction(), npc_safe_technician_sanitron::DoAction(), npc_aqusirr_intro_lord_stormsong::DoAction(), boss_grand_warlock_nethekurse::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), boss_lord_stormsong::DoAction(), FormationMovementGenerator::DoUpdate(), DistractMovementGenerator::Finalize(), spell_item_unusual_compass::HandleDummy(), boss_felmyst::HandleFlightSequence(), spell_mandokir_devastating_slam::HandleScript(), npc_silverpine_skitterweb_matriarch::JustReachedHome(), spell_alysrazor_turn_monstrosity::spell_alysrazor_turn_monstrosity_SpellScript::KnockBarrage(), boss_shade_of_aran::boss_aranAI::MoveInLineOfSight(), npc_lockmaw_augh_boss::MovementInform(), npc_voljin_zulaman::npc_voljin_zulamanAI::MovementInform(), boss_algalon_the_observer::MovementInform(), npc_martha_goslin::npc_martha_goslinAI::MovementInform(), npc_roger_owens::npc_roger_owensAI::MovementInform(), boss_onyxia::MovementInform(), boss_high_priestess_azil::boss_high_priestess_azilAI::MovementInform(), boss_slabhide::boss_slabhideAI::MovementInform(), npc_commander_eligor_dawnbringer::MovementInform(), npc_king_jokkum_vehicle::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), npc_rimefang_icc::MovementInform(), boss_aerial_command_unit::boss_aerial_command_unitAI::MovementInform(), npc_inquisitor_baleful_molten_shore::MovementInform(), npc_safe_technician_sanitron::MovementInform(), boss_lava_guard_gordoth::MovementInform(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::MovementInform(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::MovementInform(), gunship_npc_AI::MovementInform(), npc_gunship_mage::MovementInform(), boss_the_lich_king::MovementInform(), npc_brann_bronzebeard_algalon::MovementInform(), boss_razorscale::MovementInform(), npc_grauf::MovementInform(), npc_leader_northbound::MovementInform(), npc_re_sized_boar_q56034::MovementInform(), npc_announcer_toc5::npc_announcer_toc5AI::MovementInform(), spell_the_lurker_below_spout_periodic::OnPeriodic(), conversation_the_new_classington_estate::OnUpdate(), conversation_cyrus_crestfall_shaking_hands::OnUpdate(), npc_silverpine_fenris_keep_camera::PassengerBoarded(), SmartScript::ProcessAction(), Creature::ReacquireSpellFocusTarget(), npc_dancing_flames::ReceiveEmote(), npc_sinclari_vh::ScheduleIntro(), npc_tirion_fordring_tft::SpellHit(), boss_vazruden_the_herald::SpellHit(), boss_anduin_wrynn::StartIntermission(), SimpleCharmedPlayerAI::UpdateAI(), boss_rend_blackhand::UpdateAI(), boss_victor_nefarius::UpdateAI(), npc_kalecgos::UpdateAI(), npc_vanessa_vancleef_human_heritage_lions_pride_inn_basement::UpdateAI(), npc_partygoer::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), npc_silverpine_fallen_human::UpdateAI(), npc_silverpine_agatha_fenris_isle::UpdateAI(), npc_silverpine_fenris_keep_camera::UpdateAI(), npc_gnome_goblin_plains_make_copter_private::UpdateAI(), npc_malcolm_moore::npc_malcolm_mooreAI::UpdateAI(), npc_sergeant_morigan::npc_sergeant_moriganAI::UpdateAI(), npc_roger_owens::npc_roger_owensAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), npc_medivh_bm::UpdateAI(), npc_brann_bronzebeard_anraphet::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), Scripts::Kalimdor::Durotar::npc_voljin_garrosh_vision::UpdateAI(), Scripts::Kalimdor::Durotar::npc_voljin_thrall_vision::UpdateAI(), boss_corborus::boss_corborusAI::UpdateAI(), boss_high_priestess_azil::boss_high_priestess_azilAI::UpdateAI(), npc_hadronox_crusherPackAI::UpdateAI(), boss_jaraxxus::UpdateAI(), boss_devourer_of_souls::UpdateAI(), boss_the_lich_king::UpdateAI(), boss_svala::UpdateAI(), npc_bloodmage_laurith::UpdateAI(), npc_brann_bronzebeard_keystone::UpdateAI(), npc_alchemist_finklestein::UpdateAI(), boss_illidan_stormrage::UpdateAI(), npc_akama_illidan::UpdateAI(), npc_akama_shade::UpdateAI(), npc_claw::UpdateAI(), npc_warden_mellichar::UpdateAI(), boss_kaelthas::UpdateAI(), npc_barada::npc_baradaAI::UpdateAI(), npc_millhouse_manastorm::UpdateIntroEvents(), Scripts::EasternKingdoms::StormwindCity::npc_jaina_proudmoore_tides_of_war::WaypointPathEnded(), npc_leryssa::WaypointPathEnded(), npc_auchindoun_soulbinder_tuulani::WaypointReached(), npc_silverpine_deathstalker_rane_yorick::WaypointReached(), Scripts::Pandaria::TheWanderingIsle::npc_min_dimwind_summon::WaypointReached(), npc_morridune::WaypointReached(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::WaypointReached(), and npc_argent_soldier::npc_argent_soldierAI::WaypointReached().

◆ SetFacingToObject()

void Unit::SetFacingToObject ( WorldObject const *  object,
bool  force = true,
uint32  movementId = EVENT_FACE 
)

Definition at line 13394 of file Unit.cpp.

References GetMotionMaster(), IsStopped(), MotionMaster::MoveFace(), and movespline.

Referenced by npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::AttackIceWall(), npc_silverpine_mutant_bush_chicken::CheckForForestEttin(), npc_sparring_partner_exiles_reach::DamageTaken(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::DoAction(), npc_maiev::DoAction(), npc_silverpine_forest_ettin::DoAction(), npc_ranshalla::npc_ranshallaAI::DoChannelTorchSpell(), boss_nightbane::boss_nightbaneAI::ExecuteEvent(), Scripts::Pandaria::TheWanderingIsle::npc_master_li_fei_summon::FaceToPlayer(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::GiveClue(), spell_fel_lord_caza_throwing_axe_selector::HandleHit(), spell_creeping_rot_selector::HandleHit(), spell_mimiron_weld::spell_mimiron_weld_AuraScript::HandleTick(), npc_terenas_menethil::IsSummonedBy(), npc_crystal_spike_trigger::IsSummonedBy(), npc_silverpine_deathstalker_rane_yorick::IsSummonedBy(), npc_ruby_emerald_amber_drake::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_min_dimwind_summon::IsSummonedBy(), npc_captain_warlord_beach_arrive_private::IsSummonedBy(), npc_strangulate_vehicle::IsSummonedBy(), npc_iron_roots::npc_iron_rootsAI::IsSummonedBy(), npc_sevis_brightflame_coilskar_gateway_private::JustAppeared(), npc_silverpine_generic_actor_fenris_keep::JustAppeared(), npc_maiev::JustAppeared(), npc_ranshalla::npc_ranshallaAI::JustDidDialogueStep(), npc_ashtongue_broken::MovementInform(), npc_redridge_subdued_canyon_ettin::MovementInform(), npc_voljin_zulaman::npc_voljin_zulamanAI::MovementInform(), boss_high_inquisitor_whitemane::MovementInform(), npc_jena_anderson::npc_jena_andersonAI::MovementInform(), boss_professor_putricide::MovementInform(), boss_malygos::MovementInform(), npc_taelia_get_your_bearings::MovementInform(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::MovementInform(), npc_twilight_volunteer::MovementInform(), boss_jaraxxus::MovementInform(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::MovementInform(), npc_sparring_partner_exiles_reach::MovementInform(), npc_sparring_partner_combat_training::MovementInform(), npc_geezle::npc_geezleAI::NextStep(), npc_crusade_recruit::OnGossipSelect(), at_aggro_radius_check_enhanced_combat_tactics::OnUnitEnter(), conversation_the_new_classington_estate::OnUpdate(), conversation_sylvanas_windrunner_introduction::OnUpdate(), npc_jungle_punch_target::proceedCwEvent(), SmartScript::ProcessAction(), Creature::ReacquireSpellFocusTarget(), npc_lake_frog::ReceiveEmote(), npc_bloodmage_laurith::SetGUID(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::SetInFace(), Creature::SetSpellFocus(), boss_swamplord_muselek::SpellHit(), npc_draenei_survivor::npc_draenei_survivorAI::SpellHit(), npc_magister_aledis::npc_magister_aledisAI::StartFight(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_eachother(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_Pathaleons_Image(), boss_victor_nefarius::UpdateAI(), npc_madrigosa::UpdateAI(), npc_wounded_coldridge_mountaineer::npc_wounded_coldridge_mountaineerAI::UpdateAI(), npc_partygoer::UpdateAI(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::UpdateAI(), Scripts::EasternKingdoms::Westfall::npc_westfall_small_time_hustler::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_survivors_healed_by_leader_beach_private< PathId, WaitTime >::UpdateAI(), npc_sparring_partner_combat_training::UpdateAI(), npc_huxsworth_hunter_quest_private::UpdateAI(), npc_dawntracker_hunter_quest_private::UpdateAI(), npc_jena_anderson::npc_jena_andersonAI::UpdateAI(), npc_malcolm_moore::npc_malcolm_mooreAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), boss_lockmaw::UpdateAI(), boss_onyxia::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), boss_high_priestess_azil::boss_high_priestess_azilAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_devourer_of_souls::UpdateAI(), npc_uther_quel_delar::npc_uther_quel_delarAI::UpdateAI(), boss_krick::UpdateAI(), npc_high_overlord_saurfang_icc::UpdateAI(), boss_professor_putricide::UpdateAI(), npc_rimefang_icc::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), boss_malygos::UpdateAI(), boss_volkhan::UpdateAI(), boss_vx_001::boss_vx_001AI::UpdateAI(), boss_svala::UpdateAI(), npc_thassarian::UpdateAI(), boss_illidan_stormrage::UpdateAI(), boss_wrath_scryer_soccothrates::UpdateAI(), npc_pet_gen_pandaren_monk::UpdateAI(), npc_millhouse_manastorm::UpdateIntroEvents(), npc_kayn_sunfury_invasion_begins::WaypointPathEnded(), npc_earthen_ring_flamecaller::WaypointPathEnded(), npc_ranshalla::npc_ranshallaAI::WaypointReached(), and npc_demolitionist_legoso::npc_demolitionist_legosoAI::WaypointReached().

◆ SetFacingToPoint()

void Unit::SetFacingToPoint ( Position const &  point,
bool  force = true 
)

◆ SetFaction()

void Unit::SetFaction ( uint32  faction)
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 887 of file Unit.h.

References UF::UnitData::FactionTemplate, and m_unitData.

Referenced by boss_victor_nefarius::BeginEvent(), boss_vaelastrasz::boss_vaelastrasz(), boss_veknilash::boss_veknilashAI::CastSpellOnBug(), boss_veklor::boss_veklorAI::CastSpellOnBug(), boss_eadric::boss_eadricAI::DamageTaken(), boss_paletress::boss_paletressAI::DamageTaken(), npc_claw::DamageTaken(), npc_argent_valiant::DamageTaken(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::DestroyDoor(), boss_coren_direbrew::DoAction(), npc_direbrew_antagonist::DoAction(), boss_apothecary_hummel::DoAction(), npc_apothecary_genericAI::DoAction(), npc_stone_keeper::DoAction(), npc_akama_shade::DoAction(), npc_ashtongue_broken::DoAction(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DoNice(), boss_anduin_wrynn::EndEncounter(), boss_thorim::boss_thorimAI::FinishEncounter(), AuraEffect::HandleAuraModFaction(), modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcSetFactionIdCommand(), spell_deliver_stolen_horse::HandleScriptEffect(), npc_inner_demon::InitializeAI(), TempSummon::InitStats(), Minion::InitStats(), InitTamedPet(), boss_majordomo::JustAppeared(), npc_stone_keeper::JustAppeared(), npc_yor::JustAppeared(), boss_the_golden_serpent::JustAppeared(), boss_freya::boss_freyaAI::JustDied(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustDied(), npc_stone_keeper::JustReachedHome(), boss_ignis::boss_ignis_AI::JustSummoned(), boss_balinda::JustSummoned(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::JustSummoned(), npc_felfire_portal::npc_felfire_portalAI::JustSummoned(), Pet::LoadPetFromDB(), npc_argent_valiant::MovementInform(), npc_argent_valiant::npc_argent_valiant(), npc_iron_roots::npc_iron_rootsAI::npc_iron_rootsAI(), BattlefieldTB::OnCreatureCreate(), battleground_isle_of_conquest::OnCreatureCreate(), battleground_strand_of_the_ancients::OnCreatureCreate(), instance_nexus::instance_nexus_InstanceMapScript::OnCreatureCreate(), instance_black_temple::instance_black_temple_InstanceMapScript::OnCreatureCreate(), boss_doomrel::boss_doomrelAI::OnGossipSelect(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::OnGossipSelect(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::OnGossipSelect(), npc_belnistrasz::npc_belnistraszAI::OnQuestAccept(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::OnQuestAccept(), npc_muglash::npc_muglashAI::OnQuestAccept(), go_crystalline_tear::go_crystalline_tearAI::OnQuestAccept(), npc_ranshalla::npc_ranshallaAI::OnQuestAccept(), npc_maghar_captive::npc_maghar_captiveAI::OnQuestAccept(), npc_kurenai_captive::npc_kurenai_captiveAI::OnQuestAccept(), npc_earthmender_wilda::npc_earthmender_wildaAI::OnQuestAccept(), npc_whisperwind_lasher::npc_whisperwind_lasherAI::OnSpellClick(), at_zumrah::OnTrigger(), npc_blazing_monstrosity::npc_blazing_monstrosityAI::PassengerBoarded(), npc_melee_hover_disk::PassengerBoarded(), npc_chicken_cluck::npc_chicken_cluckAI::ReceiveEmote(), RemoveCharmedBy(), boss_coren_direbrew::Reset(), npc_direbrew_minion::Reset(), boss_doomrel::boss_doomrelAI::Reset(), boss_victor_nefarius::Reset(), npc_unworthy_initiate::npc_unworthy_initiateAI::Reset(), boss_apothecary_hummel::Reset(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::Reset(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::Reset(), boss_zum_rah::boss_zum_rahAI::Reset(), npc_sergeant_bly::npc_sergeant_blyAI::Reset(), boss_sara::boss_saraAI::Reset(), npc_akama_shade::Reset(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::Reset(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::Reset(), npc_chicken_cluck::npc_chicken_cluckAI::Reset(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), RestoreFaction(), SetCharmedBy(), Player::SetFactionForRace(), Player::SetGameMaster(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::SpawnNPC(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::SpellHit(), FollowerAI::StartFollow(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), Player::SummonPet(), WorldObject::SummonTrigger(), boss_vaelastrasz::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), npc_unworthy_initiate::npc_unworthy_initiateAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), boss_kalecgos::UpdateAI(), boss_ironaya::UpdateAI(), boss_ouro::boss_ouroAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_sergeant_bly::npc_sergeant_blyAI::UpdateAI(), boss_deathbringer_saurfang::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_hodir::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), boss_sara::boss_saraAI::UpdateAI(), npc_akama_shade::UpdateAI(), npc_claw::UpdateAI(), npc_magister_aledis::npc_magister_aledisAI::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::UpdateAI(), npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI(), Creature::UpdateEntry(), npc_magwin::npc_magwinAI::UpdateEscortAI(), boss_majordomo::UpdateSpecialEvents(), boss_the_golden_serpent::WaypointPathEnded(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::WaypointReached(), and npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached().

◆ SetFall()

◆ SetFeared()

◆ SetFeatherFall()

◆ SetFlightCapabilityID()

◆ SetFullHealth()

◆ SetFullPower()

◆ SetGender()

◆ SetGravityModifier()

◆ SetHealth()

void Unit::SetHealth ( uint64  val)

Definition at line 10041 of file Unit.cpp.

References CORPSE, DEAD, getDeathState(), GetHealth(), GetMaxHealth(), BaseEntity::GetTypeId(), GROUP_UPDATE_FLAG_CUR_HP, GROUP_UPDATE_FLAG_PET_CUR_HP, UF::UnitData::Health, JUST_DIED, m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), Object::ToCreature(), ToPet(), Object::ToPlayer(), TriggerOnHealthChangeAuras(), and TYPEID_PLAYER.

Referenced by spell_mage_alter_time_aura::AfterRemove(), boss_twilight_halion::boss_twilight_halion(), Player::BuildPlayerRepop(), npc_ohgan::DamageTaken(), npc_sparring_partner_exiles_reach::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), boss_twinemperorsAI::DamageTaken(), boss_noth::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), boss_black_knight::boss_black_knightAI::DamageTaken(), Scripts::Kalimdor::Durotar::npc_durotar_tiki_target::DamageTaken(), BloodPrincesBossAI::DoAction(), npc_terenas_menethil::DoAction(), boss_lady_vashj::DoAction(), Spell::EffectResurrectPet(), Spell::EffectSelfResurrect(), Spell::EffectSummonType(), boss_malchezaar::boss_malchezaarAI::EnfeebleResetHealth(), spell_mage_cauterize_AuraScript::HandleAbsorb(), spell_dh_last_resort::HandleAbsorb(), spell_rog_cheat_death::HandleAbsorb(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModIncreaseMaxHealth(), spell_aqusirr_erupting_waters::HandleDamage(), spell_illidari_council_empyreal_balance::HandleDummy(), spell_q28813_set_health_random::HandleDummyEffect(), spell_gen_set_health::HandleHit(), modify_commandscript::HandleModifyHPCommand(), AuraEffect::HandleModTotalPercentStat(), spell_lord_and_lady_waycrest_vitality_transfer::HandlePeriodic(), spell_halazzi_set_health::HandleScript(), spell_stinky_precious_decimate::HandleScript(), spell_illidari_council_empyreal_equivalency::HandleScript(), spell_ahune_synch_health::HandleScript(), spell_harbinger_skyriss_health::HandleScript(), BloodPrincesBossAI::JustAppeared(), npc_anduin_wrynn_anduin_hope::JustAppeared(), boss_twinemperorsAI::JustDied(), BloodPrincesBossAI::JustReachedHome(), boss_skeram::boss_skeramAI::JustSummoned(), boss_attumen::boss_attumenAI::JustSummoned(), boss_baltharus_the_warborn::JustSummoned(), boss_drakkari_colossus::JustSummoned(), Player::LoadFromDB(), Pet::LoadPetFromDB(), ModifyHealth(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::MovementInform(), Scripts::EasternKingdoms::Vashjir::spell_vashjir_low_health::OnApply(), spell_warr_kill_or_be_killed_warrior::OnRemove(), Player::RegenerateHealth(), npc_wounded_milita::npc_wounded_militaAI::Reset(), npc_draenei_survivor::npc_draenei_survivorAI::Reset(), npc_injured_draenei::npc_injured_draeneiAI::Reset(), BloodPrincesBossAI::Reset(), boss_murmur::Reset(), npc_anduin_wrynn_anduin_hope::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), Player::ResurrectPlayer(), Player::ResurrectUsingRequestDataImpl(), setDeathState(), SetMaxHealth(), Creature::SetSpawnHealth(), boss_twinemperorsAI::SpellHit(), spell_anduin_wrynn_progression_aura::Trigger(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), npc_wounded_milita::npc_wounded_militaAI::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), boss_baltharus_the_warborn::UpdateAI(), npc_baltharus_the_warborn_clone::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), boss_krick::UpdateAI(), boss_blood_council_controller::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), Creature::UpdateEntry(), Player::UpdateItemLevelAreaBasedScaling(), and Creature::UpdateLevelDependantStats().

◆ SetHover()

bool Unit::SetHover ( bool  enable,
bool  updateAnimTier = true 
)

No need to check height on ascent

Dying creatures will MoveFall from setDeathState

Definition at line 13656 of file Unit.cpp.

References AddUnitMovementFlag(), Fly, WorldObject::GetFloorZ(), BaseEntity::GetGUID(), GetPlayerMovingMe(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), BaseEntity::GetTypeId(), Ground, HasUnitMovementFlag(), HasUnitState(), Hover, IsAlive(), BaseEntity::IsCreature(), isDying(), IsGravityDisabled(), IsHovering(), BaseEntity::IsPlayer(), m_movementCounter, WorldObject::m_movementInfo, m_unitData, MOVEMENTFLAG_HOVER, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SetAnimTier(), SetPlayHoverAnim(), SMSG_MOVE_SET_HOVERING, SMSG_MOVE_SPLINE_SET_HOVER, SMSG_MOVE_SPLINE_UNSET_HOVER, SMSG_MOVE_UNSET_HOVERING, WorldPackets::Movement::MoveUpdate::Status, TYPEID_UNIT, UNIT_STATE_ROOT, WorldObject::UpdateAllowedPositionZ(), UpdateHeight(), WorldPackets::Movement::MoveUpdate::Write(), WorldPackets::Movement::MoveSplineSetFlag::Write(), and WorldPackets::Movement::MoveSetFlag::Write().

Referenced by boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_pulsing_pumpkin::DoAction(), spell_harlan_blades_of_light::HandleAfterCast(), AuraEffect::HandleAuraHover(), boss_headless_horseman::InitializeAI(), npc_pulsing_pumpkin::InitializeAI(), Creature::InitializeMovementCapabilities(), npc_bg_deephaul_ravine_commander< Path1, Path2, Path3, Path4 >::JustAppeared(), boss_ayamiss::JustEngagedWith(), boss_ayamiss::JustReachedHome(), boss_sister_svalna::JustReachedHome(), boss_ayamiss::MovementInform(), boss_slabhide::boss_slabhideAI::MovementInform(), boss_sister_svalna::MovementInform(), boss_alar::MovementInform(), boss_sapphiron::Reset(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::Reset(), Creature::setDeathState(), boss_armsmaster_harlan::UpdateAI(), npc_madrigosa::UpdateAI(), boss_slabhide::boss_slabhideAI::UpdateAI(), boss_sapphiron::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_feral_defender::UpdateAI(), boss_svala::UpdateAI(), boss_alar::UpdateAI(), boss_kaelthas::UpdateAI(), and boss_headless_horseman::WaypointPathEnded().

◆ SetHoverHeight()

void Unit::SetHoverHeight ( float  hoverHeight)
inline

◆ SetIgnoreMovementForces()

◆ SetImmuneToAll() [1/2]

virtual void Unit::SetImmuneToAll ( bool  apply)
inlinevirtual

Reimplemented in Creature, and Creature.

Definition at line 1059 of file Unit.h.

References SetImmuneToAll().

Referenced by SetImmuneToAll().

◆ SetImmuneToAll() [2/2]

◆ SetImmuneToNPC() [1/2]

virtual void Unit::SetImmuneToNPC ( bool  apply)
inlinevirtual

Reimplemented in Creature, and Creature.

Definition at line 1065 of file Unit.h.

References SetImmuneToNPC().

Referenced by SetImmuneToNPC().

◆ SetImmuneToNPC() [2/2]

◆ SetImmuneToPC() [1/2]

virtual void Unit::SetImmuneToPC ( bool  apply)
inlinevirtual

Reimplemented in Creature, and Creature.

Definition at line 1062 of file Unit.h.

References SetImmuneToPC().

Referenced by SetImmuneToPC().

◆ SetImmuneToPC() [2/2]

◆ SetInCombatWith()

◆ SetInFront()

◆ SetInitialPowerValue()

void Unit::SetInitialPowerValue ( Powers  powerType)

◆ SetInstantCast()

void Unit::SetInstantCast ( bool  set)
inline

Definition at line 1850 of file Unit.h.

Referenced by AuraEffect::HandleModCastingSpeed().

◆ SetInteractionAllowedInCombat()

void Unit::SetInteractionAllowedInCombat ( bool  interactionAllowed)
virtual

◆ SetInteractionAllowedWhileHostile()

void Unit::SetInteractionAllowedWhileHostile ( bool  interactionAllowed)
virtual

◆ SetIsCombatDisallowed()

void Unit::SetIsCombatDisallowed ( bool  apply)
inline

◆ SetJumpingDisabled()

◆ SetLastDamagedTargetGuid()

void Unit::SetLastDamagedTargetGuid ( ObjectGuid  guid)
inline

Definition at line 976 of file Unit.h.

Referenced by Spell::TargetInfo::DoDamageAndTriggers().

◆ SetLastExtraAttackSpell()

void Unit::SetLastExtraAttackSpell ( uint32  spellId)
inline

Definition at line 973 of file Unit.h.

◆ SetLevel()

◆ SetMainHandWeaponAttackPower()

void Unit::SetMainHandWeaponAttackPower ( int32  attackPower)
inline

Definition at line 1594 of file Unit.h.

References m_unitData, and UF::UnitData::MainHandWeaponAttackPower.

Referenced by Player::_ApplyWeaponDamage().

◆ SetMaxHealth()

◆ SetMaxPower()

◆ SetMeleeAnimKitId()

◆ SetMinion()

void Unit::SetMinion ( Minion *  minion,
bool  apply 
)

Definition at line 6266 of file Unit.cpp.

References ABORT, ASSERT, Player::CharmSpellInitialize(), Companion, DIFFICULTY_NONE, ObjectGuid::Empty, GetCharmedGUID(), GetCritterGUID(), GetDebugInfo(), Object::GetEntry(), SummonPropertiesEntry::GetFlags(), GetGuardianPet(), BaseEntity::GetGUID(), GetMinionGUID(), GetOwnerGUID(), GetPetGUID(), GetPvpFlags(), Totem::GetSpell(), GetSpellHistory(), BaseEntity::GetTypeId(), HasUnitTypeMask(), SpellInfo::IsCooldownStartedOnEvent(), ObjectGuid::IsEmpty(), Minion::IsGuardianPet(), BaseEntity::IsInWorld(), IsPet(), IsTotem(), m_Controlled, m_ControlledByPlayer, TempSummon::m_Properties, m_speed_rate, m_unitData, MAX_MOVE_TYPE, OutDebugInfo(), PET_SAVE_NOT_IN_SLOT, Player::PetSpellInitialize(), RemoveAllMinionsByEntry(), ReplaceAllPvpFlags(), SpellHistory::SendCooldownEvent(), SetBattlePetCompanionGUID(), SetBattlePetCompanionNameTimestamp(), SetCritterGUID(), Creature::SetDisplayId(), SetMinionGUID(), SetOwnerGUID(), SetPetGUID(), SetSpeedRate(), SetUnitFlag(), SetWildBattlePetLevel(), SPELL_EFFECT_SUMMON, sSpellMgr, SpellHistory::StartCooldown(), SummonFromBattlePetJournal, TC_LOG_DEBUG, TC_LOG_FATAL, SummonPropertiesEntry::Title, ToPet(), Object::ToPlayer(), ObjectGuid::ToString(), ToTotem(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_FLAG_PLAYER_CONTROLLED, UNIT_MASK_CONTROLABLE_GUARDIAN, and UpdatePetCombatState().

Referenced by Spell::EffectCreateTamedPet(), Spell::EffectTameCreature(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), Minion::InitStats(), Pet::LoadPetFromDB(), Minion::RemoveFromWorld(), Player::RemovePet(), and Player::SummonPet().

◆ SetMinionGUID()

void Unit::SetMinionGUID ( ObjectGuid  guid)
inline

Definition at line 1216 of file Unit.h.

References m_unitData, and UF::UnitData::Summon.

Referenced by GetFirstMinion(), Minion::setDeathState(), and SetMinion().

◆ SetModCastingSpeed()

void Unit::SetModCastingSpeed ( float  castingSpeed)
inline

Definition at line 852 of file Unit.h.

References m_unitData, and UF::UnitData::ModCastingSpeed.

Referenced by Creature::InitEntry(), and Player::InitStatsForLevel().

◆ SetModCastingSpeedNeg()

void Unit::SetModCastingSpeedNeg ( float  castingSpeedNeg)
inline

Definition at line 853 of file Unit.h.

References m_unitData, and UF::UnitData::ModCastingSpeedNeg.

Referenced by Creature::InitEntry(), and Player::InitStatsForLevel().

◆ SetModHaste()

void Unit::SetModHaste ( float  haste)
inline

Definition at line 855 of file Unit.h.

References m_unitData, and UF::UnitData::ModHaste.

Referenced by Creature::InitEntry(), and Player::InitStatsForLevel().

◆ SetModHasteRegen()

void Unit::SetModHasteRegen ( float  hasteRegen)
inline

Definition at line 857 of file Unit.h.

References m_unitData, and UF::UnitData::ModHasteRegen.

Referenced by Creature::InitEntry(), and Player::InitStatsForLevel().

◆ SetModRangedHaste()

void Unit::SetModRangedHaste ( float  rangedHaste)
inline

Definition at line 856 of file Unit.h.

References m_unitData, and UF::UnitData::ModRangedHaste.

Referenced by Creature::InitEntry(), and Player::InitStatsForLevel().

◆ SetModSpellHaste()

void Unit::SetModSpellHaste ( float  spellHaste)
inline

Definition at line 854 of file Unit.h.

References m_unitData, and UF::UnitData::ModSpellHaste.

Referenced by Creature::InitEntry(), and Player::InitStatsForLevel().

◆ SetModTimeRate()

void Unit::SetModTimeRate ( float  timeRate)
inline

Definition at line 858 of file Unit.h.

References m_unitData, and UF::UnitData::ModTimeRate.

Referenced by Creature::InitEntry(), and Player::InitStatsForLevel().

◆ SetMountDisplayId()

◆ SetMoveCantSwim()

◆ SetMovedUnit()

◆ SetMovementAnimKitId()

◆ SetNameplateAttachToGUID()

void Unit::SetNameplateAttachToGUID ( ObjectGuid  guid)
inline

Definition at line 877 of file Unit.h.

References m_unitData, and UF::UnitData::NameplateAttachToGUID.

◆ SetNativeGender()

virtual void Unit::SetNativeGender ( Gender  gender)
inlinevirtual

Reimplemented in Player.

Definition at line 782 of file Unit.h.

◆ SetNpcFlag()

void Unit::SetNpcFlag ( NPCFlags  flags)
inline

Definition at line 1012 of file Unit.h.

References flags, m_unitData, and UF::UnitData::NpcFlags.

Referenced by instance_stonecore::instance_stonecore_InstanceScript::ActivateTeleporter(), npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), boss_vaelastrasz::boss_vaelastrasz(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), npc_barnes::DoAction(), npc_vp_slipstream::InitializeAI(), boss_majordomo::JustAppeared(), npc_thassarian::JustAppeared(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustDied(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::MovementInform(), npc_akama_illidan::MovementInform(), npc_verdisa_beglaristrasz_eternos::MovementInform(), npc_announcer_toc5::npc_announcer_toc5AI::npc_announcer_toc5AI(), npc_jaina_fos::npc_jaina_fos(), npc_sylvanas_fos::npc_sylvanas_fos(), npc_voljin_zulaman::npc_voljin_zulamanAI::npc_voljin_zulamanAI(), instance_oculus::instance_oculus_InstanceMapScript::OnCreatureCreate(), conversation_the_invasion_begins::OnUpdate(), conversation_an_unlikely_informant::OnUpdate(), npc_chicken_cluck::npc_chicken_cluckAI::ReceiveEmote(), Vehicle::RemovePassenger(), boss_victor_nefarius::Reset(), npc_koltira_deathweaver::Reset(), npc_thalorien_dawnseeker::Reset(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::Reset(), hyjalAI::Reset(), npc_belnistrasz::npc_belnistraszAI::Reset(), npc_sinclari_vh::Reset(), npc_crusade_recruit::Reset(), npc_akama_shade::Reset(), npc_millhouse_manastorm::Reset(), npc_barada::npc_baradaAI::Reset(), npc_magister_aledis::npc_magister_aledisAI::Reset(), npc_sinclari_vh::ScheduleIntro(), Creature::SetPetitioner(), Creature::SetVendor(), npc_sir_thomas::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_koltira_deathweaver::UpdateAI(), npc_vanessa_vancleef_human_heritage_lions_pride_inn_basement::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), hyjalAI::UpdateAI(), npc_medivh_bm::UpdateAI(), npc_brann_bronzebeard_anraphet::UpdateAI(), npc_xerestrasza::UpdateAI(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), npc_thassarian::UpdateAI(), npc_lake_frog::UpdateAI(), npc_brann_hos::UpdateEscortAI(), boss_majordomo::UpdateSpecialEvents(), Vehicle::Vehicle(), npc_morridune::WaypointReached(), and npc_thrall_old_hillsbrad::WaypointReached().

◆ SetNpcFlag2()

void Unit::SetNpcFlag2 ( NPCFlags2  flags)
inline

Definition at line 1018 of file Unit.h.

References flags, m_unitData, and UF::UnitData::NpcFlags2.

◆ SetOffHandWeaponAttackPower()

void Unit::SetOffHandWeaponAttackPower ( int32  attackPower)
inline

Definition at line 1595 of file Unit.h.

References m_unitData, and UF::UnitData::OffHandWeaponAttackPower.

Referenced by Player::_ApplyWeaponDamage().

◆ SetOverrideDisplayPowerId()

void Unit::SetOverrideDisplayPowerId ( uint32  powerDisplayId)
inline

◆ SetOwnerGUID()

◆ SetPetFlag()

void Unit::SetPetFlag ( UnitPetFlag  flags)
inline

Definition at line 907 of file Unit.h.

References flags, m_unitData, and UF::UnitData::PetFlags.

Referenced by Spell::EffectRenamePet().

◆ SetPetGUID()

void Unit::SetPetGUID ( ObjectGuid  guid)
inline

Definition at line 1218 of file Unit.h.

References SUMMON_SLOT_PET.

Referenced by GetGuardianPet(), Minion::setDeathState(), and SetMinion().

◆ SetPetNameTimestamp()

void Unit::SetPetNameTimestamp ( uint32  timestamp)
inline

◆ SetPetNumberForClient()

void Unit::SetPetNumberForClient ( uint32  petNumber)
inline

Definition at line 1265 of file Unit.h.

References m_unitData, and UF::UnitData::PetNumber.

Referenced by CharmInfo::SetPetNumber().

◆ SetPlayHoverAnim()

◆ SetPower()

void Unit::SetPower ( Powers  power,
int32  val,
bool  withPowerUpdate = true 
)
Todo:
: Support multiple counts ?

Definition at line 10114 of file Unit.cpp.

References BaseEntity::GetGUID(), GetMaxPower(), GetPowerIndex(), BaseEntity::GetTypeId(), GROUP_UPDATE_FLAG_CUR_POWER, WorldPackets::Combat::PowerUpdate::Guid, BaseEntity::IsInWorld(), m_unitData, BaseEntity::m_values, MAX_POWERS_PER_CLASS, UF::UpdateFieldHolder::ModifyValue(), UF::UnitData::Power, WorldPackets::Combat::PowerUpdate::Powers, WorldObject::SendMessageToSet(), BaseEntity::SetUpdateFieldValue(), Object::ToPlayer(), TriggerOnPowerChangeAuras(), TYPEID_PLAYER, and WorldPackets::Combat::PowerUpdate::Write().

Referenced by Player::ActivateTalentGroup(), boss_lady_deathwhisper::DamageTaken(), boss_deathbringer_saurfang::DoAction(), Player::DuelComplete(), Spell::EffectSelfResurrect(), spell_heartsbane_triad_dire_ritual::HandleAfterCast(), spell_shade_of_medivh_signature_primer::HandleAfterCast(), spell_edna_earth_shatterer::HandleAfterCast(), spell_tidesage_council_ward_selector::HandleAfterCast(), spell_gen_zero_mana_full_health::HandleDummy(), modify_commandscript::HandleModifyEnergyCommand(), modify_commandscript::HandleModifyManaCommand(), modify_commandscript::HandleModifyPowerCommand(), modify_commandscript::HandleModifyRageCommand(), modify_commandscript::HandleModifyRunicPowerCommand(), spell_telash_ice_power_periodic::HandlePeriodic(), spell_cragmaw_power_energize_tantrum::HandlePeriodic(), spell_rokmora_shatter::HandleShatter(), Player::InitStatsForLevel(), boss_king_deepbeard::JustAppeared(), boss_ymiron_the_fallen_king::JustAppeared(), boss_telash_greywing::JustAppeared(), boss_mana_devourer::JustAppeared(), boss_shade_of_medivh::JustAppeared(), npc_silverpine_deathstalker::JustAppeared(), npc_silverpine_deathstalker_rane_yorick::JustAppeared(), npc_silverpine_orc_sea_dog::JustAppeared(), boss_azhiccar::JustAppeared(), boss_orator_krix_vizk::JustAppeared(), boss_edna::JustAppeared(), boss_lord_stormsong::JustAppeared(), boss_brother_ironhull::JustAppeared(), boss_galecaller_faye::JustAppeared(), HeartsbaneTriadSharedAI::JustAppeared(), boss_sylvanas_windrunner::JustAppeared(), boss_remnant_of_a_fallen_king::JustAppeared(), boss_priestess_alun_za::JustAppeared(), boss_sporecaller_zancha::JustAppeared(), Player::LoadFromDB(), Pet::LoadPetFromDB(), ModifyPower(), spell_anduin_wrynn_force_of_will::OnApply(), spell_ymiron_the_fallen_king_power_periodic::OnPeriodic(), boss_moam::OnSpellCast(), Player::Regenerate(), spell_igb_incinerating_blast::RemoveEnergy(), Player::RemoveFromWorld(), boss_deathbringer_saurfang::Reset(), boss_lady_deathwhisper::Reset(), boss_anduin_wrynn::Reset(), Player::ResetAllPowers(), Player::ResurrectPlayer(), Player::ResurrectUsingRequestDataImpl(), setDeathState(), Player::setDeathState(), SetInitialPowerValue(), SetMaxPower(), SetPowerType(), Player::SetRuneCooldown(), boss_king_deepbeard::UpdateAI(), boss_ymiron_the_fallen_king::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), and boss_orator_krix_vizk::UpdateAI().

◆ SetPowerType()

◆ SetPvP()

◆ SetPvpFlag()

◆ SetRace()

void Unit::SetRace ( uint8  race)
inline

Definition at line 774 of file Unit.h.

References m_unitData, and UF::UnitData::Race.

Referenced by Player::Create(), Creature::InitEntry(), and Player::LoadFromDB().

◆ SetRangedAttackPower()

void Unit::SetRangedAttackPower ( int32  attackPower)
inline

◆ SetRangedAttackPowerModNeg()

void Unit::SetRangedAttackPowerModNeg ( int32  attackPowerMod)
inline

◆ SetRangedAttackPowerModPos()

void Unit::SetRangedAttackPowerModPos ( int32  attackPowerMod)
inline

◆ SetRangedAttackPowerMultiplier()

void Unit::SetRangedAttackPowerMultiplier ( float  attackPowerMult)
inline

◆ SetRangedWeaponAttackPower()

void Unit::SetRangedWeaponAttackPower ( int32  attackPower)
inline

Definition at line 1596 of file Unit.h.

References m_unitData, and UF::UnitData::RangedWeaponAttackPower.

Referenced by Player::_ApplyWeaponDamage().

◆ SetResistance()

void Unit::SetResistance ( SpellSchools  school,
int32  val 
)
inline

◆ SetRooted()

◆ SetShapeshiftForm()

◆ SetSheath()

◆ SetSilencedSchoolMask()

void Unit::SetSilencedSchoolMask ( SpellSchoolMask  schoolMask)
inline

Definition at line 1518 of file Unit.h.

References m_unitData, and UF::UnitData::SilencedSchoolMask.

Referenced by AuraEffect::HandleAuraModSilence().

◆ SetSpeed()

◆ SetSpeedRate()

void Unit::SetSpeedRate ( UnitMoveType  mtype,
float  rate 
)

Definition at line 8961 of file Unit.cpp.

References BaseEntity::GetGUID(), GetSpeed(), BaseEntity::GetTypeId(), GetUnitBeingMoved(), IsInCombat(), Player::m_forced_speed_changes, m_movementCounter, WorldObject::m_movementInfo, m_speed_rate, MAX_MOVE_TYPE, WorldPackets::Movement::MoveSplineSetSpeed::MoverGUID, WorldPackets::Movement::MoveSetSpeed::MoverGUID, PropagateSpeedChange(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetSpeed::SequenceIndex, SMSG_MOVE_SET_FLIGHT_BACK_SPEED, SMSG_MOVE_SET_FLIGHT_SPEED, SMSG_MOVE_SET_PITCH_RATE, SMSG_MOVE_SET_RUN_BACK_SPEED, SMSG_MOVE_SET_RUN_SPEED, SMSG_MOVE_SET_SWIM_BACK_SPEED, SMSG_MOVE_SET_SWIM_SPEED, SMSG_MOVE_SET_TURN_RATE, SMSG_MOVE_SET_WALK_SPEED, SMSG_MOVE_SPLINE_SET_FLIGHT_BACK_SPEED, SMSG_MOVE_SPLINE_SET_FLIGHT_SPEED, SMSG_MOVE_SPLINE_SET_PITCH_RATE, SMSG_MOVE_SPLINE_SET_RUN_BACK_SPEED, SMSG_MOVE_SPLINE_SET_RUN_SPEED, SMSG_MOVE_SPLINE_SET_SWIM_BACK_SPEED, SMSG_MOVE_SPLINE_SET_SWIM_SPEED, SMSG_MOVE_SPLINE_SET_TURN_RATE, SMSG_MOVE_SPLINE_SET_WALK_SPEED, SMSG_MOVE_UPDATE_FLIGHT_BACK_SPEED, SMSG_MOVE_UPDATE_FLIGHT_SPEED, SMSG_MOVE_UPDATE_PITCH_RATE, SMSG_MOVE_UPDATE_RUN_BACK_SPEED, SMSG_MOVE_UPDATE_RUN_SPEED, SMSG_MOVE_UPDATE_SWIM_BACK_SPEED, SMSG_MOVE_UPDATE_SWIM_SPEED, SMSG_MOVE_UPDATE_TURN_RATE, SMSG_MOVE_UPDATE_WALK_SPEED, WorldPackets::Movement::MoveSplineSetSpeed::Speed, WorldPackets::Movement::MoveSetSpeed::Speed, WorldPackets::Movement::MoveUpdateSpeed::Speed, WorldPackets::Movement::MoveUpdateSpeed::Status, Object::ToPlayer(), TYPEID_PLAYER, WorldPackets::Movement::MoveSplineSetSpeed::Write(), WorldPackets::Movement::MoveSetSpeed::Write(), and WorldPackets::Movement::MoveUpdateSpeed::Write().

Referenced by boss_ionar::CallBackSparks(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_professor_putricide::DoAction(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), boss_razorscale::DoAction(), npc_thrall_old_hillsbrad::DoMount(), npc_thrall_old_hillsbrad::DoUnmount(), boss_felmyst::EnterPhase(), spell_mount_check::HandleEffectPeriodic(), spell_gen_pony_mount_check::HandleEffectPeriodic(), WorldSession::HandleForceSpeedChangeAck(), modify_commandscript::HandleModifyASpeedCommand(), modify_commandscript::HandleModifyBWalkCommand(), modify_commandscript::HandleModifyFlyCommand(), modify_commandscript::HandleModifyMountCommand(), modify_commandscript::HandleModifySpeedCommand(), modify_commandscript::HandleModifySwimCommand(), Creature::InitEntry(), npc_enchanted_elemental::JustAppeared(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro_hawk::JustAppeared(), boss_the_lich_king::JustSummoned(), boss_anduin_wrynn::JustSummoned(), boss_onyxia::MovementInform(), boss_professor_putricide::MovementInform(), boss_sindragosa::MovementInform(), boss_razorscale::MovementInform(), npc_caster_hover_disk::npc_caster_hover_disk(), npc_melee_hover_disk::npc_melee_hover_disk(), npc_wyrmrest_skytalon::PassengerBoarded(), npc_quel_delar_sword::npc_quel_delar_swordAI::Reset(), boss_lord_marrowgar::Reset(), boss_malygos::Reset(), npc_grauf::Reset(), SetMinion(), SetSpeed(), boss_onyxia::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), npc_anubarak_spike::StartChase(), boss_jormungarAI::Submerge(), boss_alizabal::boss_alizabalAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), boss_lord_marrowgar::UpdateAI(), npc_ruby_emerald_amber_drake::UpdateAI(), npc_dream_fog::npc_dream_fogAI::UpdateAI(), npc_spark_of_ionar::UpdateAI(), and UpdateSpeed().

◆ SetSpellEmpowerStage()

void Unit::SetSpellEmpowerStage ( int8  stage)
inline

◆ SetStandState()

void Unit::SetStandState ( UnitStandStateType  state,
uint32  animKitID = 0 
)

Definition at line 10804 of file Unit.cpp.

References BaseEntity::GetTypeId(), m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), RemoveAurasWithInterruptFlags(), Player::SendDirectMessage(), BaseEntity::SetUpdateFieldValue(), Standing, UF::UnitData::StandState, Object::ToPlayer(), TYPEID_PLAYER, UNIT_STAND_STATE_STAND, and WorldPackets::Misc::StandStateUpdate::Write().

Referenced by _ApplyAura(), spell_fjord_the_cleansing_cleansing_soul::AfterApply(), spell_fjord_the_cleansing_cleansing_soul::AfterRemove(), Attack(), boss_victor_nefarius::BeginEvent(), boss_scarlet_commander_mograine::DamageTaken(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), npc_phoenix_the_eye::DamageTaken(), npc_vrykul_skeleton::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_vx_001::boss_vx_001AI::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), npc_auchindoun_auchenai_defender::DoAction(), npc_twilight_volunteer::DoAction(), boss_the_lich_king::DoAction(), npc_stalagg::DoAction(), npc_feugen::DoAction(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DoAction(), boss_vx_001::boss_vx_001AI::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_earthen_ring_flamecaller::DoAction(), boss_reliquary_of_souls::DoAction(), npc_ashtongue_broken::DoAction(), Spell::TargetInfo::DoDamageAndTriggers(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DoNice(), npc_unworthy_initiate::npc_unworthy_initiateAI::EventStart(), WorldSession::HandleAlterAppearance(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), npc_nokhudon_proving_grounds_nokhud_combatant::HandleEmoteSequence(), WorldSession::HandleLogoutCancelOpcode(), WorldSession::HandleLogoutRequestOpcode(), WorldSession::HandleMovementOpcode(), WorldSession::HandlePlayerLogin(), spell_gen_stand::HandleScript(), AuraEffect::HandleSpiritOfRedemption(), WorldSession::HandleStandStateChangeOpcode(), DistractMovementGenerator::Initialize(), npc_survivors_healed_by_leader_beach_private< PathId, WaitTime >::InitializeAI(), npc_horde_survivors_beach_q59930_private< PathId >::InitializeAI(), npc_amalgam_of_souls_lord_etheldrin_ravencrest::JustAppeared(), npc_huxsworth_hunter_quest_private::JustAppeared(), npc_huxsworth_briarpatch_quest_private::JustAppeared(), npc_dawntracker_hunter_quest_private::JustAppeared(), npc_dawntracker_briarpatch_quest_private::JustAppeared(), npc_thassarian::JustAppeared(), npc_ranshalla::npc_ranshallaAI::JustDidDialogueStep(), boss_high_inquisitor_fairbanks::JustEngagedWith(), boss_jedoga_shadowseeker::JustSummoned(), Creature::LoadCreaturesAddon(), npc_jena_anderson::npc_jena_andersonAI::MovementInform(), npc_bartleby_battson::npc_bartleby_battsonAI::MovementInform(), npc_sergeant_morigan::npc_sergeant_moriganAI::MovementInform(), boss_nightbane::boss_nightbaneAI::MovementInform(), npc_koltira_deathweaver::MovementInform(), npc_twilight_volunteer::MovementInform(), npc_earthen_ring_flamecaller::MovementInform(), spell_love_is_in_the_air_romantic_picnic::OnApply(), spell_reliquary_of_souls_submerge::OnApply(), go_crystalline_tear::go_crystalline_tearAI::OnQuestAccept(), npc_maghar_captive::npc_maghar_captiveAI::OnQuestAccept(), npc_kurenai_captive::npc_kurenai_captiveAI::OnQuestAccept(), spell_reliquary_of_souls_submerge::OnRemove(), boss_victor_nefarius::Reset(), boss_vaelastrasz::Reset(), boss_ragnaros::Reset(), npc_unworthy_initiate::npc_unworthy_initiateAI::Reset(), npc_koltira_deathweaver::Reset(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::Reset(), boss_high_inquisitor_fairbanks::Reset(), boss_scarlet_commander_mograine::Reset(), npc_draenei_survivor::npc_draenei_survivorAI::Reset(), npc_injured_draenei::npc_injured_draeneiAI::Reset(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::Reset(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), setDeathState(), SetStunned(), boss_scarlet_commander_mograine::SpellHit(), boss_ahune::SpellHit(), npc_wounded_coldridge_mountaineer::npc_wounded_coldridge_mountaineerAI::SpellHit(), npc_survivors_healed_by_leader_beach_private< PathId, WaitTime >::SpellHit(), npc_draenei_survivor::npc_draenei_survivorAI::SpellHit(), npc_wounded_skirmisher::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::SpellHitTarget(), boss_victor_nefarius::SummonedCreatureDies(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_eachother(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_Pathaleons_Image(), boss_vaelastrasz::UpdateAI(), boss_ragnaros::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), npc_koltira_deathweaver::UpdateAI(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_silverpine_orc_sea_pup::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_horde_survivors_beach_q59930_private< PathId >::UpdateAI(), npc_jena_anderson::npc_jena_andersonAI::UpdateAI(), npc_bartleby_battson::npc_bartleby_battsonAI::UpdateAI(), npc_sergeant_morigan::npc_sergeant_moriganAI::UpdateAI(), npc_roger_owens::npc_roger_owensAI::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), boss_krick::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_vrykul_skeleton::UpdateAI(), npc_thassarian::UpdateAI(), boss_leotheras_the_blind::UpdateAI(), boss_the_lurker_below::UpdateAI(), npc_claw::UpdateAI(), boss_alar::UpdateAI(), npc_tallhorn_stag::UpdateAI(), npc_magwin::npc_magwinAI::UpdateEscortAI(), npc_brann_hos::UpdateEscortAI(), npc_millhouse_manastorm::UpdateIntroEvents(), GameObject::Use(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached(), and npc_brann_hos::WaypointReached().

◆ SetStat()

void Unit::SetStat ( Stats  stat,
int32  val 
)
inline

◆ SetStatFlatModifier()

void Unit::SetStatFlatModifier ( UnitMods  unitMod,
UnitModifierFlatType  modifierType,
float  val 
)

◆ SetStatPctModifier()

◆ SetStrafingDisabled()

◆ SetStunned()

◆ SetSwim()

◆ SetTarget()

virtual void Unit::SetTarget ( ObjectGuid const &  )
pure virtual

◆ SetTransformSpell()

void Unit::SetTransformSpell ( uint32  spellid)
inline

Definition at line 1643 of file Unit.h.

Referenced by AuraEffect::HandleAuraTransform().

◆ SetUninteractible()

void Unit::SetUninteractible ( bool  apply)

Definition at line 8583 of file Unit.cpp.

References RemoveUnitFlag(), SetUnitFlag(), and UNIT_FLAG_UNINTERACTIBLE.

Referenced by npc_doctor::npc_doctorAI::BeginEvent(), boss_thaddius::BeginResetEncounter(), boss_kologarn::boss_kologarnAI::boss_kologarnAI(), boss_vaelastrasz::boss_vaelastrasz(), spell_the_lich_king_vile_spirit_damage_target_search::CheckTargetCount(), boss_taerar::boss_taerarAI::DamageTaken(), boss_garothi_worldbreaker::DamageTaken(), npc_felblood_kaelthas_phoenix::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_apothecary_hummel::DamageTaken(), boss_muru::DamageTaken(), npc_dark_fiend::DamageTaken(), npc_sparring_partner_exiles_reach::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), npc_frost_sphere::DamageTaken(), boss_deathbringer_saurfang::DamageTaken(), npc_terenas_menethil::DamageTaken(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), boss_algalon_the_observer::DamageTaken(), npc_feral_defender::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), boss_ingvar_the_plunderer::DamageTaken(), AdvisorBaseAI::DamageTaken(), npc_phoenix_the_eye::DamageTaken(), boss_halion::DamageTaken(), npc_vrykul_skeleton::DamageTaken(), instance_ulduar::instance_ulduar_InstanceMapScript::DespawnLeviatanVehicle(), boss_xt002::DisposeHeart(), boss_nightbane::boss_nightbaneAI::DoAction(), boss_shade_of_medivh::DoAction(), npc_stone_keeper::DoAction(), npc_twilight_volunteer::DoAction(), boss_anub_arak::DoAction(), npc_halion_controller::DoAction(), BloodPrincesBossAI::DoAction(), npc_stalagg::DoAction(), npc_feugen::DoAction(), npc_living_constellation::DoAction(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DoAction(), boss_vx_001::boss_vx_001AI::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_xt002_heart::DoAction(), boss_ingvar_the_plunderer::DoAction(), ControllerBaseAI::DoAction(), boss_skadi::DoAction(), npc_naga_distiller::DoAction(), npc_frozen_core::DoAction(), BroggokPrisionerBaseAI::DoAction(), boss_kelidan_the_breaker::DoAction(), boss_remnant_of_a_fallen_king::DoAction(), boss_kazzara_the_hellforged::DoAction(), boss_azhiccar::DoAction(), boss_soulbound_goliath::DoAction(), boss_illidan_stormrage::DoAction(), npc_melee_hover_disk::DoAction(), boss_jormungarAI::Emerge(), ControllerBaseAI::ExecuteEvent(), spell_ichoron_drained::HandleApply(), npc_sparring_partner_enhanced_combat_training_shaman::HandleClassEvent(), npc_sparring_partner_enhanced_combat_training_mage::HandleClassEvent(), spell_palehoof_awaken_gortok::HandleDummy(), spell_maiev_down::HandleEffectApply(), spell_gen_feign_death_all_flags_uninteractible::HandleEffectApply(), spell_maiev_down::HandleEffectRemove(), npc_headless_horseman_head::HandleInitialSetup(), spell_ichoron_drained::HandleRemove(), spell_palehoof_awaken_subboss::HandleScript(), spell_sholazar_freya_dummy::HandleScript(), npc_headless_horseman_head::HandleStartPhase(), Battlefield::HideNpc(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::InitializeAI(), npc_lockmaw_augh_boss::InitializeAI(), npc_vp_slipstream::InitializeAI(), boss_flame_leviathan::boss_flame_leviathanAI::InitializeAI(), npc_silverpine_orc_crate::IsSummonedBy(), boss_kazzara_the_hellforged::JustAppeared(), boss_archaedas::JustAppeared(), npc_stone_keeper::JustAppeared(), boss_azhiccar::JustAppeared(), npc_drustvar_frightend_woodsman_private::JustAppeared(), boss_soulbound_goliath::JustAppeared(), boss_broggok::JustAppeared(), BroggokPrisionerBaseAI::JustAppeared(), boss_kelidan_the_breaker::JustAppeared(), npc_sylvanas_windrunner_shadowcopy_riding::JustAppeared(), boss_the_golden_serpent::JustAppeared(), boss_julianne::JustDied(), boss_romulo::JustDied(), boss_apothecary_hummel::JustDied(), boss_kologarn::boss_kologarnAI::JustDied(), boss_xt002::JustDied(), boss_illidan_stormrage::JustDied(), boss_alar::JustDied(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustDied(), boss_anubarak_trial::JustEngagedWith(), boss_algalon_the_observer::JustEngagedWith(), boss_archaedas::JustReachedHome(), npc_stone_keeper::JustReachedHome(), BroggokPrisionerBaseAI::JustReachedHome(), boss_kelidan_the_breaker::JustReachedHome(), boss_prince_valanar_icc::JustSummoned(), boss_ignis::boss_ignis_AI::JustSummoned(), boss_anduin_wrynn::JustSummoned(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), npc_snobold_vassal::MountOnBoss(), boss_shade_of_akama::MovementInform(), boss_selin_fireheart::MovementInform(), boss_slabhide::boss_slabhideAI::MovementInform(), npc_valkyr_shadowguard::MovementInform(), boss_malygos::MovementInform(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::MovementInform(), boss_aerial_command_unit::boss_aerial_command_unitAI::MovementInform(), boss_jedoga_shadowseeker::MovementInform(), npc_sparring_partner_exiles_reach::MovementInform(), npc_sparring_partner_combat_training::MovementInform(), boss_flame_leviathan::boss_flame_leviathanAI::MovementInform(), npc_giant_infernal::npc_giant_infernalAI::npc_giant_infernalAI(), npc_healthy_spore::npc_healthy_sporeAI::npc_healthy_sporeAI(), npc_hodirs_fury::npc_hodirs_furyAI::npc_hodirs_furyAI(), npc_mimirons_inferno::npc_mimirons_infernoAI::npc_mimirons_infernoAI(), npc_pool_of_tar::npc_pool_of_tarAI::npc_pool_of_tarAI(), npc_scorch_ground::npc_scorch_groundAI::npc_scorch_groundAI(), npc_thorims_hammer::npc_thorims_hammerAI::npc_thorims_hammerAI(), spell_aqusirr_erupting_waters_aura::OnApply(), spell_kings_rest_molten_gold::OnApply(), conversation_natalia_pearces_complete_precious_gems::OnCreate(), Scripts::QuelThalas::Harandar::Chapter1::conversation_to_harathir_follow_orweyna::OnCreate(), battleground_isle_of_conquest::OnCreatureCreate(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::OnHealthDepleted(), at_waycrest_manor_organ_missiles::OnRemove(), spell_aqusirr_erupting_waters_aura::OnRemove(), spell_gen_feign_death_all_flags_uninteractible::OnRemove(), spell_kings_rest_molten_gold::OnRemove(), boss_garothi_worldbreaker::OnSpellCast(), boss_flame_leviathan_overload_device::boss_flame_leviathan_overload_deviceAI::OnSpellClick(), npc_whisperwind_lasher::npc_whisperwind_lasherAI::OnSpellClick(), npc_silverpine_forsaken_bat::PassengerBoarded(), npc_blazing_monstrosity::npc_blazing_monstrosityAI::PassengerBoarded(), npc_melee_hover_disk::PassengerBoarded(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), Vehicle::RemovePassenger(), boss_prince_taldaram::RemovePrison(), boss_pyroguard_emberseer::Reset(), boss_ragnaros::Reset(), npc_curator_astral_flare::npc_curator_astral_flareAI::Reset(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), npc_sir_thomas::Reset(), boss_scarlet_commander_mograine::Reset(), boss_kalecgos_kj::boss_kalecgos_kjAI::Reset(), npc_felfire_portal::npc_felfire_portalAI::Reset(), npc_earthen_hallshaper_custodian::Reset(), npc_earthen_guardian::Reset(), npc_vault_warder::Reset(), boss_anraphet::Reset(), boss_eye_of_cthun::eye_of_cthunAI::Reset(), boss_cthun::cthunAI::Reset(), boss_volazj::Reset(), boss_anub_arak::Reset(), npc_flame_tsunami::Reset(), npc_twilight_fissure::Reset(), boss_general_zarithrian::Reset(), boss_anubarak_trial::Reset(), npc_infernal_volcano::Reset(), npc_nether_portal::Reset(), npc_unleashed_ballAI::Reset(), boss_professor_putricide::Reset(), boss_kelthuzad::Reset(), boss_noth::Reset(), boss_malygos::Reset(), boss_magus_telestra::Reset(), boss_ionar::Reset(), boss_kologarn::boss_kologarnAI::Reset(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::Reset(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::Reset(), boss_ingvar_the_plunderer::Reset(), ControllerBaseAI::Reset(), boss_shade_of_akama::Reset(), npc_ashtongue_channeler::Reset(), boss_leotheras_the_blind::Reset(), npc_naga_distiller::Reset(), emerald_dragonAI::Reset(), npc_doctor::npc_doctorAI::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), npc_sparring_partner_enhanced_combat_training_warrior::ResetWarrior(), Battlefield::ShowNpc(), boss_pyroguard_emberseer::SpellHit(), netherspite_infernal::netherspite_infernalAI::SpellHit(), npc_sir_thomas::SpellHit(), boss_scarlet_commander_mograine::SpellHit(), boss_anub_arak::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), boss_valithria_dreamwalker::SpellHit(), boss_ionar::SpellHit(), boss_ahune::SpellHit(), npc_infernal_attacker::npc_infernal_attackerAI::SpellHit(), npc_sporecaller_zancha_musashitake::SpellHit(), npc_sparring_partner_enhanced_combat_training_priest::SpellHit(), npc_sparring_partner_enhanced_combat_training_shaman::SpellHit(), npc_sparring_partner_enhanced_combat_training_mage::SpellHit(), npc_sparring_partner_enhanced_combat_training_warlock::SpellHit(), npc_sparring_partner_enhanced_combat_training_druid::SpellHit(), npc_ichor_globule::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), boss_volazj::SpellHitTarget(), boss_jormungarAI::Submerge(), boss_garothi_worldbreaker::SummonedCreatureDies(), boss_victor_nefarius::SummonedCreatureDies(), boss_thaddius::Transition(), boss_ragnaros::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), npc_felblood_kaelthas_phoenix::UpdateAI(), boss_shade_of_medivh::UpdateAI(), npc_headless_horseman_head::UpdateAI(), npc_silverpine_deathstalker_rane_yorick::UpdateAI(), npc_sparring_partner_combat_training::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), boss_anraphet::UpdateAI(), npc_lockmaw_augh_boss::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), boss_ouro::boss_ouroAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), boss_corborus::boss_corborusAI::UpdateAI(), boss_volazj::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_anubarak_trial::UpdateAI(), npc_nerubian_burrower::UpdateAI(), boss_deathbringer_saurfang::UpdateAI(), npc_terenas_menethil::UpdateAI(), boss_kelthuzad::UpdateAI(), boss_noth::UpdateAI(), boss_malygos::UpdateAI(), boss_magus_telestra::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_feral_defender::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), boss_xt002::UpdateAI(), npc_vrykul_skeleton::UpdateAI(), npc_ethereal_beacon::UpdateAI(), boss_illidan_stormrage::UpdateAI(), boss_leotheras_the_blind::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_magtheridon::UpdateAI(), boss_alar::UpdateAI(), boss_kaelthas::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::UpdateAI(), boss_taerar::boss_taerarAI::UpdateAI(), boss_ionar::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), Creature::UpdateEntry(), boss_archaedas::UpdateOutOfCombatEvents(), boss_broggok::UpdateOutOfCombatEvents(), boss_the_golden_serpent::WaypointPathEnded(), and npc_silverpine_deathstalker_rane_yorick::WaypointReached().

◆ SetUnitFlag()

void Unit::SetUnitFlag ( UnitFlags  flags)
inline

Definition at line 861 of file Unit.h.

References flags, UF::UnitData::Flags, and m_unitData.

Referenced by boss_thaddius::BeginResetEncounter(), boss_eadric::boss_eadricAI::boss_eadricAI(), boss_hunter_toc5::boss_hunter_toc5AI::boss_hunter_toc5AI(), boss_mage_toc5::boss_mage_toc5AI::boss_mage_toc5AI(), boss_paletress::boss_paletressAI::boss_paletressAI(), boss_rouge_toc5::boss_rouge_toc5AI::boss_rouge_toc5AI(), boss_shaman_toc5::boss_shaman_toc5AI::boss_shaman_toc5AI(), boss_twilight_halion::boss_twilight_halion(), boss_vx_001::boss_vx_001AI::boss_vx_001AI(), boss_warrior_toc5::boss_warrior_toc5AI::boss_warrior_toc5AI(), Player::Create(), boss_taerar::boss_taerarAI::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), npc_tiger_matriarch::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_vx_001::boss_vx_001AI::DamageTaken(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), npc_xt002_heart::DoAction(), npc_barada::npc_baradaAI::DoAction(), PetAI::DoAttack(), FlightPathMovementGenerator::DoReset(), boss_thorim::boss_thorimAI::FinishEncounter(), AuraEffect::HandleArenaPreparation(), AuraEffect::HandleAuraModDmgImmunity(), AuraEffect::HandleAuraModFaction(), AuraEffect::HandleAuraModPacify(), AuraEffect::HandleAuraModPacifyAndSilence(), AuraEffect::HandleAuraModSchoolImmunity(), spell_ruby_life_pools_executed::HandleEffectApply(), spell_gen_feign_death_all_flags::HandleEffectApply(), spell_gen_feign_death_all_flags_uninteractible::HandleEffectApply(), spell_gen_feign_death_no_dyn_flag::HandleEffectApply(), spell_gen_prevent_emotes::HandleEffectApply(), spell_gen_feign_death_all_flags_no_uninteractible::HandleEffectApply(), AuraEffect::HandleFeignDeath(), boss_anduin_wrynn::HandleIntroduction(), BattlefieldWG::HandleKill(), Battleground::HandleKillPlayer(), WorldSession::HandleLogoutRequestOpcode(), AuraEffect::HandleModUnattackable(), Battlefield::HideNpc(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::InitializeAI(), boss_sapphiron::InitializeAI(), boss_flame_leviathan::boss_flame_leviathanAI::InitializeAI(), Player::InitStatsForLevel(), InitTamedPet(), boss_sylvanas_windrunner::JustAppeared(), boss_mimiron::boss_mimironAI::JustEngagedWith(), BloodPrincesBossAI::JustReachedHome(), npc_announcer_toc5::npc_announcer_toc5AI::JustSummoned(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), Kill(), Mount(), boss_svala::MoveInLineOfSight(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::MovementInform(), npc_announcer_toc5::npc_announcer_toc5AI::npc_announcer_toc5AI(), npc_healthy_spore::npc_healthy_sporeAI::npc_healthy_sporeAI(), npc_mimirons_inferno::npc_mimirons_infernoAI::npc_mimirons_infernoAI(), npc_scorch_ground::npc_scorch_groundAI::npc_scorch_groundAI(), npc_warlord_grimaxe_q59942::npc_warlord_grimaxe_q59942(), spell_systems_shutdown::spell_systems_shutdown_AuraScript::OnApply(), instance_dire_maul::instance_dire_maul_InstanceMapScript::OnCreatureCreate(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::OnHealthDepleted(), npc_image_of_medivh::npc_image_of_medivhAI::Reset(), npc_death_knight_initiate::npc_death_knight_initiateAI::Reset(), npc_felfire_portal::npc_felfire_portalAI::Reset(), boss_cthun::cthunAI::Reset(), npc_draenei_survivor::npc_draenei_survivorAI::Reset(), npc_injured_draenei::npc_injured_draeneiAI::Reset(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::Reset(), npc_flame_tsunami::Reset(), npc_twilight_fissure::Reset(), npc_unleashed_ballAI::Reset(), boss_krick::Reset(), boss_tyrannus::Reset(), boss_rimefang::Reset(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::Reset(), boss_svala::Reset(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), Player::SendLoot(), boss_novos::SetBubbled(), SetCharm(), SetCharmedBy(), SetFeared(), SetImmuneToAll(), SetImmuneToNPC(), SetImmuneToPC(), SetMinion(), SetStunned(), SetUninteractible(), Battlefield::ShowNpc(), boss_anub_arak::SpellHit(), boss_ionar::SpellHit(), npc_wyrmrest_defender::SpellHit(), npc_venture_co_straggler::SpellHit(), npc_nether_drake::npc_nether_drakeAI::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), boss_jormungarAI::Submerge(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), boss_anubarak_trial::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_svala::UpdateAI(), CombatManager::UpdateOwnerCombatState(), and UpdatePetCombatState().

◆ SetUnitFlag2()

◆ SetUnitFlag3()

◆ SetUnitMovementFlags()

void Unit::SetUnitMovementFlags ( MovementFlags  f)
inline

◆ SetVehicle()

void Unit::SetVehicle ( Vehicle *  vehicle)
inline

Definition at line 1801 of file Unit.h.

Referenced by VehicleJoinEvent::Execute(), and Vehicle::RemovePassenger().

◆ SetVignette()

◆ SetVirtualItem()

◆ SetVisFlag()

void Unit::SetVisFlag ( UnitVisFlags  flags)
inline

◆ SetVisible()

void Unit::SetVisible ( bool  x)

Definition at line 8787 of file Unit.cpp.

References WorldObject::m_serverSideVisibility, SEC_GAMEMASTER, SEC_PLAYER, SERVERSIDE_VISIBILITY_GM, FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::SetValue(), and UpdateObjectVisibility().

Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), boss_viscidus::boss_viscidusAI::DamageTaken(), spell_rotface_unstable_ooze_explosion_suicide::DespawnSelf(), npc_kelthuzad_guardian::DoAction(), boss_kazzara_the_hellforged::DoAction(), npc_rocket_propelled_warhead::FinishQuest(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), Battlefield::HideNpc(), npc_webwrap::InitializeAI(), boss_sapphiron::InitializeAI(), boss_kazzara_the_hellforged::JustAppeared(), hyjalAI::JustDied(), npc_rocket_propelled_warhead::JustReachedHome(), boss_kalecgos::MovementInform(), npc_blood_queen_lana_thel::MovementInform(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::OnCreatureCreate(), npc_lorekeeper::npc_lorekeeperAI::OnGossipSelect(), boss_victor_nefarius::Reset(), boss_midnight::boss_midnightAI::Reset(), boss_kagani_nightstrike::Reset(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::Reset(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::Reset(), boss_eye_of_cthun::eye_of_cthunAI::Reset(), boss_cthun::cthunAI::Reset(), boss_skeram::boss_skeramAI::Reset(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::Reset(), boss_horAI::Reset(), npc_blood_queen_lana_thel::Reset(), boss_ionar::Reset(), npc_minigob_manabonk::Reset(), boss_high_astromancer_solarian::Reset(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::Reset(), npc_violet_hold_teleportation_portal_elite::ScheduleTasks(), Battlefield::ShowNpc(), boss_ionar::SpellHit(), npc_grimstone::npc_grimstoneAI::UpdateAI(), boss_victor_nefarius::UpdateAI(), boss_kagani_nightstrike::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), boss_muru::UpdateAI(), hyjalAI::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), boss_skeram::boss_skeramAI::UpdateAI(), boss_viscidus::boss_viscidusAI::UpdateAI(), npc_kinetic_bomb::UpdateAI(), npc_kelthuzad_guardian::UpdateAI(), npc_webwrap::UpdateAI(), boss_sapphiron::UpdateAI(), npc_minigob_manabonk::UpdateAI(), boss_alar::UpdateAI(), boss_high_astromancer_solarian::UpdateAI(), npc_commander_dawnforge::npc_commander_dawnforgeAI::UpdateAI(), boss_ionar::UpdateAI(), SmartAI::UpdateDespawn(), and npc_thrall_old_hillsbrad::WaypointReached().

◆ SetVisibleAura()

void Unit::SetVisibleAura ( AuraApplication *  aurApp)

Definition at line 722 of file Unit.cpp.

References m_visibleAuras, m_visibleAurasToUpdate, and UpdateAuraForGroup().

Referenced by AuraApplication::AuraApplication().

◆ SetVisibleAuraUpdate()

void Unit::SetVisibleAuraUpdate ( AuraApplication *  aurApp)

Definition at line 736 of file Unit.cpp.

References m_visibleAurasToUpdate.

Referenced by AuraApplication::SetNeedClientUpdate().

◆ SetWalk()

bool Unit::SetWalk ( bool  enable)

Definition at line 13422 of file Unit.cpp.

References AddUnitMovementFlag(), BaseEntity::GetGUID(), IsWalking(), MOVEMENTFLAG_WALKING, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), SMSG_MOVE_SPLINE_SET_RUN_MODE, SMSG_MOVE_SPLINE_SET_WALK_MODE, and WorldPackets::Movement::MoveSplineSetFlag::Write().

Referenced by boss_the_lich_king::DamageTaken(), npc_silverpine_fallen_human::DoAction(), npc_twilight_volunteer::DoAction(), npc_xerestrasza::DoAction(), npc_azure_ring_captain::DoAction(), npc_turned_champion::npc_turned_championAI::DoAction(), npc_akama_shade::DoAction(), boss_headless_horseman::DoAction(), Scripts::Kalimdor::Durotar::npc_captive_spitescale_scout::DoAction(), OrbAirPositionEvent::Execute(), OrbFlyEvent::Execute(), npc_anduin_wrynn_anduin_doubt::JustAppeared(), npc_anduin_wrynn_anduin_hope::JustAppeared(), npc_sanctum_sentry::JustEngagedWith(), boss_professor_putricide::JustReachedHome(), boss_randolph_moloch::JustSummoned(), npc_daegarn::JustSummoned(), npc_maghar_captive::npc_maghar_captiveAI::JustSummoned(), npc_kurenai_captive::npc_kurenai_captiveAI::JustSummoned(), npc_akama_shade::MovementInform(), boss_shade_of_akama::MovementInform(), boss_headless_horseman::MovementInform(), npc_high_overlord_saurfang_icc::MovementInform(), npc_muradin_bronzebeard_icc::MovementInform(), npc_safe_technician_sanitron::MovementInform(), npc_sparring_partner_exiles_reach::MovementInform(), npc_sparring_partner_combat_training::MovementInform(), EscortAI::MovementInform(), npc_cameron::MoveTheChildren(), SmartAI::OnCharmed(), Scripts::EasternKingdoms::StormwindCity::conversation_quest_ancient_curses_accept::OnCreate(), npc_brann_bronzebeard_anraphet::OnGossipSelect(), npc_tirion_fordring_tft::OnGossipSelect(), npc_voljin_zulaman::npc_voljin_zulamanAI::OnGossipSelect(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), conversation_aberrus_sabellian_intro::OnUpdate(), conversation_an_unlikely_informant::OnUpdate(), conversation_cyrus_crestfall_shaking_hands::OnUpdate(), boss_headless_horseman::Reset(), boss_anraphet::Reset(), npc_kinetic_bomb::Reset(), boss_professor_putricide::Reset(), npc_azure_ring_captain::Reset(), npc_sanctum_sentry::Reset(), npc_garona::npc_garonaAI::Reset(), boss_shade_of_akama::Reset(), SmartAI::ReturnToLastOOCPos(), boss_selin_fireheart::SelectNearestCrystal(), SetCharm(), npc_zombie_chow::SetData(), SmartAI::SetRun(), npc_akama_shade::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), boss_headless_horseman::StartPhase(), hyjalAI::SummonCreature(), npc_koltira_deathweaver::UpdateAI(), npc_scarlet_courier::npc_scarlet_courierAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), npc_silverpine_fallen_human::UpdateAI(), npc_sparring_partner_combat_training::UpdateAI(), npc_re_sized_boar_q56034::UpdateAI(), boss_anraphet::UpdateAI(), Scripts::Kalimdor::Durotar::npc_echo_isles_class_trainer< PitPos, QuestID >::UpdateAI(), npc_uther_quel_delar::npc_uther_quel_delarAI::UpdateAI(), npc_high_overlord_saurfang_icc::UpdateAI(), npc_muradin_bronzebeard_icc::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), npc_thassarian::UpdateAI(), npc_commander_eligor_dawnbringer::UpdateAI(), npc_brann_bronzebeard_keystone::UpdateAI(), npc_crusade_recruit::UpdateAI(), npc_akama_shade::UpdateAI(), npc_claw::UpdateAI(), boss_kaelthas::UpdateAI(), npc_dream_fog::npc_dream_fogAI::UpdateAI(), boss_kirtonos_the_herald::UpdateIntroEvents(), boss_majordomo::UpdateSpecialEvents(), npc_thassarian::WaypointPathEnded(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), and npc_emily::WaypointReached().

◆ SetWaterWalking()

◆ SetWildBattlePetLevel()

void Unit::SetWildBattlePetLevel ( uint32  wildBattlePetLevel)
inline

◆ SpellAbsorbBonusDone()

◆ SpellAbsorbBonusTaken()

int32 Unit::SpellAbsorbBonusTaken ( Unit *  caster,
SpellInfo const *  spellProto,
int32  absorbamount 
) const

◆ SpellAbsorbPctDone()

◆ SpellBaseAbsorbBonusDone()

int32 Unit::SpellBaseAbsorbBonusDone ( SpellSchoolMask  schoolMask) const

Definition at line 7640 of file Unit.cpp.

References SpellBaseHealingBonusDone().

Referenced by SpellAbsorbBonusDone().

◆ SpellBaseDamageBonusDone()

◆ SpellBaseHealingBonusDone()

◆ SpellCritChanceDone()

◆ SpellCritChanceTaken()

float Unit::SpellCritChanceTaken ( Unit const *  caster,
Spell *  spell,
AuraEffect const *  aurEff,
SpellSchoolMask  schoolMask,
float  doneChance,
WeaponAttackType  attackType = BASE_ATTACK 
) const

◆ SpellCriticalDamageBonus()

◆ SpellCriticalHealingBonus()

uint32 Unit::SpellCriticalHealingBonus ( Unit const *  caster,
SpellInfo const *  spellProto,
uint32  damage,
Unit *  victim 
)
static

◆ SpellDamageBonusDone()

int32 Unit::SpellDamageBonusDone ( Unit *  victim,
SpellInfo const *  spellProto,
int32  pdamage,
DamageEffectType  damagetype,
SpellEffectInfo const &  spellEffectInfo,
uint32  stack = 1,
Spell *  spell = nullptr,
AuraEffect const *  aurEff = nullptr 
) const

◆ SpellDamageBonusTaken()

◆ SpellDamagePctDone()

◆ SpellHealingBonusDone()

int32 Unit::SpellHealingBonusDone ( Unit *  victim,
SpellInfo const *  spellProto,
int32  healamount,
DamageEffectType  damagetype,
SpellEffectInfo const &  spellEffectInfo,
uint32  stack = 1,
Spell *  spell = nullptr,
AuraEffect const *  aurEff = nullptr 
) const

Definition at line 7347 of file Unit.cpp.

References BASE_ATTACK, BonusCoefficient, SpellEffectInfo::BonusCoefficient, SpellEffectInfo::BonusCoefficientFromAP, Aura::CallScriptCalcDamageAndHealingHandlers(), Spell::CallScriptCalcHealingHandlers(), SpellInfo::DmgClass, DOT, AuraEffect::GetAmount(), Aura::GetApplicationOfTarget(), GetAuraEffectsByType(), AuraEffect::GetBase(), SpellInfo::GetEffects(), BaseEntity::GetGUID(), AuraEffect::GetMiscValue(), WorldObject::GetOwner(), SpellInfo::GetSchoolMask(), WorldObject::GetSpellModOwner(), GetTotalAttackPowerValue(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), BaseEntity::GetTypeId(), SpellInfo::HasAttribute(), HasUnitTypeMask(), HealingAndDamage, AuraEffect::IsAffectingSpell(), SpellInfo::IsRangedWeaponSpell(), IsTotem(), OFF_ATTACK, PeriodicHealingAndDamage, RANGED_ATTACK, SPELL_ATTR3_REQUIRES_MAIN_HAND_WEAPON, SPELL_ATTR3_REQUIRES_OFF_HAND_WEAPON, SPELL_AURA_MELEE_ATTACK_POWER_ATTACKER_BONUS, SPELL_AURA_MOD_HEALING, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_AURA_PERIODIC_HEALTH_FUNNEL, SPELL_AURA_PERIODIC_LEECH, SPELL_AURA_RANGED_ATTACK_POWER_ATTACKER_BONUS, SPELL_DAMAGE_CLASS_MELEE, SPELL_EFFECT_HEALTH_LEECH, SpellBaseHealingBonusDone(), SPELLFAMILY_POTION, SpellInfo::SpellFamilyName, SpellHealingPctDone(), TYPEID_UNIT, and UNIT_MASK_GUARDIAN.

Referenced by CalcPredictedHealing(), AuraEffect::CalculateEstimatedAmount(), spell_pri_prayer_of_mending_SpellScriptBase::CastPrayerOfMendingAura(), Spell::EffectHeal(), Spell::EffectHealMechanical(), Spell::EffectHealthLeech(), spell_pri_holy_word_salvation::HandleApplyBuffs(), AuraEffect::HandlePeriodicHealAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().

◆ SpellHealingBonusTaken()

◆ SpellHealingPctDone()

◆ StartReactiveTimer()

void Unit::StartReactiveTimer ( ReactiveType  reactive)
inline

Definition at line 1781 of file Unit.h.

References REACTIVE_TIMER_START.

Referenced by ProcSkillsAndReactives().

◆ StopAttackFaction()

◆ StopMoving()

void Unit::StopMoving ( bool  force = false)

Definition at line 10753 of file Unit.cpp.

References ClearUnitState(), BaseEntity::IsInWorld(), movespline, Movement::MoveSplineInit::Stop(), UNIT_STATE_MOVING, and UpdateSplinePosition().

Referenced by npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), npc_kelthuzad_guardian::DoAction(), boss_malygos::DoAction(), boss_razorscale::DoAction(), ScriptedAI::DoCastSpell(), FlightPathMovementGenerator::DoFinalize(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), FormationMovementGenerator::DoInitialize(), FormationMovementGenerator::DoUpdate(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::EnterEvadeMode(), boss_felmyst::EnterPhase(), TimedFleeingMovementGenerator::Finalize(), FleeingMovementGenerator::Finalize(), boss_felmyst::HandleFlightSequence(), spell_sapphiron_change_blizzard_target::HandlePeriodic(), WorldSession::HandlePetActionHelper(), IdleMovementGenerator::Initialize(), PointMovementGenerator::Initialize(), boss_razuvious::JustEngagedWith(), npc_ashtongue_sorcerer::MoveInLineOfSight(), npc_magister_aledis::npc_magister_aledisAI::OnGossipSelect(), npc_caster_hover_disk::PassengerBoarded(), PauseMovement(), Spell::prepare(), npc_pet_gen_pandaren_monk::ReceiveEmote(), RemoveCharmedBy(), Creature::RemoveCorpse(), IdleMovementGenerator::Reset(), SplineChainMovementGenerator::Reset(), SetCharmedBy(), SmartAI::SetCombatMove(), npc_zombie_chow::SetData(), boss_victor_nefarius::SetData(), SetRooted(), SetStunned(), FleeingMovementGenerator::SetTargetLocation(), MotionMaster::StopOnDeath(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), FleeingMovementGenerator::Update(), PointMovementGenerator::Update(), npc_frost_wyrm::npc_frost_wyrmAI::UpdateAI(), npc_gargoyle::npc_gargoyleAI::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::UpdateAI(), npc_quel_delar_sword::npc_quel_delar_swordAI::UpdateAI(), npc_zombie_chow::UpdateAI(), boss_gothik::UpdateAI(), boss_heigan::UpdateAI(), boss_noth::UpdateAI(), boss_malygos::UpdateAI(), boss_urom::UpdateAI(), boss_svala::UpdateAI(), and npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::UpdateAI().

◆ Talk() [1/2]

void Unit::Talk ( std::string_view  text,
ChatMsg  msgType,
Language  language,
float  textRange,
WorldObject const *  target 
)
virtual

◆ Talk() [2/2]

void Unit::Talk ( uint32  textId,
ChatMsg  msgType,
float  textRange,
WorldObject const *  target 
)
virtual

Definition at line 14532 of file Unit.cpp.

References GetGender(), sBroadcastTextStore, TC_LOG_ERROR, and Cell::VisitWorldObjects().

◆ TextEmote() [1/2]

◆ TextEmote() [2/2]

void Unit::TextEmote ( uint32  textId,
WorldObject const *  target = nullptr,
bool  isBossEmote = false 
)
virtual

Reimplemented in Player.

Definition at line 14556 of file Unit.cpp.

References CHAT_MSG_MONSTER_EMOTE, CHAT_MSG_RAID_BOSS_EMOTE, CONFIG_LISTEN_RANGE_TEXTEMOTE, and sWorld.

◆ ToPet() [1/2]

Pet * Unit::ToPet ( )
inline

Definition at line 1838 of file Unit.h.

Referenced by BeforeVisibilityDestroy< Creature >(), spell_warl_pet_passive_voidwalker::spell_warl_pet_passive_voidwalker_AuraScript::CalculateAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateArcaneResistanceAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArcaneResistanceAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateArmorAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArmorAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateAttackPowerAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateAttackPowerAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateDamageDoneAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateDamageDoneAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateFireResistanceAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateFireResistanceAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateFrostResistanceAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateFrostResistanceAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateIntellectAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateNatureResistanceAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateNatureResistanceAmount(), spell_warl_pet_scaling_04::spell_warl_pet_scaling_04_AuraScript::CalculateShadowResistanceAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateShadowResistanceAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateStaminaAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateStaminaAmount(), Spell::CheckCast(), Spell::EffectDismissPet(), Spell::EffectLearnPetSpell(), Spell::EffectLearnSpell(), GetSelectedPlayerPetOrOwn(), AuraEffect::HandleModPossessPet(), WorldSession::HandlePetAbandon(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), Guardian::InitStatsForLevel(), SpellHistory::LockSpellSchool(), ModifyAuraState(), PetAI::ReceiveEmote(), WorldSession::SendQueryPetNameResponse(), SetHealth(), SetMaxHealth(), SetMinion(), TempSummon::UnSummon(), FollowMovementGenerator::Update(), and FollowMovementGenerator::UpdatePetSpeed().

◆ ToPet() [2/2]

Pet const * Unit::ToPet ( ) const
inline

Definition at line 1839 of file Unit.h.

◆ ToTempSummon() [1/2]

TempSummon * Unit::ToTempSummon ( )
inline

Definition at line 1844 of file Unit.h.

Referenced by BossAI::_DespawnAtEvade(), _ExitVehicle(), ThreatManager::CanHaveThreatList(), SpellInfo::CheckTarget(), boss_nefarian::DamageTaken(), npc_tiger_matriarch::DamageTaken(), Creature::DespawnOrUnsummon(), boss_sindragosa::DoAction(), npc_strangulate_vehicle::DoAction(), Spell::EffectScriptEffect(), npc_gatewatcher_petAI::EnterEvadeMode(), Scripts::EasternKingdoms::Westfall::npc_westfall_thug::EnterEvadeMode(), Scripts::Pandaria::TheWanderingIsle::npc_master_li_fei_summon::FaceToPlayer(), spell_anduin_wrynn_lost_soul_mirror_image::FilterTargets(), npc_raging_flames::FixateRandomTarget(), GetAllMinionsByEntry(), WorldObject::GetReactionTo(), spell_mage_ring_of_frost::GetRingOfFrostMinion(), spell_pri_inescapable_torment::GetSummon(), SmartScript::GetTargets(), GetUnitCriticalChanceTaken(), UF::ViewerDependentValue< UF::ObjectData::EntryIDTag >::GetValue(), UF::ViewerDependentValue< UF::UnitData::DisplayIDTag >::GetValue(), WorldSession::HandleDismissCritter(), Scripts::Pandaria::TheJadeForest::spell_rappelling_rope::HandleHitTarget(), AuraEffect::HandleLinkedSummon(), npc_commandscript::HandleNpcDeleteCommand(), spell_sapphiron_change_blizzard_target::HandlePeriodic(), spell_pri_divine_image::HandleProc(), WorldSession::HandleQueryBattlePetName(), spell_gen_whisper_to_controller_random::HandleScript(), npc_stolen_soul::InitializeAI(), npc_inner_demon::InitializeAI(), TempSummon::InitStats(), SpellClickInfo::IsFitToRequirements(), Scripts::Pandaria::TheWanderingIsle::npc_min_dimwind_summon::IsSummonedBy(), npc_pet_pri_divine_image::IsSummonedBy(), CreatureAI::JustAppeared(), npc_bg_deephaul_ravine_earthen_mine_cart_horde::JustAppeared(), npc_bg_deephaul_ravine_earthen_mine_cart_alliance::JustAppeared(), npc_sevis_brightflame_coilskar_gateway_private::JustAppeared(), npc_altar_altercation_ariok::JustAppeared(), npc_dark_rider_of_acherus::JustAppeared(), npc_ancient_wisp::JustAppeared(), npc_husam_tolvir_land_mine::JustAppeared(), npc_skardyn_invader::JustAppeared(), boss_lord_stormsong_ancient_mindbender::JustAppeared(), npc_flash_freeze_init::JustAppeared(), npc_flash_freeze_combat::JustAppeared(), npc_frost_tomb::JustAppeared(), npc_inner_demon::JustAppeared(), npc_steamrigger_mechanic::JustAppeared(), npc_ley_line_sprouts::JustDied(), boss_grubbis::boss_grubbisAI::JustDied(), npc_tito::JustDied(), Scripts::EasternKingdoms::Westfall::npc_westfall_thug::JustDied(), npc_giant_flesh_tentacle::flesh_tentacleAI::JustDied(), npc_gatewatcher_web_wrap::JustDied(), npc_memory::npc_memoryAI::JustDied(), boss_tyrannus::JustDied(), npc_bone_spike::JustDied(), npc_raging_spirit::JustDied(), npc_counselor_talbot::JustDied(), npc_stolen_soul::JustDied(), npc_anduin_wrynn_lost_soul::JustDied(), npc_slad_ran_constrictor::JustEngagedWith(), npc_gatewatcher_petAI::JustEngagedWith(), boss_prince_keleseth_icc::JustSummoned(), boss_massive_jormungar::JustSummoned(), Kill(), npc_tiger_matriarch::KilledUnit(), npc_stratholme_rp_dummy::MovementInform(), npc_frostbrood_skytalon::MovementInform(), npc_kayn_sunfury_invasion_begins::MovementInform(), npc_akilzon_amani_kidnapper::MovementInform(), npc_glob_of_viscidus::npc_glob_of_viscidusAI::MovementInform(), BattlefieldWG::OnCreatureCreate(), npc_wormhole::npc_wormholeAI::OnGossipHello(), spell_gen_mount_check_aura::OnPeriodic(), Trinity::WorldObjectSpellTargetCheck::operator()(), npc_silverpine_orc_sea_pup::PassengerBoarded(), RemoveAllControlled(), RemoveAllMinionsByEntry(), Creature::RemoveCorpse(), spell_gen_defend::RemoveDummyFromDriver(), npc_raging_spirit::Reset(), npc_sevis_brightflame_shivarra_gateway::SacrificePlayer(), Spell::SelectImplicitCasterDestTargets(), Creature::SelectVictim(), boss_grubbis::boss_grubbisAI::SetDataSummoner(), npc_silverpine_agatha_fenris_isle::SetEventNoEscape(), SparringPartnerEnhancedCombatTrainingSelector(), SpellCritChanceTaken(), npc_silverpine_orc_sea_pup::SpellHit(), npc_silverpine_agatha_fenris_isle::SpellHit(), npc_silverpine_crowley_bloodfang_fenris_keep::SpellHit(), npc_silverpine_generic_actor_fenris_keep::SpellHit(), boss_the_lich_king::SummonedCreatureDies(), Player::UnsummonBattlePetTemporaryIfAny(), boss_nefarian::UpdateAI(), Scripts::EasternKingdoms::Gilneas::Chapter1::npc_frightened_citizen::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), npc_silverpine_deathstalker_rane_yorick::UpdateAI(), npc_silverpine_armoire::UpdateAI(), npc_silverpine_orc_sea_pup::UpdateAI(), npc_silverpine_mutant_bush_chicken::UpdateAI(), npc_silverpine_orc_sea_dog::UpdateAI(), npc_silverpine_agatha_fenris_isle::UpdateAI(), npc_silverpine_fenris_keep_camera::UpdateAI(), npc_silverpine_crowley_bloodfang_fenris_keep::UpdateAI(), npc_silverpine_generic_actor_fenris_keep::UpdateAI(), npc_tiger_matriarch_credit::UpdateAI(), npc_tiger_matriarch::UpdateAI(), npc_strangulate_vehicle::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), Player::VehicleSpellInitialize(), npc_general_arlos::WaypointPathEnded(), npc_leryssa::WaypointPathEnded(), and npc_7th_legion_magus_sanctum_of_the_sages::WaypointReached().

◆ ToTempSummon() [2/2]

TempSummon const * Unit::ToTempSummon ( ) const
inline

Definition at line 1845 of file Unit.h.

◆ ToTotem() [1/2]

Totem * Unit::ToTotem ( )
inline

◆ ToTotem() [2/2]

Totem const * Unit::ToTotem ( ) const
inline

Definition at line 1842 of file Unit.h.

◆ TriggerAuraHeartbeat()

void Unit::TriggerAuraHeartbeat ( )

◆ TriggerAurasProcOnEvent() [1/2]

void Unit::TriggerAurasProcOnEvent ( AuraApplicationList *  myProcAuras,
AuraApplicationList *  targetProcAuras,
Unit *  actionTarget,
ProcFlagsInit const &  typeMaskActor,
ProcFlagsInit const &  typeMaskActionTarget,
ProcFlagsSpellType  spellTypeMask,
ProcFlagsSpellPhase  spellPhaseMask,
ProcFlagsHit  hitMask,
Spell *  spell,
DamageInfo *  damageInfo,
HealInfo *  healInfo 
)

◆ TriggerAurasProcOnEvent() [2/2]

◆ TriggerOnHealthChangeAuras()

void Unit::TriggerOnHealthChangeAuras ( uint64  oldVal,
uint64  newVal 
)

◆ TriggerOnPowerChangeAuras()

void Unit::TriggerOnPowerChangeAuras ( Powers  power,
int32  oldVal,
int32  newVal 
)

◆ UnsummonAllTotems()

void Unit::UnsummonAllTotems ( )

◆ Update()

◆ UpdateAdvFlyingSpeed() [1/2]

◆ UpdateAdvFlyingSpeed() [2/2]

void Unit::UpdateAdvFlyingSpeed ( AdvFlyingRateTypeSingle  speedType,
bool  clientUpdate 
)

Definition at line 9044 of file Unit.cpp.

References FlightCapabilityEntry::AddImpulseMaxSpeed, ADV_FLYING_ADD_IMPULSE_MAX_SPEED, ADV_FLYING_AIR_FRICTION, ADV_FLYING_DOUBLE_JUMP_VEL_MOD, ADV_FLYING_GLIDE_START_MIN_HEIGHT, ADV_FLYING_LAUNCH_SPEED_COEFFICIENT, ADV_FLYING_LIFT_COEFFICIENT, ADV_FLYING_MAX_VEL, ADV_FLYING_OVER_MAX_DECELERATION, ADV_FLYING_SURFACE_FRICTION, FlightCapabilityEntry::AirFriction, ApplyPct(), FlightCapabilityEntry::DoubleJumpVelMod, AuraEffect::GetAmount(), GetFlightCapabilityID(), BaseEntity::GetGUID(), GetMaxNegativeAuraModifier(), GetMaxPositiveAuraModifier(), GetUnitBeingMoved(), FlightCapabilityEntry::GlideStartMinHeight, FlightCapabilityEntry::LaunchSpeedCoefficient, FlightCapabilityEntry::LiftCoefficient, m_advFlyingSpeed, m_movementCounter, FlightCapabilityEntry::MaxVel, WorldPackets::Movement::SetAdvFlyingSpeed::MoverGUID, FlightCapabilityEntry::OverMaxDeceleration, WorldPackets::Movement::SetAdvFlyingSpeed::SequenceIndex, sFlightCapabilityStore, SMSG_MOVE_SET_ADV_FLYING_ADD_IMPULSE_MAX_SPEED, SMSG_MOVE_SET_ADV_FLYING_AIR_FRICTION, SMSG_MOVE_SET_ADV_FLYING_DOUBLE_JUMP_VEL_MOD, SMSG_MOVE_SET_ADV_FLYING_GLIDE_START_MIN_HEIGHT, SMSG_MOVE_SET_ADV_FLYING_LAUNCH_SPEED_COEFFICIENT, SMSG_MOVE_SET_ADV_FLYING_LIFT_COEFFICIENT, SMSG_MOVE_SET_ADV_FLYING_MAX_VEL, SMSG_MOVE_SET_ADV_FLYING_OVER_MAX_DECELERATION, SMSG_MOVE_SET_ADV_FLYING_SURFACE_FRICTION, WorldPackets::Movement::SetAdvFlyingSpeed::Speed, SPELL_AURA_MOD_ADV_FLYING_ADD_IMPULSE_MAX_SPEED, SPELL_AURA_MOD_ADV_FLYING_AIR_FRICTION, SPELL_AURA_MOD_ADV_FLYING_LIFT_COEF, SPELL_AURA_MOD_ADV_FLYING_MAX_VEL, SPELL_AURA_MOD_ADV_FLYING_OVER_MAX_DECELERATION, SPELL_AURA_NONE, FlightCapabilityEntry::SurfaceFriction, Object::ToPlayer(), and WorldPackets::Movement::SetAdvFlyingSpeed::Write().

Referenced by AuraEffect::HandleAuraModAdvFlyingSpeed(), and SetFlightCapabilityID().

◆ UpdateAllDamageDoneMods()

void Unit::UpdateAllDamageDoneMods ( )

Definition at line 9831 of file Unit.cpp.

References BASE_ATTACK, MAX_ATTACK, and UpdateDamageDoneMods().

Referenced by AuraEffect::HandleModDamageDone().

◆ UpdateAllDamagePctDoneMods()

void Unit::UpdateAllDamagePctDoneMods ( )

Definition at line 9878 of file Unit.cpp.

References BASE_ATTACK, MAX_ATTACK, and UpdateDamagePctDoneMods().

Referenced by AuraEffect::HandleModDamagePercentDone().

◆ UpdateAllResistances()

void Unit::UpdateAllResistances ( )
virtual

◆ UpdateAllStats()

virtual bool Unit::UpdateAllStats ( )
pure virtual

Implemented in Creature, Guardian, Player, and Totem.

◆ UpdateArmor()

virtual void Unit::UpdateArmor ( )
pure virtual

◆ UpdateAttackPowerAndDamage()

virtual void Unit::UpdateAttackPowerAndDamage ( bool  ranged = false)
pure virtual

Implemented in Creature, Guardian, Player, and Totem.

Referenced by HandleAttackPowerModifier().

◆ UpdateAttackTimeField()

◆ UpdateAuraForGroup()

◆ UpdateCharmAI()

◆ UpdateCreatureType()

◆ UpdateDamageDoneMods()

◆ UpdateDamagePctDoneMods()

◆ UpdateDamagePhysical()

◆ UpdateDisplayPower()

◆ UpdateHeight()

void Unit::UpdateHeight ( float  newZ)

Only server-side height update, does not broadcast to client.

Definition at line 13187 of file Unit.cpp.

References Position::GetPositionX(), Position::GetPositionY(), GetVehicleKit(), IsVehicle(), Position::Relocate(), and Vehicle::RelocatePassengers().

Referenced by SetHover().

◆ UpdateInterruptMask()

◆ UpdateLiquidStatusOnPositionChange()

◆ UpdateMaxHealth()

virtual void Unit::UpdateMaxHealth ( )
pure virtual

Implemented in Creature, Guardian, Player, and Totem.

Referenced by UpdateUnitMod().

◆ UpdateMaxPower()

virtual void Unit::UpdateMaxPower ( Powers  power)
pure virtual

Implemented in Creature, Guardian, Player, and Totem.

Referenced by SetPowerType(), and UpdateUnitMod().

◆ UpdateMountCapability()

◆ UpdateMovementForcesModMagnitude()

◆ UpdateNearbyPlayersInteractions()

◆ UpdateObjectVisibility()

◆ UpdateOrientation()

void Unit::UpdateOrientation ( float  orientation)

Only server-side orientation update, does not broadcast to client.

Definition at line 13179 of file Unit.cpp.

References GetVehicleKit(), IsVehicle(), Vehicle::RelocatePassengers(), and Position::SetOrientation().

Referenced by UpdatePosition().

◆ UpdatePetCombatState()

void Unit::UpdatePetCombatState ( )

Definition at line 9301 of file Unit.cpp.

References ASSERT, IsPet(), m_Controlled, RemoveUnitFlag(), SetUnitFlag(), and UNIT_FLAG_PET_IN_COMBAT.

Referenced by SetCharm(), and SetMinion().

◆ UpdatePosition() [1/2]

◆ UpdatePosition() [2/2]

bool Unit::UpdatePosition ( Position const &  pos,
bool  teleport = false 
)
virtual

◆ UpdateReactives()

void Unit::UpdateReactives ( uint32  p_time)

◆ UpdateResistances()

◆ UpdateSpeed()

void Unit::UpdateSpeed ( UnitMoveType  mtype)
Todo:
possible affect only on MOVE_RUN

Definition at line 8797 of file Unit.cpp.

References AddPct(), ASSERT_NOTNULL, baseMoveSpeed, CalculatePct(), FOLLOW_MOTION_TYPE, GetCharmer(), SpellMgr::GetCreatureImmunities(), Creature::GetCreatureTemplate(), MotionMaster::GetCurrentMovementGeneratorType(), WorldObject::GetDistance(), BaseEntity::GetGUID(), GetMaxNegativeAuraModifier(), GetMaxPositiveAuraModifier(), GetMotionMaster(), GetOwnerGUID(), GetSpeedRate(), GetTarget(), GetTotalAuraModifier(), GetTotalAuraMultiplier(), BaseEntity::GetTypeId(), GetVehicle(), GetVehicleBase(), IsControlledByPlayer(), IsHunterPet(), IsInCombat(), IsMounted(), BaseEntity::IsPlayer(), WorldObject::IsWithinDist3d(), MECHANIC_DAZE, MECHANIC_SNARE, MOVE_FLIGHT, MOVE_FLIGHT_BACK, MOVE_RUN, MOVE_RUN_BACK, MOVE_SWIM, MOVE_SWIM_BACK, MOVE_WALK, PET_FOLLOW_DIST, playerBaseMoveSpeed, SetSpeedRate(), CreatureTemplate::speed_run, SPELL_AURA_MOD_DECREASE_SPEED, SPELL_AURA_MOD_FLIGHT_SPEED_NOT_STACK, SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_AURA_MOD_INCREASE_MOUNTED_SPEED, SPELL_AURA_MOD_INCREASE_SPEED, SPELL_AURA_MOD_INCREASE_SWIM_SPEED, SPELL_AURA_MOD_INCREASE_VEHICLE_FLIGHT_SPEED, SPELL_AURA_MOD_MINIMUM_SPEED, SPELL_AURA_MOD_MINIMUM_SPEED_RATE, SPELL_AURA_MOD_MOUNTED_FLIGHT_SPEED_ALWAYS, SPELL_AURA_MOD_MOUNTED_SPEED_ALWAYS, SPELL_AURA_MOD_MOUNTED_SPEED_NOT_STACK, SPELL_AURA_MOD_SPEED_ALWAYS, SPELL_AURA_MOD_SPEED_NOT_STACK, SPELL_AURA_MOD_VEHICLE_SPEED_ALWAYS, SPELL_AURA_USE_NORMAL_MOVEMENT_SPEED, TC_LOG_ERROR, Object::ToCreature(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_MASK_MINION, and UpdateSpeed().

Referenced by Creature::AtDisengage(), Creature::AtEngage(), boss_jormungarAI::Emerge(), AuraEffect::HandleAuraModDecreaseSpeed(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), AuraEffect::HandleAuraModIncreaseSpeed(), AuraEffect::HandleAuraModIncreaseSwimSpeed(), AuraEffect::HandleAuraModMinimumSpeedRate(), AuraEffect::HandleAuraModUseNormalSpeed(), boss_razorscale::MovementInform(), spell_monk_roll_aura::RestoreRunBackSpeed(), PetAI::UpdateAI(), and UpdateSpeed().

◆ UpdateSplineMovement()

void Unit::UpdateSplineMovement ( uint32  t_diff)
private

◆ UpdateSplinePosition()

◆ UpdateStatBuffMod()

◆ UpdateStatBuffModForClient()

◆ UpdateStats()

virtual bool Unit::UpdateStats ( Stats  stat)
pure virtual

◆ UpdateUnitMod()

◆ ValidateAttackersAndOwnTarget()

void Unit::ValidateAttackersAndOwnTarget ( )

◆ Whisper() [1/2]

void Unit::Whisper ( std::string_view  text,
Language  language,
Player *  target,
bool  isBossWhisper = false 
)
virtual

◆ Whisper() [2/2]

◆ Yell() [1/2]

void Unit::Yell ( std::string_view  text,
Language  language,
WorldObject const *  target = nullptr 
)
virtual

Reimplemented in Player.

Definition at line 14484 of file Unit.cpp.

References CHAT_MSG_MONSTER_YELL, CONFIG_LISTEN_RANGE_YELL, and sWorld.

Referenced by npc_commandscript::HandleNpcYellCommand(), and Map::ScriptsProcess().

◆ Yell() [2/2]

void Unit::Yell ( uint32  textId,
WorldObject const *  target = nullptr 
)
virtual

Reimplemented in Player.

Definition at line 14551 of file Unit.cpp.

References CHAT_MSG_MONSTER_YELL, CONFIG_LISTEN_RANGE_YELL, and sWorld.

Friends And Related Symbol Documentation

◆ CombatManager

friend class CombatManager
friend

Definition at line 2032 of file Unit.h.

◆ ImmediateMovementGenerator

friend class ImmediateMovementGenerator
friend

Definition at line 2005 of file Unit.h.

◆ ThreatManager

friend class ThreatManager
friend

Definition at line 2034 of file Unit.h.

◆ VehicleJoinEvent

friend class VehicleJoinEvent
friend

Definition at line 1794 of file Unit.h.

Member Data Documentation

◆ _aiAnimKitId

uint16 Unit::_aiAnimKitId
private

Definition at line 2057 of file Unit.h.

Referenced by SetAIAnimKitId(), SetMeleeAnimKitId(), and SetMovementAnimKitId().

◆ _instantCast

bool Unit::_instantCast
private

Definition at line 2052 of file Unit.h.

Referenced by Unit().

◆ _isCombatDisallowed

bool Unit::_isCombatDisallowed
private

Definition at line 2066 of file Unit.h.

Referenced by Unit().

◆ _isWalkingBeforeCharm

bool Unit::_isWalkingBeforeCharm
private

Are we walking before we were charmed?

Definition at line 2055 of file Unit.h.

Referenced by SetCharm(), and Unit().

◆ _lastDamagedTargetGuid

ObjectGuid Unit::_lastDamagedTargetGuid
private

Definition at line 2048 of file Unit.h.

Referenced by AddExtraAttacks(), AttackerStateUpdate(), and Update().

◆ _lastExtraAttackSpell

uint32 Unit::_lastExtraAttackSpell
private

Definition at line 2046 of file Unit.h.

Referenced by AttackerStateUpdate(), Unit(), and Update().

◆ _lastLiquid

LiquidTypeEntry const* Unit::_lastLiquid
protected

Definition at line 1981 of file Unit.h.

Referenced by Unit(), UpdateLiquidStatusOnPositionChange(), and Player::UpdateMirrorTimers().

◆ _meleeAnimKitId

uint16 Unit::_meleeAnimKitId
private

Definition at line 2059 of file Unit.h.

Referenced by SetAIAnimKitId(), SetMeleeAnimKitId(), and SetMovementAnimKitId().

◆ _movementAnimKitId

uint16 Unit::_movementAnimKitId
private

Definition at line 2058 of file Unit.h.

Referenced by SetAIAnimKitId(), SetMeleeAnimKitId(), and SetMovementAnimKitId().

◆ _movementForces

std::unique_ptr<MovementForces> Unit::_movementForces
private

◆ _oldFactionId

uint32 Unit::_oldFactionId
private

faction before charm

Definition at line 2054 of file Unit.h.

Referenced by RemoveCharmedBy(), SetCharmedBy(), and Unit().

◆ _positionUpdateInfo

PositionUpdateInfo Unit::_positionUpdateInfo
private

Definition at line 2064 of file Unit.h.

Referenced by InterruptMovementBasedAuras(), Update(), and UpdatePosition().

◆ _spellHistory

std::unique_ptr<SpellHistory> Unit::_spellHistory
private

Definition at line 2061 of file Unit.h.

Referenced by _UpdateSpells().

◆ extraAttacksTargets

std::unordered_map<ObjectGuid , uint32 > Unit::extraAttacksTargets
private

Definition at line 2047 of file Unit.h.

Referenced by AddExtraAttacks(), and Update().

◆ i_AI

std::shared_ptr<UnitAI> Unit::i_AI
private

Definition at line 2041 of file Unit.h.

Referenced by RefreshAI().

◆ i_AIs

UnitAIStack Unit::i_AIs
private

Definition at line 2040 of file Unit.h.

Referenced by PopAI(), PushAI(), and RefreshAI().

◆ i_motionMaster

std::unique_ptr<MotionMaster> Unit::i_motionMaster
protected

Definition at line 1972 of file Unit.h.

Referenced by AddToWorld(), and Update().

◆ LastCharmerGUID

ObjectGuid Unit::LastCharmerGUID

Definition at line 1795 of file Unit.h.

Referenced by CreatureAI::OnCharmed(), SmartAI::OnCharmed(), and RemoveCharmedBy().

◆ m_advFlyingSpeed

std::array<float, ADV_FLYING_MAX_SPEED_TYPE> Unit::m_advFlyingSpeed
protected

Definition at line 1963 of file Unit.h.

Referenced by UpdateAdvFlyingSpeed(), and UpdateAdvFlyingSpeed().

◆ m_aiLocked

bool Unit::m_aiLocked
private

Definition at line 2042 of file Unit.h.

Referenced by AIUpdateTick(), and RefreshAI().

◆ m_appliedAuras

◆ m_areaTrigger

◆ m_attackers

AttackerSet Unit::m_attackers
protected

Definition at line 1917 of file Unit.h.

Referenced by _addAttacker(), _removeAttacker(), CombatStop(), RemoveAllAttackers(), and ~Unit().

◆ m_attacking

Unit* Unit::m_attacking
protected

Definition at line 1918 of file Unit.h.

Referenced by Attack(), AttackStop(), Unit(), and ~Unit().

◆ m_attackPowerMods

float Unit::m_attackPowerMods[uint32(AttackPowerModIndex::End)][uint32(AttackPowerModType::End)]
protected

Definition at line 1955 of file Unit.h.

Referenced by GetAttackPowerModifierValue(), HandleAttackPowerModifier(), and Unit().

◆ m_attackTimer

std::array<uint32, MAX_ATTACK> Unit::m_attackTimer

Definition at line 1544 of file Unit.h.

Referenced by ApplyAttackTimePercentMod(), resetAttackTimer(), and Unit().

◆ m_auraFlatModifiersGroup

float Unit::m_auraFlatModifiersGroup[UNIT_MOD_END][MODIFIER_TYPE_FLAT_END]
protected

Definition at line 1953 of file Unit.h.

Referenced by GetFlatModifierValue(), HandleStatFlatModifier(), SetStatFlatModifier(), and Unit().

◆ m_auraPctModifiersGroup

float Unit::m_auraPctModifiersGroup[UNIT_MOD_END][MODIFIER_TYPE_PCT_END]
protected

Definition at line 1954 of file Unit.h.

Referenced by ApplyStatPctModifier(), GetPctModifierValue(), SetStatPctModifier(), and Unit().

◆ m_auraStateAuras

AuraStateAurasMap Unit::m_auraStateAuras
protected

◆ m_auraUpdateIterator

AuraMap::iterator Unit::m_auraUpdateIterator
protected

Definition at line 1943 of file Unit.h.

Referenced by _UpdateSpells(), RemoveOwnedAura(), and Unit().

◆ m_baseAttackSpeed

std::array<uint32, MAX_ATTACK> Unit::m_baseAttackSpeed

◆ m_baseSpellCritChance

float Unit::m_baseSpellCritChance

◆ m_canDualWield

bool Unit::m_canDualWield

Definition at line 727 of file Unit.h.

Referenced by Player::RemoveSpell(), Unit(), and Player::UpdateAverageItemLevelTotal().

◆ m_canModifyStats

bool Unit::m_canModifyStats
protected

Definition at line 1957 of file Unit.h.

Referenced by Unit().

◆ m_charmed

Unit* Unit::m_charmed
protected

Definition at line 1968 of file Unit.h.

Referenced by SetCharm().

◆ m_charmer

Unit* Unit::m_charmer
protected

Definition at line 1967 of file Unit.h.

Referenced by SetCharm().

◆ m_charmInfo

◆ m_cleanupDone

bool Unit::m_cleanupDone
private

Definition at line 2050 of file Unit.h.

Referenced by _AddAura(), _CreateAuraApplication(), CleanupBeforeRemoveFromMap(), and Unit().

◆ m_combatManager

CombatManager Unit::m_combatManager
private

◆ m_Controlled

◆ m_ControlledByPlayer

bool Unit::m_ControlledByPlayer
protected

Definition at line 1912 of file Unit.h.

Referenced by TempSummon::InitStats(), Player::Player(), SetCharm(), and SetMinion().

◆ m_currentSpells

◆ m_deathState

◆ m_Diminishing

Diminishing Unit::m_Diminishing
private

Definition at line 2029 of file Unit.h.

Referenced by ApplyDiminishingAura(), ClearDiminishings(), GetDiminishing(), and IncrDiminishing().

◆ m_duringRemoveFromWorld

bool Unit::m_duringRemoveFromWorld
private

Definition at line 2051 of file Unit.h.

Referenced by RemoveFromWorld(), Unit(), and ~Unit().

◆ m_dynObj

DynObjectList Unit::m_dynObj
protected

◆ m_floatStatNegBuff

std::array<float, MAX_STATS> Unit::m_floatStatNegBuff
protected

Definition at line 1915 of file Unit.h.

Referenced by InitStatBuffMods(), Unit(), UpdateStatBuffMod(), and UpdateStatBuffModForClient().

◆ m_floatStatPosBuff

std::array<float, MAX_STATS> Unit::m_floatStatPosBuff
protected

Definition at line 1914 of file Unit.h.

Referenced by InitStatBuffMods(), Unit(), UpdateStatBuffMod(), and UpdateStatBuffModForClient().

◆ m_followingMe

std::unordered_set<AbstractFollower*> Unit::m_followingMe
private

Definition at line 2044 of file Unit.h.

Referenced by FollowerAdded(), FollowerRemoved(), and RemoveAllFollowers().

◆ m_gameObj

GameObjectList Unit::m_gameObj
protected

◆ m_insideAreaTriggers

AreaTriggerList Unit::m_insideAreaTriggers
protected

Definition at line 1934 of file Unit.h.

Referenced by EnterAreaTrigger(), ExitAllAreaTriggers(), and ExitAreaTrigger().

◆ m_interruptableAuras

◆ m_interruptMask

EnumFlag<SpellAuraInterruptFlags> Unit::m_interruptMask
protected

Definition at line 1950 of file Unit.h.

Referenced by UpdateInterruptMask().

◆ m_interruptMask2

EnumFlag<SpellAuraInterruptFlags2> Unit::m_interruptMask2
protected

Definition at line 1951 of file Unit.h.

Referenced by UpdateInterruptMask().

◆ m_lastSanctuaryTime

uint32 Unit::m_lastSanctuaryTime

Definition at line 1617 of file Unit.h.

Referenced by Spell::TargetInfo::DoTargetSpellHit(), and Spell::EffectSanctuary().

◆ m_modAttackSpeedPct

std::array<float, MAX_ATTACK> Unit::m_modAttackSpeedPct

◆ m_modAuras

std::array<AuraEffectList, TOTAL_AURAS> Unit::m_modAuras
protected

◆ m_modMeleeHitChance

float Unit::m_modMeleeHitChance

Definition at line 1537 of file Unit.h.

Referenced by MeleeSpellMissChance(), Player::Player(), Unit(), and Player::UpdateMeleeHitChances().

◆ m_modRangedHitChance

float Unit::m_modRangedHitChance

◆ m_modSpellHitChance

float Unit::m_modSpellHitChance

◆ m_movementCounter

◆ m_ObjectSlot

std::array<ObjectGuid, MAX_GAMEOBJECT_SLOT> Unit::m_ObjectSlot

Definition at line 1525 of file Unit.h.

Referenced by Spell::EffectSummonObject(), and RemoveGameObjectImpl().

◆ m_ownedAuras

◆ m_playerMovingMe

Player* Unit::m_playerMovingMe
protected

◆ m_procChainLength

int32 Unit::m_procChainLength
protected

Definition at line 1923 of file Unit.h.

Referenced by TriggerAurasProcOnEvent().

◆ m_procDeep

int32 Unit::m_procDeep
protected

Definition at line 1922 of file Unit.h.

Referenced by SetCantProc(), and Update().

◆ m_reactiveTimer

std::array<uint32, MAX_REACTIVE> Unit::m_reactiveTimer
protected

Definition at line 1974 of file Unit.h.

Referenced by ClearAllReactives(), Unit(), and UpdateReactives().

◆ m_regenTimer

uint32 Unit::m_regenTimer
protected

◆ m_removedAuras

AuraList Unit::m_removedAuras
protected

Definition at line 1942 of file Unit.h.

Referenced by _DeleteRemovedAuras(), RemoveOwnedAura(), and ~Unit().

◆ m_removedAurasCount

◆ m_scAuras

AuraList Unit::m_scAuras
protected

Definition at line 1947 of file Unit.h.

◆ m_sharedVision

SharedVisionList Unit::m_sharedVision
protected

Definition at line 1970 of file Unit.h.

Referenced by AddPlayerToVision(), RemovePlayerFromVision(), and ~Unit().

◆ m_speed_rate

std::array<float, MAX_MOVE_TYPE> Unit::m_speed_rate
protected

Definition at line 1962 of file Unit.h.

Referenced by GetSpeed(), SetMinion(), SetSpeedRate(), and Unit().

◆ m_spellImmune

◆ m_state

uint32 Unit::m_state
private

Definition at line 2027 of file Unit.h.

Referenced by Unit().

◆ m_SummonSlot

◆ m_threatManager

ThreatManager Unit::m_threatManager
private

Definition at line 2035 of file Unit.h.

Referenced by EngageWithTarget(), and IsThreatened().

◆ m_transformSpell

uint32 Unit::m_transformSpell
protected

Definition at line 1936 of file Unit.h.

◆ m_unitData

Definition at line 1897 of file Unit.h.

Referenced by _ApplyAura(), Player::_SaveStats(), _UnapplyAura(), AddChannelObject(), AddWorldEffect(), ApplyAttackTimePercentMod(), ApplyCastTimePercentMod(), Player::ApplyEnchantment(), ApplyHasteRegenPercentMod(), Creature::ApplyLevelScaling(), ApplyModManaCostModifier(), ApplyModManaCostMultiplier(), ApplySpellHastePercentMod(), Group::BroadcastGroupUpdate(), BuildAuraStateUpdateForTarget(), Creature::BuildValuesCreate(), Player::BuildValuesCreate(), Creature::BuildValuesUpdate(), Player::BuildValuesUpdate(), Creature::BuildValuesUpdateForPlayerWithMask(), Player::BuildValuesUpdateForPlayerWithMask(), Creature::BuildValuesUpdateWithFlag(), Player::BuildValuesUpdateWithFlag(), SpellInfo::CalcPowerCost(), CalcPPMHasteMod(), CalculateDamage(), AuraEffect::CalculateEstimatedfTotalPeriodicAmount(), AuraEffect::CalculatePeriodic(), Spell::CheckCasterAuras(), ClearChannelObjects(), ClearValuesChangesMask(), ClearWorldEffects(), Player::CreateCorpse(), spell_hun_masters_call::DoCheckCast(), Spell::DoSpellEffectHit(), Spell::EffectDestroyAllTotems(), Pet::FillPetInfo(), Spell::finish(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), Creature::GetBaseArmorForLevel(), Creature::GetBaseDamageForLevel(), SpellHistory::GetChargeRecoveryTime(), Item::GetItemLevel(), Creature::GetLevelForTarget(), Creature::GetMaxHealthByLevel(), GetMaxPower(), GetPower(), Player::GetPowerRegen(), Player::GetRuneBaseCooldown(), GetTotalAttackPowerValue(), GetVirtualItemAppearanceMod(), GetVirtualItemId(), Pet::GivePetXP(), modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcInfoCommand(), HasAuraState(), Creature::HasScalableLevels(), Player::InitRunes(), TempSummon::InitStats(), Totem::InitStats(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), IsMagnet(), TempSummon::IsSharingTotemSlotWith(), npc_toxic_sporebat::JustAppeared(), npc_harbinger_of_flame::npc_harbinger_of_flameAI::JustEngagedWith(), Player::LoadFromDB(), CriteriaHandler::ModifierSatisfied(), ModifyAuraState(), WorldObject::ModSpellCastTime(), WorldObject::ModSpellDurationTime(), Player::outDebugValues(), AuraEffect::PeriodicTick(), ProcessPositionDataChanged(), Creature::ReacquireSpellFocusTarget(), Aura::RefreshDuration(), Player::Regenerate(), RemoveChannelObject(), spell_halion_twilight_cutter::RemoveNotBetween(), RemoveNpcFlag(), RemoveNpcFlag2(), Player::RemovePet(), RemovePetFlag(), RemovePvpFlag(), RemoveUnitFlag(), RemoveUnitFlag2(), RemoveUnitFlag3(), RemoveVisFlag(), RemoveWorldEffect(), ReplaceAllNpcFlags(), ReplaceAllNpcFlags2(), ReplaceAllPetFlags(), ReplaceAllPvpFlags(), ReplaceAllSilencedSchoolMask(), ReplaceAllUnitFlags(), ReplaceAllUnitFlags2(), ReplaceAllUnitFlags3(), ReplaceAllVisFlags(), Pet::SavePetToDB(), Player::SaveToDB(), Creature::SaveToDB(), Spell::SelectImplicitChannelTargets(), Creature::SelectLevel(), Spell::SendChannelStart(), Player::SendMovementSetCollisionHeight(), SetAnimTier(), SetAttackPower(), SetAttackPowerModNeg(), SetAttackPowerModPos(), SetAttackPowerMultiplier(), SetBattlePetCompanionExperience(), SetBattlePetCompanionGUID(), SetBattlePetCompanionNameTimestamp(), SetBonusResistanceMod(), SetBoundingRadius(), SetChannelObject(), SetChannelSpellData(), SetChannelSpellId(), SetChannelVisual(), SetCharm(), SetClass(), SetCombatReach(), SetCosmeticMountDisplayId(), SetCreatedBySpell(), SetCreateHealth(), SetCreateMana(), SetCreatorGUID(), SetCritterGUID(), SetDemonCreatorGUID(), SetDisplayId(), SetEmoteState(), SetFaction(), SetFlightCapabilityID(), SetGender(), SetHealth(), SetHover(), SetHoverHeight(), Player::SetInGuild(), Creature::SetInteractSpellId(), SetLevel(), SetMainHandWeaponAttackPower(), SetMaxHealth(), SetMaxPower(), SetMinion(), SetMinionGUID(), SetModCastingSpeed(), SetModCastingSpeedNeg(), SetModHaste(), SetModHasteRegen(), SetModRangedHaste(), SetModSpellHaste(), SetModTimeRate(), SetMountDisplayId(), SetNameplateAttachToGUID(), SetNpcFlag(), SetNpcFlag2(), SetOffHandWeaponAttackPower(), SetOverrideDisplayPowerId(), SetOwnerGUID(), Pet::SetPetExperience(), SetPetFlag(), SetPetNameTimestamp(), Pet::SetPetNextLevelExperience(), SetPetNumberForClient(), SetPower(), SetPowerType(), SetPvpFlag(), SetRace(), SetRangedAttackPower(), SetRangedAttackPowerModNeg(), SetRangedAttackPowerModPos(), SetRangedAttackPowerMultiplier(), SetRangedWeaponAttackPower(), SetResistance(), Player::SetSelection(), SetShapeshiftForm(), SetSheath(), SetSilencedSchoolMask(), SetSpellEmpowerStage(), Creature::SetSpellFocus(), SetStandState(), SetStat(), Creature::SetTarget(), SetUnitFlag(), SetUnitFlag2(), SetUnitFlag3(), SetVirtualItem(), SetVisFlag(), SetWildBattlePetLevel(), SpellHistory::StartCooldown(), Spell::TriggerGlobalCooldown(), Totem::UnSummon(), Player::UnsummonPetTemporaryIfAny(), boss_vx_001::boss_vx_001AI::UpdateAI(), UpdateAttackTimeField(), Player::UpdateAverageItemLevelEquipped(), UpdateCreatureType(), UpdateDamagePhysical(), Guardian::UpdateDamagePhysical(), Creature::UpdateEntry(), UpdateNearbyPlayersInteractions(), Player::UpdatePowerRegen(), UpdateStatBuffModForClient(), Player::UpdateTriggerVisibility(), Player::UpdateVisibleObjectInteractions(), and Vehicle::Vehicle().

◆ m_unitMovedByMe

Unit* Unit::m_unitMovedByMe
protected

Definition at line 1965 of file Unit.h.

Referenced by Player::Player(), SetMovedUnit(), and ~Unit().

◆ m_unitTypeMask

◆ m_vehicle

◆ m_vehicleKit

Trinity::unique_trackable_ptr<Vehicle> Unit::m_vehicleKit
protected

Definition at line 1978 of file Unit.h.

Referenced by CreateVehicleKit(), RemoveVehicleKit(), and Creature::Update().

◆ m_vignette

std::unique_ptr<Vignettes::VignetteData> Unit::m_vignette
protected

Definition at line 1983 of file Unit.h.

Referenced by Heartbeat(), setDeathState(), and SetVignette().

◆ m_visibleAuras

VisibleAuraContainer Unit::m_visibleAuras
protected

Definition at line 1959 of file Unit.h.

Referenced by RemoveVisibleAura(), and SetVisibleAura().

◆ m_visibleAurasToUpdate

◆ m_weaponDamage

float Unit::m_weaponDamage[MAX_ATTACK][2]
protected

Definition at line 1956 of file Unit.h.

Referenced by GetWeaponDamageRange(), and Unit().

◆ movespline


The documentation for this class was generated from the following files: