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

#include <Unit.h>

+ Inheritance diagram for Unit:

Public Types

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::list< AuraEffect * > AuraEffectList
 
typedef std::list< Aura * > AuraList
 
typedef std::list< AuraApplication * > AuraApplicationList
 
typedef std::array< DiminishingReturn, DIMINISHING_MAX > Diminishing
 
typedef std::vector< std::pair< uint8, AuraApplication * > > AuraApplicationProcContainer
 
typedef std::map< uint8, AuraApplication * > VisibleAuraMap
 

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
 
uint32 GetDynamicFlags () const override
 
void ReplaceAllDynamicFlags (uint32 flag) override
 
virtual bool IsAffectedByDiminishingReturns () const
 
DiminishingLevels GetDiminishing (DiminishingGroup group) const
 
void IncrDiminishing (SpellInfo const *auraSpellInfo, bool triggered)
 
bool ApplyDiminishingToDuration (SpellInfo const *auraSpellInfo, bool triggered, 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 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, uint8 damageIndex=0) const =0
 
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)
 
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
 
uint8 GetLevel () const
 
uint8 GetLevelForTarget (WorldObject const *) const override
 
void SetLevel (uint8 lvl, bool sendUpdate=true)
 
uint8 GetRace () const
 
void SetRace (uint8 race)
 
uint32 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 GetResistance (SpellSchools school) const
 
int32 GetResistance (SpellSchoolMask mask) const
 
void SetResistance (SpellSchools school, int32 val)
 
uint32 GetHealth () const
 
uint32 GetMaxHealth () const
 
bool IsFullHealth () const
 
bool HealthBelowPct (int32 pct) const
 
bool HealthBelowPctDamaged (int32 pct, uint32 damage) const
 
bool HealthAbovePct (int32 pct) const
 
bool HealthAbovePctHealed (int32 pct, uint32 heal) const
 
float GetHealthPct () const
 
uint32 CountPctFromMaxHealth (int32 pct) const
 
uint32 CountPctFromCurHealth (int32 pct) const
 
void SetHealth (uint32 val)
 
void SetMaxHealth (uint32 val)
 
void SetFullHealth ()
 
int32 ModifyHealth (int32 val)
 
int32 GetHealthGain (int32 dVal)
 
Powers GetPowerType () const
 
void SetPowerType (Powers power, bool sendUpdate=true)
 
void UpdateDisplayPower ()
 
uint32 GetPower (Powers power) const
 
int32 GetMinPower (Powers) const
 
uint32 GetMaxPower (Powers power) const
 
float GetPowerPct (Powers power) const
 
int32 CountPctFromMaxPower (Powers power, int32 pct) const
 
void SetPower (Powers power, uint32 val, bool withPowerUpdate=true, bool force=false)
 
void SetMaxPower (Powers power, uint32 val)
 
void SetFullPower (Powers power)
 
int32 ModifyPower (Powers power, int32 val, bool withPowerUpdate=true)
 
uint32 GetAttackTime (WeaponAttackType att) const
 
void SetAttackTime (WeaponAttackType att, uint32 val)
 
void ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply)
 
void ApplyCastTimePercentMod (float val, bool apply)
 
void SetModCastingSpeed (float castingSpeed)
 
UnitFlags GetUnitFlags () const
 
bool HasUnitFlag (UnitFlags flags) const
 
void SetUnitFlag (UnitFlags flags)
 
void RemoveUnitFlag (UnitFlags flags)
 
void ReplaceAllUnitFlags (UnitFlags flags)
 
UnitFlags2 GetUnitFlags2 () const
 
bool HasUnitFlag2 (UnitFlags2 flags) const
 
void SetUnitFlag2 (UnitFlags2 flags)
 
void RemoveUnitFlag2 (UnitFlags2 flags)
 
void ReplaceAllUnitFlags2 (UnitFlags2 flags)
 
void SetCreatedBySpell (int32 spellId)
 
Emote GetEmoteState () const
 
void SetEmoteState (Emote emote)
 
SheathState GetSheath () const
 
virtual 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
 
UnitStandStateType GetStandState () const
 
bool IsSitState () const
 
bool IsStandState () const
 
void SetStandState (UnitStandStateType state)
 
void SetVisFlag (UnitVisFlags flags)
 
void RemoveVisFlag (UnitVisFlags flags)
 
void ReplaceAllVisFlags (UnitVisFlags flags)
 
AnimTier GetAnimTier () const
 
void SetAnimTier (AnimTier animTier)
 
bool IsMounted () const
 
uint32 GetMountDisplayId () const
 
void SetMountDisplayId (uint32 mountDisplayId)
 
void Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0)
 
void Dismount ()
 
uint32 GetMaxSkillValueForLevel (Unit const *target=nullptr) const
 
void KillSelf (bool durabilityLoss=true)
 
void GetProcAurasTriggeredOnEvent (AuraApplicationProcContainer &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo &eventInfo)
 
void TriggerAurasProcOnEvent (Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo)
 
void TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationProcContainer &procAuras)
 
void HandleEmoteCommand (Emote emoteId)
 
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)
 
float GetMeleeCritChanceReduction () const
 
float GetRangedCritChanceReduction () const
 
float GetSpellCritChanceReduction () const
 
uint32 GetMeleeCritDamageReduction (uint32 damage) const
 
uint32 GetRangedCritDamageReduction (uint32 damage) const
 
uint32 GetSpellCritDamageReduction (uint32 damage) const
 
uint32 GetMeleeDamageReduction (uint32 damage) const
 
uint32 GetRangedDamageReduction (uint32 damage) const
 
uint32 GetSpellDamageReduction (uint32 damage) const
 
virtual bool CanApplyResilience () const
 
int32 CalculateAOEAvoidance (int32 damage, uint32 schoolMask, ObjectGuid const &casterGuid) const
 
float MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, int32 skillDiff, uint32 spellId) 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
 
int32 GetMechanicResistChance (SpellInfo const *spellInfo) const
 
bool CanUseAttackType (uint8 attacktype) const
 
virtual uint32 GetShieldBlockValue () const =0
 
uint32 GetShieldBlockValue (uint32 soft_cap, uint32 hard_cap) const
 
uint32 GetDefenseSkillValue (Unit const *target=nullptr) const
 
uint32 GetWeaponSkillValue (WeaponAttackType attType, Unit const *target=nullptr) 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)
 
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 IsSpiritGuide () const
 
bool IsTabardDesigner () const
 
bool IsAuctioner () const
 
bool IsArmorer () const
 
bool IsServiceProvider () const
 
bool IsSpiritService () 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 IsInCombat () const
 
bool IsInCombatWith (Unit const *who) const
 
void SetInCombatWith (Unit *enemy, bool addSecondUnitSuppressed=false)
 
void ClearInCombat ()
 
void UpdatePetCombatState ()
 
bool IsThreatened () const
 
bool IsThreatenedBy (Unit const *who) const
 
ThreatManager & GetThreatManager ()
 
ThreatManager const & GetThreatManager () const
 
void SendClearTarget ()
 
bool HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, flag96 familyFlags) const
 
virtual bool HasSpell (uint32) const
 
bool HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const
 
bool HasBreakableByDamageCrowdControlAura (Unit *excludeCasterChannel=nullptr) const
 
bool HasStealthAura () const
 
bool HasInvisibilityAura () const
 
bool IsFeared () const
 
bool IsRooted () const
 
bool IsPolymorphed () const
 
bool IsFrozen () const
 
bool isTargetableForAttack (bool checkFakeDeath=true) const
 
bool IsInWater () const
 
bool IsUnderWater () 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, Powers powerType)
 
void EnergizeBySpell (Unit *victim, uint32 spellId, int32 damage, Powers powerType)
 
void EnergizeBySpell (Unit *victim, SpellInfo const *spellInfo, int32 damage, Powers powerType)
 
Aura * AddAura (uint32 spellId, Unit *target)
 
Aura * AddAura (SpellInfo const *spellInfo, uint8 effMask, Unit *target)
 
void SetAuraStack (uint32 spellId, Unit *target, uint32 stack)
 
void SendPlaySpellVisualKit (uint32 id, uint32 type) const
 
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)
 
void SendSpellNonMeleeDamageLog (SpellNonMeleeDamage const *log)
 
void SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo)
 
void SendSpellDamageResist (Unit *target, uint32 spellId)
 
void SendSpellDamageImmune (Unit *target, uint32 spellId)
 
void NearTeleportTo (Position const &pos, bool casting=false)
 
void NearTeleportTo (float x, float y, float z, float orientation, bool casting=false)
 
void SendTeleportPacket (Position const &pos, bool teleportingTransport=false)
 
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 (float x, float y, float speedXY, float speedZ)
 
void JumpTo (float speedXY, float speedZ, bool forward=true, Optional< Position > dest={})
 
void JumpTo (WorldObject *obj, float speedZ, bool withOrientation=false)
 
void MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false)
 
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 SetFall (bool enable)
 
bool SetSwim (bool enable)
 
bool SetCanFly (bool enable, bool packetOnly=false)
 
bool SetWaterWalking (bool enable)
 
bool SetFeatherFall (bool enable)
 
bool SetHover (bool enable, bool updateAnimTier=true)
 
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)
 
bool IsAlive () const
 
bool isDying () const
 
bool isDead () const
 
bool IsGhouled () const
 
DeathState getDeathState () const
 
virtual void setDeathState (DeathState s)
 
ObjectGuid GetOwnerGUID () const override
 
void SetOwnerGUID (ObjectGuid owner)
 
ObjectGuid GetCreatorGUID () const
 
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 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 IsCharming () 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)
 
bool IsCharmerOrSelfPlayer () const
 
Unit * GetCharmerOrSelf () const
 
Player * GetCharmerOrSelfPlayer () const
 
Unit * GetCharmedOrSelf () const
 
bool IsMovedByClient () const
 
bool IsMovedByServer () const
 
GameClient * GetGameClientMovingMe () const
 
void SetGameClientMovingMe (GameClient *gameClientMovingMe)
 
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)
 
Aura * _TryStackingOrRefreshingExistingAura (AuraCreateInfo &createInfo)
 
void _AddAura (UnitAura *aura, Unit *caster)
 
AuraApplication * _CreateAuraApplication (Aura *aura, uint8 effMask)
 
void _ApplyAuraEffect (Aura *aura, uint8 effIndex)
 
void _ApplyAura (AuraApplication *aurApp, uint8 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, uint8 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, uint8 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, uint8 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, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAuraFromStack (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, ObjectGuid casterGUID, WorldObject *dispeller, uint8 chargesRemoved=1)
 
void RemoveAurasDueToSpellBySteal (uint32 spellId, ObjectGuid casterGUID, WorldObject *stealer)
 
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 (uint32 newPhase=0x0)
 
void RemoveAurasWithInterruptFlags (uint32 flag, uint32 except=0)
 
void RemoveAurasWithAttribute (SpellAttr0 flags)
 
void RemoveAurasWithFamily (SpellFamilyNames family, flag96 const &familyFlag, ObjectGuid casterGUID)
 
void RemoveAurasWithMechanic (uint32 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 name, uint32 iconId, uint8 effIndex) const
 
AuraEffect * GetAuraEffect (AuraType type, SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraEffect * GetDummyAuraEffect (SpellFamilyNames name, uint32 iconId, uint8 effIndex) const
 
AuraApplication * GetAuraApplication (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraApplication *except=nullptr) const
 
Aura * GetAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
 
AuraApplication * GetAuraApplicationOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraApplication *except=nullptr) const
 
Aura * GetAuraOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 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, uint8 reqEffMask=0) 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
 
bool HasNegativeAuraWithInterruptFlag (uint32 flag, ObjectGuid guid=ObjectGuid::Empty) const
 
bool HasAuraWithMechanic (uint32 mechanicMask) const
 
bool HasStrongerAuraWithDR (SpellInfo const *auraSpellInfo, Unit *caster, bool triggered) const
 
AuraEffect * IsScriptOverriden (SpellInfo const *spell, int32 script) const
 
uint32 GetDiseasesByCaster (ObjectGuid casterGUID, bool remove=false)
 
uint32 GetDoTsByCaster (ObjectGuid casterGUID) const
 
int32 GetTotalAuraModifier (AuraType auraType) const
 
float GetTotalAuraMultiplier (AuraType auraType) const
 
int32 GetMaxPositiveAuraModifier (AuraType auraType) const
 
int32 GetMaxNegativeAuraModifier (AuraType auraType) const
 
int32 GetTotalAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetTotalAuraMultiplier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
int32 GetMaxPositiveAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
int32 GetMaxNegativeAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
int32 GetTotalAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
float GetTotalAuraMultiplierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
int32 GetMaxPositiveAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask, AuraEffect const *except=nullptr) const
 
int32 GetMaxNegativeAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
int32 GetTotalAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetTotalAuraMultiplierByMiscValue (AuraType auraType, int32 misc_value) const
 
int32 GetMaxPositiveAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
int32 GetMaxNegativeAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
int32 GetTotalAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
float GetTotalAuraMultiplierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
int32 GetMaxPositiveAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
int32 GetMaxNegativeAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
void UpdateResistanceBuffModsMod (SpellSchools school)
 
void InitStatBuffMods ()
 
void UpdateStatBuffMod (Stats stat)
 
void SetCreateStat (Stats stat, float val)
 
void SetCreateHealth (uint32 val)
 
uint32 GetCreateHealth () const
 
void SetCreateMana (uint32 val)
 
uint32 GetCreateMana () const
 
uint32 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)
 
ObjectGuid GetChannelObjectGuid () const
 
void SetChannelObjectGuid (ObjectGuid guid)
 
void SetCurrentCastSpell (Spell *pSpell)
 
void InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true, SpellCastResult result=SPELL_FAILED_INTERRUPTED, Optional< SpellCastResult > resultOther={})
 
void FinishSpell (CurrentSpellTypes spellType, bool ok=true)
 
bool IsNonMeleeSpellCast (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true) const
 
void InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true)
 
Spell * GetCurrentSpell (CurrentSpellTypes spellType) const
 
Spell * GetCurrentSpell (uint32 spellType) const
 
Spell * FindCurrentSpellBySpellId (uint32 spell_id) const
 
int32 GetCurrentSpellCastTime (uint32 spell_id) const
 
virtual bool HasSpellFocus (Spell const *=nullptr) const
 
virtual bool IsMovementPreventedByCasting () const
 
SpellHistory * GetSpellHistory ()
 
SpellHistory const * GetSpellHistory () const
 
ShapeshiftForm GetShapeshiftForm () const
 
void SetShapeshiftForm (ShapeshiftForm form)
 
bool IsInFeralForm () const
 
bool IsInDisallowedMountForm () 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
 
Powers GetPowerTypeByAuraGroup (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)=0
 
virtual void UpdateAllResistances ()
 
virtual void UpdateArmor ()=0
 
virtual void UpdateMaxHealth ()=0
 
virtual void UpdateMaxPower (Powers power)=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)
 
virtual void UpdateDamagePhysical (WeaponAttackType attType)
 
float GetTotalAttackPowerValue (WeaponAttackType attType) const
 
float GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type, uint8 damageIndex=0) const
 
void SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value, uint8 damageIndex=0)
 
virtual void CalculateMinMaxDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, float &minDamage, float &maxDamage, uint8 damageIndex) const =0
 
uint32 CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, uint8 itemDamagesMask=0) 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)
 
void SetPhaseMask (uint32 newPhaseMask, bool update) override
 
void UpdateObjectVisibility (bool forced=true) override
 
VisibleAuraMap const & GetVisibleAuras () const
 
AuraApplication * GetVisibleAura (uint8 slot) const
 
void SetVisibleAura (uint8 slot, AuraApplication *aurApp)
 
void RemoveVisibleAura (uint8 slot)
 
bool HasInterruptFlag (uint32 flags) const
 
void AddInterruptMask (uint32 flags)
 
void UpdateInterruptMask ()
 
virtual float GetNativeObjectScale () const
 
virtual void RecalculateObjectScale ()
 
uint32 GetDisplayId () const
 
virtual void SetDisplayId (uint32 modelId)
 
uint32 GetNativeDisplayId () const
 
void RestoreDisplayId ()
 
void SetNativeDisplayId (uint32 displayId)
 
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 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
 
uint32 SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, Optional< float > const &donePctTotal, uint32 stack=1) const
 
float SpellDamagePctDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype) const
 
uint32 SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype) const
 
int32 SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const
 
uint32 SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, Optional< float > const &donePctTotal, uint32 stack=1) const
 
float SpellHealingPctDone (Unit *victim, SpellInfo const *spellProto) const
 
uint32 SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype) const
 
uint32 MeleeDamageBonusDone (Unit *pVictim, uint32 damage, WeaponAttackType attType, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL)
 
uint32 MeleeDamageBonusTaken (Unit *attacker, uint32 pdamage, WeaponAttackType attType, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL)
 
bool IsBlockCritical ()
 
float SpellCritChanceDone (SpellInfo const *spellInfo, SpellSchoolMask schoolMask, WeaponAttackType attackType=BASE_ATTACK, bool isPeriodic=false) const
 
float SpellCritChanceTaken (Unit const *caster, SpellInfo const *spellInfo, SpellSchoolMask schoolMask, float doneChance, WeaponAttackType attackType=BASE_ATTACK, bool isPeriodic=false) const
 
void SetLastManaUse (uint32 spellCastTime)
 
bool IsUnderLastManaUseEffect () const
 
uint32 GetCastingTimeForBonus (SpellInfo const *spellProto, DamageEffectType damagetype, uint32 CastingTime) const
 
float CalculateDefaultCoefficient (SpellInfo const *spellInfo, DamageEffectType damagetype) const
 
void ApplySpellImmune (uint32 spellId, uint32 op, uint32 type, bool apply)
 
virtual bool IsImmunedToSpell (SpellInfo const *spellInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const
 
uint32 GetSchoolImmunityMask () const
 
uint32 GetDamageImmunityMask () const
 
uint32 GetMechanicImmunityMask () const
 
bool IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const
 
bool IsImmunedToDamage (SpellInfo const *spellInfo) const
 
virtual bool IsImmunedToSpellEffect (SpellInfo const *spellInfo, SpellEffectInfo const &spellEffectInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) 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)
 
float CalculateSpellpowerCoefficientLevelPenalty (SpellInfo const *spellInfo) const
 
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 (uint32 f)
 
void RemoveUnitMovementFlag (uint32 f)
 
bool HasUnitMovementFlag (uint32 f) const
 
uint32 GetUnitMovementFlags () const
 
void SetUnitMovementFlags (uint32 f)
 
void AddExtraUnitMovementFlag (uint32 f)
 
void RemoveExtraUnitMovementFlag (uint32 f)
 
bool HasExtraUnitMovementFlag (uint32 f) const
 
uint32 GetExtraUnitMovementFlags () const
 
void SetExtraUnitMovementFlags (uint32 f)
 
bool IsSplineEnabled () const
 
void SetControlled (bool apply, UnitState state)
 
void ApplyControlStatesIfNeeded ()
 
uint8 GetComboPoints (Unit const *who=nullptr) const
 --------—Combo point system----------------—
 
uint8 GetComboPoints (ObjectGuid const &guid) const
 
Unit * GetComboTarget () const
 
ObjectGuid GetComboTargetGUID () const
 
void AddComboPoints (Unit *target, int8 count)
 
void AddComboPoints (int8 count)
 
void ClearComboPoints ()
 
void SendComboPoints ()
 
void AddComboPointHolder (Unit *unit)
 
void RemoveComboPointHolder (Unit *unit)
 
void ClearComboPointHolders ()
 
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 (uint8 slot)
 
bool CanProc () const
 
void SetCantProc (bool apply)
 
uint32 GetModelForForm (ShapeshiftForm form, uint32 spellId) const
 
bool CreateVehicleKit (uint32 id, uint32 creatureEntry)
 
void RemoveVehicleKit ()
 
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)
 
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)
 
void BuildMovementPacket (ByteBuffer *data) const
 
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
 
uint32 GetMovementCounterAndInc ()
 
PlayerMovementPendingChange & PeakFirstPendingMovementChange ()
 
PlayerMovementPendingChange PopPendingMovementChange ()
 
void PushPendingMovementChange (PlayerMovementPendingChange newChange)
 
bool HasPendingMovementChange () const
 
bool HasPendingMovementChange (MovementChangeType changeType) const
 
void PurgeAndApplyPendingMovementChanges (bool informObservers=true)
 
void RewardRage (uint32 damage, uint32 weaponSpeedHitFactor, bool attacker)
 
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
 
int32 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, int32 effectAmount, uint8 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)
 
float GetCollisionHeight () const override
 
uint32 GetVirtualItemId (uint32 slot) const
 
void SetVirtualItem (uint32 slot, uint32 itemId)
 
bool IsCombatDisallowed () const
 
void SetIsCombatDisallowed (bool apply)
 
std::string GetDebugInfo () const override
 
- 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)
 
Position GetNearPosition (float dist, float angle)
 
void MovePositionToFirstCollision (Position &pos, float dist, float angle)
 
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
 
void GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const
 
Position GetRandomPoint (Position const &srcPos, float distance) const
 
uint32 GetInstanceId () const
 
uint32 GetPhaseMask () const
 
bool InSamePhase (uint32 phasemask) const
 
bool InSamePhase (WorldObject const *obj) const
 
uint32 GetZoneId () const
 
uint32 GetAreaId () const
 
void GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const
 
bool IsInWorldPvpZone () const
 
bool IsOutdoors () const
 
ZLiquidStatus GetLiquidStatus () const
 
InstanceScript * GetInstanceScript () const
 
std::string const & GetName () const
 
void SetName (std::string newname)
 
std::string const & 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) 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 (float x, float y, float minRange, float maxRange) const
 
bool IsInRange3d (float x, float y, float z, 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 PlayDistanceSound (uint32 soundId, Player *target=nullptr)
 
void PlayDirectSound (uint32 soundId, Player *target=nullptr)
 
void PlayDirectMusic (uint32 musicId, Player *target=nullptr)
 
void SendObjectDeSpawnAnim (ObjectGuid guid)
 
void AddObjectToRemoveList ()
 
float GetGridActivationRange () const
 
float GetVisibilityRange () const
 
float GetSightRange (WorldObject const *target=nullptr) const
 
bool CanSeeOrDetect (WorldObject const *obj, bool implicitDetect=false, bool distanceCheck=false, bool checkAlert=false) const
 
virtual void SetMap (Map *map)
 
virtual void ResetMap ()
 
Map * GetMap () const
 
Map * FindMap () const
 
void SetZoneScript ()
 
void ClearZoneScript ()
 
ZoneScript * GetZoneScript () 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)
 
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 distance) const
 
ObjectGuid GetCharmerOrOwnerOrOwnGUID () const
 
Unit * GetOwner () const
 
Unit * GetCharmerOrOwner () const
 
Unit * GetCharmerOrOwnerOrSelf () const
 
Player * GetCharmerOrOwnerPlayerOrPlayerItself () const
 
Player * GetAffectingPlayer () const
 
Player * GetSpellModOwner () const
 
int32 CalculateSpellDamage (SpellEffectInfo const &spellEffectInfo, int32 const *basePoints=nullptr) const
 
float GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
float GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
float ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, float value) const
 
int32 CalcSpellDuration (SpellInfo const *spellInfo) 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=false) 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={ })
 
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 ()
 
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
 
Transport * 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 (Transport *t)
 
virtual float GetStationaryX () const
 
virtual float GetStationaryY () const
 
virtual float GetStationaryZ () const
 
virtual float GetStationaryO () 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
 
- Public Member Functions inherited from Object
virtual ~Object ()
 
bool IsInWorld () const
 
ObjectGuid GetGUID () const
 
PackedGuid const & GetPackGUID () const
 
uint32 GetEntry () const
 
void SetEntry (uint32 entry)
 
float GetObjectScale () const
 
virtual void SetObjectScale (float scale)
 
bool HasDynamicFlag (uint32 flag) const
 
virtual void SetDynamicFlag (uint32 flag)
 
virtual void RemoveDynamicFlag (uint32 flag)
 
TypeID GetTypeId () const
 
bool isType (uint16 mask) const
 
virtual void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const
 
void SendUpdateToPlayer (Player *player)
 
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const
 
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
 
void BuildMovementUpdateBlock (UpdateData *data, uint32 flags=0) const
 
int32 GetInt32Value (uint16 index) const
 
uint32 GetUInt32Value (uint16 index) const
 
uint64 GetUInt64Value (uint16 index) const
 
float GetFloatValue (uint16 index) const
 
uint8 GetByteValue (uint16 index, uint8 offset) const
 
uint16 GetUInt16Value (uint16 index, uint8 offset) const
 
ObjectGuid GetGuidValue (uint16 index) const
 
void SetInt32Value (uint16 index, int32 value)
 
void SetUInt32Value (uint16 index, uint32 value)
 
void UpdateUInt32Value (uint16 index, uint32 value)
 
void SetUInt64Value (uint16 index, uint64 value)
 
void SetFloatValue (uint16 index, float value)
 
void SetByteValue (uint16 index, uint8 offset, uint8 value)
 
void SetUInt16Value (uint16 index, uint8 offset, uint16 value)
 
void SetInt16Value (uint16 index, uint8 offset, int16 value)
 
void SetGuidValue (uint16 index, ObjectGuid value)
 
void SetStatFloatValue (uint16 index, float value)
 
void SetStatInt32Value (uint16 index, int32 value)
 
bool AddGuidValue (uint16 index, ObjectGuid value)
 
bool RemoveGuidValue (uint16 index, ObjectGuid value)
 
void ApplyModUInt32Value (uint16 index, int32 val, bool apply)
 
void ApplyModInt32Value (uint16 index, int32 val, bool apply)
 
void ApplyModUInt16Value (uint16 index, uint8 offset, int16 val, bool apply)
 
void ApplyModPositiveFloatValue (uint16 index, float val, bool apply)
 
void ApplyModSignedFloatValue (uint16 index, float val, bool apply)
 
void SetFlag (uint16 index, uint32 newFlag)
 
void RemoveFlag (uint16 index, uint32 oldFlag)
 
void ToggleFlag (uint16 index, uint32 flag)
 
bool HasFlag (uint16 index, uint32 flag) const
 
void ApplyModFlag (uint16 index, uint32 flag, bool apply)
 
void SetByteFlag (uint16 index, uint8 offset, uint8 newFlag)
 
void RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag)
 
void ToggleByteFlag (uint16 index, uint8 offset, uint8 flag)
 
bool HasByteFlag (uint16 index, uint8 offset, uint8 flag) const
 
void ApplyModByteFlag (uint16 index, uint8 offset, uint8 flag, bool apply)
 
void SetFlag64 (uint16 index, uint64 newFlag)
 
void RemoveFlag64 (uint16 index, uint64 oldFlag)
 
void ToggleFlag64 (uint16 index, uint64 flag)
 
bool HasFlag64 (uint16 index, uint64 flag) const
 
void ApplyModFlag64 (uint16 index, uint64 flag, bool apply)
 
void ClearUpdateMask (bool remove)
 
uint16 GetValuesCount () const
 
virtual bool hasQuest (uint32) const
 
virtual bool hasInvolvedQuest (uint32) const
 
void SetIsNewObject (bool enable)
 
void BuildFieldsUpdate (Player *, UpdateDataMapType &) const
 
void SetFieldNotifyFlag (uint16 flag)
 
void RemoveFieldNotifyFlag (uint16 flag)
 
void ForceValuesUpdateAtIndex (uint32)
 
bool IsWorldObject () const
 
WorldObject * ToWorldObject ()
 
WorldObject const * ToWorldObject () const
 
bool IsItem () const
 
Item * ToItem ()
 
Item const * ToItem () const
 
bool IsPlayer () const
 
Player * ToPlayer ()
 
Player const * ToPlayer () const
 
bool IsCreature () const
 
Creature * ToCreature ()
 
Creature const * ToCreature () const
 
bool IsUnit () const
 
Unit * ToUnit ()
 
Unit const * ToUnit () const
 
bool IsGameObject () const
 
GameObject * ToGameObject ()
 
GameObject const * ToGameObject () const
 
bool IsCorpse () const
 
Corpse * ToCorpse ()
 
Corpse const * ToCorpse () const
 
bool IsDynObject () const
 
DynamicObject * ToDynObject ()
 
DynamicObject const * ToDynObject () const
 
Trinity::unique_weak_ptr< Object > GetWeakPtr () const
 
- Public Member Functions inherited from WorldLocation
 WorldLocation ()
 
 WorldLocation (uint32 _mapId, float x, float y, float z=0.0f, float o=0.0f)
 
 WorldLocation (uint32 mapId, Position const &position)
 
void WorldRelocate (WorldLocation const &loc)
 
void WorldRelocate (WorldLocation const *loc)
 
void WorldRelocate (uint32 mapId, Position const &pos)
 
void WorldRelocate (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f)
 
WorldLocation GetWorldLocation () const
 
uint32 GetMapId () const
 
std::string GetDebugInfo () const
 
- Public Member Functions inherited from Position
 Position ()
 
 Position (float x, float y, float z=0.0f, float o=0.0f)
 
bool operator== (Position const &a) const
 
void Relocate (float x, float y)
 
void Relocate (float x, float y, float z)
 
void Relocate (float x, float y, float z, float o)
 
void Relocate (Position const &pos)
 
void Relocate (Position const *pos)
 
void RelocateOffset (Position const &offset)
 
void SetOrientation (float orientation)
 
float GetPositionX () const
 
float GetPositionY () const
 
float GetPositionZ () const
 
float GetOrientation () const
 
void GetPosition (float &x, float &y) const
 
void GetPosition (float &x, float &y, float &z) const
 
void GetPosition (float &x, float &y, float &z, float &o) const
 
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
 
float GetExactDist2dSq (const float x, const float y) const
 
float GetExactDist2dSq (Position const &pos) const
 
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
 
float GetExactDistSq (float x, float y, float z) const
 
float GetExactDistSq (Position const &pos) const
 
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
 
void GetPositionOffsetTo (Position const &endPos, Position &retOffset) 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
 
void GetSinCos (float x, float y, float &vsin, float &vcos) const
 
bool IsInDist2d (float x, float y, float dist) const
 
bool IsInDist2d (Position const *pos, float dist) const
 
bool IsInDist (float x, float y, float z, float dist) const
 
bool IsInDist (Position const &pos, float dist) const
 
bool IsInDist (Position const *pos, float dist) const
 
bool IsWithinBox (Position const &center, float xradius, float yradius, float zradius) const
 
bool IsWithinDoubleVerticalCylinder (Position const *center, float radius, float height) 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 float CalculateAverageResistReduction (WorldObject const *caster, SpellSchoolMask schoolMask, Unit const *victim, SpellInfo const *spellInfo=nullptr)
 
static void DealDamageMods (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)
 
static void DealHeal (HealInfo &healInfo)
 
static void ProcSkillsAndAuras (Unit *actor, Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo)
 
static void ApplyResilience (Unit const *victim, float *crit, int32 *damage, bool isCrit, CombatRating type)
 
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 void BuildMovementPacket (Position const &pos, Position const &transportPos, MovementInfo const &movementInfo, ByteBuffer *data)
 
- 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 ObjectGuid GetGUID (Object const *o)
 
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 Player * ToPlayer (Object *o)
 
static Player const * ToPlayer (Object const *o)
 
static Creature * ToCreature (Object *o)
 
static Creature const * ToCreature (Object const *o)
 
static Unit * ToUnit (Object *o)
 
static Unit const * ToUnit (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 Public Member Functions inherited from Position
static float NormalizeOrientation (float o)
 

Public Attributes

bool m_canDualWield
 
ControlList m_Controlled
 
ObjectGuid m_SummonSlot [MAX_SUMMON_SLOT]
 
ObjectGuid m_ObjectSlot [MAX_GAMEOBJECT_SLOT]
 
float m_modMeleeHitChance
 
float m_modRangedHitChance
 
float m_modSpellHitChance
 
float m_baseSpellCritChance
 
float m_modAttackSpeedPct [MAX_ATTACK]
 
uint32 m_attackTimer [MAX_ATTACK]
 
SpellImmuneContainer m_spellImmune [MAX_SPELL_IMMUNITY]
 
uint32 m_lastSanctuaryTime
 
ObjectGuid LastCharmerGUID
 
Movement::MoveSpline * movespline
 
- 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, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPES > m_invisibility
 
FlaggedValuesArray32< int32, uint32, 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 WorldLocation
uint32 m_mapId
 
- Public Attributes inherited from Position
float m_positionX
 
float m_positionY
 
float m_positionZ
 

Protected Types

typedef std::list< DynamicObject * > DynObjectList
 
typedef std::list< GameObject * > GameObjectList
 

Protected Member Functions

void SetAI (UnitAI *newAI)
 
UnitAI * GetTopAI () const
 
void RefreshAI ()
 
UnitAI * GetScheduledChangeAI ()
 
bool HasScheduledAIChange () const
 
 Unit (bool isWorldObject)
 
void BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player const *target) const override
 
void DestroyForPlayer (Player *target, bool onDeath) const 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
 
virtual void ProcessTerrainStatusUpdate (ZLiquidStatus oldLiquidStatus, 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 IsNeverVisible (bool allowServersideObjects) const
 
virtual bool IsInvisibleDueToDespawn () const
 
- Protected Member Functions inherited from Object
 Object ()
 
void _InitValues ()
 
void _Create (ObjectGuid const &guid)
 
bool _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count)
 
uint32 GetUpdateFieldData (Player const *target, uint32 *&flags) const
 
void BuildMovementUpdate (ByteBuffer *data, uint16 flags) const
 
void AddToObjectUpdateIfNeeded ()
 

Protected Attributes

bool m_ControlledByPlayer
 
bool m_AutoRepeatFirstCast
 
float m_createStats [MAX_STATS]
 
AttackerSet m_attackers
 
Unit * m_attacking
 
DeathState m_deathState
 
int32 m_procDeep
 
DynObjectList m_dynObj
 
GameObjectList m_gameObj
 
uint32 m_transformSpell
 
Spell * m_currentSpells [CURRENT_MAX_SPELL]
 
AuraMap m_ownedAuras
 
AuraApplicationMap m_appliedAuras
 
AuraList m_removedAuras
 
AuraMap::iterator m_auraUpdateIterator
 
uint32 m_removedAurasCount
 
AuraEffectList m_modAuras [TOTAL_AURAS]
 
AuraList m_scAuras
 
AuraApplicationList m_interruptableAuras
 
AuraStateAurasMap m_auraStateAuras
 
uint32 m_interruptMask
 
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][2]
 
bool m_canModifyStats
 
VisibleAuraMap m_visibleAuras
 
float m_speed_rate [MAX_MOVE_TYPE]
 
Unit * m_charmer
 
Unit * m_charmed
 
CharmInfo * m_charmInfo
 
SharedVisionList m_sharedVision
 
GameClient * _gameClientMovingMe
 
MotionMaster * i_motionMaster
 
uint32 m_reactiveTimer [MAX_REACTIVE]
 
uint32 m_regenTimer
 
Vehicle * m_vehicle
 
Trinity::unique_trackable_ptr< Vehicle > m_vehicleKit
 
uint32 m_unitTypeMask
 
LiquidTypeEntry const * _lastLiquid
 
- 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
 
Transport * m_transport
 
uint32 m_zoneId
 
uint32 m_areaId
 
float m_staticFloorZ
 
bool m_outdoors
 
ZLiquidStatus m_liquidStatus
 
- Protected Attributes inherited from Object
uint16 m_objectType
 
TypeID m_objectTypeId
 
uint16 m_updateFlag
 
union { 
 
   int32 *   m_int32Values 
 
   uint32 *   m_uint32Values 
 
   float *   m_floatValues 
 
};  
 
UpdateMask _changesMask
 
uint16 m_valuesCount
 
uint16 _fieldNotifyFlags
 
bool m_objectUpdated
 

Private Types

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

Private Member Functions

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

Private Attributes

uint32 m_state
 
uint32 m_lastManaUse
 
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
 
Unit * m_comboTarget
 
int8 m_comboPoints
 
std::unordered_set< Unit * > m_ComboPointHolders
 
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?
 
SpellHistory * _spellHistory
 
PositionUpdateInfo _positionUpdateInfo
 
bool _isCombatDisallowed
 
uint32 m_movementCounter
 
std::deque< PlayerMovementPendingChange > m_pendingMovementChanges
 

Friends

class WorldSession
 
class VehicleJoinEvent
 
class ImmediateMovementGenerator
 
class CombatManager
 
class ThreatManager
 

Detailed Description

Definition at line 782 of file Unit.h.

Member Typedef Documentation

◆ AttackerSet

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

Definition at line 786 of file Unit.h.

◆ AuraApplicationList

Definition at line 803 of file Unit.h.

◆ AuraApplicationMap

Definition at line 794 of file Unit.h.

◆ AuraApplicationMapBounds

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

Definition at line 795 of file Unit.h.

◆ AuraApplicationMapBoundsNonConst

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

Definition at line 796 of file Unit.h.

◆ AuraApplicationProcContainer

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

Definition at line 806 of file Unit.h.

◆ AuraEffectList

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

Definition at line 801 of file Unit.h.

◆ AuraList

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

Definition at line 802 of file Unit.h.

◆ AuraMap

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

Definition at line 790 of file Unit.h.

◆ AuraMapBounds

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

Definition at line 791 of file Unit.h.

◆ AuraMapBoundsNonConst

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

Definition at line 792 of file Unit.h.

◆ AuraStateAurasMap

Definition at line 798 of file Unit.h.

◆ AuraStateAurasMapBounds

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

Definition at line 799 of file Unit.h.

◆ ControlList

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

Definition at line 787 of file Unit.h.

◆ Diminishing

Definition at line 804 of file Unit.h.

◆ DynObjectList

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

Definition at line 1872 of file Unit.h.

◆ GameObjectList

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

Definition at line 1875 of file Unit.h.

◆ UnitAIStack

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

Definition at line 1972 of file Unit.h.

◆ UnitVector

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

Definition at line 788 of file Unit.h.

◆ VisibleAuraMap

Definition at line 808 of file Unit.h.

Constructor & Destructor Documentation

◆ ~Unit()

◆ Unit()

Member Function Documentation

◆ _addAttacker()

void Unit::_addAttacker ( Unit *  pAttacker)

Definition at line 5444 of file Unit.cpp.

References m_attackers.

Referenced by Attack().

◆ _AddAura()

◆ _ApplyAllAuraStatMods()

void Unit::_ApplyAllAuraStatMods ( )

Definition at line 4376 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 2854 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 12651 of file Unit.cpp.

References 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(), Object::GetPackGUID(), WorldObject::GetPhaseMask(), Position::GetPosition(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Vehicle::GetSeatAddonForSeatOfPassenger(), Object::GetTypeId(), Map::GetWaterOrGroundLevel(), HasUnitMovementFlag(), HasUnitTypeMask(), JUST_DIED, MotionMaster::LaunchMoveSpline(), m_vehicle, MOTION_PRIORITY_HIGHEST, MOVEMENTFLAG_ROOT, Position::Relocate(), Position::RelocateOffset(), Vehicle::RemovePassenger(), Player::ResummonPetTemporaryUnSummonedIfAny(), WorldObject::SendMessageToSet(), SetControlled(), setDeathState(), Player::SetFallInformation(), Position::SetOrientation(), SMSG_SPLINE_MOVE_UNROOT, 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().

◆ _RegisterAuraEffect()

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

Definition at line 3575 of file Unit.cpp.

References AuraEffect::GetAuraType(), and m_modAuras.

Referenced by AuraEffect::HandleEffect().

◆ _RegisterDynObject()

void Unit::_RegisterDynObject ( DynamicObject *  dynObj)

Definition at line 5051 of file Unit.cpp.

References m_dynObj.

Referenced by DynamicObject::BindToCaster().

◆ _RemoveAllAuraStatMods()

void Unit::_RemoveAllAuraStatMods ( )

Definition at line 4370 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 5449 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]

◆ _UnregisterDynObject()

void Unit::_UnregisterDynObject ( DynamicObject *  dynObj)

Definition at line 5056 of file Unit.cpp.

References m_dynObj.

Referenced by DynamicObject::UnbindFromCaster().

◆ _UpdateAutoRepeatSpell()

◆ _UpdateSpells()

◆ AddAura() [1/2]

◆ AddAura() [2/2]

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

Definition at line 11935 of file Unit.cpp.

References AddAura(), MAX_EFFECT_MASK, and sSpellMgr.

Referenced by 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(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::EnterEvadeMode(), StartLaunchEvent::Execute(), npc_anubisath_sentinel::aqsentinelAI::GainSentinelAbility(), spell_pal_avenging_wrath::HandleApply(), Aura::HandleAuraSpecificMods(), spell_thaddius_magnetic_pull::HandleCast(), deserter_commandscript::HandleDeserterAdd(), misc_commandscript::HandleFreezeCommand(), gm_commandscript::HandleGMVisibleCommand(), Player::HandlePassiveSpellLearn(), spell_thaddius_polarity_charge::HandleTargets(), 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(), go_blackfathom_altar::OnGossipHello(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnPlayerEnter(), BattlefieldWG::OnPlayerEnterZone(), AreaTrigger_at_area_52_entrance::OnTrigger(), 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(), spell_pal_immunities::TriggerDebuffs(), 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().

◆ AddComboPointHolder()

void Unit::AddComboPointHolder ( Unit *  unit)
inline

Definition at line 1720 of file Unit.h.

Referenced by AddComboPoints().

◆ AddComboPoints() [1/2]

void Unit::AddComboPoints ( int8  count)
inline

Definition at line 1716 of file Unit.h.

References AddComboPoints().

Referenced by AddComboPoints().

◆ AddComboPoints() [2/2]

void Unit::AddComboPoints ( Unit *  target,
int8  count 
)

◆ AddExtraAttacks()

void Unit::AddExtraAttacks ( uint32  count)

◆ AddExtraUnitMovementFlag()

void Unit::AddExtraUnitMovementFlag ( uint32  f)
inline

Definition at line 1698 of file Unit.h.

Referenced by Vehicle::InitMovementInfoForBase().

◆ AddGameObject()

◆ AddInterruptMask()

void Unit::AddInterruptMask ( uint32  flags)
inline

Definition at line 1593 of file Unit.h.

References flags.

Referenced by _CreateAuraApplication().

◆ AddPlayerToVision()

void Unit::AddPlayerToVision ( Player *  player)

◆ AddToWorld()

void Unit::AddToWorld ( )
overridevirtual

◆ AddUnitMovementFlag()

◆ AddUnitState()

◆ AddUnitTypeMask()

void Unit::AddUnitTypeMask ( uint32  mask)
inline

Definition at line 895 of file Unit.h.

Referenced by Vehicle::InstallAccessory().

◆ AIUpdateTick()

void Unit::AIUpdateTick ( uint32  diff)

Definition at line 9491 of file Unit.cpp.

References GetAI(), and m_aiLocked.

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

◆ ApplyAttackTimePercentMod()

◆ ApplyCastTimePercentMod()

void Unit::ApplyCastTimePercentMod ( float  val,
bool  apply 
)

◆ ApplyControlStatesIfNeeded()

◆ ApplyDiminishingAura()

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

◆ ApplyDiminishingToDuration()

◆ ApplyResilience()

◆ ApplySpellImmune()

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

◆ ApplyStatPctModifier()

◆ AtDisengage()

virtual void Unit::AtDisengage ( )
inlineprotectedvirtual

Reimplemented in Creature.

Definition at line 1935 of file Unit.h.

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

◆ AtEngage()

void Unit::AtEngage ( Unit *  target)
protectedvirtual

◆ AtEnterCombat()

virtual void Unit::AtEnterCombat ( )
inlineprotectedvirtual

Definition at line 1931 of file Unit.h.

Referenced by CombatManager::UpdateOwnerCombatState().

◆ AtExitCombat()

void Unit::AtExitCombat ( )
protectedvirtual

◆ Attack()

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

Definition at line 5477 of file Unit.cpp.

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

Referenced by npc_elwynn_forest_wolf::_ScheduleBeforeChasingEvents(), UnitAI::AttackStart(), PossessedAI::AttackStart(), boss_novos::AttackStart(), npc_gunship_gunner::AttackStart(), boss_tyrannus::AttackStart(), boss_lady_deathwhisper::AttackStart(), ArcherAI::AttackStart(), TurretAI::AttackStart(), SmartAI::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_necromancer::npc_necromancerAI::JustSummoned(), boss_kologarn::boss_kologarnAI::JustSummoned(), dummy_dragonAI::MovementInform(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::OnGossipSelect(), npc_zulian_prowler::SpellHit(), npc_zulian_prowler::UpdateAI(), and npc_gargoyle::npc_gargoyleAI::UpdateAI().

◆ AttackerStateUpdate()

◆ AttackStop()

bool Unit::AttackStop ( )

Definition at line 5587 of file Unit.cpp.

References _removeAttacker(), ClearUnitState(), CURRENT_MELEE_SPELL, ObjectGuid::Empty, InterruptSpell(), m_attacking, 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(), npc_felblood_kaelthas_phoenix::DamageTaken(), npc_zealot_lorkhan::DamageTaken(), npc_zealot_zath::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_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(), spell_hun_scatter_shot::HandleDummy(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleModUnattackable(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetStopAttack(), npc_enslaved_soul::HandleSoulRelease(), boss_freya::boss_freyaAI::JustDied(), PetAI::KilledUnit(), npc_snobold_vassal::MountOnBoss(), SimpleCharmedPlayerAI::OnCharmed(), 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_felblood_kaelthas::UpdateAI(), boss_kalecgos::UpdateAI(), boss_arlokk::UpdateAI(), boss_onyxia::UpdateAI(), npc_qiraj_war_spawn::npc_qiraj_war_spawnAI::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(), boss_mr_smite::boss_mr_smiteAI::UpdateAI(), PossessedAI::UpdateAI(), npc_pet_mage_mirror_image::UpdateImageVictim(), npc_pet_dk_rune_weapon::UpdateRuneWeaponVictim(), CreatureAI::UpdateVictim(), and ValidateAttackersAndOwnTarget().

◆ AtTargetAttacked()

◆ BuildAuraStateUpdateForTarget()

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

◆ BuildMovementPacket() [1/2]

void Unit::BuildMovementPacket ( ByteBuffer *  data) const

◆ BuildMovementPacket() [2/2]

◆ BuildValuesUpdate()

void Unit::BuildValuesUpdate ( uint8  updatetype,
ByteBuffer *  data,
Player const *  target 
) const
overrideprotectedvirtual

Reimplemented from Object.

Definition at line 13545 of file Unit.cpp.

References Object::_changesMask, Object::_fieldNotifyFlags, ByteBuffer::append(), UpdateMaskPacketBuilder::AppendToPacket(), BuildAuraStateUpdateForTarget(), Player::CanSeeSpellClickOn(), CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP, CREATURE_FLAG_EXTRA_TRIGGER, flags, CreatureTemplate::flags_extra, UpdateMask::GetBit(), WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), Creature::GetCreatureTemplate(), GetFaction(), WorldObject::GetFactionTemplateEntry(), CreatureTemplate::GetFirstVisibleModel(), Object::GetGUID(), GetOwnerGUID(), GetTransformSpell(), HasAuraTypeWithCaster(), Object::HasDynamicFlag(), Object::HasFlag(), Creature::hasLootRecipient(), Player::isAllowedToLoot(), IsControlledByPlayer(), FactionTemplateEntry::IsFriendlyTo(), Player::IsGameMaster(), IsInRaidWith(), Player::IsInSameRaidWith(), Creature::isTappedBy(), Object::m_floatValues, Object::m_uint32Values, Object::m_valuesCount, PER_CASTER_AURA_STATE_MASK, UpdateMaskPacketBuilder::SetBit(), sObjectMgr, SPELL_AURA_EMPATHY, SPELL_AURA_MOD_STALKED, SPELL_AURA_TRANSFORM, sSpellMgr, sWorld, Object::ToCreature(), UF_FLAG_OWNER, UF_FLAG_PARTY_MEMBER, UF_FLAG_PRIVATE, UF_FLAG_PUBLIC, UF_FLAG_SPECIAL_INFO, UNIT_BYTE2_FLAG_SANCTUARY, UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE, UNIT_DYNFLAG_SPECIALINFO, UNIT_DYNFLAG_TAPPED, UNIT_DYNFLAG_TAPPED_BY_PLAYER, UNIT_DYNFLAG_TRACK_UNIT, UNIT_FIELD_AURASTATE, UNIT_FIELD_BASEATTACKTIME, UNIT_FIELD_BYTES_2, UNIT_FIELD_DISPLAYID, UNIT_FIELD_FACTIONTEMPLATE, UNIT_FIELD_FLAGS, UNIT_FIELD_NEGSTAT0, UNIT_FIELD_NEGSTAT4, UNIT_FIELD_POSSTAT0, UNIT_FIELD_POSSTAT4, UNIT_FIELD_RANGEDATTACKTIME, UNIT_FIELD_RESISTANCEBUFFMODSNEGATIVE, UNIT_FIELD_RESISTANCEBUFFMODSPOSITIVE, UNIT_NPC_FLAG_SPELLCLICK, UNIT_NPC_FLAGS, UnitUpdateFieldFlags, and UPDATETYPE_VALUES.

◆ CalcAbsorbResist()

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

Definition at line 1780 of file Unit.cpp.

References SpellNonMeleeDamage::absorb, DamageInfo::AbsorbDamage(), AURA_REMOVE_BY_ENEMY_SPELL, BASE_ATTACK, CalcSpellResistedDamage(), CalculatePct(), SpellEffectInfo::CalcValueMultiplier(), Aura::CallScriptEffectAbsorbHandlers(), Aura::CallScriptEffectAfterAbsorbHandlers(), Aura::CallScriptEffectAfterManaShieldHandlers(), Aura::CallScriptEffectManaShieldHandlers(), Spell::CallScriptOnResistAbsorbCalculateHandlers(), SpellNonMeleeDamage::damage, DealDamage(), DealDamageMods(), DIRECT_DAMAGE, DOT, AuraEffect::GetAmount(), Aura::GetApplicationOfTarget(), DamageInfo::GetAttacker(), GetAuraEffectsByType(), AuraEffect::GetBase(), AuraApplication::GetBase(), AuraEffect::GetCaster(), DamageInfo::GetDamage(), DamageInfo::GetDamageType(), Object::GetGUID(), AuraEffect::GetMiscValue(), DamageInfo::GetSchoolMask(), AuraEffect::GetSpellEffectInfo(), DamageInfo::GetSpellInfo(), DamageInfo::GetVictim(), SpellNonMeleeDamage::HitInfo, IsAlive(), IsImmunedToDamage(), Object::IsInWorld(), MELEE_HIT_NORMAL, DamageInfo::ModifyDamage(), ModifyPower(), SpellNonMeleeDamage::periodicLog, POWER_MANA, PROC_FLAG_NONE, PROC_FLAG_TAKEN_SPELL_MAGIC_DMG_CLASS_NEG, PROC_HIT_NONE, PROC_SPELL_PHASE_HIT, PROC_SPELL_TYPE_DAMAGE, ProcSkillsAndAuras(), Aura::Remove(), DamageInfo::ResistDamage(), RoundToInterval(), WorldObject::SendSpellMiss(), SendSpellNonMeleeDamageLog(), AuraEffect::SetAmount(), SPELL_AURA_MANA_SHIELD, SPELL_AURA_MOD_TARGET_ABILITY_ABSORB_SCHOOL, SPELL_AURA_MOD_TARGET_ABSORB_SCHOOL, SPELL_AURA_SCHOOL_ABSORB, SPELL_AURA_SPLIT_DAMAGE_FLAT, SPELL_AURA_SPLIT_DAMAGE_PCT, SPELL_HIT_TYPE_SPLIT, and SPELL_MISS_IMMUNE.

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

◆ CalcArmorReducedDamage()

◆ CalcHealAbsorb()

◆ CalcSpellResistedDamage()

◆ CalculateAOEAvoidance()

◆ CalculateAverageResistReduction()

◆ CalculateDamage()

◆ CalculateDefaultCoefficient()

float Unit::CalculateDefaultCoefficient ( SpellInfo const *  spellInfo,
DamageEffectType  damagetype 
) const

◆ CalculateMeleeDamage()

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

Definition at line 1145 of file Unit.cpp.

References CalcDamageInfo::Attacker, and CalcDamageInfo::Target.

Referenced by AttackerStateUpdate().

◆ CalculateMinMaxDamage()

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

◆ CalculateSpellDamageTaken()

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

Definition at line 1006 of file Unit.cpp.

References SpellNonMeleeDamage::absorb, AddPct(), ApplyResilience(), SpellNonMeleeDamage::attacker, BASE_ATTACK, SpellNonMeleeDamage::blocked, CalcAbsorbResist(), CalcArmorReducedDamage(), CanApplyResilience(), CR_CRIT_TAKEN_MELEE, CR_CRIT_TAKEN_RANGED, CR_CRIT_TAKEN_SPELL, SpellNonMeleeDamage::damage, SpellInfo::DmgClass, SpellNonMeleeDamage::fullBlock, DamageInfo::GetAbsorb(), GetCreatureTypeMask(), DamageInfo::GetDamage(), DamageInfo::GetResist(), SpellInfo::GetSchoolMask(), GetShieldBlockValue(), WorldObject::GetSpellModOwner(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), GetTotalAuraMultiplierByMiscMask(), SpellInfo::HasAttribute(), SpellNonMeleeDamage::HitInfo, HITINFO_FULL_ABSORB, HITINFO_FULL_RESIST, HITINFO_PARTIAL_ABSORB, HITINFO_PARTIAL_RESIST, SpellInfo::Id, IsAlive(), IsBlockCritical(), IsDamageReducedByArmor(), PROC_HIT_NONE, RANGED_ATTACK, SpellNonMeleeDamage::resist, SpellNonMeleeDamage::schoolMask, SPELL_ATTR4_FIXED_DAMAGE, SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_DAMAGE, SPELL_AURA_MOD_ATTACKER_RANGED_CRIT_DAMAGE, SPELL_AURA_MOD_CRIT_DAMAGE_BONUS, SPELL_AURA_MOD_CRIT_PERCENT_VERSUS, SPELL_DAMAGE_CLASS_MAGIC, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_NONE, SPELL_DAMAGE_CLASS_RANGED, SPELL_DIRECT_DAMAGE, SPELL_HIT_TYPE_CRIT, SpellCriticalDamageBonus(), SPELLMOD_CRIT_DAMAGE_BONUS, sScriptMgr, and SpellNonMeleeDamage::target.

Referenced by Spell::TargetInfo::DoDamageAndTriggers(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), and AuraEffect::HandleProcTriggerDamageAuraProc().

◆ CalculateSpellpowerCoefficientLevelPenalty()

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

◆ CanApplyResilience()

bool Unit::CanApplyResilience ( ) const
virtual

◆ CanDualWield()

bool Unit::CanDualWield ( ) const
inline

◆ CanEnterWater()

virtual bool Unit::CanEnterWater ( ) const
pure virtual

Implemented in Creature, and Player.

◆ CanFly()

◆ CanFreeMove()

◆ CanHaveThreatList()

◆ CanInstantCast()

bool Unit::CanInstantCast ( ) const
inline

Definition at line 1817 of file Unit.h.

Referenced by WorldObject::ModSpellCastTime().

◆ CanModifyStats()

◆ CanProc()

bool Unit::CanProc ( ) const
inline

Definition at line 1742 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 1534 of file Unit.h.

Referenced by UpdateDamageDoneMods(), UpdateDamagePctDoneMods(), and Player::UpdateWeaponDependentCritAuras().

◆ CheckPendingMovementAcks()

◆ CleanupBeforeRemoveFromMap()

◆ CleanupsBeforeDelete()

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

◆ ClearAllReactives()

◆ ClearComboPointHolders()

◆ ClearComboPoints()

◆ ClearDiminishings()

void Unit::ClearDiminishings ( )

Definition at line 8874 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 891 of file Unit.h.

Referenced by Creature::AtDisengage(), Attack(), AttackStop(), MotionMaster::ClearBaseUnitState(), MotionMaster::ClearBaseUnitStates(), ChaseMovementGenerator::Deactivate(), FollowMovementGenerator::Deactivate(), SplineChainMovementGenerator::Deactivate(), npc_ball_of_flame::DoAction(), FormationMovementGenerator::DoDeactivate(), WaypointMovementGenerator< Creature >::DoDeactivate(), HomeMovementGenerator< T >::DoDeactivate(), RandomMovementGenerator< T >::DoDeactivate(), FormationMovementGenerator::DoFinalize(), WaypointMovementGenerator< Creature >::DoFinalize(), HomeMovementGenerator< T >::DoFinalize(), ConfusedMovementGenerator< T >::DoFinalize(), RandomMovementGenerator< T >::DoFinalize(), FleeingMovementGenerator< T >::DoFinalize(), FormationMovementGenerator::DoUpdate(), Spell::EffectResurrectPet(), SmartAI::EnterEvadeMode(), ChaseMovementGenerator::Finalize(), FollowMovementGenerator::Finalize(), AssistanceMovementGenerator::Finalize(), SplineChainMovementGenerator::Finalize(), Spell::finish(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleFeignDeath(), npc_commandscript::HandleNpcEvadeCommand(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadInitializeScript(), SmartAI::MovementInform(), WaypointMovementGenerator< Creature >::OnArrived(), 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(), boss_the_lich_king::UpdateAI(), boss_loken::UpdateAI(), npc_living_constellation::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), and boss_black_knight::boss_black_knightAI::UpdateAI().

◆ CombatStop()

void Unit::CombatStop ( bool  includingCast = false,
bool  mutualPvP = true 
)

Definition at line 5633 of file Unit.cpp.

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

Referenced by CreatureAI::_EnterEvadeMode(), Player::ActivateTaxiPathTo(), CleanupBeforeRemoveFromMap(), CombatStopWithPets(), Map::CreatureRespawnRelocation(), npc_calvin_montague::npc_calvin_montagueAI::DamageTaken(), npc_magister_aledis::npc_magister_aledisAI::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(), GuardAI::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_dk_rune_weapon::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), npc_pet_pri_lightwell::EnterEvadeMode(), EscortAI::EnterEvadeMode(), hyjalAI::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(), 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)

◆ CountPctFromCurHealth()

uint32 Unit::CountPctFromCurHealth ( int32  pct) const
inline

Definition at line 937 of file Unit.h.

References CalculatePct().

Referenced by spell_illidari_council_empyreal_balance::HandleDummy().

◆ CountPctFromMaxHealth()

uint32 Unit::CountPctFromMaxHealth ( int32  pct) const
inline

Definition at line 936 of file Unit.h.

References CalculatePct().

Referenced by spell_pri_guardian_spirit::Absorb(), spell_rog_cheat_death::Absorb(), spell_pal_ardent_defender::Absorb(), spell_dru_survival_instincts_aura::AfterApply(), spell_dk_anti_magic_shell_self::CalculateAmount(), spell_dk_vampiric_blood::CalculateAmount(), npc_immortal_guardian::npc_immortal_guardianAI::DamageTaken(), boss_lady_vashj::DoAction(), boss_ichoron::DoAction(), Spell::EffectHeal(), Spell::EffectHealPct(), Spell::EffectResurrect(), Spell::EffectResurrectPet(), Spell::EffectSelfResurrect(), Spell::EffectSummonType(), AuraEffect::HandleAuraModIncreaseMaxHealth(), spell_dk_death_strike::HandleDummy(), spell_hun_last_stand_pet::HandleDummy(), spell_warr_last_stand::HandleDummy(), AuraEffect::HandlePeriodicHealAurasTick(), spell_dk_vendetta::HandleProc(), spell_dru_leader_of_the_pack::HandleProc(), spell_item_swift_hand_justice_dummy::HandleProc(), spell_pal_judgement_of_light_heal::HandleProc(), spell_pri_glyph_of_dispel_magic::HandleProc(), spell_pri_lightwell_renew::InitializeAmount(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), boss_vaelastrasz::JustEngagedWith(), npc_phoenix_the_eye::OnSpellCast(), spell_gen_restoration::PeriodicTick(), spell_dk_hysteria::PeriodicTick(), npc_draenei_survivor::npc_draenei_survivorAI::Reset(), npc_injured_draenei::npc_injured_draeneiAI::Reset(), boss_murmur::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), 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 952 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 724 of file Unit.cpp.

References CleanDamage::absorbed_damage, ACHIEVEMENT_CRITERIA_TYPE_DAMAGE_DONE, ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HIT_DEALT, ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HIT_RECEIVED, ACHIEVEMENT_CRITERIA_TYPE_TOTAL_DAMAGE_RECEIVED, ThreatManager::AddThreat(), ASSERT_NODEBUGINFO, CleanDamage::attackType, AURA_INTERRUPT_FLAG_DIRECT_DAMAGE, AURA_INTERRUPT_FLAG_TAKE_DAMAGE, BASE_ATTACK, CalculatePct(), WorldObject::CastSpell(), CHEAT_GOD, CombatStopWithPets(), CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, DealDamage(), DealDamageMods(), DIRECT_DAMAGE, DOT, Player::duel, DUEL_WON, Player::DuelComplete(), Player::DurabilityPointLossForEquipSlot(), EQUIPMENT_SLOT_END, GetAI(), GetAttackTime(), GetAuraEffectsByType(), GetCharmer(), GetControllingPlayer(), GameTime::GetGameTime(), Object::GetGUID(), GetHealth(), GetOwnerGUID(), GetPowerType(), SpellInfo::GetSchoolMask(), GetStandState(), TempSummon::GetSummonerUnit(), GetThreatManager(), Object::GetTypeId(), SpellInfo::HasAttribute(), SpellInfo::HasAura(), Creature::hasLootRecipient(), CleanDamage::hitOutCome, SpellInfo::Id, InterruptNonMeleeSpells(), IsControlledByPlayer(), Object::IsPlayer(), ObjectGuid::IsPlayer(), IsVehicle(), Kill(), Creature::LowerPlayerDamageReq(), m_Controlled, m_currentSpells, MAX_AGGRO_RESET_TIME, MELEE_HIT_CRIT, ModifyHealth(), NODAMAGE, OFF_ATTACK, POWER_RAGE, RANGED_ATTACK, RATE_DURABILITY_LOSS_DAMAGE, RemoveAurasWithInterruptFlags(), RewardRage(), roll_chance_f(), SCORE_DAMAGE_DONE, SetHealth(), Creature::SetLastDamagedTime(), Creature::SetLootRecipient(), SetStandState(), SPELL_ATTR3_TREAT_AS_PERIODIC, SPELL_ATTR4_DAMAGE_DOESNT_BREAK_AURAS, SPELL_ATTR7_NO_PUSHBACK_ON_DAMAGE, SPELL_AURA_DAMAGE_SHIELD, SPELL_AURA_SHARE_DAMAGE_PCT, SPELL_DIRECT_DAMAGE, SPELL_INTERRUPT_FLAG_ABORT_ON_DMG, SPELL_STATE_CASTING, SPELL_STATE_PREPARING, sScriptMgr, sWorld, Object::ToCreature(), Object::ToPlayer(), ToTempSummon(), TYPEID_PLAYER, UNIT_STAND_STATE_STAND, Player::UpdateAchievementCriteria(), and urand().

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

◆ DealDamageMods()

◆ DealHeal()

◆ DealMeleeDamage()

void Unit::DealMeleeDamage ( CalcDamageInfo *  damageInfo,
bool  durabilityLoss 
)
Todo:
Move this to a packet handler

Definition at line 1444 of file Unit.cpp.

References CalcDamageInfo::Absorb, CalcDamageInfo::AttackType, BASE_ATTACK, Player::CastItemCombatSpell(), WorldObject::CastSpell(), CalcDamageInfo::CleanDamage, CREATURE_FLAG_EXTRA_NO_PARRY_HASTEN, CalcDamageInfo::Damage, CalcDamageInfo::Damages, CalcDamageInfo::DamageSchoolMask, DealDamage(), DealDamageMods(), DIRECT_DAMAGE, CreatureTemplate::flags_extra, GetAttackTime(), getAttackTimer(), GetAuraEffectsByType(), Creature::GetCreatureTemplate(), GetDefenseSkillValue(), Object::GetGUID(), Object::GetGUID(), GetHealth(), GetLevel(), GetMaxSkillValueForLevel(), SpellInfo::GetSchoolMask(), Object::GetTypeId(), Position::HasInArc(), HasUnitState(), haveOffhandWeapon(), CalcDamageInfo::HitOutCome, SpellInfo::Id, IsAlive(), IsControlledByPlayer(), Creature::IsEvadingAttacks(), IsImmunedToDamage(), IsVehicle(), Creature::isWorldBoss(), M_PI, MAX_ITEM_PROTO_DAMAGES, MELEE_HIT_CRIT, MELEE_HIT_CRUSHING, MELEE_HIT_GLANCING, MELEE_HIT_NORMAL, OFF_ATTACK, CalcDamageInfo::Resist, roll_chance_f(), RoundToInterval(), SpellInfo::SchoolMask, WorldObject::SendMessageToSet(), SendSpellDamageImmune(), WorldObject::SendSpellMiss(), setAttackTimer(), SMSG_SPELLDAMAGESHIELD, SPELL_AURA_DAMAGE_SHIELD, SPELL_DIRECT_DAMAGE, SPELL_MISS_NONE, SpellDamageBonusTaken(), WorldObject::SpellHitResult(), CalcDamageInfo::Target, CalcDamageInfo::TargetState, Object::ToCreature(), Object::ToCreature(), Object::ToPlayer(), 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 9715 of file Unit.cpp.

References m_charmInfo, and CharmInfo::RestoreState().

Referenced by RemoveCharmedBy().

◆ DeMorph()

void Unit::DeMorph ( )

Definition at line 3231 of file Unit.cpp.

References GetNativeDisplayId(), and SetDisplayId().

Referenced by modify_commandscript::HandleDeMorphCommand().

◆ DestroyForPlayer()

void Unit::DestroyForPlayer ( Player *  target,
bool  onDeath 
) const
overrideprotectedvirtual

◆ DisableSpline()

◆ Dismount()

◆ EnergizeBySpell() [1/2]

void Unit::EnergizeBySpell ( Unit *  victim,
SpellInfo const *  spellInfo,
int32  damage,
Powers  powerType 
)

◆ EnergizeBySpell() [2/2]

void Unit::EnergizeBySpell ( Unit *  victim,
uint32  spellId,
int32  damage,
Powers  powerType 
)

◆ EngageWithTarget()

◆ EnsureVictim()

◆ EnterVehicle()

◆ 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 12632 of file Unit.cpp.

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

Referenced by _EnterVehicle(), Player::ActivateTalentGroup(), Player::ActivateTaxiPathTo(), Vehicle::AddPassenger(), VehicleJoinEvent::Execute(), StartLaunchEvent::Execute(), Creature::ExitVehicle(), WorldSession::HandleDismissControlledVehicle(), spell_warhead_detonate::HandleDummy(), WorldSession::HandleEjectPassenger(), spell_ulduar_squeezed_lifeless::spell_ulduar_squeezed_lifeless_SpellScript::HandleInstaKill(), WorldSession::HandleRequestVehicleExit(), spell_grizzly_hills_hand_over_reins::HandleScript(), RemoveFromWorld(), setDeathState(), Player::StopCastingCharm(), and Player::TeleportTo().

◆ FindCurrentSpellBySpellId()

◆ FinishSpell()

void Unit::FinishSpell ( CurrentSpellTypes  spellType,
bool  ok = true 
)

◆ FollowerAdded()

void Unit::FollowerAdded ( AbstractFollower *  f)
inline

Definition at line 1679 of file Unit.h.

Referenced by AbstractFollower::SetTarget().

◆ FollowerRemoved()

void Unit::FollowerRemoved ( AbstractFollower *  f)
inline

Definition at line 1680 of file Unit.h.

Referenced by AbstractFollower::SetTarget().

◆ GetAI()

UnitAI * Unit::GetAI ( ) const
inline

Definition at line 814 of file Unit.h.

Referenced by Creature::AI(), Player::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(), CombatStartEvent::Execute(), spell_send_mug_target_picker::FilterTargets(), spell_blood_queen_bloodbolt::FilterTargets(), BattlegroundIC::HandleCapturedNodes(), spell_thaddius_magnetic_pull::HandleCast(), spell_grip::HandleDrop(), spell_send_mug_target_picker::HandleDummy(), spell_fatal_strike::HandleDummy(), spell_omrogg_beatdown::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_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(), npc_coldflame::IsSummonedBy(), npc_marzon_silent_blade::npc_marzon_silent_bladeAI::MovementInform(), CombatManager::NotifyAICombat(), spell_claw_swipe_check::OnApply(), 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_he_feeds_on_your_tears::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_cheese_the_freeze::OnCheck(), achievement_getting_cold_in_here::OnCheck(), achievement_this_cache_was_rare::OnCheck(), achievement_i_have_the_coolest_friends::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_dont_stand_in_the_lightning::OnCheck(), achievement_lose_your_illusion::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_once_bitten_twice_shy_n::OnCheck(), achievement_once_bitten_twice_shy_v::OnCheck(), spell_xt002_gravity_bomb_aura::OnPeriodic(), spell_gormok_jump_to_hand::OnRemove(), spell_icc_siphon_essence::OnRemove(), spell_yogg_saron_brain_link::spell_yogg_saron_brain_link_AuraScript::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(), and UpdateCharmAI().

◆ GetAllMinionsByEntry()

◆ GetAnimTier()

AnimTier Unit::GetAnimTier ( ) const
inline

Definition at line 1024 of file Unit.h.

References UNIT_BYTES_1_OFFSET_ANIM_TIER, and UNIT_FIELD_BYTES_1.

Referenced by boss_blood_queen_lana_thel::UpdateAI().

◆ GetAPMultiplier()

◆ GetAppliedAuras() [1/2]

◆ GetAppliedAuras() [2/2]

AuraApplicationMap const & Unit::GetAppliedAuras ( ) const
inline

Definition at line 1352 of file Unit.h.

◆ GetArmor()

◆ getAttackerForHelper()

◆ getAttackers()

AttackerSet const & Unit::getAttackers ( ) const
inline

◆ GetAttackPowerModifierValue()

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

◆ GetAttackTime()

◆ getAttackTimer()

uint32 Unit::getAttackTimer ( WeaponAttackType  type) const
inline

Definition at line 848 of file Unit.h.

Referenced by _UpdateAutoRepeatSpell(), Attack(), DealMeleeDamage(), Player::Update(), and Update().

◆ GetAura()

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

Definition at line 4462 of file Unit.cpp.

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

Referenced by Player::ApplyEquipCooldown(), spell_marrowgar_coldflame_damage::CanBeAppliedOn(), spell_freezing_cloud_damage::CanBeAppliedOn(), boss_deathbringer_saurfang::DoAction(), Spell::DoTriggersOnSpellHit(), Spell::EffectWeaponDmg(), getOrphanGUID(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraLinked(), Aura::HandleAuraSpecificMods(), spell_pet_charge::HandleDummy(), 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_warl_seduction::HandleDummy(), spell_sindragosa_frost_breath::HandleInfusion(), spell_mage_glyph_of_polymorph::HandleProc(), spell_item_anger_capacitor< StackAmount >::spell_item_anger_capacitor_AuraScript< Stacks >::HandleProc(), spell_item_trinket_stack::spell_item_trinket_stack_AuraScript::HandleProc(), AuraEffect::HandleRaidProcFromChargeWithValueAuraProc(), 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_pri_lightwell::HandleScriptEffect(), 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(), spell_dk_pestilence::OnHit(), spell_brewfest_ram::OnPeriodic(), spell_midsummer_test_ribbon_pole_channel::PeriodicTick(), BattlefieldWG::PromotePlayer(), Player::ResurrectPlayer(), SimpleCharmedPlayerAI::SelectAppropriateCastForSpec(), SetAuraStack(), boss_deathbringer_saurfang::SpellHit(), boss_garfrost::SpellHitTarget(), boss_sindragosa::SpellHitTarget(), 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(), and npc_iron_construct::npc_iron_constructAI::UpdateAI().

◆ GetAuraApplication()

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

◆ GetAuraApplicationOfRankedSpell()

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

◆ GetAuraCount()

◆ GetAuraEffect() [1/3]

AuraEffect * Unit::GetAuraEffect ( AuraType  type,
SpellFamilyNames  family,
uint32  familyFlag1,
uint32  familyFlag2,
uint32  familyFlag3,
ObjectGuid  casterGUID = ObjectGuid::Empty 
) const

◆ GetAuraEffect() [2/3]

AuraEffect * Unit::GetAuraEffect ( AuraType  type,
SpellFamilyNames  name,
uint32  iconId,
uint8  effIndex 
) const

◆ GetAuraEffect() [3/3]

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

Definition at line 4382 of file Unit.cpp.

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

Referenced by spell_dk_pet_scaling_01::spell_dk_pet_scaling_01_AuraScript::CalculateStrengthAmount(), spell_mage_gen_extra_effects::CheckProc(), spell_mage_missile_barrage_proc::CheckProc(), Spell::EffectHeal(), Spell::EffectSchoolDMG(), Spell::EffectWeaponDmg(), GetAuraEffectOfRankedSpell(), GetDummyAuraEffect(), AuraEffect::HandleAuraModShapeshift(), Aura::HandleAuraSpecificMods(), spell_sha_maelstrom_weapon::HandleBonus(), AuraEffect::HandleChannelDeathItem(), spell_warl_life_tap::HandleDummy(), spell_dk_death_coil::HandleDummy(), spell_dk_death_strike::HandleDummy(), spell_dk_scourge_strike::HandleDummy(), spell_warr_execute::HandleEffect(), spell_dru_nourish::HandleHeal(), spell_rog_cut_to_the_chase::HandleProc(), spell_warr_extra_proc::HandleProc(), spell_dk_unholy_blight::HandleProc(), spell_dru_glyph_of_shred::HandleProc(), spell_hun_thrill_of_the_hunt::HandleProc(), spell_item_blessing_of_ancient_kings::HandleProc(), spell_item_persistent_shield::HandleProc(), spell_pal_infusion_of_light::HandleProc(), spell_pal_sacred_shield_dummy::HandleProc(), spell_pri_divine_aegis::HandleProc(), spell_sha_glyph_of_earth_shield::HandleProc(), spell_sha_imp_water_shield::HandleProc(), spell_sha_static_shock::HandleProc(), spell_sha_t10_elemental_4p_bonus::HandleProc(), spell_sartura_whirlwind::HandleScript(), spell_leotheras_the_blind_whirlwind_effect::HandleScript(), spell_dk_glyph_of_scourge_strike_script::HandleScriptEffect(), spell_sha_stoneclaw_totem::HandleScriptEffect(), spell_pal_seal_of_vengeance< DoTSpellId, DamageSpellId >::spell_pal_seal_of_vengeance_AuraScript< DoTSpell, DamageSpell >::HandleSeal(), AuraEffect::HandleShapeshiftBoosts(), spell_warl_drain_soul::HandleTick(), Kill(), MeleeDamageBonusDone(), WorldObject::ModSpellDuration(), SpellCritChanceTaken(), SpellDamagePctDone(), SpellHealingBonusTaken(), SpellHealingPctDone(), Guardian::UpdateAttackPowerAndDamage(), Player::UpdateAttackPowerAndDamage(), and Guardian::UpdateStats().

◆ GetAuraEffectOfRankedSpell()

◆ GetAuraEffectsByType() [1/2]

AuraEffectList & Unit::GetAuraEffectsByType ( AuraType  type)
inline

Definition at line 1398 of file Unit.h.

◆ GetAuraEffectsByType() [2/2]

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

Definition at line 1397 of file Unit.h.

Referenced by Player::ActivateTalentGroup(), CalcAbsorbResist(), CalcArmorReducedDamage(), CalcHealAbsorb(), SpellInfo::CalcPowerCost(), AuraEffect::CalculateAmount(), Spell::CanAutoCast(), PlayerAI::CancelAllShapeshifts(), ChangeSeat(), Spell::CheckCasterAuras(), Spell::CheckSpellCancelsAuraEffect(), DealDamage(), DealMeleeDamage(), Spell::EffectHeal(), Spell::EffectSchoolDMG(), VehicleJoinEvent::Execute(), Spell::finish(), GetAuraEffect(), GetAuraEffect(), GetDoTsByCaster(), GetHighestExclusiveSameEffectSpellGroupValue(), WorldObject::GetMagicHitRedirectTarget(), GetMaxNegativeAuraModifier(), GetMaxPositiveAuraModifier(), GetMeleeHitRedirectTarget(), Player::GetPhaseMaskForSpawn(), Player::GetQuestXPReward(), npc_thorim_trashAI::AIHelper::GetRemainingHealOn(), Player::GetResurrectionSpellId(), Player::GetRuneTypeBaseCooldown(), GetTotalAuraModifier(), GetTotalAuraMultiplier(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleAuraModSchoolImmunity(), Aura::HandleAuraSpecificMods(), AuraEffect::HandleAuraTransform(), WorldSession::HandleCancelAuraOpcode(), WorldSession::HandleChatMessage(), AuraEffect::HandleDetectAmore(), spell_dru_nourish::HandleHeal(), WorldSession::HandleMirrorImageDataRequest(), AuraEffect::HandleModCastingSpeed(), AuraEffect::HandleNoReagentUseAura(), AuraEffect::HandlePhase(), spell_dk_glyph_of_scourge_strike_script::HandleScriptEffect(), spell_pal_judgement::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), HasAuraTypeWithAffectMask(), HasAuraTypeWithCaster(), HasAuraTypeWithFamilyFlags(), HasAuraTypeWithMiscvalue(), HasAuraTypeWithTriggerSpell(), HasAuraTypeWithValue(), HasBreakableByDamageAuraType(), IsHighestExclusiveAuraEffect(), IsImmunedToSpellEffect(), IsScriptOverriden(), Player::isTotalImmune(), list_commandscript::ListAurasCommand(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), MeleeSpellHitResult(), Spell::PrepareTriggersExecutedOnHit(), spell_dru_enrage::RecalculateBaseArmor(), Player::RegenerateAll(), RestoreDisplayId(), Creature::SelectVictim(), Player::SetBattlegroundEntryPoint(), SetFeared(), Player::SetGameMaster(), Player::SetSkill(), SpellBaseDamageBonusDone(), SpellBaseHealingBonusDone(), SpellCritChanceTaken(), SpellDamageBonusTaken(), SpellDamagePctDone(), SpellHealingBonusDone(), SpellHealingPctDone(), Player::SummonPet(), ThreatManager::TauntUpdate(), SimpleCharmedPlayerAI::UpdateAI(), Player::UpdateArmor(), Player::UpdateAttackPowerAndDamage(), Guardian::UpdateDamagePhysical(), ThreatManager::UpdateMyTempModifiers(), Player::UpdatePowerRegen(), Player::UpdateRating(), Player::UpdateSpellDamageAndHealingBonus(), and Player::UpdateStats().

◆ GetAuraOfRankedSpell()

◆ GetBoundingRadius()

float Unit::GetBoundingRadius ( ) const
inline

Definition at line 855 of file Unit.h.

References UNIT_FIELD_BOUNDINGRADIUS.

◆ GetCastingTimeForBonus()

◆ GetChannelObjectGuid()

◆ GetChannelSpellId()

uint32 Unit::GetChannelSpellId ( ) const
inline

Definition at line 1471 of file Unit.h.

References UNIT_CHANNEL_SPELL.

Referenced by Spell::IsChannelActive().

◆ GetCharmed()

◆ GetCharmedGUID()

◆ GetCharmedOrSelf()

Unit * Unit::GetCharmedOrSelf ( ) const
inline

Definition at line 1310 of file Unit.h.

Referenced by Player::CanAlwaysSee().

◆ GetCharmer()

◆ GetCharmerGUID()

◆ GetCharmerOrOwner()

◆ GetCharmerOrOwnerGUID()

◆ GetCharmerOrSelf()

Unit * Unit::GetCharmerOrSelf ( ) const

Definition at line 6238 of file Unit.cpp.

References GetCharmer(), and IsCharmed().

◆ GetCharmerOrSelfPlayer()

Player * Unit::GetCharmerOrSelfPlayer ( ) const
inline

Definition at line 1309 of file Unit.h.

Referenced by SendComboPoints(), SetConfused(), and SetFeared().

◆ GetCharmInfo()

◆ GetClass()

uint8 Unit::GetClass ( ) const
inline

Definition at line 909 of file Unit.h.

References UNIT_BYTES_0_OFFSET_CLASS, and UNIT_FIELD_BYTES_0.

Referenced by Player::_ApplyItemBonuses(), Player::_LoadHomeBind(), Player::_LoadSkills(), Player::ActivateTaxiPathTo(), ArenaTeam::AddMember(), spell_item_dire_brew::AfterApply(), Player::AtExitCombat(), Player::BuildPlayerTalentsInfoData(), Player::CalculateTalentsPoints(), Player::CanRollForItemInLFG(), Player::CanUseItem(), spell_dk_death_rune::CheckProc(), Spell::CheckRuneCost(), ClearAllReactives(), Player::Create(), WorldSession::DoLootRelease(), Player::DuelComplete(), Spell::EffectActivateRune(), Spell::EffectCreateTamedPet(), Spell::EffectLearnSkill(), Spell::EffectTameCreature(), Player::EquipItem(), spell_sindragosa_unchained_magic::FilterTargets(), Player::FindEquipSlot(), GetDebugInfo(), Player::GetDodgeFromAgility(), SocialMgr::GetFriendInfo(), Player::GetMeleeCritFromAgility(), Player::GetMissPercentageFromDefense(), npc_tournament_mount::npc_tournament_mountAI::GetPennantSpellId(), Trinity::Helpers::Entity::GetPlayerSpecialization(), Player::GetRatingMultiplier(), Player::GetSpellCritFromIntellect(), Player::GetStartPosition(), Player::GiveLevel(), WorldSession::HandleAlterAppearance(), spell_dk_blood_tap::spell_dk_blood_tap_AuraScript::HandleApply(), AuraEffect::HandleAuraConvertRune(), AuraEffect::HandleAuraModShapeshift(), Aura::HandleAuraSpecificMods(), WorldSession::HandleAutostoreLootItemOpcode(), spell_malacrass_siphon_soul::HandleDummy(), spell_item_flask_of_the_north::HandleDummy(), spell_item_refocus::HandleDummy(), spell_dk_blood_tap::spell_dk_blood_tap_SpellScript::HandleEffect(), learn_commandscript::HandleLearnMySpellsCommand(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMirrorImageDataRequest(), modify_commandscript::HandleModifyGenderCommand(), WorldSession::HandleOpeningCinematic(), 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(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsOrLevelHelper(), spell_gen_pet_summoned::HandleScript(), Player::InitDisplayIds(), npc_stolen_soul::InitializeAI(), Player::InitRunes(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), Player::InitTaxiNodesForLevel(), Pet::IsPermanentPetFor(), Trinity::Helpers::Entity::IsPlayerHealer(), Trinity::Helpers::Entity::IsPlayerRangedAttacker(), Player::IsSpellFitByClassAndRace(), Trainer::Trainer::IsTrainerValidForPlayer(), boss_archimonde::KilledUnit(), Player::LearnCustomSpells(), Player::LearnDefaultSkill(), Player::LearnDefaultSkills(), spell_dk_blood_boil::Load(), spell_dk_death_rune::Load(), Player::LoadFromDB(), AchievementCriteriaData::Meets(), Player::OCTRegenHPPerSpirit(), Player::OCTRegenMPPerSpirit(), DuelResetScript::OnDuelEnd(), Trinity::WorldObjectSpellTargetCheck::operator()(), Player::PrepareGossipMenu(), ProcSkillsAndReactives(), Player::RegenerateAll(), RemoveCharmedBy(), Player::ResetSpells(), Player::ResyncRunes(), Player::RewardHonor(), Player::SaveToDB(), SimpleCharmedPlayerAI::SelectAppropriateCastForSpec(), Spell::SendSpellGo(), SetCharmedBy(), Guild::Member::SetStats(), boss_volazj::SpellHitTarget(), Player::StoreNewItemInBestSlots(), Spell::TakeRunePower(), Player::TeleportTo(), Player::Update(), npc_sinster_reflection::npc_sinster_reflectionAI::UpdateAI(), Player::UpdateAttackPowerAndDamage(), Player::UpdateCombatSkills(), Player::UpdateDamageDoneMods(), UpdateDisplayPower(), Player::UpdateDodgePercentage(), Creature::UpdateLevelDependantStats(), Player::UpdateParryPercentage(), UpdateReactives(), Player::UpdateSkillsForLevel(), and Guardian::UpdateStats().

◆ GetClassMask()

◆ GetCollisionHeight()

◆ GetCombatManager() [1/2]

◆ GetCombatManager() [2/2]

CombatManager const & Unit::GetCombatManager ( ) const
inline

Definition at line 1145 of file Unit.h.

◆ GetCombatRatingDamageReduction()

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

Definition at line 12204 of file Unit.cpp.

References CalculatePct(), and GetCombatRatingReduction().

◆ GetCombatRatingReduction()

float Unit::GetCombatRatingReduction ( CombatRating  cr) const
private

Definition at line 12192 of file Unit.cpp.

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

Referenced by GetCombatRatingDamageReduction().

◆ GetCombatReach()

◆ GetComboPoints() [1/2]

uint8 Unit::GetComboPoints ( ObjectGuid const &  guid) const
inline

Definition at line 1712 of file Unit.h.

◆ GetComboPoints() [2/2]

uint8 Unit::GetComboPoints ( Unit const *  who = nullptr) const
inline

--------—Combo point system----------------—

Definition at line 1711 of file Unit.h.

Referenced by WorldObject::CalcSpellDuration(), SpellEffectInfo::CalcValue(), Spell::EffectSchoolDMG(), and SimpleCharmedPlayerAI::SelectAppropriateCastForSpec().

◆ GetComboTarget()

Unit * Unit::GetComboTarget ( ) const
inline

Definition at line 1713 of file Unit.h.

Referenced by Player::DuelComplete().

◆ GetComboTargetGUID()

ObjectGuid Unit::GetComboTargetGUID ( ) const
inline

Definition at line 1714 of file Unit.h.

References ObjectGuid::Empty.

◆ GetControllingPlayer()

Player * Unit::GetControllingPlayer ( ) const

◆ GetCreateHealth()

◆ GetCreateMana()

◆ GetCreatePowerValue()

◆ GetCreateStat()

float Unit::GetCreateStat ( Stats  stat) const
inline

◆ GetCreatorGUID()

◆ GetCreatureType()

◆ GetCreatureTypeMask()

◆ GetCritterGUID()

ObjectGuid Unit::GetCritterGUID ( ) const
inline

◆ GetCurrentSpell() [1/2]

◆ GetCurrentSpell() [2/2]

Spell * Unit::GetCurrentSpell ( uint32  spellType) const
inline

Definition at line 1490 of file Unit.h.

◆ GetCurrentSpellCastTime()

int32 Unit::GetCurrentSpellCastTime ( uint32  spell_id) const

Definition at line 3139 of file Unit.cpp.

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

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

◆ GetDamageImmunityMask()

uint32 Unit::GetDamageImmunityMask ( ) const

Definition at line 7731 of file Unit.cpp.

References IMMUNITY_DAMAGE, and m_spellImmune.

Referenced by IsImmunedToDamage(), and IsImmunedToDamage().

◆ getDeathState()

◆ GetDebugInfo()

◆ GetDefaultMovementType()

MovementGeneratorType Unit::GetDefaultMovementType ( ) const
virtual

Reimplemented in Creature.

Definition at line 10284 of file Unit.cpp.

References IDLE_MOTION_TYPE.

Referenced by FactorySelector::SelectMovementGenerator().

◆ GetDefenseSkillValue()

◆ GetDiminishing()

◆ GetDirectTransport()

TransportBase * Unit::GetDirectTransport ( ) const

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

Definition at line 11837 of file Unit.cpp.

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

Referenced by Movement::TransportPathTransform::operator()(), SmartScript::ProcessAction(), Creature::RemoveCorpse(), CharmInfo::SaveStayPosition(), SendTeleportPacket(), and UpdateSplinePosition().

◆ GetDiseasesByCaster()

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

◆ GetDispellableAuraList()

◆ GetDisplayId()

◆ GetDoTsByCaster()

uint32 Unit::GetDoTsByCaster ( ObjectGuid  casterGUID) const

◆ GetDummyAuraEffect()

◆ GetDynamicFlags()

uint32 Unit::GetDynamicFlags ( ) const
inlineoverridevirtual

◆ GetDynObject()

DynamicObject * Unit::GetDynObject ( uint32  spellId) const

Definition at line 5061 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 5067 of file Unit.cpp.

References m_dynObj.

Referenced by GetDynObject().

◆ GetEmoteState()

Emote Unit::GetEmoteState ( ) const
inline

Definition at line 980 of file Unit.h.

References UNIT_NPC_EMOTESTATE.

Referenced by WorldSession::HandleMovementOpcode().

◆ GetExtraUnitMovementFlags()

uint32 Unit::GetExtraUnitMovementFlags ( ) const
inline

Definition at line 1701 of file Unit.h.

Referenced by GetDebugInfo(), and debug_commandscript::HandleDebugMoveflagsCommand().

◆ GetFaction()

uint32 Unit::GetFaction ( ) const
inlineoverridevirtual

Implements WorldObject.

Definition at line 987 of file Unit.h.

References UNIT_FIELD_FACTIONTEMPLATE.

Referenced by Player::ActivateTaxiPathTo(), BuildValuesUpdate(), Creature::CanAssistTo(), Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectSummonType(), DynamicObject::GetFaction(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionListItems(), WorldSession::HandleAuctionListOwnerItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleGossipHelloOpcode(), npc_commandscript::HandleNpcInfoCommand(), EscortAI::InitializeAI(), Minion::InitStats(), TempSummon::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(), Spell::SummonGuardian(), 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(), and npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::WaypointReached().

◆ GetFirstControlled()

Unit * Unit::GetFirstControlled ( ) const

◆ GetFirstMinion()

◆ GetFlatModifierValue()

◆ GetFollowAngle()

◆ GetGameClientMovingMe()

◆ GetGameObject()

GameObject * Unit::GetGameObject ( uint32  spellId) const

Definition at line 5100 of file Unit.cpp.

References GetGameObjects().

Referenced by Spell::cancel(), Player::TeleportTo(), and boss_garaxxas::UpdateAI().

◆ GetGameObjects()

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

Definition at line 5106 of file Unit.cpp.

References m_gameObj.

Referenced by GetGameObject().

◆ GetGender()

◆ GetGuardianPet()

◆ GetHealth()

uint32 Unit::GetHealth ( ) const
inline

Definition at line 927 of file Unit.h.

References UNIT_FIELD_HEALTH.

Referenced by spell_pri_guardian_spirit::Absorb(), spell_rog_cheat_death::Absorb(), spell_pal_ardent_defender::Absorb(), boss_twilight_halion::boss_twilight_halion(), boss_valithria_dreamwalker::boss_valithria_dreamwalker(), WorldSession::BuildPartyMemberStatsChangedPacket(), SpellInfo::CalcPowerCost(), boss_supremus::CalculateHatefulStrikeTarget(), spell_razorscale_flame_breath::CheckDamage(), Spell::CheckPower(), 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_calvin_montague::npc_calvin_montagueAI::DamageTaken(), boss_halazzi::DamageTaken(), npc_spirit_of_the_lynx::DamageTaken(), boss_thekal::DamageTaken(), npc_zealot_lorkhan::DamageTaken(), npc_zealot_zath::DamageTaken(), boss_mal_ganis::boss_mal_ganisAI::DamageTaken(), boss_cthun::cthunAI::DamageTaken(), boss_twinemperorsAI::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(), boss_black_knight::boss_black_knightAI::DamageTaken(), boss_majordomo::DamageTaken(), boss_felblood_kaelthas::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(), boss_lady_vashj::DoAction(), boss_ichoron::DoAction(), Spell::EffectHeal(), Spell::EffectHealMaxHealth(), Spell::EffectInstaKill(), Pet::FillPetInfo(), npc_thorim_trashAI::AIHelper::GetHealTarget(), GetHealthGain(), boss_volazj::GetHealthPct(), AuraEffect::HandleAuraModIncreaseHealth(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModIncreaseMaxHealth(), spell_rajaxx_thundercrash::HandleDamageCalc(), misc_commandscript::HandleDieCommand(), Player::HandleFall(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcInfoCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), WorldSession::HandleRequestPartyMemberStatsOpcode(), boss_attumen::boss_attumenAI::JustSummoned(), boss_baltharus_the_warborn::JustSummoned(), Kill(), ModifyHealth(), spell_xt002_gravity_bomb_aura::OnPeriodic(), LorKhanSelectTargetToHeal::operator()(), Trinity::MostHPMissingInRange::operator()(), Trinity::MostHPMissingGroupInRange::operator()(), npc_thorim_trashAI::AIHelper::MostHPMissingInRange::operator()(), Trinity::HealthPctOrderPred::operator()(), Trinity::HealthPctOrderPred::operator()(), Creature::RegenerateHealth(), Player::RegenerateHealth(), Creature::ResetPlayerDamageReq(), Player::SaveHealthBeforeDuel(), Pet::SavePetToDB(), Player::SaveToDB(), Creature::SaveToDB(), SendAttackStateUpdate(), SendSpellNonMeleeDamageLog(), boss_xt002::SetData(), 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()

int32 Unit::GetHealthGain ( int32  dVal)

Definition at line 8353 of file Unit.cpp.

References GetHealth(), and GetMaxHealth().

Referenced by Spell::EffectHealthLeech().

◆ GetHealthPct()

◆ GetHighestExclusiveSameEffectSpellGroupValue()

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

◆ GetHoverOffset()

◆ GetLastDamagedTargetGuid()

ObjectGuid Unit::GetLastDamagedTargetGuid ( ) const
inline

Definition at line 1061 of file Unit.h.

◆ GetLastExtraAttackSpell()

uint32 Unit::GetLastExtraAttackSpell ( ) const
inline

Definition at line 1058 of file Unit.h.

Referenced by AuraEffect::CheckEffectProc().

◆ GetLevel()

uint8 Unit::GetLevel ( ) const
inline

Definition at line 903 of file Unit.h.

References UNIT_FIELD_LEVEL.

Referenced by KillRewarder::_InitGroupData(), KillRewarder::_RewardPlayer(), KillRewarder::_RewardXP(), Player::_SaveStats(), Pet::addSpell(), Spell::AddUnitTarget(), Player::ApplyEnchantment(), Aura::Aura(), WorldSession::BuildPartyMemberStatsChangedPacket(), CalcArmorReducedDamage(), SpellInfo::CalcPowerCost(), Aura::CalcProcChance(), spell_item_arcane_shroud::CalculateAmount(), spell_item_the_eye_of_diminution::CalculateAmount(), CalculateAverageResistReduction(), Player::CalculateMinMaxDamage(), Player::CalculateReputationGain(), CalculateSpellpowerCoefficientLevelPenalty(), Player::CalculateTalentsPoints(), SpellEffectInfo::CalcValue(), Player::CanEquipItem(), Group::CanJoinBattlegroundQueue(), Creature::CanResetTalents(), Player::CanRollForItemInLFG(), Player::CanSeeStartQuest(), Player::CanUseItem(), Player::CastItemCombatSpell(), Player::CheckAreaExplore(), spell_hun_tame_beast::CheckCast(), Spell::CheckCast(), Spell::CheckEffectTarget(), spell_ethereal_pet_aura::CheckProc(), Pet::CreateBaseAtTamed(), CreateTamedPetFrom(), CreateTamedPetFrom(), DealMeleeDamage(), DoLowUnlearnCost(), DoMedUnlearnCost(), Spell::EffectAddHonor(), Spell::EffectApplyGlyph(), Spell::EffectDuel(), Spell::EffectEnergize(), Spell::EffectSchoolDMG(), Spell::EffectSkinning(), Spell::EffectSummonObject(), Spell::EffectTameCreature(), Pet::FillPetInfo(), lfg::LFGMgr::FinishDungeon(), Trinity::XP::Gain(), Creature::GetAttackDistance(), Player::GetBarberShopCost(), Player::GetBGAccessByLevel(), Pet::GetCurrentFoodBenefitLevel(), Player::GetDodgeFromAgility(), SocialMgr::GetFriendInfo(), Creature::GetLevelForTarget(), lfg::LFGMgr::GetLockedDungeons(), Player::GetMeleeCritFromAgility(), Pet::GetNativeObjectScale(), Player::GetQuestDialogStatus(), Player::GetQuestLevel(), Player::GetRatingMultiplier(), Player::GetScalingStatValuesFor(), Creature::GetShieldBlockValue(), Player::GetSpellCritFromIntellect(), Trainer::Trainer::GetSpellState(), Player::GetsRecruitAFriendBonus(), Quest::GetXPReward(), Player::GiveLevel(), Pet::GivePetLevel(), Pet::GivePetXP(), Player::GiveXP(), WorldSession::HandleAcceptGrantLevel(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleChatMessage(), Player::HandleDrowning(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupInviteOpcode(), group_commandscript::HandleGroupLevelCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), pet_commandscript::HandlePetLevelCommand(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), spell_pri_divine_aegis::HandleProc(), WorldSession::HandleRequestBattlefieldStatusOpcode(), WorldSession::HandleRequestPartyMemberStatsOpcode(), reset_commandscript::HandleResetLevelCommand(), spell_item_scroll_of_recall::HandleScript(), WorldSession::HandleSendMail(), Player::InitGlyphsForLevel(), Pet::InitLevelupSpellsForLevel(), Guardian::InitStats(), Puppet::InitStats(), Totem::InitStats(), TempSummon::InitStats(), Player::InitStatsForLevel(), Pet::InitTalentForLevel(), Player::InitTalentForLevel(), Player::InitTaxiNodesForLevel(), Battlefield::InvitePlayerToWar(), Player::isHonorOrXPTarget(), Player::IsMaxLevel(), 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(), Pet::LoadPetFromDB(), WorldSession::LogoutPlayer(), AchievementCriteriaData::Meets(), Player::OCTRegenHPPerSpirit(), Player::OCTRegenMPPerSpirit(), item_generic_limit_chance_above_60::OnCastItemCombatSpell(), npc_prof_blacksmith::npc_prof_blacksmithAI::OnGossipHello(), npc_prof_leather::npc_prof_leatherAI::OnGossipHello(), npc_prof_tailor::npc_prof_tailorAI::OnGossipHello(), npc_prof_alchemy::npc_prof_alchemyAI::OnGossipHello(), Player::OnGossipSelect(), at_nearby_scarshield_infiltrator::OnTrigger(), Player::PrepareGossipMenu(), Spell::PreprocessSpellHit(), Player::RegenerateHealth(), Player::RemovedInsignia(), Pet::removeSpell(), Pet::resetTalents(), Player::ResurrectPlayer(), Player::RewardHonor(), Player::RewardQuest(), RewardRage(), Player::RewardReputation(), RollMeleeOutcomeAgainst(), ArenaTeam::Roster(), Player::Satisfy(), Player::SatisfyQuestLevel(), Pet::SavePetToDB(), Player::SaveToDB(), BattlegroundMgr::SendBattlegroundList(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInvite(), WorldSession::SendLfgPlayerLockInfo(), WorldSession::SendLfgRoleCheckUpdate(), Player::SendLoot(), Guild::Member::SetStats(), SpellCritChanceTaken(), SpellDamagePctDone(), Spell::SummonGuardian(), Player::SummonPet(), Pet::SynchronizeLevelWithOwner(), Aura::Update(), Player::UpdateAttackPowerAndDamage(), Player::UpdateCombatSkills(), Creature::UpdateLevelDependantStats(), Player::UpdatePowerRegen(), and GameObject::Use().

◆ GetLevelForTarget()

◆ GetMaxHealth()

uint32 Unit::GetMaxHealth ( ) const
inline

Definition at line 928 of file Unit.h.

References UNIT_FIELD_MAXHEALTH.

Referenced by Player::_SaveStats(), WorldSession::BuildPartyMemberStatsChangedPacket(), boss_twinemperorsAI::DamageTaken(), boss_algalon_the_observer::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), npc_boombot::DamageTaken(), npc_terenas_menethil::DoAction(), Spell::EffectHeal(), Spell::EffectHealMaxHealth(), Spell::EffectSummonPet(), Trinity::XP::Gain(), npc_thorim_trashAI::AIHelper::GetHealTarget(), GetHealthGain(), boss_volazj::GetHealthPct(), AuraEffect::HandleAuraModIncreaseHealthPercent(), spell_ahnkahet_shadow_blast::HandleDamageCalc(), Player::HandleDrowning(), spell_buru_egg_explosion::HandleDummy(), Player::HandleFall(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcInfoCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), spell_sha_nature_guardian::HandleProc(), spell_warr_item_t10_prot_4p_bonus::HandleProc(), WorldSession::HandleRequestPartyMemberStatsOpcode(), spell_stinky_precious_decimate::HandleScript(), boss_skeram::boss_skeramAI::JustSummoned(), boss_drakkari_colossus::JustSummoned(), Pet::LoadPetFromDB(), ModifyHealth(), spell_pal_eye_for_an_eye::OnProc(), LorKhanSelectTargetToHeal::operator()(), Trinity::MostHPMissingInRange::operator()(), Trinity::MostHPMissingGroupInRange::operator()(), npc_thorim_trashAI::AIHelper::MostHPMissingInRange::operator()(), Trinity::HealthPctOrderPred::operator()(), Trinity::HealthPctOrderPred::operator()(), Player::outDebugValues(), SmartScript::ProcessEvent(), Creature::RegenerateHealth(), Player::RegenerateHealth(), boss_baltharus_the_warborn::Reset(), Player::ResurrectPlayer(), SetHealth(), Creature::SetSpawnHealth(), boss_felmyst::SpellHit(), boss_twinemperorsAI::SpellHit(), npc_simon_bunny::npc_simon_bunnyAI::SpellHitTarget(), and npc_phase_hunter::npc_phase_hunterAI::UpdateAI().

◆ GetMaxNegativeAuraModifier() [1/2]

◆ GetMaxNegativeAuraModifier() [2/2]

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

Definition at line 4799 of file Unit.cpp.

References GetAuraEffectsByType().

◆ GetMaxNegativeAuraModifierByAffectMask()

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

Definition at line 4945 of file Unit.cpp.

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

◆ GetMaxNegativeAuraModifierByMiscMask()

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

Definition at line 4865 of file Unit.cpp.

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

◆ GetMaxNegativeAuraModifierByMiscValue()

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

Definition at line 4905 of file Unit.cpp.

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

Referenced by WorldObject::ModSpellDuration().

◆ GetMaxPositiveAuraModifier() [1/2]

◆ GetMaxPositiveAuraModifier() [2/2]

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

Definition at line 4783 of file Unit.cpp.

References GetAuraEffectsByType().

◆ GetMaxPositiveAuraModifierByAffectMask()

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

Definition at line 4935 of file Unit.cpp.

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

◆ GetMaxPositiveAuraModifierByMiscMask()

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

◆ GetMaxPositiveAuraModifierByMiscValue()

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

Definition at line 4895 of file Unit.cpp.

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

◆ GetMaxPower()

uint32 Unit::GetMaxPower ( Powers  power) const
inline

Definition at line 950 of file Unit.h.

References UNIT_FIELD_MAXPOWER1.

Referenced by Player::_SaveStats(), WorldSession::BuildPartyMemberStatsChangedPacket(), SpellInfo::CalcPowerCost(), spell_gen_replenishment_aura::CalculateAmount(), Spell::CheckItems(), Spell::EffectEnergize(), Spell::EffectEnergizePct(), Spell::EffectPowerBurn(), Spell::EffectResurrect(), Spell::EffectSelfResurrect(), Spell::EffectSummonPet(), boss_curator::boss_curatorAI::ExecuteEvent(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), Aura::HandleAuraSpecificMods(), AuraEffect::HandleObsModPowerAuraTick(), spell_hun_rapid_recuperation::HandlePeriodic(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), spell_hun_ascpect_of_the_viper::HandleProc(), spell_dru_leader_of_the_pack::HandleProc(), spell_mage_magic_absorption::HandleProc(), spell_warl_drain_soul::HandleProc(), WorldSession::HandleRequestPartyMemberStatsOpcode(), spell_kelthuzad_detonate_mana::HandleScript(), spell_gen_pet_summoned::HandleScript(), spell_hun_chimera_shot::HandleScriptEffect(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), Pet::LoadPetFromDB(), ModifyPower(), Player::outDebugValues(), spell_gen_restoration::PeriodicTick(), SmartScript::ProcessEvent(), spell_bronjahm_magic_bane::RecalculateDamage(), Creature::Regenerate(), Player::Regenerate(), boss_lady_deathwhisper::Reset(), Player::ResurrectPlayer(), SetPower(), Creature::SetSpawnHealth(), boss_deathbringer_saurfang::SpellHitTarget(), Player::SummonPet(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_moam::UpdateAI(), and boss_faction_championsAI::UpdatePower().

◆ GetMaxSkillValueForLevel()

◆ GetMechanicImmunityMask()

uint32 Unit::GetMechanicImmunityMask ( ) const

Definition at line 7741 of file Unit.cpp.

References IMMUNITY_MECHANIC, and m_spellImmune.

Referenced by SpellInfo::GetMechanicImmunityMask().

◆ GetMechanicResistChance()

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

◆ GetMeleeCritChanceReduction()

float Unit::GetMeleeCritChanceReduction ( ) const
inline

Definition at line 1067 of file Unit.h.

References CR_CRIT_TAKEN_MELEE.

Referenced by ApplyResilience().

◆ GetMeleeCritDamageReduction()

uint32 Unit::GetMeleeCritDamageReduction ( uint32  damage) const
inline

Definition at line 1072 of file Unit.h.

References CR_CRIT_TAKEN_MELEE.

Referenced by ApplyResilience(), MeleeDamageBonusTaken(), and SpellDamageBonusTaken().

◆ GetMeleeDamageReduction()

uint32 Unit::GetMeleeDamageReduction ( uint32  damage) const
inline

Definition at line 1077 of file Unit.h.

References CR_CRIT_TAKEN_MELEE.

Referenced by ApplyResilience().

◆ GetMeleeDamageSchoolMask()

virtual SpellSchoolMask Unit::GetMeleeDamageSchoolMask ( WeaponAttackType  attackType = BASE_ATTACK,
uint8  damageIndex = 0 
) const
pure virtual

Implemented in Player, and Creature.

Referenced by MeleeDamageBonusTaken().

◆ GetMeleeHitRedirectTarget()

◆ GetMeleeRange()

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

◆ GetMinionGUID()

ObjectGuid Unit::GetMinionGUID ( ) const
inline

◆ GetMinPower()

int32 Unit::GetMinPower ( Powers  ) const
inline

Definition at line 949 of file Unit.h.

Referenced by ModifyPower().

◆ GetModelForForm()

◆ GetMotionMaster() [1/2]

MotionMaster * Unit::GetMotionMaster ( )
inline

Definition at line 1683 of file Unit.h.

Referenced by _ExitVehicle(), npc_elwynn_forest_wolf::_ScheduleAfterChasingEvents(), npc_elwynn_forest_wolf::_ScheduleBeforeChasingEvents(), BattlegroundAV::AddAVCreature(), npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), AtEngage(), Creature::AtEngage(), UnitAI::AttackStart(), boss_tyrannus::AttackStart(), boss_lady_deathwhisper::AttackStart(), ArcherAI::AttackStart(), SmartAI::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_scarlet_commander_mograine::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), boss_ayamiss::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(), 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(), boss_nightbane::boss_nightbaneAI::DoAction(), boss_selin_fireheart::DoAction(), npc_apothecary_genericAI::DoAction(), boss_infinite_corruptor::boss_infinite_corruptorAI::DoAction(), npc_twilight_volunteer::DoAction(), npc_hadronox_crusherPackAI::DoAction(), npc_xerestrasza::DoAction(), npc_ball_of_flame::DoAction(), npc_kinetic_bomb::DoAction(), boss_blood_queen_lana_thel::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(), npc_thrall_herald_of_war::npc_thrall_herald_of_warAI::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(), npc_martha_goslin::npc_martha_goslinAI::DoAction(), PetAI::DoAttack(), Creature::DoFleeToGetAssistance(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), boss_alar::DoMoveToCenter(), boss_alar::DoMoveToPlatform(), npc_announcer_toc5::npc_announcer_toc5AI::DoStartArgentChampionEncounter(), ScriptedAI::DoStartMovement(), ScriptedAI::DoStartNoMovement(), Spell::EffectCharge(), Spell::EffectChargeDest(), Spell::EffectDistract(), Spell::EffectJump(), Spell::EffectJumpDest(), boss_jormungarAI::Emerge(), boss_thekal::EnterEvadeMode(), boss_blood_queen_lana_thel::EnterEvadeMode(), npc_argent_captainAI::EnterEvadeMode(), boss_urom::EnterEvadeMode(), npc_daegarn::EnterEvadeMode(), CreatureAI::EnterEvadeMode(), SmartAI::EnterEvadeMode(), GuardAI::EnterEvadeMode(), gunship_npc_AI::EnterEvadeMode(), npc_high_overlord_saurfang_igb::EnterEvadeMode(), npc_muradin_bronzebeard_igb::EnterEvadeMode(), npc_pet_dk_rune_weapon::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), EscortAI::EnterEvadeMode(), hyjalAI::EnterEvadeMode(), VehicleJoinEvent::Execute(), DelayedMovementEvent::Execute(), DaranavanMoveEvent::Execute(), FrostwyrmLandEvent::Execute(), StartLaunchEvent::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_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(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), npc_expedition_engineer::HandleBaseMovement(), misc_commandscript::HandleComeToMeCommand(), spell_malygos_random_portal::HandleDummy(), spell_sholazar_shoot_rjr::HandleDummy(), spell_swamplord_muselek_move_away_primer::HandleDummy(), boss_felmyst::HandleFlightSequence(), npc_expedition_engineer::HandleFourthHarpoonMovement(), npc_expedition_engineer::HandleHarpoonMovement(), 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_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(), boss_darkmaster_gandling::IsSummonedBy(), npc_spirit_bomb::IsSummonedBy(), npc_rizzle_sprysprocket::IsSummonedBy(), npc_ruby_emerald_amber_drake::IsSummonedBy(), npc_frostbrood_skytalon::IsSummonedBy(), npc_spirit_shade::npc_spirit_shadeAI::IsSummonedBy(), JumpTo(), JumpTo(), npc_kalecgos::JustAppeared(), ShadowswordBaseAI::JustAppeared(), npc_amanishi_hatcher::JustAppeared(), boss_anetheron::JustAppeared(), npc_doomfire::JustAppeared(), boss_azgalor::JustAppeared(), boss_kazrogal::JustAppeared(), boss_rage_winterchill::JustAppeared(), boss_aeonus::JustAppeared(), npc_hive_zara_larva::JustAppeared(), npc_hive_zara_swarmer::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_frost_wyrm::npc_frost_wyrmAI::JustDied(), boss_the_lich_king::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_high_inquisitor_whitemane::JustEngagedWith(), npc_zulian_prowler::JustEngagedWith(), boss_scarlet_commander_mograine::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(), boss_felblood_kaelthas::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_vexallus::JustSummoned(), npc_restless_soul::npc_restless_soulAI::JustSummoned(), npc_rinji::npc_rinjiAI::JustSummoned(), boss_ionar::JustSummoned(), npc_maghar_captive::npc_maghar_captiveAI::JustSummoned(), npc_kurenai_captive::npc_kurenai_captiveAI::JustSummoned(), Player::KillPlayer(), KnockbackFrom(), spell_svalna_revive_champion::Land(), npc_frogger_trigger_naxx::LaunchSpline(), CreatureGroup::LeaderStartedMoving(), boss_high_inquisitor_whitemane::MograineResurrected(), MonsterMoveWithSpeed(), Creature::Motion_Initialize(), npc_snobold_vassal::MountOnBoss(), instance_deadmines::instance_deadmines_InstanceMapScript::MoveCreatureInside(), npc_arthas_stratholme::npc_arthas_stratholmeAI::MoveInfiniteOnSpawn(), npc_anubarak_spike::MoveInLineOfSight(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::MoveInLineOfSight(), npc_ashtongue_sorcerer::MoveInLineOfSight(), npc_spectator::MovementInform(), PetAI::MovementInform(), npc_amanishi_hatcher::MovementInform(), boss_mandokir::MovementInform(), npc_malcolm_moore::npc_malcolm_mooreAI::MovementInform(), boss_onyxia::MovementInform(), boss_blood_queen_lana_thel::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(), npc_thrall_herald_of_war::npc_thrall_herald_of_warAI::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(), boss_gluth::MovementInform(), 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(), PetAI::OnCharmed(), SimpleCharmedPlayerAI::OnCharmed(), SmartAI::OnCharmed(), npc_tirion_fordring_tft::OnGossipSelect(), npc_barrett_toc::OnGossipSelect(), npc_thassarian::OnGossipSelect(), npc_akama_illidan::OnGossipSelect(), npc_belnistrasz::npc_belnistraszAI::OnQuestAccept(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), npc_wyrmrest_skytalon::PassengerBoarded(), npc_wild_wyrm::PassengerBoarded(), npc_bone_spike::PassengerBoarded(), npc_bountiful_table::npc_bountiful_tableAI::PassengerBoarded(), npc_grauf::PassengerBoarded(), PauseMovement(), SmartAI::PausePath(), Spell::prepare(), npc_jungle_punch_target::proceedCwEvent(), SmartScript::ProcessAction(), PropagateSpeedChange(), npc_lake_frog::ReceiveEmote(), RemoveCharmedBy(), boss_prince_taldaram::RemovePrison(), boss_the_beast::Reset(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::Reset(), boss_arlokk::Reset(), npc_zulian_prowler::Reset(), npc_overlord_runthak_orgrimmar::npc_overlord_runthak_orgrimmarAI::Reset(), npc_thrall_herald_of_war::npc_thrall_herald_of_warAI::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_sinclari_vh::ScheduleIntro(), boss_selin_fireheart::SelectNearestCrystal(), npc_barrett_toc::SendActionToTirion(), WorldSession::SendDoFlight(), SetCharmedBy(), SmartAI::SetCombatMove(), SetConfused(), npc_zombie_chow::SetData(), instance_razorfen_downs::instance_razorfen_downs_InstanceMapScript::SetData(), gunship_npc_AI::SetData(), npc_enslaved_proto_drake::SetData(), boss_the_beast::SetData(), npc_announcer_toc5::npc_announcer_toc5AI::SetData(), setDeathState(), Creature::setDeathState(), EscortAI::SetEscortPaused(), SetFacingTo(), SetFacingToObject(), SetFeared(), SmartAI::SetFollow(), FollowerAI::SetFollowComplete(), FollowerAI::SetFollowPaused(), npc_arthas_stratholme::npc_arthas_stratholmeAI::SetGUID(), npc_shadow_demon::SetGUID(), boss_hadronox::SetStep(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::SpawnPyramidWave(), boss_attumen::boss_attumenAI::SpellHit(), boss_onyxia::SpellHit(), npc_hive_zara_swarmer::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_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(), npc_image_of_medivh::npc_image_of_medivhAI::StartEvent(), FollowerAI::StartFollow(), SmartAI::StartPath(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), npc_azure_saboteur::StartSmoothPath(), PetAI::StopAttack(), SmartAI::StopFollow(), SmartAI::StopPath(), boss_jormungarAI::Submerge(), Player::TeleportTo(), CreatureAI::TriggerAlert(), SimpleCharmedPlayerAI::UpdateAI(), EscortAI::UpdateAI(), boss_gyth::UpdateAI(), boss_rend_blackhand::UpdateAI(), boss_victor_nefarius::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(), npc_cameron::UpdateAI(), npc_partygoer_pather::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), boss_zuljin::UpdateAI(), npc_harrison_jones::npc_harrison_jonesAI::UpdateAI(), boss_arlokk::UpdateAI(), boss_mandokir::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(), 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_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(), npc_overlord_runthak_orgrimmar::npc_overlord_runthak_orgrimmarAI::UpdateAI(), npc_thrall_herald_of_war::npc_thrall_herald_of_warAI::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(), npc_pet_gen_pandaren_monk::UpdateAI(), npc_elwynn_forest_wolf::UpdateAI(), npc_dream_fog::npc_dream_fogAI::UpdateAI(), boss_mr_smite::boss_mr_smiteAI::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(), boss_anetheron::WaypointPathEnded(), boss_rage_winterchill::WaypointPathEnded(), npc_toxic_sporebat::WaypointPathEnded(), SmartAI::WaypointReached(), npc_cameron::WaypointReached(), npc_emily::WaypointReached(), and npc_rizzle_sprysprocket::WaypointStarted().

◆ GetMotionMaster() [2/2]

MotionMaster const * Unit::GetMotionMaster ( ) const
inline

Definition at line 1684 of file Unit.h.

◆ GetMountDisplayId()

uint32 Unit::GetMountDisplayId ( ) const
inline

◆ GetMovementCounterAndInc()

◆ GetNativeDisplayId()

◆ GetNativeGender()

◆ GetNativeObjectScale()

virtual float Unit::GetNativeObjectScale ( ) const
inlinevirtual

Reimplemented in Creature, and Pet.

Definition at line 1596 of file Unit.h.

Referenced by RecalculateObjectScale().

◆ GetNegStat()

float Unit::GetNegStat ( Stats  stat) const
inline

Definition at line 1468 of file Unit.h.

References UNIT_FIELD_NEGSTAT0.

◆ GetNextRandomRaidMemberOrPet()

◆ GetNpcFlags()

◆ GetOwnedAura()

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

Definition at line 3645 of file Unit.cpp.

References m_ownedAuras.

Referenced by _TryStackingOrRefreshingExistingAura().

◆ GetOwnedAuras() [1/2]

AuraMap & Unit::GetOwnedAuras ( )
inline

◆ GetOwnedAuras() [2/2]

AuraMap const & Unit::GetOwnedAuras ( ) const
inline

Definition at line 1342 of file Unit.h.

◆ GetOwnerGUID()

◆ GetPartyMembers()

◆ GetPctModifierValue()

◆ GetPetFlags()

UnitPetFlag Unit::GetPetFlags ( ) const
inline

Definition at line 1006 of file Unit.h.

References UNIT_BYTES_2_OFFSET_PET_FLAGS, and UNIT_FIELD_BYTES_2.

◆ GetPetGUID()

◆ GetPosStat()

float Unit::GetPosStat ( Stats  stat) const
inline

Definition at line 1467 of file Unit.h.

References UNIT_FIELD_POSSTAT0.

◆ GetPower()

◆ GetPowerPct()

◆ GetPowerType()

Powers Unit::GetPowerType ( ) const
inline

Definition at line 945 of file Unit.h.

References UNIT_BYTES_0_OFFSET_POWER_TYPE, and UNIT_FIELD_BYTES_0.

Referenced by Player::ActivateTalentGroup(), WorldSession::BuildPartyMemberStatsChangedPacket(), Spell::CheckCast(), spell_pal_blessing_of_sanctuary::CheckProc(), spell_pal_judgement_of_wisdom_mana::CheckProc(), DealDamage(), Spell::EffectEnergize(), Spell::EffectEnergizePct(), Spell::EffectPowerBurn(), Spell::EffectPowerDrain(), Spell::EffectSummonPet(), spell_moam_drain_mana::FilterTargets(), spell_mistress_kiss_area::FilterTargets(), AuraEffect::HandleAuraModShapeshift(), Aura::HandleAuraSpecificMods(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), spell_dru_revitalize::HandleProc(), spell_dru_t3_2p_bonus::HandleProc(), spell_item_heartpierce< EnergySpellId, ManaSpellId, RageSpellId, RPSpellId >::spell_item_heartpierce_AuraScript< Energy, Mana, Rage, RunicPower >::HandleProc(), WorldSession::HandleRequestPartyMemberStatsOpcode(), spell_gen_pet_summoned::HandleScript(), spell_gen_replenishment_aura::Load(), DuelResetScript::OnDuelEnd(), ValithriaManaVoidSelector::operator()(), PowerUsersSelector::operator()(), ManaUserTargetSelector::operator()(), Player::ResetAllPowers(), spell_item_mad_alchemists_potion::SecondaryEffect(), spell_item_crazy_alchemists_potion::SecondaryEffect(), SimpleCharmedPlayerAI::SelectAppropriateCastForSpec(), setDeathState(), SetPowerType(), Pet::Update(), Creature::Update(), boss_vaelastrasz::UpdateAI(), boss_maleki_the_pallid::UpdateAI(), boss_marli::UpdateAI(), boss_anzu::UpdateAI(), boss_doom_lord_kazzak::UpdateAI(), boss_harbinger_skyriss::UpdateAI(), boss_pathaleon_the_calculator::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), and boss_faction_championsAI::UpdatePower().

◆ GetPowerTypeByAuraGroup()

◆ GetPPMProcChance()

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

◆ GetProcAurasTriggeredOnEvent()

void Unit::GetProcAurasTriggeredOnEvent ( AuraApplicationProcContainer &  aurasTriggeringProc,
AuraApplicationList *  procAuras,
ProcEventInfo &  eventInfo 
)

Definition at line 10135 of file Unit.cpp.

References ASSERT, GetAppliedAuras(), and GameTime::Now().

Referenced by TriggerAurasProcOnEvent().

◆ GetPvpFlags()

UnitPVPStateFlags Unit::GetPvpFlags ( ) const
inline

Definition at line 995 of file Unit.h.

References UNIT_BYTES_2_OFFSET_PVP_FLAG, and UNIT_FIELD_BYTES_2.

Referenced by SetCharm(), and SetMinion().

◆ GetRace()

◆ GetRaceMask()

◆ GetRangedCritChanceReduction()

float Unit::GetRangedCritChanceReduction ( ) const
inline

Definition at line 1068 of file Unit.h.

References CR_CRIT_TAKEN_RANGED.

Referenced by ApplyResilience().

◆ GetRangedCritDamageReduction()

uint32 Unit::GetRangedCritDamageReduction ( uint32  damage) const
inline

Definition at line 1073 of file Unit.h.

References CR_CRIT_TAKEN_RANGED.

Referenced by ApplyResilience().

◆ GetRangedDamageReduction()

uint32 Unit::GetRangedDamageReduction ( uint32  damage) const
inline

Definition at line 1078 of file Unit.h.

References CR_CRIT_TAKEN_RANGED.

Referenced by ApplyResilience().

◆ GetResistance() [1/2]

int32 Unit::GetResistance ( SpellSchoolMask  mask) const

Definition at line 13138 of file Unit.cpp.

References GetResistance(), MAX_SPELL_SCHOOL, and SPELL_SCHOOL_NORMAL.

◆ GetResistance() [2/2]

◆ GetScheduledChangeAI()

UnitAI * Unit::GetScheduledChangeAI ( )
protected

Definition at line 9553 of file Unit.cpp.

References Object::ToCreature().

Referenced by ScheduleAIChange().

◆ GetSchoolImmunityMask()

uint32 Unit::GetSchoolImmunityMask ( ) const

Definition at line 7721 of file Unit.cpp.

References IMMUNITY_SCHOOL, and m_spellImmune.

Referenced by IsImmunedToDamage().

◆ GetShapeshiftForm()

◆ GetSharedVisionList()

◆ GetSheath()

SheathState Unit::GetSheath ( ) const
inline

Definition at line 983 of file Unit.h.

References UNIT_BYTES_2_OFFSET_SHEATH_STATE, and UNIT_FIELD_BYTES_2.

◆ GetShieldBlockValue() [1/2]

virtual uint32 Unit::GetShieldBlockValue ( ) const
pure virtual

◆ GetShieldBlockValue() [2/2]

uint32 Unit::GetShieldBlockValue ( uint32  soft_cap,
uint32  hard_cap 
) const

Definition at line 2565 of file Unit.cpp.

References GetShieldBlockValue().

◆ GetSingleCastAuras() [1/2]

◆ GetSingleCastAuras() [2/2]

AuraList const & Unit::GetSingleCastAuras ( ) const
inline

Definition at line 1400 of file Unit.h.

◆ GetSpeed()

◆ GetSpeedRate()

◆ GetSpellCritChanceReduction()

float Unit::GetSpellCritChanceReduction ( ) const
inline

Definition at line 1069 of file Unit.h.

References CR_CRIT_TAKEN_SPELL.

Referenced by ApplyResilience().

◆ GetSpellCritDamageReduction()

uint32 Unit::GetSpellCritDamageReduction ( uint32  damage) const
inline

◆ GetSpellDamageReduction()

uint32 Unit::GetSpellDamageReduction ( uint32  damage) const
inline

Definition at line 1079 of file Unit.h.

References CR_CRIT_TAKEN_SPELL.

Referenced by ApplyResilience().

◆ GetSpellHistory() [1/2]

SpellHistory * Unit::GetSpellHistory ( )
inline

Definition at line 1497 of file Unit.h.

Referenced by Aura::_ApplyForTarget(), Spell::_cast(), CreatureAI::_EnterEvadeMode(), Aura::_UnapplyForTarget(), spell_rog_cheat_death::Absorb(), spell_pal_ardent_defender::Absorb(), AddGameObject(), Player::ApplyEquipCooldown(), spell_rog_vanish::ApplyStealth(), Spell::cancel(), Spell::CancelGlobalCooldown(), Spell::CheckCast(), Spell::CheckPetCast(), Spell::EffectCastButtons(), Spell::EffectInterruptCast(), Spell::EffectStuck(), Spell::EffectSummonPet(), Player::EquipItem(), Player::GetResurrectionSpellId(), Aura::HandleAuraSpecificMods(), spell_gen_charmed_unit_spell_cooldown::HandleCast(), misc_commandscript::HandleCooldownCommand(), spell_hun_readiness::HandleDummy(), spell_item_rocket_boots::HandleDummy(), spell_item_refocus::HandleDummy(), spell_mage_cold_snap::HandleDummy(), spell_rog_preparation::HandleDummy(), spell_dru_berserk::HandleEffectApply(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), spell_dk_rime::HandleProc(), spell_warr_sword_and_board::HandleProc(), spell_dk_glyph_of_death_grip::HandleProc(), spell_mage_glyph_of_ice_block::HandleProc(), spell_dru_leader_of_the_pack::HandleProc(), spell_gen_divine_storm_cd_reset::HandleScript(), Spell::HasGlobalCooldown(), Player::LoadFromDB(), npc_gunship_boarding_addAI::MovementInform(), DuelResetScript::OnDuelEnd(), DuelResetScript::OnDuelStart(), spell_dk_raise_dead::OverrideCooldown(), Player::PetSpellInitialize(), Player::RemoveArenaSpellCooldowns(), RemoveGameObjectImpl(), DuelResetScript::ResetSpellCooldowns(), Pet::SavePetToDB(), Player::SaveToDB(), Player::SendInitialSpells(), Spell::SendSpellCooldown(), SetMinion(), gunship_npc_AI::TriggerBurningPitch(), Spell::TriggerGlobalCooldown(), Totem::UnSummon(), boss_general_bjarngrim::UpdateAI(), PetAI::UpdateAI(), npc_gunship_rocketeer::UpdateAI(), Player::UpdatePotionCooldown(), Player::VehicleSpellInitialize(), and PlayerAI::VerifySpellCast().

◆ GetSpellHistory() [2/2]

SpellHistory const * Unit::GetSpellHistory ( ) const
inline

Definition at line 1498 of file Unit.h.

◆ GetSpellSchoolByAuraGroup()

◆ GetStandState()

◆ GetStat()

◆ GetStatByAuraGroup()

◆ GetTarget()

◆ GetThreatManager() [1/2]

ThreatManager & Unit::GetThreatManager ( )
inline

Definition at line 1169 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(), 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(), DealDamage(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::DeleteAllFromThreatList(), boss_zuljin::DoAction(), boss_professor_putricide::DoAction(), boss_gothik::DoAction(), boss_ick::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(), spell_rajaxx_thundercrash::HandleAfterCast(), spell_leotheras_the_blind_whirlwind_init::HandleAfterCast(), spell_nethermancer_sepethrea_arcane_blast::HandleAfterHit(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModDmgImmunity(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleAuraModStun(), AuraEffect::HandleAuraModTotalThreat(), spell_thaddius_magnetic_pull::HandleCast(), debug_commandscript::HandleDebugThreatInfoCommand(), debug_commandscript::HandleDebugThreatListCommand(), spell_omor_the_unscarred_orbital_strike_target::HandleDummy(), spell_omrogg_beatdown::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_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_pet_guard_dog::HandleProc(), spell_rog_tricks_of_the_trade_proc::HandleRemove(), spell_warr_vigilance::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(), AdvisorBaseAI::IsEnemyInRange(), npc_suppresser::IsSummonedBy(), boss_attumen::boss_attumenAI::IsSummonedBy(), ScriptedAI::ModifyThreatByPercent(), spell_hun_misdirection::OnRemove(), spell_hun_misdirection_proc::OnRemove(), spell_rog_tricks_of_the_trade_aura::OnRemove(), NonTankTargetSelector::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(), boss_zuljin::SpellHitTarget(), 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(), npc_pet_mage_mirror_image::UpdateImageVictim(), npc_pet_dk_rune_weapon::UpdateRuneWeaponVictim(), and boss_faction_championsAI::UpdateThreat().

◆ GetThreatManager() [2/2]

ThreatManager const & Unit::GetThreatManager ( ) const
inline

Definition at line 1170 of file Unit.h.

◆ GetTopAI()

UnitAI * Unit::GetTopAI ( ) const
inlineprotected

Definition at line 820 of file Unit.h.

Referenced by RestoreDisabledAI().

◆ GetTotalAttackPowerValue()

◆ GetTotalAuraModifier() [1/2]

int32 Unit::GetTotalAuraModifier ( AuraType  auraType) const

Definition at line 4815 of file Unit.cpp.

References GetTotalAuraModifier().

Referenced by CalcArmorReducedDamage(), Aura::CalcDispelChance(), CalcSpellResistedDamage(), Player::CalculateReputationGain(), CalculateSpellDamageTaken(), Spell::Delayed(), Spell::DelayedChannel(), Creature::GetAggroRange(), Creature::GetAttackDistance(), Pet::GetMaxTalentPointsForLevel(), GetTotalAuraModifier(), GetTotalAuraModifierByAffectMask(), GetTotalAuraModifierByMiscMask(), GetTotalAuraModifierByMiscValue(), GetUnitBlockChance(), GetUnitCriticalChanceDone(), GetUnitCriticalChanceTaken(), GetUnitDodgeChance(), GetUnitParryChance(), Player::HandleFall(), spell_pal_seal_of_righteousness::HandleProc(), IsBlockCritical(), WorldObject::MagicSpellHitResult(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), MeleeSpellHitResult(), MeleeSpellMissChance(), WorldObject::ModSpellDuration(), RecalculateObjectScale(), Creature::RegenerateHealth(), Player::RegenerateHealth(), DuelResetScript::ResetSpellCooldowns(), RewardRage(), Battleground::RewardReputationToTeam(), SpellBaseHealingBonusDone(), SpellCritChanceTaken(), SpellDamageBonusDone(), SpellHealingBonusDone(), WorldObject::SpellHitResult(), SpellHistory::StartCooldown(), Player::UpdateAttackPowerAndDamage(), Player::UpdateBlockPercentage(), UpdateDamageDoneMods(), Player::UpdateDodgePercentage(), Player::UpdateExpertise(), Player::UpdateParryPercentage(), Player::UpdatePowerRegen(), UpdateResistanceBuffModsMod(), UpdateSpeed(), Player::UpdateSpellCritChance(), Player::UpdateSpellHitChances(), UpdateStatBuffMod(), and Player::UpdateWeaponDependentCritAuras().

◆ GetTotalAuraModifier() [2/2]

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

Definition at line 4729 of file Unit.cpp.

References GetAuraEffectsByType(), and sSpellMgr.

◆ GetTotalAuraModifierByAffectMask()

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

Definition at line 4915 of file Unit.cpp.

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

◆ GetTotalAuraModifierByMiscMask()

◆ GetTotalAuraModifierByMiscValue()

◆ GetTotalAuraModValue()

◆ GetTotalAuraMultiplier() [1/2]

◆ GetTotalAuraMultiplier() [2/2]

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

Definition at line 4756 of file Unit.cpp.

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

◆ GetTotalAuraMultiplierByAffectMask()

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

Definition at line 4925 of file Unit.cpp.

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

◆ GetTotalAuraMultiplierByMiscMask()

◆ GetTotalAuraMultiplierByMiscValue()

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

◆ GetTotalStatValue()

◆ GetTransformSpell()

uint32 Unit::GetTransformSpell ( ) const
inline

◆ GetTransGUID()

◆ GetUnitBlockChance()

◆ GetUnitCriticalChanceAgainst()

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

◆ GetUnitCriticalChanceDone()

◆ GetUnitCriticalChanceTaken()

◆ GetUnitDodgeChance()

◆ GetUnitFlags()

◆ GetUnitFlags2()

UnitFlags2 Unit::GetUnitFlags2 ( ) const
inline

Definition at line 972 of file Unit.h.

References UNIT_FIELD_FLAGS_2.

Referenced by npc_commandscript::HandleNpcInfoCommand().

◆ GetUnitMissChance()

float Unit::GetUnitMissChance ( ) const

Definition at line 2684 of file Unit.cpp.

References Object::ToPlayer().

Referenced by MeleeSpellMissChance().

◆ GetUnitMovementFlags()

uint32 Unit::GetUnitMovementFlags ( ) const
inline

◆ GetUnitParryChance()

◆ GetVehicle()

Vehicle * Unit::GetVehicle ( ) const
inline

Definition at line 1753 of file Unit.h.

Referenced by KillRewarder::_InitXP(), WorldSession::BuildPartyMemberStatsChangedPacket(), boss_flame_leviathan_defense_cannon::boss_flame_leviathan_defense_cannonAI::CanAIAttack(), boss_flame_leviathan_defense_turret::boss_flame_leviathan_defense_turretAI::CanAIAttack(), SpellInfo::CheckVehicle(), npc_argent_captainAI::EnterEvadeMode(), npc_daegarn::EnterEvadeMode(), CreatureAI::EnterEvadeMode(), VehicleJoinEvent::Execute(), StartLaunchEvent::Execute(), Creature::ExitVehicle(), spell_putricide_choking_gas_filter::FilterTargets(), GetDirectTransport(), spell_pilgrims_bounty_on_plate::GetTable(), SmartScript::GetTargets(), GetTransGUID(), WorldSession::HandleAttackSwingOpcode(), WorldSession::HandleChangeSeatsOnControlledVehicle(), WorldSession::HandleMovementOpcode(), spell_pilgrims_bounty_a_serving_of::HandlePlate(), WorldSession::HandleRequestPartyMemberStatsOpcode(), spell_ulduar_cancel_stone_grip::spell_ulduar_cancel_stone_gripSpellScript::HandleScript(), 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(), lfg::LFGMgr::TeleportPlayer(), npc_impaling_spear::UpdateAI(), npc_mechanolift::npc_mechanoliftAI::UpdateAI(), npc_brunnhildar_prisoner::UpdateAI(), UpdateSpeed(), GameObject::Use(), Trinity::MessageDistDeliverer::Visit(), and Trinity::MessageDistDelivererToHostile::Visit().

◆ GetVehicleBase()

◆ GetVehicleCreatureBase()

◆ GetVehicleKit()

Vehicle * Unit::GetVehicleKit ( ) const
inline

Definition at line 1751 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(), 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_melee_hover_disk::DoAction(), HomeMovementGenerator< T >::DoFinalize(), npc_daegarn::EnterEvadeMode(), boss_gormok::ExecuteEvent(), GetDebugInfo(), SmartScript::GetTargets(), go_wg_vehicle_teleporter::GetValidVehicle(), AuraEffect::HandleAuraControlVehicle(), AuraEffect::HandleAuraSetVehicle(), 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_auto_repair::spell_auto_repair_SpellScript::HandleScript(), spell_zuldrak_gymers_throw::HandleScript(), HandleSpellClick(), 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(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadResetScript(), Mount(), npc_snobold_vassal::MountOnBoss(), Map::MoveAllCreaturesInMoveList(), npc_melee_hover_disk::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_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(), SmartScript::ProcessAction(), 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(), Creature::SetPhaseMask(), boss_flame_leviathan::boss_flame_leviathanAI::SpellHit(), npc_brunnhildar_prisoner::SpellHit(), npc_storm_cloud::SpellHit(), boss_flame_leviathan::boss_flame_leviathanAI::SpellHitTarget(), 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(), UpdateDisplayPower(), UpdateHeight(), and UpdateOrientation().

◆ GetVehicleKitWeakPtr()

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

Definition at line 1752 of file Unit.h.

Referenced by Vehicle::GetWeakPtr().

◆ GetVehicleRoot()

Unit * Unit::GetVehicleRoot ( ) const

Definition at line 11802 of file Unit.cpp.

References GetVehicleBase().

Referenced by Player::SetPhaseMask().

◆ GetVictim()

Unit * Unit::GetVictim ( ) const
inline

Definition at line 873 of file Unit.h.

Referenced by EscortAI::AssistPlayerInCombatAgainst(), SmartAI::AssistPlayerInCombatAgainst(), PetAI::AttackStart(), Object::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(), UnitAI::DoMeleeAttackIfReady(), boss_malchezaar::boss_malchezaarAI::DoMeleeAttacksIfReady(), PlayerAI::DoRangedAttackIfReady(), UnitAI::DoSpellAttackIfReady(), ScriptedAI::DoStopAttack(), boss_jormungarAI::Emerge(), boss_malchezaar::boss_malchezaarAI::EnfeebleHealthEffect(), boss_epoch::boss_epochAI::ExecuteEvent(), boss_nexusprince_shaffar::ExecuteEvent(), boss_shade_of_aran::boss_aranAI::FlameWreathEffect(), ThreatManager::GetAnyTarget(), getAttackerForHelper(), SmartScript::GetTargets(), boss_moroes::GuestsAttack(), cast_commandscript::HandleCastTargetCommad(), debug_commandscript::HandleDebugThreatListCommand(), spell_rog_prey_on_the_weak::HandleEffectPeriodic(), 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(), npc_dark_fiend::JustAppeared(), npc_water_globule::JustAppeared(), 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(), npc_dark_nucleus::JustEngagedWith(), boss_emalon::JustEngagedWith(), npc_guard_generic::JustEngagedWith(), npc_pet_dk_rune_weapon::JustEnteredCombat(), boss_midnight::boss_midnightAI::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_kerlonian::npc_kerlonianAI::MoveInLineOfSight(), npc_tooga::npc_toogaAI::MoveInLineOfSight(), boss_nefarian::MovementInform(), PetAI::NeedToStop(), spell_zuljin_claw_rage_periodic::OnPeriodic(), 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()(), SindragosaIcyGripTargetFilter::operator()(), PetAI::OwnerAttacked(), PetAI::OwnerAttackedBy(), UnitAI::PrepareTargetListSelection(), SmartScript::ProcessEvent(), npc_darkfallen_noble::ScheduleSpells(), npc_guard_shattrath_faction::ScheduleVanish(), SimpleCharmedPlayerAI::SelectAppropriateCastForSpec(), PlayerAI::SelectAttackTarget(), SimpleCharmedPlayerAI::SelectAttackTarget(), 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(), Player::SendInitialVisiblePackets(), SmartAI::SetCombatMove(), SetConfused(), npc_twisted_visage::SetData(), SetFeared(), SetStunned(), FollowerAI::ShouldAssistPlayerInCombatAgainst(), npc_zuljin_vortex::SpellHitTarget(), StopAttackFaction(), Player::Update(), CasterAI::UpdateAI(), ArcherAI::UpdateAI(), SimpleCharmedPlayerAI::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_arlokk::UpdateAI(), boss_grilek::UpdateAI(), boss_jindo::UpdateAI(), boss_mandokir::UpdateAI(), boss_marli::UpdateAI(), boss_renataki::UpdateAI(), npc_zealot_zath::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_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_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(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), npc_nagrand_banner::npc_kil_sorrow_spellbinderAI::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), boss_mr_smite::boss_mr_smiteAI::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_scarlet_ghoul::UpdateAI(), npc_felmyst_vapor::UpdateAI(), npc_pet_mage_mirror_image::UpdateImageVictim(), InstanceScript::UpdateMinionState(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), npc_pet_dk_rune_weapon::UpdateRuneWeaponVictim(), boss_faction_championsAI::UpdateThreat(), CreatureAI::UpdateVictim(), npc_thorim_trashAI::UseAbility(), ValidateAttackersAndOwnTarget(), PlayerAI::VerifySpellCast(), and instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::VortexHandling().

◆ GetVirtualItemId()

uint32 Unit::GetVirtualItemId ( uint32  slot) const

◆ GetVisibleAura()

◆ GetVisibleAuras()

VisibleAuraMap const & Unit::GetVisibleAuras ( ) const
inline

◆ GetWeaponDamageRange()

float Unit::GetWeaponDamageRange ( WeaponAttackType  attType,
WeaponDamageRange  type,
uint8  damageIndex = 0 
) const

◆ GetWeaponProcChance()

float Unit::GetWeaponProcChance ( ) const

◆ GetWeaponSkillValue()

◆ HandleAttackPowerModifier()

◆ HandleEmoteCommand()

void Unit::HandleEmoteCommand ( Emote  emoteId)

Definition at line 1579 of file Unit.cpp.

References WorldPackets::Chat::Emote::EmoteID, Object::GetGUID(), WorldPackets::Chat::Emote::Guid, WorldObject::SendMessageToSet(), 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(), npc_frost_sphere::DamageTaken(), CoolestFriendBaseAI::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(), WorldSession::HandleEmoteOpcode(), 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(), boss_svala::JustDied(), boss_the_lich_king::JustSummoned(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::JustSummoned(), 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_spectral_ghostly_citizen::npc_spectral_ghostly_citizenAI::ReceiveEmote(), npc_dancing_flames::ReceiveEmote(), PetAI::ReceiveEmote(), DarkFallenAI::Reset(), boss_sapphiron::Reset(), npc_sinclari_vh::ScheduleIntro(), CreatureTextMgr::SendEmote(), 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_partygoer_pather::UpdateAI(), npc_partygoer::UpdateAI(), npc_calvin_montague::npc_calvin_montagueAI::UpdateAI(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::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(), npc_shenthul::npc_shenthulAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::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(), 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 2141 of file Unit.cpp.

References AttackerStateUpdate(), and BASE_ATTACK.

Referenced by Update().

◆ HandleSpellClick()

◆ HandleStatFlatModifier()

◆ HasAura()

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

Definition at line 4558 of file Unit.cpp.

References GetAuraApplication().

Referenced by spell_magus_telestra_clone_dies::AfterApply(), spell_alar_ashtongue_ruse_master::AfterApply(), spell_warl_health_funnel::ApplyEffect(), Player::ApplyItemDependentAuras(), Player::ApplyItemObtainSpells(), spell_rog_vanish::ApplyStealth(), boss_leotheras_the_blind::AttackStart(), 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(), boss_gurtogg_bloodboil::CanAIAttack(), spell_marrowgar_coldflame_damage::CanBeAppliedOn(), Group::CanJoinBattlegroundQueue(), boss_veras_darkshadow::CanSeeAlways(), Player::CanUseAmmo(), Player::CanUseBattlegroundObject(), spell_pal_aura_mastery_immune::CheckAreaTarget(), spell_pal_immunities::CheckCast(), Spell::CheckCast(), Spell::CheckCasterAuras(), Spell::CheckItems(), spell_rog_honor_among_thieves::CheckProc(), spell_eredar_twins_dark_flame_aura_shadow::CheckProc(), spell_eredar_twins_dark_flame_aura_fire::CheckProc(), spell_illidan_parasitic_shadowfiend_proc::CheckProc(), spell_dru_eclipse::CheckProc(), spell_hun_lock_and_load::CheckProc(), spell_item_shadowmourne::CheckProc(), SpellInfo::CheckTarget(), Player::CheckTitanGripPenalty(), 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_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::EffectSchoolDMG(), Spell::EffectScriptEffect(), Spell::EffectTriggerSpell(), Spell::EffectWeaponDmg(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::EnterEvadeMode(), npc_phantom_mage::npc_phantom_mageAI::EnterEvadeMode(), npc_phantom_hallucination::npc_phantom_hallucinationAI::EnterEvadeMode(), PartyTimeEmoteEvent::Execute(), spell_frost_giant_death_plague::FilterTargets(), spell_pri_circle_of_healing::FilterTargets(), GetDispellableAuraList(), instance_sunwell_plateau::instance_sunwell_plateau_InstanceMapScript::GetPlayerInMap(), go_wind_stone::go_wind_stoneAI::GetPlayerTwilightSetRank(), Player::GetResurrectionSpellId(), go_wg_vehicle_teleporter::GetValidVehicle(), spell_dru_enrage::HandleApply(), OutdoorPvPSI::HandleAreaTrigger(), AuraEffect::HandleAuraMounted(), Aura::HandleAuraSpecificMods(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleChatMessage(), spell_impale::HandleDamageCalc(), spell_borean_tundra_signal_alliance::HandleDummy(), spell_mage_summon_water_elemental::HandleDummy(), spell_rog_preparation::HandleDummy(), spell_warl_seduction::HandleDummy(), spell_warr_charge::HandleDummy(), spell_midsummer_braziers_hit::HandleEffectApply(), spell_storm_peaks_flaming_arrow_triggered_effect::HandleEffectApply(), spell_dk_improved_blood_presence::HandleEffectApply(), spell_dk_improved_frost_presence::HandleEffectApply(), spell_dk_improved_unholy_presence::HandleEffectApply(), spell_rog_prey_on_the_weak::HandleEffectPeriodic(), spell_dk_improved_blood_presence::HandleEffectRemove(), spell_dk_improved_frost_presence::HandleEffectRemove(), spell_dk_improved_unholy_presence::HandleEffectRemove(), spell_putricide_gaseous_bloat::HandleExtraEffect(), Player::HandleFall(), gm_commandscript::HandleGMVisibleCommand(), spell_dk_presence::HandleImprovedBloodPresence(), spell_dk_presence::HandleImprovedFrostPresence(), spell_dk_presence::HandleImprovedUnholyPresence(), spell_sindragosa_frost_breath::HandleInfusion(), lookup_commandscript::HandleLookupSpellCommand(), lookup_commandscript::HandleLookupSpellIdCommand(), OPvPCapturePointZM_Graveyard::HandleOpenGo(), Player::HandlePassiveSpellLearn(), spell_eredar_twins_dark_flame_aura_shadow::HandleProc(), spell_eredar_twins_dark_flame_aura_fire::HandleProc(), spell_dru_omen_of_clarity::HandleProc(), spell_dru_glyph_of_shred::HandleProc(), spell_pal_infusion_of_light::HandleProc(), spell_pal_light_s_beacon::HandleProc(), spell_mage_gen_extra_effects::HandleProc(), spell_warr_vigilance::HandleRemove(), 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_ritual_of_souls::HandleScript(), spell_dru_glyph_of_starfire::HandleScriptEffect(), Guardian::InitStatsForLevel(), Player::IsDeserter(), SpellArea::IsFitToRequirements(), IsGhouled(), npc_coldflame::IsSummonedBy(), npc_pet_pri_shadowfiend::IsSummonedBy(), IsVampire(), lfg::LFGMgr::JoinLfg(), npc_pet_hunter_snake_trap::JustAppeared(), boss_blood_queen_lana_thel::JustDied(), boss_professor_putricide::JustDied(), boss_sindragosa::JustDied(), 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(), boss_leotheras_the_blind::KilledUnit(), Creature::LoadCreaturesAddon(), MeleeDamageBonusDone(), 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(), spell_amanitar_potent_fungus::OnApply(), spell_brewfest_giddyup::OnChange(), achievement_staying_buffed_all_winter::OnCheck(), achievement_staying_buffed_all_winter_25::OnCheck(), achievement_flirt_with_disaster_perf_check::OnCheck(), achievement_bg_ic_resource_glut::OnCheck(), 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_innkeeper::npc_innkeeperAI::OnGossipHello(), npc_innkeeper::npc_innkeeperAI::OnGossipSelect(), npc_argent_squire_gruntling::npc_argent_squire_gruntlingAI::OnGossipSelect(), spell_dk_pestilence::OnHit(), 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_gen_damage_reduction_aura::OnRemove(), spell_mage_missile_barrage_proc::OnRemove(), spell_mage_arcane_missiles::OnRemove(), boss_mechano_lord_capacitus::OnSpellCast(), at_hor_intro_start::OnTrigger(), at_commander_dawnforge::OnTrigger(), AreaTrigger_at_nats_landing::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), LorKhanSelectTargetToHeal::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()(), DefaultTargetSelector::operator()(), KelThuzadCharmedPlayerAI::CharmedPlayerTargetSelectPred::operator()(), WebTargetSelector::operator()(), SindragosaIcyGripTargetFilter::operator()(), spell_midsummer_test_ribbon_pole_channel::PeriodicTick(), spell_midsummer_ribbon_pole_periodic_visual::PeriodicTick(), SmartScript::ProcessAction(), npc_lake_frog::ReceiveEmote(), npc_dancing_flames::ReceiveEmote(), boss_najentus::RemoveImpalingSpine(), boss_keristrasza::RemovePrison(), Player::ReportedAfkBy(), 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(), Player::RewardHonor(), RewardRage(), SimpleCharmedPlayerAI::SelectAppropriateCastForSpec(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::SelectVictim(), Player::SendQuestUpdate(), Player::SendSummonRequestFrom(), SpellCritChanceTaken(), SpellDamagePctDone(), npc_omen::SpellHit(), npc_pool_of_tar::npc_pool_of_tarAI::SpellHit(), boss_najentus::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(), 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_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::UpdateAI(), boss_zuljin::UpdateAI(), boss_hakkar::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(), boss_lady_deathwhisper::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(), 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(), Player::UpdateAreaDependentAuras(), boss_ambassador_hellmaw::UpdateEscortAI(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), Spell::UpdateSpellCastDataAmmo(), Player::UpdateZoneDependentAuras(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), and violet_hold_trashAI::WaypointReached().

◆ HasAuraEffect()

bool Unit::HasAuraEffect ( uint32  spellId,
uint8  effIndex,
ObjectGuid  caster = ObjectGuid::Empty 
) const

◆ HasAuraState()

◆ HasAuraType()

bool Unit::HasAuraType ( AuraType  auraType) const

Definition at line 4565 of file Unit.cpp.

References m_modAuras.

Referenced by ApplyControlStatesIfNeeded(), Attack(), Creature::CanCreatureAttack(), Player::CanTameExoticPets(), boss_erekem::CheckGuardAuras(), spell_bem_check_fly_mount::CheckRequirement(), SpellInfo::CheckTarget(), npc_valkyr_shadowguard::DamageTaken(), Creature::DoFleeToGetAssistance(), Player::DurabilityPointsLoss(), Spell::EffectStuck(), Spell::EffectWeaponDmg(), Battleground::EndBattleground(), WorldObject::GetMapWaterOrGroundLevel(), Player::getMaxTimer(), Player::GetPowerRegen(), AuraEffect::HandleArenaPreparation(), AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraAllowOnlyAbility(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraEmpathy(), AuraEffect::HandleAuraFeatherFall(), AuraEffect::HandleAuraGhost(), AuraEffect::HandleAuraHover(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleAuraModDmgImmunity(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), AuraEffect::HandleAuraModPacify(), AuraEffect::HandleAuraModPacifyAndSilence(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraModSilence(), AuraEffect::HandleAuraModStalked(), AuraEffect::HandleAuraTrackStealthed(), AuraEffect::HandleAuraUntrackable(), AuraEffect::HandleAuraWaterWalk(), AuraEffect::HandleComprehendLanguage(), AuraEffect::HandleDetectAmore(), spell_brewfest_mount_transformation::HandleDummy(), spell_winter_veil_reindeer_transformation::HandleDummy(), Player::HandleFall(), AuraEffect::HandleForceMoveForward(), WorldSession::HandleMirrorImageDataRequest(), AuraEffect::HandleModInvisibilityDetect(), AuraEffect::HandleModStealthDetect(), AuraEffect::HandleModUnattackable(), AuraEffect::HandlePreventFleeing(), reset_commandscript::HandleResetStatsOrLevelHelper(), WorldSession::HandleSelfResOpcode(), HasAuraTypeWithFamilyFlags(), SpellArea::IsFitToRequirements(), Player::KillPlayer(), KnockbackFrom(), WorldSession::LogoutPlayer(), WorldObject::MagicSpellHitResult(), MeleeSpellHitResult(), Trinity::AnyDeadUnitObjectInRangeCheck::operator()(), Player::RegenerateAll(), Player::RegenerateHealth(), Battleground::RemovePlayerAtLeave(), Player::RewardHonor(), RollMeleeOutcomeAgainst(), Player::SendInitialPacketsAfterAddToMap(), SetControlled(), Creature::SetSpellFocus(), ThreatReference::ShouldBeSuppressed(), Player::Update(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), Creature::UpdateMovementFlags(), 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,
flag96  familyFlags 
) const

Definition at line 679 of file Unit.cpp.

References GetAuraEffectsByType(), and HasAuraType().

◆ HasAuraTypeWithMiscvalue()

bool Unit::HasAuraTypeWithMiscvalue ( AuraType  auraType,
int32  miscValue 
) const

◆ HasAuraTypeWithTriggerSpell()

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

◆ HasAuraTypeWithValue()

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

Definition at line 4596 of file Unit.cpp.

References GetAuraEffectsByType().

Referenced by Player::UpdatePowerRegen().

◆ HasAuraWithMechanic()

◆ HasBreakableByDamageAuraType()

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

◆ HasBreakableByDamageCrowdControlAura()

◆ HasExtraUnitMovementFlag()

bool Unit::HasExtraUnitMovementFlag ( uint32  f) const
inline

Definition at line 1700 of file Unit.h.

◆ HasInterruptFlag()

bool Unit::HasInterruptFlag ( uint32  flags) const
inline

Definition at line 1592 of file Unit.h.

References flags.

◆ HasInvisibilityAura()

bool Unit::HasInvisibilityAura ( ) const
inline

◆ HasNegativeAuraWithInterruptFlag()

bool Unit::HasNegativeAuraWithInterruptFlag ( uint32  flag,
ObjectGuid  guid = ObjectGuid::Empty 
) const

Definition at line 4613 of file Unit.cpp.

References m_interruptableAuras, and m_interruptMask.

◆ HasNpcFlag()

◆ HasPendingMovementChange() [1/2]

bool Unit::HasPendingMovementChange ( ) const
inline

◆ HasPendingMovementChange() [2/2]

bool Unit::HasPendingMovementChange ( MovementChangeType  changeType) const

Definition at line 12941 of file Unit.cpp.

References m_pendingMovementChanges.

◆ HasPetFlag()

bool Unit::HasPetFlag ( UnitPetFlag  flags) const
inline

◆ HasPvpFlag()

bool Unit::HasPvpFlag ( UnitPVPStateFlags  flags) const
inline

Definition at line 996 of file Unit.h.

References flags, UNIT_BYTES_2_OFFSET_PVP_FLAG, and UNIT_FIELD_BYTES_2.

Referenced by WorldObject::IsValidAttackTarget().

◆ HasScheduledAIChange()

bool Unit::HasScheduledAIChange ( ) const
protected

Definition at line 9561 of file Unit.cpp.

References GetAI().

Referenced by Update().

◆ HasSharedVision()

◆ HasSpell()

virtual bool Unit::HasSpell ( uint32  ) const
inlinevirtual

◆ HasSpellFocus()

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

Reimplemented in Creature.

Definition at line 1494 of file Unit.h.

Referenced by WorldSession::HandlePetActionHelper().

◆ HasStealthAura()

bool Unit::HasStealthAura ( ) const
inline

◆ HasStrongerAuraWithDR()

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

◆ HasUnitFlag()

◆ HasUnitFlag2()

◆ HasUnitMovementFlag()

◆ HasUnitState()

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

Definition at line 890 of file Unit.h.

Referenced by Creature::_IsTargetAcceptable(), npc_gothik_minion_livingrider::_UpdateAI(), npc_gothik_minion_spectralrider::_UpdateAI(), boss_four_horsemen_baron::_UpdateAI(), boss_four_horsemen_thane::_UpdateAI(), boss_four_horsemen_lady::_UpdateAI(), boss_four_horsemen_sir::_UpdateAI(), Player::ActivateTaxiPathTo(), ApplyControlStatesIfNeeded(), AtEngage(), Attack(), AttackerStateUpdate(), BossAI::BossAI(), Player::BuildPlayerRepop(), PathGenerator::CalculatePath(), CombatManager::CanBeginCombat(), Player::CanEquipItem(), CanFreeMove(), spell_dk_death_grip_initial::CheckCast(), Spell::CheckCast(), Spell::CheckPetCast(), spell_warr_retaliation::CheckProc(), 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(), UnitAI::DoMeleeAttackIfReady(), PlayerAI::DoRangedAttackIfReady(), UnitAI::DoSpellAttackIfReady(), FormationMovementGenerator::DoUpdate(), WaypointMovementGenerator< Creature >::DoUpdate(), RandomMovementGenerator< T >::DoUpdate(), Spell::EffectDistract(), Spell::EffectKnockBack(), CritterAI::EnterEvadeMode(), SmartAI::EnterEvadeMode(), npc_pet_dk_rune_weapon::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), UnitAura::FillTargetMap(), Spell::finish(), ThreatManager::ForwardThreatForAssistingMe(), spell_dru_starfall_dummy::HandleDummy(), spell_mistress_kiss::HandleDummyTick(), WorldSession::HandleEmoteOpcode(), WorldSession::HandleInitiateTradeOpcode(), AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), WorldSession::HandlePlayerLogin(), AuraEffect::HandleProcTriggerDamageAuraProc(), PetAI::HandleReturnMovement(), WorldSession::HandleTextEmoteOpcode(), boss_lady_deathwhisper::Initialize(), boss_skadi::Initialize(), MalacrassCompanionBaseAI::InitializeAI(), CoolestFriendBaseAI::InitializeAI(), AdvisorBaseAI::InitializeAI(), isAttackingPlayer(), Creature::IsInEvadeMode(), IsMovementPreventedByCasting(), isPossessedByPlayer(), isTargetableForAttack(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), ShadowswordBaseAI::JustAppeared(), npc_focus_fire::JustAppeared(), npc_blackheart_the_inciter_dummy::JustAppeared(), npc_tainted_elemental::JustAppeared(), boss_harbinger_skyriss_illusion::JustAppeared(), CritterAI::JustEngagedWith(), npc_coren_direbrew_sisters::JustEngagedWith(), boss_dorothee::JustEngagedWith(), boss_strawman::JustEngagedWith(), boss_tinhead::JustEngagedWith(), boss_roar::JustEngagedWith(), boss_celebras_the_cursed::JustEngagedWith(), boss_landslide::JustEngagedWith(), boss_noxxion::JustEngagedWith(), boss_princess_theradras::JustEngagedWith(), npc_greyheart_spellbinder::JustEngagedWith(), npc_shadowmoon_channeler::JustEngagedWith(), npc_hellfire_channeler::JustEngagedWith(), npc_solarium_priest::JustEngagedWith(), CreatureGroup::LeaderStartedMoving(), WorldObject::MagicSpellHitResult(), MeleeSpellHitResult(), MotionMaster::MoveFall(), npc_erekem_guard::npc_erekem_guard(), 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()(), 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(), SimpleCharmedPlayerAI::SelectAppropriateCastForSpec(), Player::SendInitialPacketsAfterAddToMap(), Player::SendInitialVisiblePackets(), boss_novos::SetBubbled(), Player::SetClientControl(), Player::SetContestedPvP(), SetControlled(), SetDisableGravity(), FollowerAI::SetFollowComplete(), FollowerAI::SetFollowPaused(), SetHover(), SetInFront(), RandomMovementGenerator< T >::SetRandomLocation(), SetStunned(), HomeMovementGenerator< T >::SetTargetLocation(), boss_vx_001::boss_vx_001AI::SpellHit(), WaypointMovementGenerator< Creature >::StartMove(), lfg::LFGMgr::TeleportPlayer(), CreatureAI::TriggerAlert(), gunship_npc_AI::TriggerBurningPitch(), Player::Update(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), boss_high_inquisitor_whitemane::UpdateAI(), npc_thorim_trashAI::UpdateAI(), CombatAI::UpdateAI(), CasterAI::UpdateAI(), SimpleCharmedPlayerAI::UpdateAI(), BossAI::UpdateAI(), WorldBossAI::UpdateAI(), npc_av_marshal_or_warmaster::UpdateAI(), boss_balinda::UpdateAI(), boss_drekthar::UpdateAI(), boss_galvangar::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::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_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_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_archmage_arugal::boss_archmage_arugalAI::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(), boss_archaedas::UpdateAI(), boss_ironaya::UpdateAI(), boss_twilight_corrupter::boss_twilight_corrupterAI::UpdateAI(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::UpdateAI(), boss_akilzon::UpdateAI(), boss_halazzi::UpdateAI(), boss_hexlord_malacrass::UpdateAI(), boss_janalai::UpdateAI(), boss_nalorakk::UpdateAI(), boss_zuljin::UpdateAI(), boss_arlokk::UpdateAI(), boss_gahzranka::UpdateAI(), boss_grilek::UpdateAI(), boss_hakkar::UpdateAI(), boss_hazzarah::UpdateAI(), boss_jeklik::UpdateAI(), boss_jindo::UpdateAI(), boss_mandokir::UpdateAI(), boss_marli::UpdateAI(), boss_thekal::UpdateAI(), npc_zealot_lorkhan::UpdateAI(), boss_venoxis::UpdateAI(), boss_wushoolay::UpdateAI(), npc_blackfathom_deeps_event::UpdateAI(), boss_kelris::UpdateAI(), boss_azuregos::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(), boss_onyxia::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_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_ioc_horde_alliance::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(), npc_pet_mage_mirror_image::UpdateAI(), npc_pet_shaman_fire_elemental::UpdateAI(), emerald_dragonAI::UpdateAI(), boss_black_knight::boss_black_knightAI::UpdateAI(), PetAI::UpdateAI(), npc_gunship_rocketeer::UpdateAI(), npc_faerlina_add::UpdateAI(), npc_wg_spirit_guide::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAICombat(), npc_crok_scourgebane::UpdateEscortAI(), boss_ambassador_hellmaw::UpdateEscortAI(), npc_pet_mage_mirror_image::UpdateImageVictim(), UpdateSplinePosition(), SmartScript::UpdateTimer(), and violet_hold_trashAI::violet_hold_trashAI().

◆ HasUnitTypeMask()

◆ haveOffhandWeapon()

◆ HealBySpell()

◆ HealthAbovePct()

◆ HealthAbovePctHealed()

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

Definition at line 934 of file Unit.h.

Referenced by boss_valithria_dreamwalker::HealReceived().

◆ HealthBelowPct()

◆ HealthBelowPctDamaged()

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

Definition at line 932 of file Unit.h.

Referenced by spell_gen_proc_below_pct_damaged::CheckProc(), spell_pri_shadowfiend_death::CheckProc(), boss_balinda::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_doctor_theolen_krastinov::DamageTaken(), boss_kormok::DamageTaken(), boss_dathrohan_balnazzar::DamageTaken(), npc_calvin_montague::npc_calvin_montagueAI::DamageTaken(), boss_halazzi::DamageTaken(), npc_spirit_of_the_lynx::DamageTaken(), boss_hexlord_malacrass::DamageTaken(), boss_janalai::DamageTaken(), boss_zuljin::DamageTaken(), npc_blackfathom_deeps_event::DamageTaken(), boss_aku_mai::DamageTaken(), boss_landslide::DamageTaken(), boss_ayamiss::DamageTaken(), boss_buru::DamageTaken(), boss_kurinnaxx::DamageTaken(), boss_rajaxx::DamageTaken(), boss_huhuran::DamageTaken(), boss_sartura::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(), boss_felblood_kaelthas::DamageTaken(), boss_halion::DamageTaken(), boss_twilight_halion::DamageTaken(), boss_thorim::boss_thorimAI::DamageTaken(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), boss_archimonde::DamageTaken(), boss_hadronox::DamageTaken(), and spell_warl_seed_of_corruption_dummy::HandleProc().

◆ Heartbeat()

void Unit::Heartbeat ( )
overridevirtual

Reimplemented from WorldObject.

Definition at line 510 of file Unit.cpp.

References WorldObject::Heartbeat(), and SendFlightSplineSyncUpdate().

Referenced by Player::Heartbeat().

◆ IncrDiminishing()

void Unit::IncrDiminishing ( SpellInfo const *  auraSpellInfo,
bool  triggered 
)

◆ InitCharmInfo()

CharmInfo * Unit::InitCharmInfo ( )

Definition at line 9707 of file Unit.cpp.

References m_charmInfo.

Referenced by Guardian::Guardian(), 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 3116 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_scarlet_commander_mograine::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::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(), npc_zuljin_spirit::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(), VehicleJoinEvent::Execute(), boss_curator::boss_curatorAI::ExecuteEvent(), boss_illidan_stormrage::ExecuteSpecialEvents(), boss_thorim::boss_thorimAI::FinishEncounter(), WorldSession::HandleCancelCastOpcode(), AuraEffect::HandleFeignDeath(), boss_felmyst::HandleFlightSequence(), WorldSession::HandleLootOpcode(), WorldSession::HandlePetActionHelper(), boss_freya::boss_freyaAI::JustDied(), npc_greyheart_spellbinder::JustEngagedWith(), npc_shadowmoon_channeler::JustEngagedWith(), npc_hellfire_channeler::JustEngagedWith(), SmartAI::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(), boss_hexlord_malacrass::OnSpellCast(), dummy_dragonAI::OpenPortal(), SmartScript::ProcessAction(), RemoveAurasWithInterruptFlags(), boss_twinemperorsAI::SetAfterTeleport(), setDeathState(), boss_shade_of_aran::boss_aranAI::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), PetAI::StopAttack(), StopAttackFaction(), Player::TeleportTo(), 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(), 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(), boss_mr_smite::boss_mr_smiteAI::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(), npc_pet_mage_mirror_image::UpdateImageVictim(), npc_pet_dk_rune_weapon::UpdateRuneWeaponVictim(), and boss_vazruden_the_herald::UpdateSpecialEvents().

◆ InterruptSpell()

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

◆ IsAffectedByDiminishingReturns()

virtual bool Unit::IsAffectedByDiminishingReturns ( ) const
inlinevirtual

◆ IsAIEnabled()

◆ IsAlive()

bool Unit::IsAlive ( ) const
inline

Definition at line 1247 of file Unit.h.

References ALIVE.

Referenced by _CreateAuraApplication(), CreatureAI::_EnterEvadeMode(), _EnterVehicle(), 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(), Attack(), AttackerStateUpdate(), PetAI::AttackStart(), npc_snobold_vassal::AttackStart(), boss_malchezaar::boss_malchezaarAI::AxesCleanup(), boss_four_horsemen_baseAI::boss_four_horsemen_baseAI(), WorldSession::BuildPartyMemberStatsChangedPacket(), Player::BuyItemFromVendorSlot(), CalcAbsorbResist(), CalculateSpellDamageTaken(), boss_ionar::CallBackSparks(), Creature::CallForHelp(), npc_pet_dk_rune_weapon::CanAIAttack(), npc_pet_mage_mirror_image::CanAIAttack(), Creature::CanAssistTo(), PetAI::CanAttack(), CombatManager::CanBeginCombat(), Player::CanCaptureTowerPoint(), Player::CanInteractWithQuestGiver(), CreatureGroup::CanLeaderStartMoving(), boss_thorim::boss_thorimAI::CanStartPhase2(), Player::CanUseAmmo(), Player::CanUseBattlegroundObject(), Player::CanUseItem(), Player::CastItemCombatSpell(), Player::CheckAreaExplore(), spell_dk_raise_ally_initial::CheckCast(), Spell::CheckCast(), spell_razorscale_flame_breath::CheckDamage(), spell_devourer_of_souls_mirrored_soul_proc::CheckProc(), spell_mage_focus_magic::CheckProc(), spell_item_necrotic_touch::CheckProc(), spell_item_shadowmourne::CheckProc(), spell_warl_siphon_life::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(), RandomMovementGenerator< T >::DoInitialize(), WorldSession::DoLootRelease(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::DoSpeech(), Spell::TargetInfo::DoTargetSpellHit(), WaypointMovementGenerator< Creature >::DoUpdate(), RandomMovementGenerator< T >::DoUpdate(), 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::EffectPickPocket(), Spell::EffectPowerBurn(), Spell::EffectPowerDrain(), Spell::EffectResurrect(), Spell::EffectResurrectNew(), Spell::EffectResurrectPet(), Spell::EffectSchoolDMG(), Spell::EffectScriptEffect(), Spell::EffectSelfResurrect(), Spell::EffectSkinPlayerCorpse(), Spell::EffectStuck(), Spell::EffectThreat(), Spell::EffectWeaponDmg(), Battleground::EndBattleground(), Arena::EndBattleground(), boss_malchezaar::boss_malchezaarAI::EnfeebleHealthEffect(), boss_malchezaar::boss_malchezaarAI::EnfeebleResetHealth(), boss_thaddius::EnterEvadeMode(), GuardAI::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_dk_rune_weapon::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), npc_pet_pri_lightwell::EnterEvadeMode(), hyjalAI::EnterEvadeMode(), Player::EnvironmentalDamage(), Player::EquipItem(), npc_wild_wyrm::EvadeCheck(), Battleground::EventPlayerLoggedOut(), BattleExperienceEvent::Execute(), VehicleJoinEvent::Execute(), DelayedMovementEvent::Execute(), Creature::ExitVehicle(), AssistanceMovementGenerator::Finalize(), Creature::ForcedDespawn(), CreatureGroup::FormationReset(), Battleground::GetAlivePlayersCountByTeam(), FollowerAI::GetLeaderForFollower(), Player::getMaxTimer(), Player::GetNPCIfCanInteractWith(), GetPartyMembers(), Pet::GivePetXP(), Player::GiveXP(), boss_moroes::GuestsAttack(), BattlegroundEY::HandleAreaTrigger(), WorldSession::HandleAreaTriggerOpcode(), AuraEffect::HandleAuraModTotalThreat(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBattleFieldPortOpcode(), BattlegroundIC::HandleCapturedNodes(), WorldSession::HandleChatMessage(), misc_commandscript::HandleDamageCommand(), debug_commandscript::HandleDebugThreatListCommand(), misc_commandscript::HandleDieCommand(), Player::HandleDrowning(), WorldSession::HandleEmoteOpcode(), Player::HandleFall(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleLootMoneyOpcode(), 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(), WorldSession::HandleReclaimCorpse(), WorldSession::HandleRequestPartyMemberStatsOpcode(), spell_rotface_large_ooze_combine::HandleScript(), WorldSession::HandleSetAmmoOpcode(), spell_marrowgar_bone_spike_graveyard::HandleSpikes(), AuraEffect::HandleSpiritOfRedemption(), WorldSession::HandleStablePet(), WorldSession::HandleStableSwapPet(), WorldSession::HandleSummonResponseOpcode(), WorldSession::HandleTextEmoteOpcode(), WorldSession::HandleUnstablePet(), boss_priestess_delrissa::InitializeLackeys(), Player::IsAtGroupRewardDistance(), Player::IsAtRecruitAFriendDistance(), Creature::IsInvisibleDueToDespawn(), Player::IsOutdoorPvPActive(), Player::IsPetNeedBeTemporaryUnsummoned(), isTargetableForAttack(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), Spell::IsValidDeadOrAliveTarget(), boss_priestess_lackey_commonAI::JustDied(), npc_fel_crystal::JustDied(), npc_watcher_gashra::JustDied(), npc_watcher_narjil::JustDied(), npc_watcher_silthik::JustDied(), boss_freya::boss_freyaAI::JustDied(), boss_emalon::JustEngagedWith(), npc_green_dragon_combat_trigger::JustExitedCombat(), Kill(), CreatureGroup::LeaderStartedMoving(), Player::LoadCorpse(), Player::LoadFromDB(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadInitializeScript(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadResetScript(), WorldObject::MagicSpellHitResult(), CreatureGroup::MemberEngagingTarget(), 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(), 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(), AreaTrigger_at_sentry_point::OnTrigger(), at_dragonspire_hall::OnTrigger(), at_blackrock_stadium::OnTrigger(), at_nearby_scarshield_infiltrator::OnTrigger(), at_ancient_leaf::OnTrigger(), areatrigger_orgrimmar_herald_of_war::OnTrigger(), at_commander_dawnforge::OnTrigger(), AreaTrigger_at_legion_teleporter::OnTrigger(), AreaTrigger_at_nats_landing::OnTrigger(), SmartTrigger::OnTrigger(), AreaTrigger_at_area_52_entrance::OnTrigger(), 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::AnyPlayerInObjectRangeCheck::operator()(), LorKhanSelectTargetToHeal::operator()(), Trinity::MostHPMissingInRange::operator()(), Trinity::MostHPPercentMissingInRange::operator()(), Trinity::FriendlyBelowHpPctEntryInRange::operator()(), Trinity::MostHPMissingGroupInRange::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::AllFriendlyCreaturesInGrid::operator()(), FrostwingVrykulSearcher::operator()(), PetAI::OwnerAttacked(), PetAI::OwnerAttackedBy(), MapManager::PlayerCannotEnter(), 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(), Player::SendInitialVisiblePackets(), Player::SendLoot(), SendMeleeAttackStop(), SetConfused(), Player::setDeathState(), SetFeared(), Creature::SetSpellFocus(), SetStunned(), Battlefield::ShowNpc(), boss_the_beast::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), boss_volazj::SpellHitTarget(), npc_malformed_ooze::SpellHitTarget(), WaypointMovementGenerator< Creature >::StartMove(), PetAI::StopAttack(), PassengerController::SummonCreatures(), Player::SwapItem(), lfg::LFGMgr::TeleportPlayer(), Player::TeleportTo(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadResetScript(), Totem::UnSummon(), Creature::Update(), TempSummon::Update(), Puppet::Update(), Player::Update(), Totem::Update(), Update(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::Update(), ChaseMovementGenerator::Update(), TimedFleeingMovementGenerator::Update(), FollowMovementGenerator::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(), player_ghoulAI::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(), Creature::UpdateMovementFlags(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), CreatureAI::UpdateVictim(), Player::UpdateZone(), 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

◆ IsArmorer()

bool Unit::IsArmorer ( ) const
inline

Definition at line 1128 of file Unit.h.

References UNIT_NPC_FLAG_REPAIR.

◆ isAttackingPlayer()

bool Unit::isAttackingPlayer ( ) const

◆ isAttackReady()

◆ IsAuctioner()

bool Unit::IsAuctioner ( ) const
inline

Definition at line 1127 of file Unit.h.

References UNIT_NPC_FLAG_AUCTIONEER.

◆ IsBanker()

bool Unit::IsBanker ( ) const
inline

Definition at line 1122 of file Unit.h.

References UNIT_NPC_FLAG_BANKER.

◆ IsBattleMaster()

bool Unit::IsBattleMaster ( ) const
inline

Definition at line 1121 of file Unit.h.

References UNIT_NPC_FLAG_BATTLEMASTER.

Referenced by Creature::isCanInteractWithBattleMaster().

◆ IsBlockCritical()

bool Unit::IsBlockCritical ( )

◆ IsCharmed()

◆ IsCharmedOwnedByPlayerOrPlayer()

◆ IsCharmerOrSelfPlayer()

bool Unit::IsCharmerOrSelfPlayer ( ) const
inline

Definition at line 1307 of file Unit.h.

Referenced by getAttackerForHelper().

◆ IsCharming()

bool Unit::IsCharming ( ) const
inline

Definition at line 1294 of file Unit.h.

◆ IsCombatDisallowed()

bool Unit::IsCombatDisallowed ( ) const
inline

Definition at line 1842 of file Unit.h.

Referenced by CombatManager::CanBeginCombat().

◆ IsContestedGuard()

bool Unit::IsContestedGuard ( ) const

Definition at line 11919 of file Unit.cpp.

References WorldObject::GetFactionTemplateEntry().

◆ IsControlledByPlayer()

◆ IsCritter()

◆ IsDamageReducedByArmor()

◆ isDead()

bool Unit::isDead ( ) const
inline

Definition at line 1249 of file Unit.h.

References CORPSE, and DEAD.

Referenced by npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), WorldObject::DestroyForNearbyPlayers(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), boss_flame_leviathan::boss_flame_leviathanAI::DoAction(), Spell::EffectSummonPet(), 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::OnGossipSelect(), AreaTrigger_at_scent_larkorwi::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), AreaTrigger_at_sholazar_waygate::OnTrigger(), MapManager::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().

◆ IsDuringRemoveFromWorld()

bool Unit::IsDuringRemoveFromWorld ( ) const
inline

Definition at line 1802 of file Unit.h.

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

◆ isDying()

bool Unit::isDying ( ) const
inline

Definition at line 1248 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 1181 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 1184 of file Unit.h.

References AURA_STATE_FROZEN.

◆ IsFullHealth()

bool Unit::IsFullHealth ( ) const
inline

◆ IsGhouled()

bool Unit::IsGhouled ( ) const

◆ IsGossip()

bool Unit::IsGossip ( ) const
inline

Definition at line 1118 of file Unit.h.

References UNIT_NPC_FLAG_GOSSIP.

◆ IsGravityDisabled()

bool Unit::IsGravityDisabled ( ) const
inline

◆ IsGuardian()

◆ IsGuildMaster()

bool Unit::IsGuildMaster ( ) const
inline

Definition at line 1120 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()

◆ IsImmunedToDamage() [1/2]

◆ IsImmunedToDamage() [2/2]

◆ IsImmunedToSpell()

◆ IsImmunedToSpellEffect()

◆ IsImmuneToAll()

bool Unit::IsImmuneToAll ( ) const
inline

Definition at line 1148 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 1158 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_hun_disengage::CheckCast(), Spell::CheckCast(), SpellInfo::CheckTarget(), boss_krik_thir::DoAction(), boss_algalon_the_observer::DoAction(), boss_hodir::DoAction(), npc_greyheart_spellbinder::DoAction(), boss_grand_warlock_nethekurse::DoAction(), npc_clintar_spirit::npc_clintar_spiritAI::EnterEvadeMode(), gunship_npc_AI::EnterEvadeMode(), Player::EquipItem(), ScriptedAI::ForceCombatStop(), Player::GetPowerRegen(), spell_apothecary_lingering_fumes::HandleAfterCast(), WorldSession::HandleBattlefieldLeaveOpcode(), WorldSession::HandleChatMessage(), debug_commandscript::HandleDebugCombatListCommand(), WorldSession::HandleEquipmentSetUse(), WorldSession::HandleLogoutRequestOpcode(), spell_dk_dancing_rune_weapon::HandleProc(), WorldSession::HandleSummonResponseOpcode(), tele_commandscript::HandleTeleCommand(), misc_commandscript::HandleUnstuckCommand(), WorldSession::HandleUseItemOpcode(), boss_twinemperorsAI::JustEngagedWith(), boss_prince_valanar_icc::JustSummoned(), boss_professor_putricide::JustSummoned(), boss_anubrekhan::JustSummoned(), boss_gothik::JustSummoned(), Pet::LoseHappiness(), boss_malygos::MoveInLineOfSight(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::MoveInLineOfSight(), CreatureAI::OnCharmed(), SmartAI::OnCharmed(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipHello(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipSelect(), icecrown_citadel_teleport::icecrown_citadel_teleportAI::OnGossipSelect(), at_frozen_throne_teleport::OnTrigger(), AreaTrigger_at_legion_teleporter::OnTrigger(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), LorKhanSelectTargetToHeal::operator()(), Trinity::MostHPMissingInRange::operator()(), Trinity::MostHPPercentMissingInRange::operator()(), Trinity::FriendlyBelowHpPctEntryInRange::operator()(), Trinity::FriendlyCCedInRange::operator()(), Trinity::FriendlyMissingBuffInRange::operator()(), Spell::PreprocessSpellHit(), Spell::TargetInfo::PreprocessTarget(), Creature::Regenerate(), Player::RegenerateAll(), Player::RegenerateHealth(), 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(), Player::SetRuneCooldown(), SetSpeedRateReal(), boss_the_lich_king::SpellHit(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), TempSummon::Update(), Map::Update(), 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_andorov::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), npc_clintar_spirit::npc_clintar_spiritAI::UpdateAI(), npc_terenas_menethil::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(), npc_pet_mage_mirror_image::UpdateImageVictim(), InstanceScript::UpdateMinionState(), CombatManager::UpdateOwnerCombatState(), SmartAI::UpdatePath(), Player::UpdatePotionCooldown(), npc_pet_dk_rune_weapon::UpdateRuneWeaponVictim(), UpdateSpeed(), and CreatureAI::UpdateVictim().

◆ IsInCombatWith()

◆ IsInDisallowedMountForm()

◆ IsInFeralForm()

◆ IsInFlight()

◆ isInFrontInMap()

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

Definition at line 3167 of file Unit.cpp.

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

◆ IsInnkeeper()

bool Unit::IsInnkeeper ( ) const
inline

Definition at line 1123 of file Unit.h.

References UNIT_NPC_FLAG_INNKEEPER.

Referenced by npc_innkeeper::npc_innkeeperAI::OnGossipHello().

◆ IsInPartyWith()

◆ IsInRaidWith()

◆ IsInSanctuary()

bool Unit::IsInSanctuary ( ) const
inline

◆ IsInWater()

◆ IsLoading()

virtual bool Unit::IsLoading ( ) const
inlinevirtual

Reimplemented in Pet, and Player.

Definition at line 1801 of file Unit.h.

◆ IsMagnet()

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

Definition at line 6152 of file Unit.cpp.

References Object::GetUInt32Value(), and UNIT_CREATED_BY_SPELL.

Referenced by SpellInfo::CheckTargetCreatureType().

◆ IsMounted()

◆ IsMovedByClient()

◆ IsMovedByServer()

bool Unit::IsMovedByServer ( ) const
inline

Definition at line 1314 of file Unit.h.

Referenced by KnockbackFrom().

◆ IsMovementPreventedByCasting()

◆ isMoving()

◆ IsNonMeleeSpellCast()

◆ IsOnVehicle()

◆ IsPet()

bool Unit::IsPet ( ) const
inline

Definition at line 898 of file Unit.h.

References UNIT_MASK_PET.

Referenced by Creature::AllLootRemovedFromCorpse(), Creature::AtDisengage(), Creature::AtEngage(), BeforeVisibilityDestroy< Creature >(), Creature::CallAssistance(), Creature::CallForHelp(), Creature::CanGiveExperience(), ThreatManager::CanHaveThreatList(), Creature::CanSwim(), spell_warl_demonic_pact::CheckProc(), hyjal_trashAI::DamageTaken(), spell_hun_masters_call::DoCheckCast(), Spell::EffectDismissPet(), Spell::EffectRenamePet(), Spell::EffectSchoolDMG(), Spell::EffectTameCreature(), Creature::GetAggroRange(), getAttackerForHelper(), GetCastingTimeForBonus(), GetCombatRatingReduction(), GetCreatePowerValue(), GetNextRandomRaidMemberOrPet(), WorldObject::GetSpellModOwner(), AuraEffect::HandleAuraModBaseResistancePCT(), AuraEffect::HandleAuraModResistance(), AuraEffect::HandleAuraModResistanceExclusive(), AuraEffect::HandleAuraModStat(), spell_buru_egg_explosion::HandleDummy(), AuraEffect::HandleModBaseResistance(), modify_commandscript::HandleModifyTalentCommand(), AuraEffect::HandleModPossessPet(), AuraEffect::HandleModResistancePercent(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcDeleteCommand(), npc_commandscript::HandleNpcEvadeCommand(), npc_commandscript::HandleNpcSetLevelCommand(), npc_commandscript::HandleNpcSetModelCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetPhaseCommand(), npc_commandscript::HandleNpcShowLootCommand(), npc_commandscript::HandleNpcTameCommand(), WorldSession::HandlePetActionHelper(), pet_commandscript::HandlePetCreateCommand(), WorldSession::HandlePetRename(), reset_commandscript::HandleResetTalentsCommand(), misc_commandscript::HandleRespawnCommand(), Creature::InitEntry(), TempSummon::InitStats(), Guardian::InitStatsForLevel(), DisableMgr::IsDisabledFor(), Creature::isElite(), Minion::IsGuardianPet(), Creature::isWorldBoss(), Kill(), Map::MoveAllCreaturesInMoveList(), Trinity::MostHPMissingGroupInRange::operator()(), ProcSkillsAndReactives(), PetAI::ReceiveEmote(), Creature::ReleaseSpellFocus(), RemoveAllControlled(), RollMeleeOutcomeAgainst(), FactorySelector::SelectAI(), WorldSession::SendQueryPetNameResponse(), Spell::SendSpellGo(), Spell::SendSpellStart(), Creature::setDeathState(), Creature::SetDisplayId(), SetMinion(), Creature::SetObjectScale(), SpellDamagePctDone(), TempSummon::UnSummon(), ChaseMovementGenerator::Update(), boss_vaelastrasz::UpdateAI(), Guardian::UpdateArmor(), Guardian::UpdateAttackPowerAndDamage(), UpdateAuraForGroup(), Creature::UpdateLevelDependantStats(), UpdatePetCombatState(), Guardian::UpdateResistances(), Guardian::UpdateStats(), and ObjectGridEvacuator::Visit().

◆ IsPolymorphed()

◆ isPossessed()

bool Unit::isPossessed ( ) const
inline

◆ isPossessedByPlayer()

bool Unit::isPossessedByPlayer ( ) const

◆ isPossessing() [1/2]

bool Unit::isPossessing ( ) const

Definition at line 6230 of file Unit.cpp.

References GetCharmed().

Referenced by misc_commandscript::HandleUnbindSightCommand().

◆ isPossessing() [2/2]

bool Unit::isPossessing ( Unit *  u) const

Definition at line 6225 of file Unit.cpp.

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

◆ IsPvP()

◆ IsQuestGiver()

◆ IsRooted()

bool Unit::IsRooted ( ) const
inline

◆ IsScriptOverriden()

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

◆ IsServiceProvider()

◆ IsSitState()

◆ IsSpiritGuide()

bool Unit::IsSpiritGuide ( ) const
inline

◆ IsSpiritHealer()

bool Unit::IsSpiritHealer ( ) const
inline

Definition at line 1124 of file Unit.h.

References UNIT_NPC_FLAG_SPIRITHEALER.

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

◆ IsSpiritService()

◆ IsSplineEnabled()

bool Unit::IsSplineEnabled ( ) const

◆ IsStandState()

◆ IsStopped()

bool Unit::IsStopped ( ) const
inline

Definition at line 1687 of file Unit.h.

References UNIT_STATE_MOVING.

Referenced by SetFacingTo(), SetFacingToObject(), and SimpleCharmedPlayerAI::UpdateAI().

◆ IsSummon()

◆ IsTabardDesigner()

bool Unit::IsTabardDesigner ( ) const
inline

◆ isTargetableForAttack()

◆ IsTaxi()

bool Unit::IsTaxi ( ) const
inline

Definition at line 1119 of file Unit.h.

References UNIT_NPC_FLAG_FLIGHTMASTER.

◆ IsThreatened()

bool Unit::IsThreatened ( ) const

Definition at line 8302 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 1165 of file Unit.h.

References IsThreatenedBy().

Referenced by IsThreatenedBy().

◆ IsTotem()

◆ IsTrainer()

◆ isTurning()

bool Unit::isTurning ( ) const
inline

Definition at line 1776 of file Unit.h.

References MOVEMENTFLAG_MASK_TURNING.

◆ IsUnderLastManaUseEffect()

bool Unit::IsUnderLastManaUseEffect ( ) const

Definition at line 10822 of file Unit.cpp.

References GameTime::GetGameTimeMS(), getMSTimeDiff(), and m_lastManaUse.

Referenced by Player::GetPowerRegen(), and Creature::Regenerate().

◆ IsUnderWater()

bool Unit::IsUnderWater ( ) const

Definition at line 3190 of file Unit.cpp.

References WorldObject::GetLiquidStatus(), and LIQUID_MAP_UNDER_WATER.

Referenced by Creature::setDeathState().

◆ IsVehicle()

bool Unit::IsVehicle ( ) const
inline

Definition at line 901 of file Unit.h.

References UNIT_MASK_VEHICLE.

Referenced by Creature::AddToWorld(), ApplyResilience(), CanApplyResilience(), CleanupBeforeRemoveFromMap(), Map::CreatureRelocation(), DealDamage(), DealMeleeDamage(), HomeMovementGenerator< T >::DoFinalize(), Spell::EffectSummonType(), 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(), BattlegroundIC::HandleKillUnit(), WorldSession::HandlePetActionHelper(), spell_zuldrak_gymers_throw::HandleScript(), spell_putricide_mutated_transformation::HandleSummon(), TempSummon::InitStats(), 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(), OutDebugInfo(), VehicleAI::Permissible(), Map::PlayerRelocation(), RemoveCharmedBy(), RemoveFromWorld(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), Creature::SetLootRecipient(), GameObject::SetLootRecipient(), boss_ioc_horde_alliance::SpellHit(), Player::StopCastingCharm(), UpdateCharmAI(), Creature::UpdateEntry(), UpdateHeight(), and UpdateOrientation().

◆ IsVendor()

◆ IsVisible()

◆ IsWalking()

◆ IsWithinCombatRange()

◆ IsWithinMeleeRange()

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

Definition at line 858 of file Unit.h.

Referenced by boss_supremus::CalculateHatefulStrikeTarget(), boss_thaddius::CanAIAttack(), PetAI::CanAttack(), UnitAI::DoMeleeAttackIfReady(), boss_malchezaar::boss_malchezaarAI::DoMeleeAttacksIfReady(), boss_nexusprince_shaffar::ExecuteEvent(), 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(), SimpleCharmedPlayerAI::SelectAppropriateCastForSpec(), Player::Update(), boss_ragnaros::UpdateAI(), npc_sinster_reflection::npc_sinster_reflectionAI::UpdateAI(), boss_venoxis::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(), boss_alar::UpdateAI(), PetAI::UpdateAI(), and npc_scarlet_ghoul::UpdateAI().

◆ IsWithinMeleeRangeAt()

bool Unit::IsWithinMeleeRangeAt ( Position const &  pos,
Unit const *  obj 
) const

◆ JumpTo() [1/2]

void Unit::JumpTo ( float  speedXY,
float  speedZ,
bool  forward = true,
Optional< Position >  dest = {} 
)

◆ JumpTo() [2/2]

void Unit::JumpTo ( WorldObject *  obj,
float  speedZ,
bool  withOrientation = false 
)

◆ Kill()

void Unit::Kill ( Unit *  attacker,
Unit *  victim,
bool  durabilityLoss = true 
)
static
Todo:
do instance binding anyway if the charmer/owner is offline

Definition at line 10901 of file Unit.cpp.

References ACHIEVEMENT_CRITERIA_TYPE_GET_KILLING_BLOWS, ACHIEVEMENT_CRITERIA_TYPE_KILLED_BY_CREATURE, ACHIEVEMENT_CRITERIA_TYPE_KILLED_BY_PLAYER, Creature::AI(), Creature::AllLootRemovedFromCorpse(), ASSERT_NODEBUGINFO, Group::BroadcastPacket(), WorldObject::CastSpell(), Loot::clear(), CONFIG_DURABILITY_LOSS_IN_PVP, CREATURE_FLAG_EXTRA_INSTANCE_BIND, DUEL_INTERRUPTED, Loot::empty(), Loot::FillLoot(), ObjectAccessor::FindPlayer(), CreatureTemplate::flags_extra, Loot::generateMoneyLoot(), GetAuraEffect(), Player::GetBattleground(), WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), Creature::GetCreatureTemplate(), Pet::GetDebugInfo(), Object::GetEntry(), GameTime::GetGameTime(), Player::GetGroup(), Object::GetGUID(), GetHealth(), WorldObject::GetInstanceId(), Group::GetLooterGuid(), Creature::GetLootMode(), Creature::GetLootRecipient(), Creature::GetLootRecipientGroup(), WorldObject::GetMap(), Group::GetMemberGroup(), Player::GetOutdoorPvP(), WorldObject::GetOwner(), GetOwnerGUID(), Player::GetPet(), Player::GetResurrectionSpellId(), Player::GetTeam(), Object::GetTypeId(), Object::GetUInt32Value(), WorldObject::GetZoneId(), HOUR, Player::InBattleground(), IsAIEnabled(), IsAlive(), Pet::isControlled(), IsCritter(), Creature::IsDamageEnoughForLootingAndReward(), Map::IsDungeon(), ObjectGuid::IsEmpty(), WorldObject::IsInMap(), Loot::isLooted(), IsPet(), ObjectGuid::IsPlayer(), Map::IsRaidOrHeroicDungeon(), IsTotem(), JUST_DIED, CreatureAI::KilledUnit(), Creature::loot, CreatureTemplate::lootid, LootTemplates_Creature, CreatureTemplate::maxgold, CreatureTemplate::mingold, InstanceMap::PermBindAllPlayers(), PLAYER_SELF_RES_SPELL, PROC_FLAG_DEATH, PROC_FLAG_KILL, PROC_FLAG_KILLED, PROC_FLAG_NONE, PROC_HIT_NONE, PROC_SPELL_PHASE_NONE, PROC_SPELL_TYPE_MASK_ALL, ProcSkillsAndAuras(), RATE_DURABILITY_LOSS_ON_DEATH, RemoveAllAurasOnDeath(), Player::RewardPlayerAndGroupAtKill(), sBattlefieldMgr, Player::SendDirectMessage(), Group::SendLooter(), Player::SendMessageToSet(), setDeathState(), Object::SetDynamicFlag(), Creature::SetLootRecipient(), Object::SetUInt32Value(), sInstanceSaveMgr, SMSG_LOOT_LIST, SMSG_PARTYKILLLOG, SPELL_AURA_DUMMY, SPELLFAMILY_PRIEST, sScriptMgr, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, Object::ToCreature(), Map::ToInstanceMap(), Object::ToPlayer(), ToTempSummon(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_DYNFLAG_LOOTABLE, Player::UpdateAchievementCriteria(), and Group::UpdateLooterGuid().

Referenced by DealDamage(), 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()

◆ KnockbackFrom()

◆ MeleeDamageBonusDone()

uint32 Unit::MeleeDamageBonusDone ( Unit *  pVictim,
uint32  damage,
WeaponAttackType  attType,
SpellInfo const *  spellProto = nullptr,
SpellSchoolMask  damageSchoolMask = SPELL_SCHOOL_MASK_NORMAL 
)

◆ MeleeDamageBonusTaken()

◆ MeleeSpellHitResult()

◆ MeleeSpellMissChance()

◆ ModifyAuraState()

◆ ModifyHealth()

◆ ModifyPower()

◆ MonsterMoveWithSpeed()

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

◆ Mount()

◆ NearTeleportTo() [1/2]

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

Definition at line 1214 of file Unit.h.

References NearTeleportTo().

Referenced by NearTeleportTo().

◆ NearTeleportTo() [2/2]

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

◆ OutDebugInfo()

◆ PauseMovement()

◆ PeakFirstPendingMovementChange()

PlayerMovementPendingChange & Unit::PeakFirstPendingMovementChange ( )

Definition at line 12924 of file Unit.cpp.

References m_pendingMovementChanges.

Referenced by WorldSession::HandleForceSpeedChangeAck().

◆ PopAI()

◆ PopPendingMovementChange()

PlayerMovementPendingChange Unit::PopPendingMovementChange ( )

Definition at line 12929 of file Unit.cpp.

References m_pendingMovementChanges.

Referenced by WorldSession::HandleForceSpeedChangeAck().

◆ ProcessPositionDataChanged()

void Unit::ProcessPositionDataChanged ( PositionFullTerrainStatus const &  data)
overrideprotectedvirtual

◆ ProcessTerrainStatusUpdate()

◆ ProcSkillsAndAuras()

◆ ProcSkillsAndReactives()

◆ PropagateSpeedChange()

void Unit::PropagateSpeedChange ( )

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

Definition at line 10279 of file Unit.cpp.

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

Referenced by SetSpeedRateReal().

◆ PurgeAndApplyPendingMovementChanges()

◆ PushAI()

void Unit::PushAI ( UnitAI *  newAI)

◆ PushPendingMovementChange()

void Unit::PushPendingMovementChange ( PlayerMovementPendingChange  newChange)

Definition at line 12936 of file Unit.cpp.

References m_pendingMovementChanges.

Referenced by MovementPacketSender::SendSpeedChangeToMover().

◆ RecalculateObjectScale()

◆ RefreshAI()

void Unit::RefreshAI ( )
protected

Definition at line 9523 of file Unit.cpp.

References ASSERT, i_AI, i_AIs, and m_aiLocked.

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

◆ RemoveAllAttackers()

◆ RemoveAllAuras()

void Unit::RemoveAllAuras ( )

Definition at line 4180 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_thekal::DamageTaken(), npc_zealot_lorkhan::DamageTaken(), npc_zealot_zath::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(), boss_razorgore::DoChangePhase(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DoNice(), GuardAI::EnterEvadeMode(), EscortAI::EnterEvadeMode(), hyjalAI::EnterEvadeMode(), npc_rocket_propelled_warhead::FinishQuest(), spell_icecrown_plant_battle_standard::HandleDummy(), misc_commandscript::HandleUnAuraCommand(), boss_venoxis::JustDied(), npc_gunship::npc_gunshipAI::JustDied(), boss_freya::boss_freyaAI::JustDied(), boss_urom::LeaveCombat(), npc_melee_hover_disk::PassengerBoarded(), npc_caster_hover_disk::PassengerBoarded(), spell_pursuing_spikes::PeriodicTick(), Creature::RemoveCorpse(), npc_koltira_deathweaver::Reset(), boss_venoxis::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_sara::boss_saraAI::Reset(), npc_yogg_saron_keeper::npc_yogg_saron_keeperAI::Reset(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), Pet::SavePetToDB(), npc_twilight_eggs::SpawnWhelps(), npc_harrison_jones::npc_harrison_jonesAI::SpellHit(), npc_felblood_kaelthas_phoenix::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), boss_kalecgos::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()

void Unit::RemoveAllAurasOnDeath ( )

◆ RemoveAllAurasRequiringDeadTarget()

void Unit::RemoveAllAurasRequiringDeadTarget ( )

◆ RemoveAllControlled()

◆ RemoveAllDynObjects()

void Unit::RemoveAllDynObjects ( )

Definition at line 5094 of file Unit.cpp.

References m_dynObj.

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

◆ RemoveAllFollowers()

void Unit::RemoveAllFollowers ( )

Definition at line 8657 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 4337 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]

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

◆ RemoveAppliedAuras() [2/2]

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

Definition at line 3760 of file Unit.cpp.

References m_appliedAuras, and RemoveAura().

◆ RemoveAreaAurasDueToLeaveWorld()

void Unit::RemoveAreaAurasDueToLeaveWorld ( )

◆ 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 3661 of file Unit.cpp.

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

Referenced by _EnterVehicle(), 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_valanar_kinetic_bomb_aura::HandleDummyTick(), spell_warl_demonic_circle_summon::HandleDummyTick(), spell_dk_improved_blood_presence::HandleEffectRemove(), spell_dk_improved_frost_presence::HandleEffectRemove(), spell_dk_improved_unholy_presence::HandleEffectRemove(), spell_dk_presence::HandleEffectRemove(), spell_pal_blessing_of_sanctuary::HandleEffectRemove(), spell_sha_chain_heal::HandleHeal(), spell_sindragosa_frost_breath::HandleInfusion(), spell_gen_blood_reserve::HandleProc(), spell_warl_demonic_circle_summon::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_zulian_prowler::JustEngagedWith(), ModifyAuraState(), spell_brewfest_ram_fatigue::OnApply(), spell_brewfest_apple_trap::OnApply(), spell_blood_queen_vampiric_bite::OnCast(), spell_brewfest_giddyup::OnChange(), spell_love_is_in_the_air_romantic_picnic::OnPeriodic(), spell_fetch_ingredient_aura::OnRemove(), spell_dk_raise_ally::spell_dk_raise_ally_AuraScript::OnRemove(), BattlefieldWG::PromotePlayer(), RemoveAppliedAuras(), RemoveAppliedAuras(), RemoveAreaAurasDueToLeaveWorld(), RemoveAura(), RemoveAura(), RemoveAura(), RemoveAurasByShapeShift(), RemoveAurasByType(), RemoveAurasByType(), RemoveAurasDueToItemSpell(), RemoveAurasDueToSpell(), RemoveAurasWithAttribute(), RemoveAurasWithFamily(), RemoveAurasWithInterruptFlags(), spell_zuldrak_scourge_disguise::RemoveEffect(), Player::RemoveGhoul(), BattlegroundIC::RemovePlayer(), boss_pyroguard_emberseer::Reset(), boss_victor_nefarius::Reset(), boss_paletress::boss_paletressAI::SetData(), boss_pyroguard_emberseer::SpellHit(), boss_viscidus::boss_viscidusAI::SpellHit(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), boss_gyth::UpdateAI(), boss_pyroguard_emberseer::UpdateAI(), boss_kirtonos_the_herald::UpdateAI(), npc_harrison_jones::npc_harrison_jonesAI::UpdateAI(), boss_arlokk::UpdateAI(), boss_marli::UpdateAI(), boss_thaddius::UpdateAI(), npc_barada::npc_baradaAI::UpdateAI(), player_ghoulAI::UpdateAI(), npc_portal_eoe::UpdateAI(), npc_iron_construct::npc_iron_constructAI::UpdateAI(), and Spell::UpdateChanneledTargetList().

◆ RemoveAura() [4/4]

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

Definition at line 3674 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 3788 of file Unit.cpp.

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

Referenced by _EnterVehicle(), VehicleJoinEvent::Abort(), Player::ActivateTaxiPathTo(), Battleground::AddPlayer(), SpellInfo::ApplyAllSpellImmunitiesTo(), spell_rog_vanish::ApplyStealth(), Attack(), spell_gen_summon_tournament_mount::CheckIfLanceEquiped(), ClearComboPoints(), Spell::EffectTriggerSpell(), Battleground::EndBattleground(), VehicleJoinEvent::Execute(), ExitVehicle(), WorldSession::HandleAuctionHelloOpcode(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionListItems(), WorldSession::HandleAuctionListOwnerItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraMounted(), AuraEffect::HandleAuraTransform(), WorldSession::HandleBankerActivateOpcode(), WorldSession::HandleBinderActivateOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleBuyStableSlot(), WorldSession::HandleCancelGrowthAuraOpcode(), WorldSession::HandleCancelMountAuraOpcode(), misc_commandscript::HandleDismountCommand(), spell_brewfest_mount_transformation::HandleDummy(), spell_winter_veil_reindeer_transformation::HandleDummy(), spell_warl_seduction::HandleDummy(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandleMoveWorldportAck(), spell_algalon_remove_phase::HandlePeriodic(), WorldSession::HandlePetitionBuyOpcode(), spell_mage_glyph_of_polymorph::HandleProc(), spell_mage_glyph_of_icy_veins::HandleProc(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleRequestStabledPets(), WorldSession::HandleSaveGuildEmblemOpcode(), spell_jormungars_burning_bile::HandleScriptEffect(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSpiritHealerActivateOpcode(), WorldSession::HandleStablePet(), WorldSession::HandleStableSwapPet(), WorldSession::HandleTabardVendorActivateOpcode(), WorldSession::HandleTalentWipeConfirmOpcode(), WorldSession::HandleTaxiQueryAvailableNodes(), WorldSession::HandleTrainerBuySpellOpcode(), WorldSession::HandleUnstablePet(), WorldSession::LogoutPlayer(), Vehicle::RemoveAllPassengers(), RemoveBindSightAuras(), boss_faction_championsAI::RemoveCC(), RemoveCharmAuras(), Battleground::RemovePlayerAtLeave(), WorldSession::SendDoFlight(), WorldSession::SendListInventory(), WorldSession::SendTrainerList(), SetCharmedBy(), npc_gothik_minion_baseAI::UpdateAI(), and GameObject::Use().

◆ RemoveAurasDueToItemSpell()

void Unit::RemoveAurasDueToItemSpell ( uint32  spellId,
ObjectGuid  castItemGuid 
)

Definition at line 3952 of file Unit.cpp.

References m_appliedAuras, and RemoveAura().

Referenced by Player::ApplyEnchantment(), and Player::ApplyEquipSpell().

◆ RemoveAurasDueToSpell()

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

Definition at line 3807 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_capacitus_polarity_charge_periodic::AfterRemove(), spell_bem_apexis_swiftness::AfterRemove(), spell_shadowmoon_illidari_agent_illusion::AfterRemove(), spell_terokkar_shadowy_disguise::AfterRemove(), spell_dk_lichborne::AfterRemove(), spell_dru_nurturing_instinct::AfterRemove(), spell_dru_savage_roar_aura::AfterRemove(), spell_dru_survival_instincts_aura::AfterRemove(), spell_item_thrallmar_and_honor_hold_favor::AfterRemove(), spell_pri_dispersion::AfterRemove(), Player::ApplyEquipSpell(), Player::ApplyItemObtainSpells(), boss_supremus::ChangePhase(), Player::CheckTitanGripPenalty(), AuraEffect::CleanupTriggeredSpells(), npc_kerlonian::npc_kerlonianAI::ClearSleeping(), boss_jeklik::DamageTaken(), 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_felblood_kaelthas::DamageTaken(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::DestroyIceWall(), npc_barnes::DoAction(), npc_stone_keeper::DoAction(), npc_fire_bomb_zulaman::DoAction(), npc_zuljin_spirit::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_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_ambassador_hellmaw::DoIntro(), InstanceScript::DoRemoveAurasDueToSpellOnPlayer(), Spell::DoTriggersOnSpellHit(), Spell::EffectApplyGlyph(), Spell::EffectHeal(), Spell::EffectRemoveAura(), Spell::EffectSchoolDMG(), boss_jormungarAI::Emerge(), boss_felmyst::EnterPhase(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundEY::EventPlayerCapturedFlag(), BattlegroundWS::EventPlayerDroppedFlag(), BattlegroundEY::EventPlayerDroppedFlag(), npc_unworthy_initiate::npc_unworthy_initiateAI::EventStart(), BattleExperienceEvent::Execute(), FrostBombExplosion::Execute(), ValithriaAuraRemoveEvent::Execute(), boss_terestian_illhoof::boss_terestianAI::ExecuteEvent(), lfg::LFGMgr::FinishDungeon(), spell_capacitus_polarity_charge_damage::HandleAfterCast(), spell_item_disco_ball_listening_to_music_check::HandleAfterCast(), spell_illidan_remove_parasitic_shadowfiend::HandleApply(), OutdoorPvPSI::HandleAreaTrigger(), BattlegroundDS::HandleAreaTrigger(), spell_mimiron_proximity_explosion::spell_mimiron_proximity_explosion_SpellScript::HandleAura(), AuraEffect::HandleAuraControlVehicle(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModShapeshift(), Aura::HandleAuraSpecificMods(), spell_dk_frost_fever::HandleDispel(), spell_putricide_choking_gas_filter::HandleDispel(), 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_capacitus_polarity_shift::HandleDummy(), spell_dru_starfall_dummy::HandleDummy(), spell_item_hourglass_sand::HandleDummy(), spell_mistress_kiss::HandleDummyTick(), spell_zuldrak_quenching_mist::HandleEffectPeriodic(), spell_rog_prey_on_the_weak::HandleEffectPeriodic(), boss_felmyst::HandleFlightSequence(), gm_commandscript::HandleGMVisibleCommand(), OPvPCapturePointZM_Graveyard::HandleOpenGo(), spell_algalon_phase_punch::HandlePeriodic(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), OutdoorPvPEP::HandlePlayerLeaveZone(), OutdoorPvPHP::HandlePlayerLeaveZone(), OutdoorPvPNA::HandlePlayerLeaveZone(), OutdoorPvPSI::HandlePlayerLeaveZone(), OutdoorPvPTF::HandlePlayerLeaveZone(), OutdoorPvPZM::HandlePlayerLeaveZone(), spell_eredar_twins_dark_flame_aura_shadow::HandleProc(), spell_eredar_twins_dark_flame_aura_fire::HandleProc(), spell_item_anger_capacitor< StackAmount >::spell_item_anger_capacitor_AuraScript< Stacks >::HandleProc(), spell_item_trinket_stack::spell_item_trinket_stack_AuraScript::HandleProc(), 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_dru_enrage::HandleRemove(), spell_gen_burning_depths_necrolyte_image::HandleRemove(), spell_pal_avenging_wrath::HandleRemove(), spell_rog_killing_spree::spell_rog_killing_spree_AuraScript::HandleRemove(), spell_warr_vigilance::HandleRemove(), WorldSession::HandleRemoveGlyph(), spell_pilgrims_bounty_well_fed::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_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_deliver_stolen_horse::HandleScriptEffect(), spell_ethereal_pet_aura_remove::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), npc_headless_horseman_head::HandleStartPhase(), misc_commandscript::HandleUnAuraCommand(), misc_commandscript::HandleUnFreezeCommand(), boss_valithria_dreamwalker::HealReceived(), npc_underbog_mushroom::InitializeAI(), dummy_dragonAI::JustDied(), npc_acolyte_of_vesperon::JustDied(), npc_gunship::npc_gunshipAI::JustDied(), npc_frostwing_ymirjar_vrykul::JustDied(), boss_high_astromancer_solarian::JustDied(), npc_pure_energy::JustDied(), npc_inner_demon::JustDied(), npc_slad_ran_constrictor::JustEngagedWith(), npc_angered_soul_fragment::JustEngagedWith(), boss_jeklik::JustEngagedWith(), boss_kelris::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(), npc_anubarak_spike::MoveInLineOfSight(), boss_general_bjarngrim::MovementInform(), boss_headless_horseman::MovementInform(), boss_garfrost::MovementInform(), npc_ball_of_flame::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(), 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(), npc_eye_of_acherus::OnCharmed(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::OnGossipHello(), npc_essence_of_twin::OnGossipHello(), lfg::LFGPlayerScript::OnMapChanged(), spell_love_is_in_the_air_romantic_picnic::OnPeriodic(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), spell_illidan_demon_transform2::OnPeriodic(), spell_kaelthas_gaining_power::OnPeriodic(), BattlefieldWG::OnPlayerLeaveWar(), BattlefieldWG::OnPlayerLeaveZone(), spell_kalecgos_spectral_realm_aura::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(), spell_dru_barkskin::OnRemove(), spell_gen_damage_reduction_aura::OnRemove(), spell_gen_vehicle_control_link::OnRemove(), spell_hun_aspect_of_the_beast::OnRemove(), spell_hun_ascpect_of_the_viper::OnRemove(), spell_hun_viper_attack_speed::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_mage_combustion_proc::OnRemove(), spell_mage_fingers_of_frost::OnRemove(), spell_pilgrims_bounty_a_serving_of::OnRemove(), spell_wintergrasp_tenacity_refresh::OnRemove(), item_tainted_core::OnRemove(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), npc_descend_into_madness::npc_descend_into_madnessAI::OnSpellClick(), boss_hodir::OnSpellStart(), spell_exploding_orb_hasty_grow::OnStackChange(), spell_item_shadowmourne_soul_fragment::OnStackChange(), npc_constrictor_tentacle::npc_constrictor_tentacleAI::PassengerBoarded(), npc_tournament_mount::npc_tournament_mountAI::PassengerBoarded(), spell_rog_overkill_mos< RemoveSpellId >::PeriodicTick(), spell_hun_feeding_frenzy::PeriodicTick(), ProcessTerrainStatusUpdate(), spell_gen_defend::RefreshVisualShields(), spell_teron_gorefiend_shadow_of_death_remove::RemoveAuras(), BattlefieldWG::RemoveAurasFromPlayer(), boss_festergut::RemoveBlight(), spell_warl_health_funnel::RemoveEffect(), RemoveGameObjectImpl(), boss_najentus::RemoveImpalingSpine(), spell_shirrak_inhibit_magic::RemoveOldAura(), spell_mage_frostfire_bolt::RemovePermafrost(), BattlegroundAV::RemovePlayer(), boss_prince_taldaram::RemovePrison(), boss_keristrasza::RemovePrison(), Player::RemoveSpell(), Pet::removeSpell(), spell_gen_defend::RemoveVisualShields(), boss_baroness_anastari::Reset(), boss_thekal::Reset(), npc_zealot_lorkhan::Reset(), npc_zealot_zath::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(), Player::SendQuestUpdate(), OPvPCapturePointZM_Graveyard::SetBeaconState(), boss_thekal::SetData(), npc_sir_thomas::SpellHit(), npc_zuljin_spirit::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_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(), Player::SummonPet(), boss_netherspite::boss_netherspiteAI::SwitchToBanishPhase(), boss_netherspite::boss_netherspiteAI::SwitchToPortalPhase(), Totem::UnSummon(), 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(), 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_baroness_anastari::UpdateAI(), npc_madrigosa::UpdateAI(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::UpdateAI(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), boss_zuljin::UpdateAI(), boss_thekal::UpdateAI(), npc_medivh_bm::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_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_ioc_horde_alliance::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(), boss_taerar::boss_taerarAI::UpdateAI(), npc_crok_scourgebane::UpdateEscortAI(), boss_archaedas::UpdateOutOfCombatEvents(), boss_vazruden_the_herald::UpdateSpecialEvents(), npc_earthen_ring_flamecaller::WaypointPathEnded(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached(), and npc_rizzle_sprysprocket::WaypointStarted().

◆ RemoveAurasDueToSpellByDispel()

void Unit::RemoveAurasDueToSpellByDispel ( uint32  spellId,
uint32  dispellerSpellId,
ObjectGuid  casterGUID,
WorldObject *  dispeller,
uint8  chargesRemoved = 1 
)

◆ RemoveAurasDueToSpellBySteal()

◆ RemoveAurasOnEvade()

◆ RemoveAurasWithAttribute()

void Unit::RemoveAurasWithAttribute ( SpellAttr0  flags)

◆ RemoveAurasWithFamily()

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

◆ RemoveAurasWithInterruptFlags()

◆ RemoveAurasWithMechanic()

◆ RemoveBindSightAuras()

void Unit::RemoveBindSightAuras ( )

Definition at line 6319 of file Unit.cpp.

References RemoveAurasByType(), and SPELL_AURA_BIND_SIGHT.

Referenced by RemoveFromWorld().

◆ RemoveCharmAuras()

◆ RemoveCharmedBy()

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

Definition at line 11637 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(), Object::GetGUID(), Object::GetGUID(), GetMotionMaster(), Object::GetTypeId(), HasUnitState(), MotionMaster::InitializeDefault(), IsCharmed(), IsGuardian(), IsOnVehicle(), Object::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(), 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 CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadResetScript().

◆ RemoveComboPointHolder()

void Unit::RemoveComboPointHolder ( Unit *  unit)
inline

Definition at line 1721 of file Unit.h.

Referenced by AddComboPoints(), and ClearComboPoints().

◆ RemoveDynObject()

◆ RemoveExtraUnitMovementFlag()

void Unit::RemoveExtraUnitMovementFlag ( uint32  f)
inline

Definition at line 1699 of file Unit.h.

◆ RemoveFromWorld()

◆ RemoveGameObject() [1/2]

◆ RemoveGameObject() [2/2]

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

Definition at line 5171 of file Unit.cpp.

References m_gameObj, and RemoveGameObjectImpl().

◆ RemoveGameObjectImpl()

◆ RemoveMovementImpairingAuras()

◆ RemoveNotOwnSingleTargetAuras()

◆ RemoveNpcFlag()

void Unit::RemoveNpcFlag ( NPCFlags  flags)
inline

Definition at line 1112 of file Unit.h.

References flags, and UNIT_NPC_FLAGS.

Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), boss_victor_nefarius::BeginEvent(), boss_vaelastrasz::BeginSpeech(), npc_thalorien_dawnseeker::DoAction(), npc_high_overlord_saurfang_icc::DoAction(), npc_muradin_bronzebeard_icc::DoAction(), npc_akama_illidan::DoAction(), VehicleJoinEvent::Execute(), spell_deliver_stolen_horse::HandleScriptEffect(), npc_medivh_bm::JustAppeared(), npc_thassarian::JustAppeared(), npc_millhouse_manastorm::JustAppeared(), npc_akama_illidan::JustSummoned(), npc_wyrmrest_defender::OnCharmed(), instance_stratholme::instance_stratholme_InstanceMapScript::OnCreatureCreate(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnCreatureCreate(), npc_tirion_fordring_tft::OnGossipSelect(), npc_high_overlord_saurfang_igb::OnGossipSelect(), npc_muradin_bronzebeard_igb::OnGossipSelect(), boss_apothecary_hummel::OnGossipSelect(), npc_harrison_jones::npc_harrison_jonesAI::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(), npc_zulaman_hostage::npc_zulaman_hostageAI::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_calvin_montague::npc_calvin_montagueAI::OnQuestAccept(), boss_flame_leviathan_overload_device::boss_flame_leviathan_overload_deviceAI::OnSpellClick(), RemoveVehicleKit(), boss_doomrel::boss_doomrelAI::Reset(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), npc_sir_thomas::Reset(), npc_morridune::Reset(), npc_rizzle_sprysprocket::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(), 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_andorov::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().

◆ 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,
uint8  reqEffMask = 0,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3605 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 3747 of file Unit.cpp.

References m_ownedAuras, and RemoveOwnedAura().

Referenced by _RemoveNoStackAurasDueToAura().

◆ RemoveOwnedAuras() [2/2]

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

Definition at line 3774 of file Unit.cpp.

References m_ownedAuras, and RemoveOwnedAura().

◆ RemovePetFlag()

void Unit::RemovePetFlag ( UnitPetFlag  flags)
inline

Definition at line 1009 of file Unit.h.

References flags, UNIT_BYTES_2_OFFSET_PET_FLAGS, and UNIT_FIELD_BYTES_2.

Referenced by WorldSession::HandlePetRename().

◆ RemovePlayerFromVision()

void Unit::RemovePlayerFromVision ( Player *  player)

◆ RemovePvpFlag()

◆ RemoveUnitFlag()

void Unit::RemoveUnitFlag ( UnitFlags  flags)
inline

Definition at line 969 of file Unit.h.

References flags, and UNIT_FIELD_FLAGS.

Referenced by AggroAllPlayers(), npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), boss_kologarn::boss_kologarnAI::boss_kologarnAI(), boss_vaelastrasz::boss_vaelastrasz(), Player::BuildPlayerRepop(), Player::CleanupAfterTaxiFlight(), Dismount(), boss_xt002::DisposeHeart(), boss_nightbane::boss_nightbaneAI::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_razorscale::DoAction(), npc_expedition_trapper::DoAction(), npc_expedition_engineer::DoAction(), HomeMovementGenerator< T >::DoFinalize(), ConfusedMovementGenerator< T >::DoFinalize(), FlightPathMovementGenerator::DoFinalize(), ConfusedMovementGenerator< T >::DoFinalize(), FleeingMovementGenerator< T >::DoFinalize(), WorldSession::DoLootRelease(), Spell::EffectResurrectPet(), Spell::EffectSkinning(), 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::HandleAuraModSilence(), spell_palehoof_awaken_gortok::HandleDummy(), spell_maiev_down::HandleEffectRemove(), AuraEffect::HandleFeignDeath(), WorldSession::HandleLogoutCancelOpcode(), AuraEffect::HandleModUnattackable(), spell_ichoron_drained::HandleRemove(), PetAI::HandleReturnMovement(), spell_palehoof_awaken_subboss::HandleScript(), spell_sholazar_freya_dummy::HandleScript(), npc_headless_horseman_head::HandleStartPhase(), Player::InitStatsForLevel(), boss_julianne::JustDied(), boss_romulo::JustDied(), boss_apothecary_hummel::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_prince_valanar_icc::JustSummoned(), boss_ignis::boss_ignis_AI::JustSummoned(), npc_snobold_vassal::MountOnBoss(), boss_shade_of_akama::MovementInform(), boss_selin_fireheart::MovementInform(), npc_valkyr_shadowguard::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), boss_jedoga_shadowseeker::MovementInform(), npc_expedition_defender::MovementInform(), boss_flame_leviathan::boss_flame_leviathanAI::MovementInform(), npc_giant_infernal::npc_giant_infernalAI::npc_giant_infernalAI(), npc_pool_of_tar::npc_pool_of_tarAI::npc_pool_of_tarAI(), 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_no_dyn_flag::OnRemove(), spell_gen_prevent_emotes::OnRemove(), npc_melee_hover_disk::PassengerBoarded(), RemoveAllControlled(), RemoveCharmedBy(), Vehicle::RemovePassenger(), boss_prince_taldaram::RemovePrison(), boss_ragnaros::Reset(), npc_curator_astral_flare::npc_curator_astral_flareAI::Reset(), boss_scarlet_commander_mograine::Reset(), boss_thekal::Reset(), npc_zealot_lorkhan::Reset(), npc_zealot_zath::Reset(), boss_eye_of_cthun::eye_of_cthunAI::Reset(), boss_volazj::Reset(), boss_anub_arak::Reset(), dummy_dragonAI::Reset(), boss_general_zarithrian::Reset(), boss_anubarak_trial::Reset(), npc_infernal_volcano::Reset(), npc_nether_portal::Reset(), boss_professor_putricide::Reset(), boss_noth::Reset(), boss_malygos::Reset(), boss_magus_telestra::Reset(), boss_ionar::Reset(), boss_kologarn::boss_kologarnAI::Reset(), boss_mimiron::boss_mimironAI::Reset(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::Reset(), boss_ingvar_the_plunderer::Reset(), ControllerBaseAI::Reset(), npc_venture_co_straggler::Reset(), boss_leotheras_the_blind::Reset(), npc_barada::npc_baradaAI::Reset(), emerald_dragonAI::Reset(), npc_doctor::npc_doctorAI::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), boss_novos::SetBubbled(), SetCharm(), setDeathState(), Pet::setDeathState(), SetImmuneToAll(), SetImmuneToNPC(), SetImmuneToPC(), SetStunned(), Battlefield::ShowNpc(), boss_pyroguard_emberseer::SpellHit(), npc_sir_thomas::SpellHit(), boss_scarlet_commander_mograine::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), boss_ahune::SpellHit(), npc_infernal_attacker::npc_infernal_attackerAI::SpellHit(), npc_ichor_globule::SpellHit(), npc_nether_drake::npc_nether_drakeAI::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), npc_clintar_spirit::npc_clintar_spiritAI::StartEvent(), boss_thaddius::Transition(), boss_ragnaros::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), npc_felblood_kaelthas_phoenix::UpdateAI(), npc_koltira_deathweaver::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), boss_arlokk::UpdateAI(), boss_renataki::UpdateAI(), boss_thekal::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), boss_ouro::boss_ouroAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), boss_volazj::UpdateAI(), boss_anubarak_trial::UpdateAI(), npc_nerubian_burrower::UpdateAI(), boss_tyrannus::UpdateAI(), boss_deathbringer_saurfang::UpdateAI(), boss_kelthuzad::UpdateAI(), boss_noth::UpdateAI(), boss_sapphiron::UpdateAI(), boss_malygos::UpdateAI(), boss_magus_telestra::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_feral_defender::UpdateAI(), npc_vrykul_skeleton::UpdateAI(), boss_svala::UpdateAI(), npc_thassarian::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_barada::npc_baradaAI::UpdateAI(), boss_taerar::boss_taerarAI::UpdateAI(), boss_ionar::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), boss_archaedas::UpdateOutOfCombatEvents(), boss_broggok::UpdateOutOfCombatEvents(), CombatManager::UpdateOwnerCombatState(), and UpdatePetCombatState().

◆ RemoveUnitFlag2()

◆ RemoveUnitMovementFlag()

void Unit::RemoveUnitMovementFlag ( uint32  f)
inline

◆ RemoveVehicleKit()

◆ RemoveVisFlag()

void Unit::RemoveVisFlag ( UnitVisFlags  flags)
inline

◆ RemoveVisibleAura()

void Unit::RemoveVisibleAura ( uint8  slot)

Definition at line 662 of file Unit.cpp.

References m_visibleAuras, and UpdateAuraForGroup().

Referenced by AuraApplication::_Remove().

◆ ReplaceAllDynamicFlags()

void Unit::ReplaceAllDynamicFlags ( uint32  flag)
inlineoverridevirtual

◆ ReplaceAllNpcFlags()

◆ ReplaceAllPetFlags()

void Unit::ReplaceAllPetFlags ( UnitPetFlag  flags)
inline

◆ ReplaceAllPvpFlags()

void Unit::ReplaceAllPvpFlags ( UnitPVPStateFlags  flags)
inline

◆ ReplaceAllUnitFlags()

◆ ReplaceAllUnitFlags2()

void Unit::ReplaceAllUnitFlags2 ( UnitFlags2  flags)
inline

Definition at line 976 of file Unit.h.

References flags, and UNIT_FIELD_FLAGS_2.

Referenced by Creature::UpdateEntry().

◆ ReplaceAllVisFlags()

void Unit::ReplaceAllVisFlags ( UnitVisFlags  flags)
inline

Definition at line 1022 of file Unit.h.

References flags, UNIT_BYTES_1_OFFSET_VIS_FLAG, and UNIT_FIELD_BYTES_1.

Referenced by Creature::LoadCreaturesAddon().

◆ resetAttackTimer()

◆ RestoreDisabledAI()

void Unit::RestoreDisabledAI ( )
private

Definition at line 9545 of file Unit.cpp.

References GetTopAI(), and PopAI().

Referenced by ScheduleAIChange(), and UpdateCharmAI().

◆ RestoreDisplayId()

◆ RestoreFaction()

◆ ResumeMovement()

void Unit::ResumeMovement ( uint32  timer = 0,
uint8  slot = 0 
)

Definition at line 10316 of file Unit.cpp.

References GetMotionMaster(), and IsInvalidMovementSlot().

Referenced by SmartAI::JustReachedHome(), and SmartAI::ResumePath().

◆ RewardRage()

void Unit::RewardRage ( uint32  damage,
uint32  weaponSpeedHitFactor,
bool  attacker 
)

◆ 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 13861 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 
)

◆ SendClearTarget()

void Unit::SendClearTarget ( )

◆ SendComboPoints()

◆ SendEnergizeSpellLog()

void Unit::SendEnergizeSpellLog ( Unit *  victim,
uint32  spellId,
int32  damage,
Powers  powerType 
)

Definition at line 6369 of file Unit.cpp.

References Object::GetPackGUID(), WorldObject::SendMessageToSet(), and SMSG_SPELLENERGIZELOG.

Referenced by EnergizeBySpell().

◆ SendFlightSplineSyncUpdate()

◆ SendHealSpellLog()

◆ SendMeleeAttackStart()

◆ SendMeleeAttackStop()

◆ SendMoveKnockBack()

void Unit::SendMoveKnockBack ( Player *  player,
float  speedXY,
float  speedZ,
float  vcos,
float  vsin 
)

Definition at line 12164 of file Unit.cpp.

References Object::GetPackGUID(), Player::SendDirectMessage(), and SMSG_MOVE_KNOCK_BACK.

Referenced by JumpTo(), and KnockbackFrom().

◆ SendPeriodicAuraLog()

◆ SendPetActionFeedback()

◆ SendPetActionSound()

◆ SendPetAIReaction()

◆ SendPetDismissSound()

◆ SendPlaySpellVisualKit()

◆ SendSpellDamageImmune()

void Unit::SendSpellDamageImmune ( Unit *  target,
uint32  spellId 
)

◆ SendSpellDamageResist()

void Unit::SendSpellDamageResist ( Unit *  target,
uint32  spellId 
)

◆ SendSpellNonMeleeDamageLog()

void Unit::SendSpellNonMeleeDamageLog ( SpellNonMeleeDamage const *  log)

Definition at line 5199 of file Unit.cpp.

References SpellNonMeleeDamage::absorb, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Absorbed, SpellNonMeleeDamage::attacker, SpellNonMeleeDamage::blocked, WorldPackets::CombatLog::SpellNonMeleeDamageLog::CasterGUID, SpellNonMeleeDamage::damage, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Damage, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Flags, Object::GetGUID(), Object::GetGUID(), GetHealth(), SpellNonMeleeDamage::HitInfo, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Me, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Overkill, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Periodic, SpellNonMeleeDamage::periodicLog, SpellNonMeleeDamage::resist, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Resisted, SpellNonMeleeDamage::schoolMask, WorldPackets::CombatLog::SpellNonMeleeDamageLog::SchoolMask, WorldObject::SendMessageToSet(), WorldPackets::CombatLog::SpellNonMeleeDamageLog::ShieldBlock, SpellNonMeleeDamage::SpellID, WorldPackets::CombatLog::SpellNonMeleeDamageLog::SpellID, SpellNonMeleeDamage::target, and WorldPackets::CombatLog::SpellNonMeleeDamageLog::Write().

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

◆ SendTeleportPacket()

◆ SetAI()

void Unit::SetAI ( UnitAI *  newAI)
protected

Definition at line 9506 of file Unit.cpp.

References PushAI(), and RefreshAI().

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

◆ 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

◆ SetAttackTime()

◆ setAttackTimer()

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

Definition at line 846 of file Unit.h.

Referenced by _UpdateAutoRepeatSpell(), Attack(), DealMeleeDamage(), Player::Update(), and Update().

◆ SetAuraStack()

void Unit::SetAuraStack ( uint32  spellId,
Unit *  target,
uint32  stack 
)

◆ SetBaseWeaponDamage()

void Unit::SetBaseWeaponDamage ( WeaponAttackType  attType,
WeaponDamageRange  damageRange,
float  value,
uint8  damageIndex = 0 
)
inline

◆ SetBoundingRadius()

void Unit::SetBoundingRadius ( float  boundingRadius)
inline

◆ SetCanDualWield()

virtual void Unit::SetCanDualWield ( bool  value)
inlinevirtual

Reimplemented in Creature.

Definition at line 852 of file Unit.h.

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

◆ SetCanFly()

bool Unit::SetCanFly ( bool  enable,
bool  packetOnly = false 
)

Definition at line 13349 of file Unit.cpp.

References AddUnitMovementFlag(), GameClient::GetBasePlayer(), GetGameClientMovingMe(), Object::GetGUID(), GetMovementCounterAndInc(), Position::GetPositionZ(), Object::GetTypeId(), HasUnitMovementFlag(), IsMovedByClient(), WorldObject::m_movementInfo, MOVEMENTFLAG_CAN_FLY, MOVEMENTFLAG_FALLING, MOVEMENTFLAG_MASK_MOVING_FLY, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, MSG_MOVE_UPDATE_CAN_FLY, RemoveUnitMovementFlag(), Player::SendDirectMessage(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, Player::SetFallInformation(), SMSG_MOVE_SET_CAN_FLY, SMSG_MOVE_UNSET_CAN_FLY, SMSG_SPLINE_MOVE_SET_FLYING, SMSG_SPLINE_MOVE_UNSET_FLYING, WorldPackets::Movement::MoveUpdate::Status, Object::ToPlayer(), TYPEID_PLAYER, WorldPackets::Movement::MoveUpdate::Write(), WorldPackets::Movement::MoveSplineSetFlag::Write(), and WorldPackets::Movement::MoveSetFlag::Write().

Referenced by boss_sindragosa::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), debug_commandscript::HandleDebugMoveflagsCommand(), boss_sindragosa::JustReachedHome(), KnockbackFrom(), boss_nefarian::MovementInform(), boss_onyxia::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_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(), boss_saviana_ragefire::UpdateAI(), boss_sindragosa::UpdateAI(), npc_rimefang_icc::UpdateAI(), boss_urom::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), and Creature::UpdateMovementFlags().

◆ SetCanModifyStats()

void Unit::SetCanModifyStats ( bool  modifyStats)
inline

◆ SetCantProc()

void Unit::SetCantProc ( bool  apply)

Definition at line 10749 of file Unit.cpp.

References ASSERT, and m_procDeep.

Referenced by TriggerAurasProcOnEvent().

◆ SetChannelObjectGuid()

◆ SetChannelSpellId()

void Unit::SetChannelSpellId ( uint32  channelSpellId)
inline

Definition at line 1472 of file Unit.h.

References UNIT_CHANNEL_SPELL.

Referenced by Player::LoadFromDB(), Spell::SendChannelStart(), and Spell::SendChannelUpdate().

◆ SetCharm()

◆ SetCharmedBy()

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

Definition at line 11460 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(), Object::GetGUID(), Object::GetGUID(), GetMotionMaster(), AuraApplication::GetRemoveMode(), WorldObject::GetTransport(), Object::GetTypeId(), GetVehicleKit(), MotionMaster::HasMovementGenerator(), CharmInfo::InitCharmCreateSpells(), InitCharmInfo(), MotionMaster::InitializeDefault(), CharmInfo::InitPossessCreateSpells(), Object::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(), 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(), spell_dk_raise_ally::spell_dk_raise_ally_SpellScript::HandleSummon(), and Puppet::InitSummon().

◆ SetClass()

◆ SetCombatReach()

◆ SetConfused()

◆ SetControlled()

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

Definition at line 11227 of file Unit.cpp.

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

Referenced by _EnterVehicle(), _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(), Creature::DoFleeToGetAssistance(), boss_jormungarAI::Emerge(), CritterAI::EnterEvadeMode(), VehicleJoinEvent::Execute(), boss_illidan_stormrage::ExecuteSpecialEvents(), AuraEffect::HandleAuraModRoot(), AuraEffect::HandleAuraModStun(), debug_commandscript::HandleDebugMoveflagsCommand(), AuraEffect::HandleModConfuse(), AuraEffect::HandleModFear(), AuraEffect::HandlePreventFleeing(), CritterAI::JustEngagedWith(), boss_ignis::boss_ignis_AI::JustSummoned(), Creature::LoadTemplateRoot(), 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(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::OnPlayerLeave(), spell_skadi_ride_vehicle::OnRemoveVehicle(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::OnUnitDeath(), npc_gunship_cannon::PassengerBoarded(), boss_thekal::Reset(), 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(), boss_ionar::SpellHit(), boss_volazj::SpellHitTarget(), boss_jormungarAI::Submerge(), boss_thekal::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(), and boss_ionar::UpdateAI().

◆ 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 
)
inline

◆ SetCreatorGUID()

◆ SetCritterGUID()

void Unit::SetCritterGUID ( ObjectGuid  guid)
inline

Definition at line 1263 of file Unit.h.

References UNIT_FIELD_CRITTER.

Referenced by SetMinion().

◆ SetCurrentCastSpell()

◆ setDeathState()

◆ SetDisableGravity()

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

Definition at line 13262 of file Unit.cpp.

References AddUnitMovementFlag(), Fly, GameClient::GetBasePlayer(), GetGameClientMovingMe(), Object::GetGUID(), GetMovementCounterAndInc(), Ground, HasUnitState(), Hover, Object::IsCreature(), IsGravityDisabled(), IsHovering(), IsMovedByClient(), IsRooted(), WorldObject::m_movementInfo, MOVEMENTFLAG_DISABLE_GRAVITY, MOVEMENTFLAG_FALLING, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, MSG_MOVE_GRAVITY_CHNG, RemoveUnitMovementFlag(), Player::SendDirectMessage(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SetAnimTier(), SMSG_MOVE_GRAVITY_DISABLE, SMSG_MOVE_GRAVITY_ENABLE, SMSG_SPLINE_MOVE_GRAVITY_DISABLE, SMSG_SPLINE_MOVE_GRAVITY_ENABLE, WorldPackets::Movement::MoveUpdate::Status, Object::ToCreature(), 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_vx_001::boss_vx_001AI::boss_vx_001AI(), boss_jeklik::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), boss_blood_queen_lana_thel::DoAction(), 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(), boss_nightbane::boss_nightbaneAI::EnterEvadeMode(), boss_blood_queen_lana_thel::EnterEvadeMode(), boss_felmyst::EnterPhase(), boss_nightbane::boss_nightbaneAI::ExecuteEvent(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), debug_commandscript::HandleDebugMoveflagsCommand(), spell_gen_gryphon_wyvern_mount_check::HandleEffectPeriodic(), boss_felmyst::HandleFlightSequence(), boss_razorscale::Initialize(), boss_headless_horseman::InitializeAI(), npc_pulsing_pumpkin::InitializeAI(), npc_icc_nerubar_broodkeeper::InitializeAI(), boss_kirtonos_the_herald::JustAppeared(), npc_brood_of_anzu::JustAppeared(), boss_vazruden_the_herald::JustAppeared(), boss_alar::JustAppeared(), boss_the_lich_king::JustDied(), boss_mimiron::boss_mimironAI::JustDied(), boss_jeklik::JustEngagedWith(), 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_headless_horseman::MovementInform(), boss_onyxia::MovementInform(), boss_ayamiss::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(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), npc_melee_hover_disk::PassengerBoarded(), npc_caster_hover_disk::PassengerBoarded(), npc_grauf::PassengerBoarded(), 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_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(), Creature::setDeathState(), SmartAI::SetDisableGravity(), 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(), npc_madrigosa::UpdateAI(), boss_kalecgos::UpdateAI(), npc_highborne_lamenter::npc_highborne_lamenterAI::UpdateAI(), npc_disciple_of_naralex::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(), boss_kirtonos_the_herald::UpdateIntroEvents(), Creature::UpdateMovementFlags(), boss_vazruden_the_herald::UpdateSpecialEvents(), and npc_brood_of_anzu::WaypointPathEnded().

◆ SetDisplayId()

◆ SetEmoteState()

void Unit::SetEmoteState ( Emote  emote)
inline

Definition at line 981 of file Unit.h.

References UNIT_NPC_EMOTESTATE.

Referenced by Attack(), boss_vx_001::boss_vx_001AI::boss_vx_001AI(), npc_icc_nerubar_broodkeeper::DoAction(), CoolestFriendBaseAI::DoAction(), boss_vx_001::boss_vx_001AI::DoAction(), boss_grand_warlock_nethekurse::DoAction(), npc_martha_goslin::npc_martha_goslinAI::DoAction(), 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_pathaleon_the_calculator::JustAppeared(), 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_expedition_engineer::MovementInform(), npc_skadi_trashAI::MovementInform(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), npc_amberpine_woodsman::Reset(), npc_crusade_recruit::Reset(), boss_shade_of_akama::Reset(), npc_dancing_flames::Reset(), setDeathState(), boss_shade_of_akama::SpellHit(), boss_felblood_kaelthas::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_partygoer_pather::UpdateAI(), npc_partygoer::UpdateAI(), npc_harrison_jones::npc_harrison_jonesAI::UpdateAI(), npc_martha_goslin::npc_martha_goslinAI::UpdateAI(), npc_medivh_bm::UpdateAI(), npc_andorov::UpdateAI(), npc_clintar_spirit::npc_clintar_spiritAI::UpdateAI(), boss_lich_king_toc::UpdateAI(), npc_fizzlebang_toc::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(), and npc_ghoul::npc_ghoulAI::WaypointReached().

◆ SetExtraUnitMovementFlags()

void Unit::SetExtraUnitMovementFlags ( uint32  f)
inline

Definition at line 1702 of file Unit.h.

Referenced by debug_commandscript::HandleDebugMoveflagsCommand().

◆ SetFacingTo()

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

Definition at line 13226 of file Unit.cpp.

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

Referenced by npc_expedition_engineer::ChangeOrientation(), boss_grand_warlock_nethekurse::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), FormationMovementGenerator::DoUpdate(), DistractMovementGenerator::Finalize(), spell_item_unusual_compass::HandleDummy(), boss_felmyst::HandleFlightSequence(), boss_algalon_the_observer::MovementInform(), npc_martha_goslin::npc_martha_goslinAI::MovementInform(), npc_roger_owens::npc_roger_owensAI::MovementInform(), boss_onyxia::MovementInform(), npc_commander_eligor_dawnbringer::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), npc_rimefang_icc::MovementInform(), boss_aerial_command_unit::boss_aerial_command_unitAI::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(), boss_erekem::MovementInform(), npc_announcer_toc5::npc_announcer_toc5AI::MovementInform(), boss_mr_smite::boss_mr_smiteAI::MovementInform(), spell_the_lurker_below_spout_periodic::OnPeriodic(), SmartScript::ProcessAction(), Creature::ReacquireSpellFocusTarget(), npc_dancing_flames::ReceiveEmote(), npc_depth_charge::Reset(), npc_sinclari_vh::ScheduleIntro(), npc_tirion_fordring_tft::SpellHit(), boss_vazruden_the_herald::SpellHit(), SimpleCharmedPlayerAI::UpdateAI(), boss_rend_blackhand::UpdateAI(), boss_victor_nefarius::UpdateAI(), npc_kalecgos::UpdateAI(), npc_partygoer::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), npc_harrison_jones::npc_harrison_jonesAI::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(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::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(), npc_leryssa::WaypointPathEnded(), 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 13235 of file Unit.cpp.

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

Referenced by npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::AttackIceWall(), npc_thrall_herald_of_war::npc_thrall_herald_of_warAI::DoAction(), npc_maiev::DoAction(), npc_ranshalla::npc_ranshallaAI::DoChannelTorchSpell(), boss_nightbane::boss_nightbaneAI::ExecuteEvent(), spell_mimiron_weld::spell_mimiron_weld_AuraScript::HandleTick(), npc_terenas_menethil::IsSummonedBy(), npc_crystal_spike_trigger::IsSummonedBy(), npc_ruby_emerald_amber_drake::IsSummonedBy(), npc_strangulate_vehicle::IsSummonedBy(), npc_iron_roots::npc_iron_rootsAI::IsSummonedBy(), npc_maiev::JustAppeared(), npc_ranshalla::npc_ranshallaAI::JustDidDialogueStep(), npc_ashtongue_broken::MovementInform(), boss_high_inquisitor_whitemane::MovementInform(), npc_jena_anderson::npc_jena_andersonAI::MovementInform(), boss_professor_putricide::MovementInform(), boss_malygos::MovementInform(), npc_twilight_volunteer::MovementInform(), boss_jaraxxus::MovementInform(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::MovementInform(), npc_geezle::npc_geezleAI::NextStep(), npc_harrison_jones::npc_harrison_jonesAI::OnGossipSelect(), npc_crusade_recruit::OnGossipSelect(), 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_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_partygoer::UpdateAI(), boss_zuljin::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_jena_anderson::npc_jena_andersonAI::UpdateAI(), npc_malcolm_moore::npc_malcolm_mooreAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), boss_onyxia::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), npc_overlord_runthak_orgrimmar::npc_overlord_runthak_orgrimmarAI::UpdateAI(), npc_thrall_herald_of_war::npc_thrall_herald_of_warAI::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_earthen_ring_flamecaller::WaypointPathEnded(), npc_ranshalla::npc_ranshallaAI::WaypointReached(), and npc_demolitionist_legoso::npc_demolitionist_legosoAI::WaypointReached().

◆ SetFaction()

void Unit::SetFaction ( uint32  faction)
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 988 of file Unit.h.

References UNIT_FIELD_FACTIONTEMPLATE.

Referenced by BattlegroundAB::_NodeOccupied(), boss_victor_nefarius::BeginEvent(), boss_vaelastrasz::boss_vaelastrasz(), BattlegroundSA::CaptureGraveyard(), 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(), Spell::EffectSummonType(), BattlegroundEY::EventTeamCapturedPoint(), boss_thorim::boss_thorimAI::FinishEncounter(), AuraEffect::HandleAuraModFaction(), BattlegroundIC::HandleCapturedNodes(), modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcSetFactionIdCommand(), spell_deliver_stolen_horse::HandleScriptEffect(), npc_inner_demon::InitializeAI(), Minion::InitStats(), TempSummon::InitStats(), InitTamedPet(), boss_majordomo::JustAppeared(), npc_stone_keeper::JustAppeared(), npc_yor::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(), 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_calvin_montague::npc_calvin_montagueAI::OnQuestAccept(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::OnQuestAccept(), npc_muglash::npc_muglashAI::OnQuestAccept(), npc_prospector_remtravel::npc_prospector_remtravelAI::OnQuestAccept(), go_crystalline_tear::go_crystalline_tearAI::OnQuestAccept(), npc_gilthares::npc_giltharesAI::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(), at_zumrah::OnTrigger(), npc_melee_hover_disk::PassengerBoarded(), BattlegroundAV::PopulateNode(), 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(), BattlegroundIC::SetupBattleground(), 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(), Spell::SummonGuardian(), 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(), npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI(), npc_lord_gregor_lescovar::npc_lord_gregor_lescovarAI::UpdateAI(), Creature::UpdateEntry(), npc_magwin::npc_magwinAI::UpdateEscortAI(), boss_majordomo::UpdateSpecialEvents(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::WaypointReached(), and npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached().

◆ SetFall()

◆ SetFeared()

◆ SetFeatherFall()

◆ SetFullHealth()

◆ SetFullPower()

◆ SetGameClientMovingMe()

void Unit::SetGameClientMovingMe ( GameClient *  gameClientMovingMe)
inline

Definition at line 1316 of file Unit.h.

Referenced by GameClient::AddAllowedMover(), and GameClient::RemoveAllowedMover().

◆ SetGender()

◆ SetHealth()

void Unit::SetHealth ( uint32  val)

Definition at line 9338 of file Unit.cpp.

References CORPSE, DEAD, getDeathState(), Player::GetGroup(), GetMaxHealth(), WorldObject::GetOwner(), Object::GetTypeId(), GROUP_UPDATE_FLAG_CUR_HP, GROUP_UPDATE_FLAG_PET_CUR_HP, JUST_DIED, Player::SetGroupUpdateFlag(), Object::SetUInt32Value(), Object::ToCreature(), ToPet(), Object::ToPlayer(), Object::ToPlayer(), TYPEID_PLAYER, and UNIT_FIELD_HEALTH.

Referenced by boss_twilight_halion::boss_twilight_halion(), Player::BuildPlayerRepop(), 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(), DealDamage(), BloodPrincesBossAI::DoAction(), npc_terenas_menethil::DoAction(), boss_lady_vashj::DoAction(), Spell::EffectResurrectPet(), Spell::EffectSelfResurrect(), Spell::EffectSummonPet(), Spell::EffectSummonType(), boss_malchezaar::boss_malchezaarAI::EnfeebleResetHealth(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModIncreaseMaxHealth(), spell_illidari_council_empyreal_balance::HandleDummy(), spell_gen_injured::HandleDummy(), modify_commandscript::HandleModifyHPCommand(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcSetLevelCommand(), 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(), AuraEffect::HandleSpiritOfRedemption(), BloodPrincesBossAI::JustAppeared(), boss_twinemperorsAI::JustDied(), boss_vaelastrasz::JustEngagedWith(), 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(), Player::RegenerateHealth(), npc_draenei_survivor::npc_draenei_survivorAI::Reset(), npc_injured_draenei::npc_injured_draeneiAI::Reset(), BloodPrincesBossAI::Reset(), boss_valithria_dreamwalker::Reset(), boss_murmur::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), Player::RestoreHealthAfterDuel(), Player::ResurrectPlayer(), Player::ResurrectUsingRequestDataImpl(), setDeathState(), SetMaxHealth(), Creature::SetSpawnHealth(), boss_twinemperorsAI::SpellHit(), npc_a_special_surprise::npc_a_special_surpriseAI::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(), 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 13475 of file Unit.cpp.

References AddUnitMovementFlag(), Fly, GameClient::GetBasePlayer(), Object::GetFloatValue(), WorldObject::GetFloorZ(), GetGameClientMovingMe(), Object::GetGUID(), GetMovementCounterAndInc(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Object::GetTypeId(), Ground, HasUnitMovementFlag(), HasUnitState(), Hover, Object::IsCreature(), isDying(), IsGravityDisabled(), IsHovering(), IsMovedByClient(), IsRooted(), WorldObject::m_movementInfo, MOVEMENTFLAG_HOVER, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, MSG_MOVE_HOVER, RemoveUnitMovementFlag(), Player::SendDirectMessage(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SetAnimTier(), SMSG_MOVE_SET_HOVER, SMSG_MOVE_UNSET_HOVER, SMSG_SPLINE_MOVE_SET_HOVER, SMSG_SPLINE_MOVE_UNSET_HOVER, WorldPackets::Movement::MoveUpdate::Status, Object::ToCreature(), TYPEID_UNIT, UNIT_FIELD_HOVERHEIGHT, 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(), AuraEffect::HandleAuraHover(), debug_commandscript::HandleDebugMoveflagsCommand(), boss_headless_horseman::InitializeAI(), npc_pulsing_pumpkin::InitializeAI(), boss_ayamiss::JustEngagedWith(), boss_ayamiss::JustReachedHome(), boss_sister_svalna::JustReachedHome(), boss_headless_horseman::MovementInform(), boss_ayamiss::MovementInform(), boss_sister_svalna::MovementInform(), boss_alar::MovementInform(), boss_sapphiron::Reset(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::Reset(), Creature::setDeathState(), npc_madrigosa::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 Creature::UpdateMovementFlags().

◆ SetHoverHeight()

void Unit::SetHoverHeight ( float  hoverHeight)
inline

Definition at line 1229 of file Unit.h.

References UNIT_FIELD_HOVERHEIGHT.

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

◆ SetImmuneToAll() [1/2]

virtual void Unit::SetImmuneToAll ( bool  apply)
inlinevirtual

Reimplemented in Creature, and Creature.

Definition at line 1150 of file Unit.h.

References SetImmuneToAll().

Referenced by SetImmuneToAll().

◆ SetImmuneToAll() [2/2]

void Unit::SetImmuneToAll ( bool  apply,
bool  keepCombat 
)

◆ SetImmuneToNPC() [1/2]

virtual void Unit::SetImmuneToNPC ( bool  apply)
inlinevirtual

Reimplemented in Creature, and Creature.

Definition at line 1156 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 1153 of file Unit.h.

References SetImmuneToPC().

Referenced by SetImmuneToPC().

◆ SetImmuneToPC() [2/2]

◆ SetInCombatWith()

◆ SetInFront()

◆ SetInstantCast()

void Unit::SetInstantCast ( bool  set)
inline

Definition at line 1816 of file Unit.h.

Referenced by AuraEffect::HandleModCastingSpeed().

◆ SetIsCombatDisallowed()

void Unit::SetIsCombatDisallowed ( bool  apply)
inline

◆ SetLastDamagedTargetGuid()

void Unit::SetLastDamagedTargetGuid ( ObjectGuid  guid)
inline

Definition at line 1060 of file Unit.h.

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

◆ SetLastExtraAttackSpell()

void Unit::SetLastExtraAttackSpell ( uint32  spellId)
inline

Definition at line 1057 of file Unit.h.

◆ SetLastManaUse()

void Unit::SetLastManaUse ( uint32  spellCastTime)
inline

Definition at line 1646 of file Unit.h.

Referenced by Spell::TakePower().

◆ SetLevel()

◆ SetMaxHealth()

◆ SetMaxPower()

◆ SetMinion()

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

Definition at line 5852 of file Unit.cpp.

References ABORT, Object::AddGuidValue(), ASSERT, Player::CharmSpellInitialize(), ObjectGuid::Empty, GetCharmedGUID(), GetCritterGUID(), GetDebugInfo(), Object::GetEntry(), GetGuardianPet(), Object::GetGUID(), Object::GetGUID(), GetOwnerGUID(), GetPetGUID(), GetPvpFlags(), Totem::GetSpell(), GetSpellHistory(), Object::GetTypeId(), Object::GetUInt32Value(), HasUnitTypeMask(), SpellInfo::IsCooldownStartedOnEvent(), ObjectGuid::IsEmpty(), Minion::IsGuardianPet(), Object::IsInWorld(), IsPet(), IsTotem(), m_Controlled, m_ControlledByPlayer, TempSummon::m_Properties, m_speed_rate, MAX_MOVE_TYPE, OutDebugInfo(), PET_SAVE_NOT_IN_SLOT, Player::PetSpellInitialize(), RemoveAllMinionsByEntry(), Object::RemoveGuidValue(), ReplaceAllPvpFlags(), SpellHistory::SendCooldownEvent(), SetCritterGUID(), SetMinionGUID(), SetOwnerGUID(), SetPetGUID(), SetSpeedRate(), SetUnitFlag(), SPELL_EFFECT_SUMMON, sSpellMgr, SpellHistory::StartCooldown(), SUMMON_TYPE_MINIPET, TC_LOG_DEBUG, TC_LOG_FATAL, SummonPropertiesEntry::Title, ToPet(), Object::ToPlayer(), ObjectGuid::ToString(), ToTotem(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_CREATED_BY_SPELL, UNIT_FIELD_SUMMON, 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 1259 of file Unit.h.

References UNIT_FIELD_SUMMON.

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

◆ SetModCastingSpeed()

void Unit::SetModCastingSpeed ( float  castingSpeed)
inline

◆ SetMountDisplayId()

◆ SetNativeDisplayId()

◆ SetNativeGender()

virtual void Unit::SetNativeGender ( Gender  gender)
inlinevirtual

Reimplemented in Player.

Definition at line 915 of file Unit.h.

◆ SetNpcFlag()

void Unit::SetNpcFlag ( NPCFlags  flags)
inline

Definition at line 1111 of file Unit.h.

References flags, and UNIT_NPC_FLAGS.

Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), boss_vaelastrasz::boss_vaelastrasz(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), npc_barnes::DoAction(), 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(), instance_oculus::instance_oculus_InstanceMapScript::OnCreatureCreate(), npc_chicken_cluck::npc_chicken_cluckAI::ReceiveEmote(), Vehicle::RemovePassenger(), boss_doomrel::boss_doomrelAI::Reset(), boss_victor_nefarius::Reset(), npc_koltira_deathweaver::Reset(), npc_thalorien_dawnseeker::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(), npc_sir_thomas::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_koltira_deathweaver::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), npc_calvin_montague::npc_calvin_montagueAI::UpdateAI(), npc_harrison_jones::npc_harrison_jonesAI::UpdateAI(), hyjalAI::UpdateAI(), npc_andorov::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(), npc_thrall_old_hillsbrad::WaypointReached(), and npc_rizzle_sprysprocket::WaypointStarted().

◆ SetOwnerGUID()

◆ SetPetFlag()

void Unit::SetPetFlag ( UnitPetFlag  flags)
inline

Definition at line 1008 of file Unit.h.

References flags, UNIT_BYTES_2_OFFSET_PET_FLAGS, and UNIT_FIELD_BYTES_2.

Referenced by Spell::EffectRenamePet().

◆ SetPetGUID()

void Unit::SetPetGUID ( ObjectGuid  guid)
inline

Definition at line 1261 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 1303 of file Unit.h.

References UNIT_FIELD_PETNUMBER.

Referenced by CharmInfo::SetPetNumber().

◆ SetPhaseMask()

◆ SetPower()

void Unit::SetPower ( Powers  power,
uint32  val,
bool  withPowerUpdate = true,
bool  force = false 
)

Definition at line 9398 of file Unit.cpp.

References AsUnderlyingType(), BASE_ATTACK, Player::GetGroup(), GetMaxPower(), WorldObject::GetOwner(), Object::GetPackGUID(), GetPower(), Object::GetTypeId(), GROUP_UPDATE_FLAG_CUR_POWER, GROUP_UPDATE_FLAG_PET_CUR_POWER, HUNTER_PET, POWER_HAPPINESS, WorldObject::SendMessageToSet(), Player::SetGroupUpdateFlag(), Object::SetStatInt32Value(), SMSG_POWER_UPDATE, Object::ToCreature(), ToPet(), Object::ToPlayer(), Object::ToPlayer(), TYPEID_PLAYER, and UNIT_FIELD_POWER1.

Referenced by Player::ActivateTalentGroup(), Pet::CreateBaseAtTamed(), boss_lady_deathwhisper::DamageTaken(), boss_deathbringer_saurfang::DoAction(), Spell::EffectSelfResurrect(), Spell::EffectSummonPet(), AuraEffect::HandleAuraModShapeshift(), spell_gen_zero_mana_full_health::HandleDummy(), spell_warr_execute::HandleEffect(), modify_commandscript::HandleModifyEnergyCommand(), modify_commandscript::HandleModifyManaCommand(), modify_commandscript::HandleModifyRageCommand(), modify_commandscript::HandleModifyRunicPowerCommand(), WorldSession::HandlePetAbandon(), spell_gen_pet_summoned::HandleScript(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), Player::LoadFromDB(), Pet::LoadPetFromDB(), ModifyPower(), boss_moam::OnSpellCast(), spell_dru_frenzied_regeneration::PeriodicTick(), Player::Regenerate(), spell_igb_incinerating_blast::RemoveEnergy(), boss_deathbringer_saurfang::Reset(), boss_lady_deathwhisper::Reset(), Player::ResetAllPowers(), Player::RestoreManaAfterDuel(), Player::ResurrectPlayer(), Player::ResurrectUsingRequestDataImpl(), setDeathState(), SetMaxPower(), SetPowerType(), Creature::SetSpawnHealth(), Player::SummonPet(), and boss_shade_of_aran::boss_aranAI::UpdateAI().

◆ SetPowerType()

◆ SetPvP()

◆ SetPvpFlag()

◆ SetRace()

void Unit::SetRace ( uint8  race)
inline

Definition at line 907 of file Unit.h.

References UNIT_BYTES_0_OFFSET_RACE, and UNIT_FIELD_BYTES_0.

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

◆ SetResistance()

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

◆ SetRooted()

◆ SetShapeshiftForm()

◆ SetSheath()

◆ SetSpeed()

void Unit::SetSpeed ( UnitMoveType  mtype,
float  newValue 
)

◆ SetSpeedRate()

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

Definition at line 8618 of file Unit.cpp.

References baseMoveSpeed, MovementPacketSender::GetChangeTypeByMoveType(), HasPendingMovementChange(), IsControlledByPlayer(), Object::IsInWorld(), IsMovedByClient(), m_speed_rate, playerBaseMoveSpeed, MovementPacketSender::SendSpeedChangeToAll(), MovementPacketSender::SendSpeedChangeToMover(), and SetSpeedRateReal().

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(), modify_commandscript::HandleModifyASpeedCommand(), modify_commandscript::HandleModifyBWalkCommand(), modify_commandscript::HandleModifyFlyCommand(), modify_commandscript::HandleModifyMountCommand(), modify_commandscript::HandleModifySpeedCommand(), modify_commandscript::HandleModifySwimCommand(), Creature::InitEntry(), npc_rizzle_sprysprocket::IsSummonedBy(), npc_enchanted_elemental::JustAppeared(), boss_the_lich_king::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(), 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().

◆ SetSpeedRateReal()

void Unit::SetSpeedRateReal ( UnitMoveType  mtype,
float  rate 
)
private

◆ SetStandState()

void Unit::SetStandState ( UnitStandStateType  state)

Definition at line 10340 of file Unit.cpp.

References AURA_INTERRUPT_FLAG_NOT_SEATED, Object::GetTypeId(), RemoveAurasWithInterruptFlags(), Player::SendDirectMessage(), Object::SetByteValue(), Object::ToPlayer(), TYPEID_PLAYER, UNIT_BYTES_1_OFFSET_STAND_STATE, UNIT_FIELD_BYTES_1, 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(), boss_victor_nefarius::BeginEvent(), npc_kerlonian::npc_kerlonianAI::ClearSleeping(), 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(), DealDamage(), 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(), WorldSession::HandleLogoutCancelOpcode(), WorldSession::HandleLogoutRequestOpcode(), WorldSession::HandleMovementOpcode(), WorldSession::HandlePlayerLogin(), spell_gen_stand::HandleScript(), AuraEffect::HandleSpiritOfRedemption(), WorldSession::HandleStandStateChangeOpcode(), DistractMovementGenerator::Initialize(), 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(), boss_mr_smite::boss_mr_smiteAI::MovementInform(), spell_love_is_in_the_air_romantic_picnic::OnApply(), spell_reliquary_of_souls_submerge::OnApply(), npc_kerlonian::npc_kerlonianAI::OnQuestAccept(), go_crystalline_tear::go_crystalline_tearAI::OnQuestAccept(), npc_gilthares::npc_giltharesAI::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(), boss_mr_smite::boss_mr_smiteAI::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(), npc_kerlonian::npc_kerlonianAI::SetSleeping(), SetStunned(), boss_scarlet_commander_mograine::SpellHit(), npc_harrison_jones::npc_harrison_jonesAI::SpellHit(), boss_ahune::SpellHit(), npc_draenei_survivor::npc_draenei_survivorAI::SpellHit(), npc_wounded_skirmisher::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), 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_calvin_montague::npc_calvin_montagueAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::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(), boss_mr_smite::boss_mr_smiteAI::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()

◆ SetStunned()

◆ SetSwim()

◆ SetTarget()

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

◆ SetTransformSpell()

void Unit::SetTransformSpell ( uint32  spellid)
inline

Definition at line 1603 of file Unit.h.

Referenced by AuraEffect::HandleAuraTransform().

◆ SetUnitFlag()

void Unit::SetUnitFlag ( UnitFlags  flags)
inline

Definition at line 968 of file Unit.h.

References flags, and UNIT_FIELD_FLAGS.

Referenced by Creature::AllLootRemovedFromCorpse(), npc_doctor::npc_doctorAI::BeginEvent(), 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(), spell_the_lich_king_vile_spirit_damage_target_search::CheckTargetCount(), Player::Create(), boss_taerar::boss_taerarAI::DamageTaken(), npc_felblood_kaelthas_phoenix::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_apothecary_hummel::DamageTaken(), boss_muru::DamageTaken(), npc_dark_fiend::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(), npc_tiger_matriarch::DamageTaken(), boss_halion::DamageTaken(), npc_vrykul_skeleton::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_vx_001::boss_vx_001AI::DamageTaken(), instance_ulduar::instance_ulduar_InstanceMapScript::DespawnLeviatanVehicle(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), boss_algalon_the_observer::DoAction(), npc_xt002_heart::DoAction(), boss_skadi::DoAction(), npc_frozen_core::DoAction(), npc_barada::npc_baradaAI::DoAction(), boss_illidan_stormrage::DoAction(), npc_melee_hover_disk::DoAction(), PetAI::DoAttack(), FlightPathMovementGenerator::DoReset(), VehicleJoinEvent::Execute(), ControllerBaseAI::ExecuteEvent(), boss_thorim::boss_thorimAI::FinishEncounter(), spell_ichoron_drained::HandleApply(), AuraEffect::HandleArenaPreparation(), AuraEffect::HandleAuraModDmgImmunity(), AuraEffect::HandleAuraModFaction(), AuraEffect::HandleAuraModPacify(), AuraEffect::HandleAuraModPacifyAndSilence(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleAuraModSilence(), spell_maiev_down::HandleEffectApply(), spell_gen_feign_death_all_flags::HandleEffectApply(), spell_gen_feign_death_no_dyn_flag::HandleEffectApply(), spell_gen_prevent_emotes::HandleEffectApply(), AuraEffect::HandleFeignDeath(), npc_headless_horseman_head::HandleInitialSetup(), 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(), boss_archaedas::JustAppeared(), npc_stone_keeper::JustAppeared(), boss_broggok::JustAppeared(), BroggokPrisionerBaseAI::JustAppeared(), boss_kelidan_the_breaker::JustAppeared(), boss_kologarn::boss_kologarnAI::JustDied(), boss_algalon_the_observer::JustEngagedWith(), boss_mimiron::boss_mimironAI::JustEngagedWith(), boss_archaedas::JustReachedHome(), npc_stone_keeper::JustReachedHome(), BloodPrincesBossAI::JustReachedHome(), BroggokPrisionerBaseAI::JustReachedHome(), boss_kelidan_the_breaker::JustReachedHome(), npc_announcer_toc5::npc_announcer_toc5AI::JustSummoned(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), Mount(), boss_svala::MoveInLineOfSight(), boss_malygos::MovementInform(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::MovementInform(), boss_aerial_command_unit::boss_aerial_command_unitAI::MovementInform(), npc_announcer_toc5::npc_announcer_toc5AI::npc_announcer_toc5AI(), 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_scorch_ground::npc_scorch_groundAI::npc_scorch_groundAI(), npc_thorims_hammer::npc_thorims_hammerAI::npc_thorims_hammerAI(), spell_systems_shutdown::spell_systems_shutdown_AuraScript::OnApply(), instance_dire_maul::instance_dire_maul_InstanceMapScript::OnCreatureCreate(), boss_flame_leviathan_overload_device::boss_flame_leviathan_overload_deviceAI::OnSpellClick(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), Creature::RefreshCanSwimFlag(), boss_pyroguard_emberseer::Reset(), npc_image_of_medivh::npc_image_of_medivhAI::Reset(), npc_death_knight_initiate::npc_death_knight_initiateAI::Reset(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), npc_koltira_deathweaver::Reset(), npc_sir_thomas::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_cthun::cthunAI::Reset(), npc_depth_charge::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_kelthuzad::Reset(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::Reset(), boss_svala::Reset(), boss_shade_of_akama::Reset(), npc_ashtongue_channeler::Reset(), npc_naga_distiller::Reset(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), Player::SendLoot(), boss_novos::SetBubbled(), SetCharm(), SetCharmedBy(), SetImmuneToAll(), SetImmuneToNPC(), SetImmuneToPC(), SetMinion(), SetStunned(), Battlefield::ShowNpc(), netherspite_infernal::netherspite_infernalAI::SpellHit(), boss_anub_arak::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), boss_valithria_dreamwalker::SpellHit(), boss_ionar::SpellHit(), npc_wyrmrest_defender::SpellHit(), boss_ahune::SpellHit(), npc_venture_co_straggler::SpellHit(), npc_nether_drake::npc_nether_drakeAI::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), boss_volazj::SpellHitTarget(), boss_jormungarAI::Submerge(), boss_victor_nefarius::SummonedCreatureDies(), boss_ragnaros::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), npc_headless_horseman_head::UpdateAI(), boss_arlokk::UpdateAI(), boss_renataki::UpdateAI(), boss_ouro::boss_ouroAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_anubarak_trial::UpdateAI(), npc_nerubian_burrower::UpdateAI(), npc_terenas_menethil::UpdateAI(), boss_noth::UpdateAI(), boss_magus_telestra::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), boss_xt002::UpdateAI(), boss_svala::UpdateAI(), npc_ethereal_beacon::UpdateAI(), boss_leotheras_the_blind::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_alar::UpdateAI(), boss_kaelthas::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), Creature::UpdateEntry(), CombatManager::UpdateOwnerCombatState(), and UpdatePetCombatState().

◆ SetUnitFlag2()

◆ SetUnitMovementFlags()

void Unit::SetUnitMovementFlags ( uint32  f)
inline

◆ SetVehicle()

void Unit::SetVehicle ( Vehicle *  vehicle)
inline

Definition at line 1754 of file Unit.h.

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

◆ SetVirtualItem()

◆ SetVisFlag()

void Unit::SetVisFlag ( UnitVisFlags  flags)
inline

◆ SetVisible()

void Unit::SetVisible ( bool  x)

Definition at line 8453 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(), npc_rocket_propelled_warhead::FinishQuest(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), Battlefield::HideNpc(), npc_webwrap::InitializeAI(), boss_sapphiron::InitializeAI(), 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 ( uint8  slot,
AuraApplication *  aurApp 
)

Definition at line 656 of file Unit.cpp.

References m_visibleAuras, and UpdateAuraForGroup().

Referenced by AuraApplication::_Remove(), and AuraApplication::AuraApplication().

◆ SetWalk()

bool Unit::SetWalk ( bool  enable)

Definition at line 13244 of file Unit.cpp.

References AddUnitMovementFlag(), Object::GetGUID(), IsWalking(), MOVEMENTFLAG_WALKING, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), SMSG_SPLINE_MOVE_SET_RUN_MODE, SMSG_SPLINE_MOVE_SET_WALK_MODE, and WorldPackets::Movement::MoveSplineSetFlag::Write().

Referenced by boss_the_lich_king::DamageTaken(), 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(), WaypointMovementGenerator< Creature >::DoFinalize(), RandomMovementGenerator< T >::DoFinalize(), OrbAirPositionEvent::Execute(), OrbFlyEvent::Execute(), debug_commandscript::HandleDebugMoveflagsCommand(), npc_sanctum_sentry::JustEngagedWith(), boss_professor_putricide::JustReachedHome(), npc_daegarn::JustSummoned(), npc_rinji::npc_rinjiAI::JustSummoned(), npc_maghar_captive::npc_maghar_captiveAI::JustSummoned(), npc_kurenai_captive::npc_kurenai_captiveAI::JustSummoned(), instance_deadmines::instance_deadmines_InstanceMapScript::MoveCreatureInside(), npc_akama_shade::MovementInform(), boss_shade_of_akama::MovementInform(), boss_headless_horseman::MovementInform(), boss_mandokir::MovementInform(), npc_high_overlord_saurfang_icc::MovementInform(), npc_muradin_bronzebeard_icc::MovementInform(), EscortAI::MovementInform(), npc_cameron::MoveTheChildren(), npc_marzon_silent_blade::npc_marzon_silent_bladeAI::npc_marzon_silent_bladeAI(), SmartAI::OnCharmed(), npc_tirion_fordring_tft::OnGossipSelect(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), boss_headless_horseman::Reset(), boss_arlokk::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(), boss_arlokk::UpdateAI(), npc_thrall_herald_of_war::npc_thrall_herald_of_warAI::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()

◆ SpellBaseDamageBonusDone()

◆ SpellBaseHealingBonusDone()

◆ SpellCritChanceDone()

◆ SpellCritChanceTaken()

float Unit::SpellCritChanceTaken ( Unit const *  caster,
SpellInfo const *  spellInfo,
SpellSchoolMask  schoolMask,
float  doneChance,
WeaponAttackType  attackType = BASE_ATTACK,
bool  isPeriodic = false 
) const

◆ SpellCriticalDamageBonus()

◆ SpellCriticalHealingBonus()

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

◆ SpellDamageBonusDone()

uint32 Unit::SpellDamageBonusDone ( Unit *  victim,
SpellInfo const *  spellProto,
uint32  pdamage,
DamageEffectType  damagetype,
SpellEffectInfo const &  spellEffectInfo,
Optional< float > const &  donePctTotal,
uint32  stack = 1 
) const

Definition at line 6393 of file Unit.cpp.

References AddPct(), BASE_ATTACK, SpellEffectInfo::BonusCoefficient, CalculateDefaultCoefficient(), CalculateSpellpowerCoefficientLevelPenalty(), DIRECT_DAMAGE, SpellInfo::DmgClass, DOT, EFFECT_0, GetCreatureTypeMask(), AuraEffect::GetMiscValue(), WorldObject::GetOwner(), SpellInfo::GetSchoolMask(), Player::GetSpellMap(), WorldObject::GetSpellModOwner(), GetTotalAttackPowerValue(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), Object::GetTypeId(), SpellInfo::HasAttribute(), HasUnitTypeMask(), SpellInfo::Id, AuraEffect::IsAffectingSpell(), SpellInfo::IsRangedWeaponSpell(), IsTotem(), PLAYERSPELL_REMOVED, RANGED_ATTACK, SPELL_ATTR3_NO_DONE_BONUS, SPELL_ATTR6_LIMIT_PCT_DAMAGE_MODS, SPELL_AURA_MELEE_ATTACK_POWER_ATTACKER_BONUS, SPELL_AURA_MOD_DAMAGE_TAKEN, SPELL_AURA_MOD_FLAT_SPELL_DAMAGE_VERSUS, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_AURA_RANGED_ATTACK_POWER_ATTACKER_BONUS, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_NONE, SpellBaseDamageBonusDone(), SpellDamagePctDone(), SPELLFAMILY_DEATHKNIGHT, SpellInfo::SpellFamilyName, SPELLMOD_BONUS_MULTIPLIER, SPELLMOD_DAMAGE, SPELLMOD_DOT, sSpellMgr, Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, and UNIT_MASK_GUARDIAN.

Referenced by AuraEffect::CalculateAmount(), spell_warl_seed_of_corruption_dummy::CalculateBuffer(), Spell::EffectHealthLeech(), Spell::EffectPowerDrain(), Spell::EffectSchoolDMG(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandleProcTriggerDamageAuraProc().

◆ SpellDamageBonusTaken()

◆ SpellDamagePctDone()

float Unit::SpellDamagePctDone ( Unit *  victim,
SpellInfo const *  spellProto,
DamageEffectType  damagetype 
) const

Definition at line 6533 of file Unit.cpp.

References AddPct(), AURA_STATE_CONFLAGRATE, AURA_STATE_FROZEN, AURA_STATE_HEALTHLESS_20_PERCENT, AURA_STATE_HEALTHLESS_35_PERCENT, WorldObject::CalculateSpellDamage(), DIRECT_DAMAGE, EFFECT_0, AuraEffect::GetAmount(), GetAppliedAuras(), GetAuraEffect(), GetAuraEffectOfRankedSpell(), GetAuraEffectsByType(), GetCreatureTypeMask(), GetDiseasesByCaster(), GetDoTsByCaster(), GetDummyAuraEffect(), Object::GetFloatValue(), Object::GetGUID(), Object::GetGUID(), GetLevel(), AuraEffect::GetMiscValue(), WorldObject::GetOwner(), GetOwnerGUID(), SpellInfo::GetSchoolMask(), Creature::GetSpellDamageMod(), Aura::GetSpellInfo(), Aura::GetStackAmount(), GetTotalAuraModifierByMiscValue(), GetTotalAuraMultiplier(), GetTotalAuraMultiplierByMiscMask(), Object::GetTypeId(), SpellInfo::HasAttribute(), HasAura(), HasAuraState(), HasAuraWithMechanic(), HealthAbovePct(), IsPet(), IsTotem(), MAX_SPELL_SCHOOL, SpellInfo::Mechanic, MECHANIC_SLOW_ATTACK, MECHANIC_SNARE, PLAYER_FIELD_MOD_DAMAGE_DONE_PCT, SPELL_ATTR3_NO_DONE_BONUS, SPELL_ATTR6_LIMIT_PCT_DAMAGE_MODS, SPELL_AURA_DUMMY, SPELL_AURA_MOD_DAMAGE_DONE_FOR_MECHANIC, SPELL_AURA_MOD_DAMAGE_DONE_VERSUS, SPELL_AURA_MOD_DAMAGE_DONE_VERSUS_AURASTATE, SPELL_AURA_MOD_DAMAGE_PERCENT_DONE, SPELL_AURA_MOD_STALKED, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_DEATHKNIGHT, SPELLFAMILY_DRUID, SPELLFAMILY_HUNTER, SPELLFAMILY_MAGE, SPELLFAMILY_PALADIN, SPELLFAMILY_PRIEST, SPELLFAMILY_WARLOCK, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, Object::ToCreature(), TYPEID_PLAYER, and TYPEID_UNIT.

Referenced by Aura::SaveCasterInfo(), and SpellDamageBonusDone().

◆ SpellHealingBonusDone()

uint32 Unit::SpellHealingBonusDone ( Unit *  victim,
SpellInfo const *  spellProto,
uint32  healamount,
DamageEffectType  damagetype,
SpellEffectInfo const &  spellEffectInfo,
Optional< float > const &  donePctTotal,
uint32  stack = 1 
) const

◆ SpellHealingBonusTaken()

◆ SpellHealingPctDone()

◆ StartReactiveTimer()

void Unit::StartReactiveTimer ( ReactiveType  reactive)
inline

Definition at line 1735 of file Unit.h.

References REACTIVE_TIMER_START.

Referenced by ProcSkillsAndReactives().

◆ StopAttackFaction()

◆ StopMoving()

void Unit::StopMoving ( bool  force = false)

Definition at line 10289 of file Unit.cpp.

References ClearUnitState(), Movement::MoveSpline::Finalized(), Movement::MoveSpline::HasStarted(), Object::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(), RandomMovementGenerator< T >::DoFinalize(), FlightPathMovementGenerator::DoFinalize(), ConfusedMovementGenerator< T >::DoFinalize(), FleeingMovementGenerator< T >::DoFinalize(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), FormationMovementGenerator::DoInitialize(), WaypointMovementGenerator< Creature >::DoInitialize(), WaypointMovementGenerator< Creature >::DoReset(), FormationMovementGenerator::DoUpdate(), WaypointMovementGenerator< Creature >::DoUpdate(), RandomMovementGenerator< T >::DoUpdate(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::EnterEvadeMode(), boss_felmyst::EnterPhase(), TimedFleeingMovementGenerator::Finalize(), debug_commandscript::HandleDebugMoveflagsCommand(), boss_felmyst::HandleFlightSequence(), spell_sapphiron_change_blizzard_target::HandlePeriodic(), IdleMovementGenerator::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(), RandomMovementGenerator< T >::SetRandomLocation(), SetRooted(), SetStunned(), MotionMaster::StopOnDeath(), ChaseMovementGenerator::Update(), FollowMovementGenerator::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

Definition at line 13797 of file Unit.cpp.

References Cell::VisitWorldObjects().

Referenced by spell_brewfest_barker_bunny::OnApply().

◆ Talk() [2/2]

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

Definition at line 13847 of file Unit.cpp.

References GetGender(), sObjectMgr, 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 13871 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 1804 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(), GetCreatePowerValue(), GetSelectedPlayerPetOrOwn(), AuraEffect::HandleModPossessPet(), WorldSession::HandlePetAbandon(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), WorldSession::HandlePetSpellAutocastOpcode(), reset_commandscript::HandleResetTalentsCommand(), SpellHistory::LockSpellSchool(), ModifyAuraState(), PetAI::ReceiveEmote(), SetHealth(), SetMaxHealth(), SetMaxPower(), SetMinion(), SetPower(), SetPowerType(), TempSummon::UnSummon(), FollowMovementGenerator::Update(), Guardian::UpdateAttackPowerAndDamage(), Guardian::UpdateDamagePhysical(), UpdateDisplayPower(), FollowMovementGenerator::UpdatePetSpeed(), and Guardian::UpdateStats().

◆ ToPet() [2/2]

Pet const * Unit::ToPet ( ) const
inline

Definition at line 1805 of file Unit.h.

◆ ToTempSummon() [1/2]

TempSummon * Unit::ToTempSummon ( )
inline

Definition at line 1810 of file Unit.h.

Referenced by BossAI::_DespawnAtEvade(), _ExitVehicle(), ThreatManager::CanHaveThreatList(), boss_nefarian::DamageTaken(), npc_tiger_matriarch::DamageTaken(), DealDamage(), Creature::DespawnOrUnsummon(), boss_sindragosa::DoAction(), npc_strangulate_vehicle::DoAction(), Spell::EffectScriptEffect(), npc_gatewatcher_petAI::EnterEvadeMode(), npc_marzon_silent_blade::npc_marzon_silent_bladeAI::EnterEvadeMode(), GetAllMinionsByEntry(), SmartScript::GetTargets(), WorldSession::HandleDismissCritter(), npc_commandscript::HandleNpcDeleteCommand(), spell_sapphiron_change_blizzard_target::HandlePeriodic(), spell_assembly_rune_of_summoning::spell_assembly_rune_of_summoning_AuraScript::HandlePeriodic(), spell_gen_whisper_to_controller_random::HandleScript(), spell_pri_lightwell::HandleScriptEffect(), npc_stolen_soul::InitializeAI(), npc_inner_demon::InitializeAI(), TempSummon::InitStats(), SpellClickInfo::IsFitToRequirements(), CreatureAI::JustAppeared(), npc_dark_rider_of_acherus::JustAppeared(), npc_ancient_wisp::JustAppeared(), npc_flash_freeze_init::JustAppeared(), npc_flash_freeze_combat::JustAppeared(), npc_frost_tomb::JustAppeared(), npc_blackheart_the_inciter_dummy::JustAppeared(), npc_inner_demon::JustAppeared(), npc_steamrigger_mechanic::JustAppeared(), boss_grubbis::boss_grubbisAI::JustDied(), npc_tito::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_slad_ran_constrictor::JustEngagedWith(), npc_marzon_silent_blade::npc_marzon_silent_bladeAI::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_marzon_silent_blade::npc_marzon_silent_bladeAI::MovementInform(), npc_glob_of_viscidus::npc_glob_of_viscidusAI::MovementInform(), BattlefieldWG::OnCreatureCreate(), npc_wormhole::npc_wormholeAI::OnGossipHello(), RemoveAllControlled(), RemoveAllMinionsByEntry(), Creature::RemoveCorpse(), spell_gen_defend::RemoveDummyFromDriver(), npc_raging_spirit::Reset(), Creature::SelectVictim(), boss_grubbis::boss_grubbisAI::SetDataSummoner(), boss_the_lich_king::SummonedCreatureDies(), boss_nefarian::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::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(), and npc_leryssa::WaypointPathEnded().

◆ ToTempSummon() [2/2]

TempSummon const * Unit::ToTempSummon ( ) const
inline

Definition at line 1811 of file Unit.h.

◆ ToTotem() [1/2]

◆ ToTotem() [2/2]

Totem const * Unit::ToTotem ( ) const
inline

Definition at line 1808 of file Unit.h.

◆ TriggerAurasProcOnEvent() [1/2]

◆ TriggerAurasProcOnEvent() [2/2]

void Unit::TriggerAurasProcOnEvent ( Unit *  actionTarget,
uint32  typeMaskActor,
uint32  typeMaskActionTarget,
uint32  spellTypeMask,
uint32  spellPhaseMask,
uint32  hitMask,
Spell *  spell,
DamageInfo *  damageInfo,
HealInfo *  healInfo 
)

◆ UnsummonAllTotems()

void Unit::UnsummonAllTotems ( )

◆ Update()

◆ UpdateAllDamageDoneMods()

void Unit::UpdateAllDamageDoneMods ( )

Definition at line 9156 of file Unit.cpp.

References BASE_ATTACK, MAX_ATTACK, and UpdateDamageDoneMods().

Referenced by AuraEffect::HandleModDamageDone().

◆ UpdateAllDamagePctDoneMods()

void Unit::UpdateAllDamagePctDoneMods ( )

Definition at line 9200 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

◆ UpdateAuraForGroup()

◆ UpdateCharmAI()

◆ UpdateDamageDoneMods()

◆ UpdateDamagePctDoneMods()

◆ UpdateDamagePhysical()

◆ UpdateDisplayPower()

◆ UpdateHeight()

void Unit::UpdateHeight ( float  newZ)

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

Definition at line 12917 of file Unit.cpp.

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

Referenced by SetHover().

◆ UpdateInterruptMask()

void Unit::UpdateInterruptMask ( )

◆ 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().

◆ UpdateObjectVisibility()

◆ UpdateOrientation()

void Unit::UpdateOrientation ( float  orientation)

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

Definition at line 12909 of file Unit.cpp.

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

Referenced by UpdatePosition().

◆ UpdatePetCombatState()

void Unit::UpdatePetCombatState ( )

Definition at line 8754 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()

◆ UpdateResistanceBuffModsMod()

◆ UpdateResistances()

virtual void Unit::UpdateResistances ( uint32  school)
pure virtual

Implemented in Creature, Guardian, Player, and Totem.

Referenced by UpdateAllResistances(), and UpdateUnitMod().

◆ UpdateSpeed()

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

Definition at line 8463 of file Unit.cpp.

References AddPct(), ASSERT_NOTNULL, baseMoveSpeed, CalculatePct(), FOLLOW_MOTION_TYPE, GetCharmer(), Creature::GetCreatureTemplate(), MotionMaster::GetCurrentMovementGeneratorType(), WorldObject::GetDistance(), Object::GetGUID(), GetMaxNegativeAuraModifier(), GetMaxPositiveAuraModifier(), GetMotionMaster(), GetOwnerGUID(), GetSpeedRate(), GetTarget(), GetTotalAuraModifier(), GetTotalAuraMultiplier(), Object::GetTypeId(), GetVehicle(), GetVehicleBase(), IsControlledByPlayer(), IsHunterPet(), IsInCombat(), IsMounted(), Object::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_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::HandleAuraModUseNormalSpeed(), boss_razorscale::MovementInform(), PetAI::UpdateAI(), and UpdateSpeed().

◆ UpdateSplineMovement()

◆ UpdateSplinePosition()

◆ UpdateStatBuffMod()

◆ UpdateStats()

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

Implemented in Creature, Guardian, Player, and Totem.

Referenced by UpdateUnitMod().

◆ 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 13810 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 13866 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 1965 of file Unit.h.

◆ ImmediateMovementGenerator

friend class ImmediateMovementGenerator
friend

Definition at line 1938 of file Unit.h.

◆ ThreatManager

friend class ThreatManager
friend

Definition at line 1967 of file Unit.h.

◆ VehicleJoinEvent

friend class VehicleJoinEvent
friend

Definition at line 1747 of file Unit.h.

◆ WorldSession

friend class WorldSession
friend

Definition at line 784 of file Unit.h.

Member Data Documentation

◆ _gameClientMovingMe

GameClient* Unit::_gameClientMovingMe
protected

Definition at line 1909 of file Unit.h.

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

◆ _instantCast

bool Unit::_instantCast
private

Definition at line 1989 of file Unit.h.

Referenced by Unit().

◆ _isCombatDisallowed

bool Unit::_isCombatDisallowed
private

Definition at line 1998 of file Unit.h.

Referenced by Unit().

◆ _isWalkingBeforeCharm

bool Unit::_isWalkingBeforeCharm
private

Are we walking before we were charmed?

Definition at line 1992 of file Unit.h.

Referenced by SetCharm(), and Unit().

◆ _lastDamagedTargetGuid

ObjectGuid Unit::_lastDamagedTargetGuid
private

Definition at line 1985 of file Unit.h.

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

◆ _lastExtraAttackSpell

uint32 Unit::_lastExtraAttackSpell
private

Definition at line 1983 of file Unit.h.

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

◆ _lastLiquid

LiquidTypeEntry const* Unit::_lastLiquid
protected

Definition at line 1920 of file Unit.h.

Referenced by Player::HandleDrowning(), ProcessTerrainStatusUpdate(), and Unit().

◆ _oldFactionId

uint32 Unit::_oldFactionId
private

faction before charm

Definition at line 1991 of file Unit.h.

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

◆ _positionUpdateInfo

PositionUpdateInfo Unit::_positionUpdateInfo
private

Definition at line 1996 of file Unit.h.

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

◆ _spellHistory

SpellHistory* Unit::_spellHistory
private

Definition at line 1994 of file Unit.h.

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

◆ extraAttacksTargets

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

Definition at line 1984 of file Unit.h.

Referenced by AddExtraAttacks(), and Update().

◆ i_AI

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

Definition at line 1974 of file Unit.h.

Referenced by RefreshAI().

◆ i_AIs

UnitAIStack Unit::i_AIs
private

Definition at line 1973 of file Unit.h.

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

◆ i_motionMaster

MotionMaster* Unit::i_motionMaster
protected

Definition at line 1911 of file Unit.h.

Referenced by AddToWorld(), Update(), and ~Unit().

◆ LastCharmerGUID

ObjectGuid Unit::LastCharmerGUID

Definition at line 1748 of file Unit.h.

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

◆ m_aiLocked

bool Unit::m_aiLocked
private

Definition at line 1975 of file Unit.h.

Referenced by AIUpdateTick(), and RefreshAI().

◆ m_appliedAuras

◆ m_attackers

AttackerSet Unit::m_attackers
protected

Definition at line 1865 of file Unit.h.

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

◆ m_attacking

Unit* Unit::m_attacking
protected

Definition at line 1866 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 1897 of file Unit.h.

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

◆ m_attackTimer

uint32 Unit::m_attackTimer[MAX_ATTACK]

Definition at line 1516 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 1895 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 1896 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 1886 of file Unit.h.

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

◆ m_AutoRepeatFirstCast

bool Unit::m_AutoRepeatFirstCast
protected

Definition at line 1861 of file Unit.h.

Referenced by _UpdateAutoRepeatSpell(), and SetCurrentCastSpell().

◆ m_baseSpellCritChance

float Unit::m_baseSpellCritChance

◆ m_canDualWield

bool Unit::m_canDualWield

Definition at line 862 of file Unit.h.

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

◆ m_canModifyStats

bool Unit::m_canModifyStats
protected

Definition at line 1899 of file Unit.h.

Referenced by Unit().

◆ m_charmed

Unit* Unit::m_charmed
protected

Definition at line 1906 of file Unit.h.

Referenced by SetCharm().

◆ m_charmer

Unit* Unit::m_charmer
protected

Definition at line 1905 of file Unit.h.

Referenced by SetCharm().

◆ m_charmInfo

◆ m_cleanupDone

bool Unit::m_cleanupDone
private

◆ m_combatManager

CombatManager Unit::m_combatManager
private

◆ m_ComboPointHolders

std::unordered_set<Unit*> Unit::m_ComboPointHolders
private

Definition at line 1981 of file Unit.h.

Referenced by ClearComboPointHolders().

◆ m_comboPoints

int8 Unit::m_comboPoints
private

Definition at line 1980 of file Unit.h.

Referenced by AddComboPoints(), ClearComboPoints(), and SendComboPoints().

◆ m_comboTarget

Unit* Unit::m_comboTarget
private

Definition at line 1979 of file Unit.h.

Referenced by AddComboPoints(), ClearComboPoints(), and SendComboPoints().

◆ m_Controlled

◆ m_ControlledByPlayer

bool Unit::m_ControlledByPlayer
protected

Definition at line 1859 of file Unit.h.

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

◆ m_createStats

float Unit::m_createStats[MAX_STATS]
protected

Definition at line 1863 of file Unit.h.

Referenced by Player::InitStatsForLevel(), and Unit().

◆ m_currentSpells

◆ m_deathState

◆ m_Diminishing

Diminishing Unit::m_Diminishing
private

Definition at line 1962 of file Unit.h.

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

◆ m_duringRemoveFromWorld

bool Unit::m_duringRemoveFromWorld
private

Definition at line 1988 of file Unit.h.

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

◆ m_dynObj

DynObjectList Unit::m_dynObj
protected

◆ m_followingMe

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

Definition at line 1977 of file Unit.h.

Referenced by RemoveAllFollowers().

◆ m_gameObj

GameObjectList Unit::m_gameObj
protected

◆ m_interruptableAuras

◆ m_interruptMask

uint32 Unit::m_interruptMask
protected

◆ m_lastManaUse

uint32 Unit::m_lastManaUse
private

Definition at line 1960 of file Unit.h.

Referenced by IsUnderLastManaUseEffect(), and Unit().

◆ m_lastSanctuaryTime

uint32 Unit::m_lastSanctuaryTime

Definition at line 1585 of file Unit.h.

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

◆ m_modAttackSpeedPct

◆ m_modAuras

AuraEffectList Unit::m_modAuras[TOTAL_AURAS]
protected

◆ m_modMeleeHitChance

float Unit::m_modMeleeHitChance

Definition at line 1510 of file Unit.h.

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

◆ m_modRangedHitChance

float Unit::m_modRangedHitChance

Definition at line 1511 of file Unit.h.

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

◆ m_modSpellHitChance

float Unit::m_modSpellHitChance

◆ m_movementCounter

uint32 Unit::m_movementCounter
private

Definition at line 2003 of file Unit.h.

Referenced by Unit().

◆ m_ObjectSlot

ObjectGuid Unit::m_ObjectSlot[MAX_GAMEOBJECT_SLOT]

Definition at line 1501 of file Unit.h.

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

◆ m_ownedAuras

◆ m_pendingMovementChanges

◆ m_procDeep

int32 Unit::m_procDeep
protected

Definition at line 1870 of file Unit.h.

Referenced by SetCantProc(), and Update().

◆ m_reactiveTimer

uint32 Unit::m_reactiveTimer[MAX_REACTIVE]
protected

Definition at line 1913 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 1885 of file Unit.h.

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

◆ m_removedAurasCount

◆ m_scAuras

AuraList Unit::m_scAuras
protected

Definition at line 1890 of file Unit.h.

◆ m_sharedVision

SharedVisionList Unit::m_sharedVision
protected

Definition at line 1908 of file Unit.h.

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

◆ m_speed_rate

float Unit::m_speed_rate[MAX_MOVE_TYPE]
protected

Definition at line 1903 of file Unit.h.

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

◆ m_spellImmune

◆ m_state

uint32 Unit::m_state
private

Definition at line 1959 of file Unit.h.

Referenced by Unit().

◆ m_SummonSlot

◆ m_threatManager

ThreatManager Unit::m_threatManager
private

Definition at line 1968 of file Unit.h.

Referenced by EngageWithTarget(), and IsThreatened().

◆ m_transformSpell

uint32 Unit::m_transformSpell
protected

Definition at line 1879 of file Unit.h.

◆ m_unitTypeMask

◆ m_vehicle

◆ m_vehicleKit

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

Definition at line 1917 of file Unit.h.

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

◆ m_visibleAuras

VisibleAuraMap Unit::m_visibleAuras
protected

Definition at line 1901 of file Unit.h.

Referenced by _UpdateSpells(), GetVisibleAura(), RemoveVisibleAura(), and SetVisibleAura().

◆ m_weaponDamage

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

Definition at line 1898 of file Unit.h.

Referenced by GetWeaponDamageRange(), and Unit().

◆ movespline


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