Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Unit Class Referenceabstract

#include <Unit.h>

Inheritance diagram for Unit:
Collaboration diagram for Unit:

Public Types

typedef std::set< Unit * > AttackerSet
typedef std::list< AuraApplication * > AuraApplicationList
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::list< AuraEffect * > AuraEffectList
typedef std::list< Aura * > AuraList
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< AuraStateType, AuraApplication * > AuraStateAurasMap
typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > AuraStateAurasMapBounds
typedef std::set< uint32ComboPointHolderSet
typedef std::set< Unit * > ControlList
typedef std::list< DiminishingReturnDiminishing
typedef std::set< PetAura const * > PetAuraSet
typedef std::map< uint8, AuraApplication * > VisibleAuraMap

Public Member Functions

void _addAttacker (Unit *pAttacker)
void _AddAura (UnitAura *aura, Unit *caster)
void _ApplyAllAuraStatMods ()
void _ApplyAura (AuraApplication *aurApp, uint32 effMask)
void _ApplyAuraEffect (Aura *aura, uint8 effIndex)
AuraApplication_CreateAuraApplication (Aura *aura, uint32 effMask)
void _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=NULL)
void _ExitVehicle (Position const *exitPosition=NULL)
bool _IsValidAssistTarget (Unit const *target, SpellInfo const *bySpell) const
bool _IsValidAttackTarget (Unit const *target, SpellInfo const *bySpell, WorldObject const *obj=NULL) const
void _RegisterAuraEffect (AuraEffect *aurEff, bool apply)
void _RegisterDynObject (DynamicObject *dynObj)
void _RemoveAllAuraStatMods ()
void _removeAttacker (Unit *pAttacker)
void _RemoveNoStackAurasDueToAura (Aura *aura)
Aura_TryStackingOrRefreshingExistingAura (SpellInfo const *newAura, uint32 effMask, Unit *caster, int32 *baseAmount=NULL, Item *castItem=NULL, uint64 casterGUID=0)
void _UnapplyAura (AuraApplication *aurApp, AuraRemoveMode removeMode)
void _UnapplyAura (AuraApplicationMap::iterator &i, AuraRemoveMode removeMode)
void _UnregisterDynObject (DynamicObject *dynObj)
AuraAddAura (SpellInfo const *spellInfo, uint32 effMask, Unit *target)
AuraAddAura (uint32 spellId, Unit *target)
void AddComboPointHolder (uint32 lowguid)
void AddExtraUnitMovementFlag (uint16 f)
void addFollower (FollowerReference *pRef)
void AddGameObject (GameObject *gameObj)
void addHatedBy (HostileReference *pHostileReference)
void AddInterruptMask (uint32 mask)
void AddPetAura (PetAura const *petSpell)
void AddPlayerToVision (Player *player)
void AddThreat (Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=NULL)
void AddToWorld () override
void AddUnitMovementFlag (uint32 f)
void AddUnitState (uint32 f)
void AddUnitTypeMask (uint32 mask)
void ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply)
void ApplyCastTimePercentMod (float val, bool apply)
void ApplyDiminishingAura (DiminishingGroup group, bool apply)
float ApplyDiminishingToDuration (DiminishingGroup group, int32 &duration, Unit *caster, DiminishingLevels Level, int32 limitduration)
float ApplyEffectModifiers (SpellInfo const *spellProto, uint8 effect_index, float value) const
void ApplyResilience (Unit const *victim, int32 *damage, bool isCrit) const
void ApplyResistanceBuffModsMod (SpellSchools school, bool positive, float val, bool apply)
void ApplyResistanceBuffModsPercentMod (SpellSchools school, bool positive, float val, bool apply)
void ApplySpellDispelImmunity (const SpellInfo *spellProto, DispelType type, bool apply)
void ApplySpellImmune (uint32 spellId, uint32 op, uint32 type, bool apply)
void ApplyStatBuffMod (Stats stat, float val, bool apply)
void ApplyStatPercentBuffMod (Stats stat, float val, bool apply)
float ApplyTotalThreatModifier (float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL)
bool Attack (Unit *victim, bool meleeAttack)
void AttackerStateUpdate (Unit *victim, WeaponAttackType attType=WeaponAttackType::BASE_ATTACK, bool extra=false)
bool AttackStop ()
uint32 BuildAuraStateUpdateForTarget (Unit *target) const
void CalcAbsorbResist (Unit *victim, SpellSchoolMask schoolMask, DamageEffectType damagetype, uint32 const damage, uint32 *absorb, uint32 *resist, SpellInfo const *spellInfo=NULL)
uint32 CalcArmorReducedDamage (Unit *victim, const uint32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=WeaponAttackType::MAX_ATTACK)
void CalcHealAbsorb (Unit *victim, SpellInfo const *spellInfo, uint32 &healAmount, uint32 &absorb)
int32 CalcSpellDuration (SpellInfo const *spellProto)
uint32 CalcSpellResistance (Unit *victim, SpellSchoolMask schoolMask, SpellInfo const *spellInfo) const
uint32 CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct)
float CalculateDefaultCoefficient (SpellInfo const *spellInfo, DamageEffectType damagetype) const
float CalculateLevelPenalty (SpellInfo const *spellProto) const
void CalculateMeleeDamage (Unit *victim, uint32 damage, CalcDamageInfo *damageInfo, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK)
int32 CalculateSpellDamage (Unit const *target, SpellInfo const *spellProto, uint8 effect_index, int32 const *basePoints=NULL) const
void CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK, bool crit=false)
bool CanDualWield () const
virtual bool CanFly () const =0
bool CanFreeMove () const
bool CanHaveThreatList () const
bool CanModifyStats () const
bool CanProc () const
bool CanUseAttackType (WeaponAttackType attacktype) const
void CastCustomSpell (uint32 spellId, CustomSpellValues const &value, Unit *victim=NULL, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastCustomSpell (uint32 spellId, SpellValueMod mod, int32 value, Unit *victim, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastCustomSpell (uint32 spellId, SpellValueMod mod, int32 value, Unit *victim=NULL, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastCustomSpell (Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastSpell (float x, float y, float z, uint32 spellId, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastSpell (GameObject *go, uint32 spellId, bool triggered, Item *castItem=NULL, AuraEffect *triggeredByAura=NULL, uint64 originalCaster=0)
void CastSpell (SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastSpell (Unit *victim, SpellInfo const *spellInfo, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastSpell (Unit *victim, SpellInfo const *spellInfo, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastSpell (Unit *victim, uint32 spellId, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastSpell (Unit *victim, uint32 spellId, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastStop (uint32 except_spellid=0)
void ChangeSeat (int8 seatId, bool next=true)
void CleanupBeforeRemoveFromMap (bool finalCleanup)
void CleanupsBeforeDelete (bool finalCleanup=true) override
void ClearAllReactives ()
void ClearComboPointHolders ()
void ClearDiminishings ()
void ClearInCombat ()
void ClearPhases (bool update=false)
void ClearUnitState (uint32 f)
void CombatStart (Unit *target, bool initialAggro=true)
void CombatStop (bool includingCast=false)
void CombatStopWithPets (bool includingCast=false)
uint32 CountPctFromCurHealth (int32 pct) const
uint32 CountPctFromMaxHealth (int32 pct) const
int32 CountPctFromMaxPower (Powers power, int32 pct) const
PetCreateTamedPetFrom (Creature *creatureTarget, uint32 spell_id=0)
PetCreateTamedPetFrom (uint32 creatureEntry, uint32 spell_id=0)
bool CreateVehicleKit (uint32 id, uint32 creatureEntry, bool loading=false)
uint32 DealDamage (Unit *victim, uint32 damage, CleanDamage const *cleanDamage=NULL, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=NULL, bool durabilityLoss=true)
void DealDamageMods (Unit *victim, uint32 &damage, uint32 *absorb)
int32 DealHeal (Unit *victim, uint32 addhealth)
void DealMeleeDamage (CalcDamageInfo *damageInfo, bool durabilityLoss)
void DealSpellDamage (SpellNonMeleeDamage *damageInfo, bool durabilityLoss)
void DelayOwnedAuras (uint32 spellId, uint64 caster, int32 delaytime)
void DeleteCharmInfo ()
void DeleteThreatList ()
void DeMorph ()
void Dismount ()
void EnergizeBySpell (Unit *victim, uint32 SpellID, int32 Damage, Powers powertype)
void EnterVehicle (Unit *base, int8 seatId=-1)
void ExitVehicle (Position const *exitPosition=NULL)
SpellFindCurrentSpellBySpellId (uint32 spell_id) const
void FinishSpell (CurrentSpellTypes spellType, bool ok=true)
PlayerGetAffectingPlayer () const
UnitAIGetAI ()
void GetAllMinionsByEntry (std::list< Creature * > &Minions, uint32 entry)
float GetAPMultiplier (WeaponAttackType attType, bool normalized)
AuraApplicationMapGetAppliedAuras ()
AuraApplicationMap const & GetAppliedAuras () const
uint32 GetArmor () const
void GetAttackableUnitListInRange (std::list< Unit * > &list, float fMaxSearchRange) const
UnitgetAttackerForHelper () const
AttackerSet const & getAttackers () const
uint32 GetAttackTime (WeaponAttackType att) const
uint32 getAttackTimer (WeaponAttackType type) const
AuraGetAura (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const
AuraApplicationGetAuraApplication (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0, AuraApplication *except=NULL) const
AuraApplicationGetAuraApplicationOfRankedSpell (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0, AuraApplication *except=NULL) const
uint32 GetAuraCount (uint32 spellId) const
AuraEffectGetAuraEffect (AuraType type, SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, uint64 casterGUID=0) const
AuraEffectGetAuraEffect (AuraType type, SpellFamilyNames name, uint32 iconId, uint8 effIndex) const
AuraEffectGetAuraEffect (uint32 spellId, uint8 effIndex, uint64 casterGUID=0) const
AuraEffectGetAuraEffectOfRankedSpell (uint32 spellId, uint8 effIndex, uint64 casterGUID=0) const
AuraEffectList const & GetAuraEffectsByType (AuraType type) const
AuraGetAuraOfRankedSpell (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const
virtual uint32 GetBlockPercent () const
uint32 GetCastingTimeForBonus (SpellInfo const *spellProto, DamageEffectType damagetype, uint32 CastingTime) const
UnitGetCharm () const
UnitGetCharmer () const
uint64 GetCharmerGUID () const
UnitGetCharmerOrOwner () const
uint64 GetCharmerOrOwnerGUID () const
uint64 GetCharmerOrOwnerOrOwnGUID () const
UnitGetCharmerOrOwnerOrSelf () const
PlayerGetCharmerOrOwnerPlayerOrPlayerItself () const
uint64 GetCharmGUID () const
CharmInfoGetCharmInfo ()
uint8 getClass () const
uint32 getClassMask () const
float GetCombatReach () const
uint32 GetCombatTimer () const
uint32 GetCreateHealth () const
uint32 GetCreateMana () const
int32 GetCreatePowers (Powers power) const
float GetCreateStat (Stats stat) const
uint64 GetCreatorGUID () const
uint32 GetCreatureType () const
uint32 GetCreatureTypeMask () const
uint32 GetCritDamageReduction (uint32 damage) const
uint64 GetCritterGUID () const
SpellGetCurrentSpell (CurrentSpellTypes spellType) const
SpellGetCurrentSpell (uint32 spellType) const
int32 GetCurrentSpellCastTime (uint32 spell_id) const
uint32 GetDamageReduction (uint32 damage) const
DeathState getDeathState () const
DiminishingLevels GetDiminishing (DiminishingGroup group)
TransportBaseGetDirectTransport () const
 Returns the transport this unit is on directly (if on vehicle and transport, return vehicle).
uint32 GetDiseasesByCaster (uint64 casterGUID, bool remove=false)
void GetDispellableAuraList (Unit *caster, uint32 dispelMask, DispelChargesList &dispelList)
uint32 GetDisplayId () const
uint32 GetDoTsByCaster (uint64 casterGUID) const
AuraEffectGetDummyAuraEffect (SpellFamilyNames name, uint32 iconId, uint8 effIndex) const
DynamicObjectGetDynObject (uint32 spellId)
uint16 GetExtraUnitMovementFlags () const
uint32 getFaction () const
FactionTemplateEntry const * GetFactionTemplateEntry () const
UnitGetFirstControlled () const
MinionGetFirstMinion () const
virtual float GetFollowAngle () const
GameObjectGetGameObject (uint32 spellId) const
uint8 getGender () const
GuardianGetGuardianPet () const
uint32 GetHealth () const
int32 GetHealthGain (int32 dVal)
float GetHealthPct () const
HostileRefManagergetHostileRefManager ()
uint32 GetInterruptMask () const
time_t GetLastDamagedTime () const
uint8 getLevel () const
uint8 getLevelForTarget (WorldObject const *) const override
UnitGetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo)
uint32 GetMaxHealth () const
int32 GetMaxNegativeAuraModifier (AuraType auratype) const
int32 GetMaxNegativeAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const
int32 GetMaxNegativeAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask) const
int32 GetMaxNegativeAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const
int32 GetMaxPositiveAuraModifier (AuraType auratype) const
int32 GetMaxPositiveAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const
int32 GetMaxPositiveAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask, const AuraEffect *except=NULL) const
int32 GetMaxPositiveAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const
int32 GetMaxPower (Powers power) const
uint16 GetMaxSkillValueForLevel (Unit const *target=NULL) const
uint32 GetMechanicImmunityMask () const
int32 GetMechanicResistChance (SpellInfo const *spellInfo) const
UnitGetMeleeHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo=NULL)
float GetMeleeReach () const
uint64 GetMinionGUID () const
int32 GetMinPower (Powers power) const
uint32 GetModelForForm (ShapeshiftForm form) const
uint32 GetModelForTotem (uint32 totemType) const
float GetModifierValue (UnitMods unitMod, UnitModifierType modifierType) const
MotionMasterGetMotionMaster ()
const MotionMasterGetMotionMaster () const
MountCapabilityEntry const * GetMountCapability (uint32 mountType) const
uint32 GetMountID () const
uint32 GetMovementCounter () const
uint32 GetNativeDisplayId () const
float GetNegStat (Stats stat) const
UnitGetNextRandomRaidMemberOrPet (float radius)
AuraGetOwnedAura (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0, Aura *except=NULL) const
AuraMapGetOwnedAuras ()
AuraMap const & GetOwnedAuras () const
UnitGetOwner () const
uint64 GetOwnerGUID () const
void GetPartyMembers (std::list< Unit * > &units)
uint64 GetPetGUID () const
float GetPositionZMinusOffset () const
float GetPosStat (Stats stat) const
int32 GetPower (Powers power) const
uint32 GetPowerIndex (uint32 powerType) const
Powers getPowerType () const
Powers GetPowerTypeByAuraGroup (UnitMods unitMod) const
float GetPPMProcChance (uint32 WeaponSpeed, float PPM, const SpellInfo *spellProto) const
void GetProcAurasTriggeredOnEvent (AuraApplicationList &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo eventInfo)
uint8 getRace () const
uint32 getRaceMask () const
void GetRandomContactPoint (const Unit *target, float &x, float &y, float &z, float distance2dMin, float distance2dMax) const
ReputationRank GetReactionTo (Unit const *target) const
uint32 GetRedirectThreatPercent () const
UnitGetRedirectThreatTarget ()
uint32 GetRemainingPeriodicAmount (uint64 caster, uint32 spellId, AuraType auraType, uint8 effectIndex=0) const
uint32 GetResistance (SpellSchoolMask mask) const
uint32 GetResistance (SpellSchools school) const
float GetResistanceBuffMods (SpellSchools school, bool positive) const
uint32 GetSchoolImmunityMask () const
ShapeshiftForm GetShapeshiftForm () const
SharedVisionList const & GetSharedVisionList ()
SheathState GetSheath () const
AuraListGetSingleCastAuras ()
AuraList const & GetSingleCastAuras () const
float GetSpeed (UnitMoveType mtype) const
float GetSpeedRate (UnitMoveType mtype) const
float GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
float GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
PlayerGetSpellModOwner () const
SpellSchools GetSpellSchoolByAuraGroup (UnitMods unitMod) const
uint8 getStandState () const
float GetStat (Stats stat) const
Stats GetStatByAuraGroup (UnitMods unitMod) const
uint64 GetTarget () const
ThreatManagergetThreatManager ()
float GetTotalAttackPowerValue (WeaponAttackType attType) const
int32 GetTotalAuraModifier (AuraType auratype) const
int32 GetTotalAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const
int32 GetTotalAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask) const
int32 GetTotalAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const
float GetTotalAuraModValue (UnitMods unitMod) const
float GetTotalAuraMultiplier (AuraType auratype) const
float GetTotalAuraMultiplierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const
float GetTotalAuraMultiplierByMiscMask (AuraType auratype, uint32 misc_mask) const
float GetTotalAuraMultiplierByMiscValue (AuraType auratype, int32 misc_value) const
float GetTotalStatValue (Stats stat) const
uint32 getTransForm () const
uint64 GetTransGUID () const override
float GetUnitBlockChance () const
float GetUnitCriticalChance (WeaponAttackType attackType, const Unit *victim) const
float GetUnitDodgeChance () const
uint32 GetUnitMeleeSkill (Unit const *target=NULL) const
float GetUnitMissChance (WeaponAttackType attType) const
uint32 GetUnitMovementFlags () const
float GetUnitParryChance () const
VehicleGetVehicle () const
UnitGetVehicleBase () const
CreatureGetVehicleCreatureBase () const
VehicleGetVehicleKit () const
UnitGetVictim () const
uint32 getVirtualRealm () const
AuraApplicationGetVisibleAura (uint8 slot) const
VisibleAuraMap const * GetVisibleAuras ()
float GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type) const
float GetWeaponProcChance () const
void HandleEmoteCommand (uint32 anim_id)
void HandleProcExtraAttackFor (Unit *victim)
bool HandleSpellClick (Unit *clicker, int8 seatId=-1)
bool HandleStatModifier (UnitMods unitMod, UnitModifierType modifierType, float amount, bool apply)
bool HasAura (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const
bool HasAuraEffect (uint32 spellId, uint8 effIndex, uint64 caster=0) const
bool HasAuraState (AuraStateType flag, SpellInfo const *spellProto=NULL, Unit const *Caster=NULL) const
bool HasAuraType (AuraType auraType) const
bool HasAuraTypeWithAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const
bool HasAuraTypeWithCaster (AuraType auratype, uint64 caster) const
bool HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, uint32 familyFlags) const
bool HasAuraTypeWithMiscvalue (AuraType auratype, int32 miscvalue) const
bool HasAuraTypeWithValue (AuraType auratype, int32 value) const
bool HasAuraWithMechanic (uint32 mechanicMask) const
bool HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const
bool HasBreakableByDamageCrowdControlAura (Unit *excludeCasterChannel=NULL) const
uint16 HasExtraUnitMovementFlag (uint16 f) const
bool HasInvisibilityAura () const
bool HasNegativeAuraWithAttribute (uint32 flag, uint64 guid=0) const
bool HasNegativeAuraWithInterruptFlag (uint32 flag, uint64 guid=0) const
bool HasSharedVision () const
virtual bool HasSpell (uint32) const
bool HasStealthAura () const
bool HasUnitMovementFlag (uint32 f) const
bool HasUnitState (const uint32 f) const
uint32 HasUnitTypeMask (uint32 mask) const
bool HasVisionObscured (Unit const *target) const
bool haveOffhandWeapon () const
int32 HealBySpell (Unit *victim, SpellInfo const *spellInfo, uint32 addHealth, bool critical=false)
bool HealthAbovePct (int32 pct) const
bool HealthAbovePctHealed (int32 pct, uint32 heal) const
bool HealthBelowPct (int32 pct) const
bool HealthBelowPctDamaged (int32 pct, uint32 damage) const
void IncrDiminishing (DiminishingGroup group)
CharmInfoInitCharmInfo ()
void InitStatBuffMods ()
bool InitTamedPet (Pet *pet, uint8 level, uint32 spell_id) const
void InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true)
void InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true)
bool IsAlive () const
bool IsArmorer () const
bool isAttackingPlayer () const
bool isAttackReady (WeaponAttackType type=WeaponAttackType::BASE_ATTACK) const
bool IsAuctioner () const
bool IsBanker () const
bool IsBattleMaster () const
virtual bool isBeingLoaded () const
bool isBlockCritical ()
bool IsBMAuctioner () const
bool IsCharmed () const
bool IsCharmedOwnedByPlayerOrPlayer () const
bool IsContestedGuard () const
bool IsControlledByPlayer () const
bool isDead () const
bool IsDuringRemoveFromWorld () const
bool isDying () const
bool IsFalling () const
bool isFeared () const
bool IsFlying () const
bool IsFriendlyTo (Unit const *unit) const
bool isFrozen () const
bool IsFullHealth () const
bool IsGossip () const
bool IsGuardian () const
bool IsGuildMaster () const
bool IsHostileTo (Unit const *unit) const
bool IsHostileToPlayers () const
bool IsHunterPet () const
bool IsImmunedToDamage (SpellInfo const *spellInfo) const
bool IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const
virtual bool IsImmunedToSpell (SpellInfo const *spellInfo) const
virtual bool IsImmunedToSpellEffect (SpellInfo const *spellInfo, uint32 index) const
bool isInAccessiblePlaceFor (Creature const *c) const
bool isInBackInMap (Unit const *target, float distance, float arc=M_PI) const
bool IsInCombat () const
bool IsInDisallowedMountForm () const
bool IsInFeralForm () const
bool IsInFlight () const
bool isInFrontInMap (Unit const *target, float distance, float arc=M_PI) const
bool IsInnkeeper () const
bool IsInPartyWith (Unit const *unit) const
bool IsInRaidWith (Unit const *unit) const
bool isInRoots () const
virtual bool IsInWater () const
bool IsLevitating () const
bool IsMounted () const
bool isMoving () const
bool IsNeutralToAll () const
bool IsNonMeleeSpellCasted (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true) const
bool IsOnVehicle (const Unit *vehicle) const
bool IsPet () const
bool IsPolymorphed () const
bool isPossessed () const
bool isPossessedByPlayer () const
bool isPossessing () const
bool isPossessing (Unit *u) const
bool IsPvP () const
bool IsQuestGiver () const
AuraEffectIsScriptOverriden (SpellInfo const *spell, int32 script) const
bool IsServiceProvider () const
bool IsSitState () const
bool isSpellBlocked (Unit *victim, SpellInfo const *spellProto, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK)
bool isSpellCrit (Unit *victim, SpellInfo const *spellProto, SpellSchoolMask schoolMask, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK) const
bool IsSpiritGuide () const
bool IsSpiritHealer () const
bool IsSpiritService () const
bool IsSplineEnabled () const
bool IsStandState () const
bool IsStopped () const
bool IsSummon () const
bool IsTabardDesigner () const
bool isTargetableForAttack (bool checkFakeDeath=true) const
bool IsTaxi () const
bool IsTotem () const
bool IsTrainer () const
bool isTurning () const
virtual bool IsUnderWater () const
bool IsValidAssistTarget (Unit const *target) const
bool IsValidAttackTarget (Unit const *target) const
bool IsVehicle () const
bool IsVendor () const
bool IsVisible () const
bool IsWalking () const
bool IsWithinCombatRange (const Unit *obj, float dist2compare) const
bool IsWithinMeleeRange (const Unit *obj, float dist=MELEE_RANGE) const
void JumpTo (float speedXY, float speedZ, bool forward=true)
void JumpTo (WorldObject *obj, float speedZ)
void Kill (Unit *victim, bool durabilityLoss=true)
void KnockbackFrom (float x, float y, float speedXY, float speedZ)
SpellMissInfo MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo)
uint32 MeleeDamageBonusDone (Unit *pVictim, uint32 damage, WeaponAttackType attType, SpellInfo const *spellProto=NULL)
uint32 MeleeDamageBonusTaken (Unit *attacker, uint32 pdamage, WeaponAttackType attType, SpellInfo const *spellProto=NULL)
SpellMissInfo MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo)
float MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, uint32 spellId) const
void ModifyAuraState (AuraStateType flag, bool apply)
int32 ModifyHealth (int32 val)
int32 ModifyPower (Powers power, int32 val)
int32 ModifyPowerPct (Powers power, float pct, bool apply=true)
void ModifyRedirectThreat (int32 amount)
void ModSpellCastTime (SpellInfo const *spellProto, int32 &castTime, Spell *spell=NULL)
int32 ModSpellDuration (SpellInfo const *spellProto, Unit const *target, int32 duration, bool positive, uint32 effectMask)
void MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false)
void Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0)
void NearTeleportTo (float x, float y, float z, float orientation, bool casting=false)
void OutDebugInfo () const
void PlayOneShotAnimKit (uint32 id)
void ProcDamageAndSpell (Unit *victim, uint32 procAttacker, uint32 procVictim, uint32 procEx, uint32 amount, WeaponAttackType attType=WeaponAttackType::BASE_ATTACK, SpellInfo const *procSpell=NULL, SpellInfo const *procAura=NULL)
void ProcDamageAndSpellFor (bool isVictim, Unit *target, uint32 procFlag, uint32 procExtra, WeaponAttackType attType, SpellInfo const *procSpell, uint32 damage, SpellInfo const *procAura=NULL)
virtual void ProhibitSpellSchool (SpellSchoolMask, uint32)
void propagateSpeedChange ()
 -------—End of Pet responses methods-------—
void RemoveAllAttackers ()
void RemoveAllAuras ()
void RemoveAllAurasExceptType (AuraType type)
void RemoveAllAurasExceptType (AuraType type1, AuraType type2)
void RemoveAllAurasOnDeath ()
void RemoveAllAurasRequiringDeadTarget ()
void RemoveAllControlled ()
void RemoveAllDynObjects ()
void RemoveAllGameObjects ()
void RemoveAllMinionsByEntry (uint32 entry)
void RemoveAreaAurasDueToLeaveWorld ()
void RemoveArenaAuras ()
void RemoveAura (Aura *aur, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
void RemoveAura (AuraApplication *aurApp, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
void RemoveAura (AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
void RemoveAura (uint32 spellId, uint64 casterGUID=0, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void RemoveAuraFromStack (uint32 spellId, uint64 casterGUID=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void RemoveAurasByType (AuraType auraType, uint64 casterGUID=0, Aura *except=NULL, bool negative=true, bool positive=true)
void RemoveAurasDueToItemSpell (uint32 spellId, uint64 castItemGuid)
void RemoveAurasDueToSpell (uint32 spellId, uint64 casterGUID=0, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, uint64 casterGUID, Unit *dispeller, uint8 chargesRemoved=1)
void RemoveAurasDueToSpellBySteal (uint32 spellId, uint64 casterGUID, Unit *stealer)
void RemoveAurasWithAttribute (uint32 flags)
void RemoveAurasWithFamily (SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, uint64 casterGUID)
void RemoveAurasWithInterruptFlags (uint32 flag, uint32 except=0)
void RemoveAurasWithMechanic (uint32 mechanic_mask, AuraRemoveMode removemode=AURA_REMOVE_BY_DEFAULT, uint32 except=0)
void RemoveBindSightAuras ()
void RemoveCharmAuras ()
void RemoveCharmedBy (Unit *charmer)
void RemoveComboPointHolder (uint32 lowguid)
void RemoveDynObject (uint32 spellId)
void RemoveExtraUnitMovementFlag (uint16 f)
void removeFollower (FollowerReference *)
void RemoveFromWorld () override
void RemoveGameObject (GameObject *gameObj, bool del)
void RemoveGameObject (uint32 spellid, bool del)
void removeHatedBy (HostileReference *)
void RemoveMovementImpairingAuras ()
void RemoveNotOwnSingleTargetAuras (uint32 newPhase=0, bool phaseid=false)
void RemoveOwnedAura (Aura *aura, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void RemoveOwnedAura (AuraMap::iterator &i, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void RemoveOwnedAura (uint32 spellId, uint64 casterGUID=0, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void RemovePetAura (PetAura const *petSpell)
void RemovePlayerFromVision (Player *player)
void RemoveStandFlags (uint8 flags)
void RemoveUnitMovementFlag (uint32 f)
void RemoveVehicleKit (bool remove=false)
void RemoveVisibleAura (uint8 slot)
void resetAttackTimer (WeaponAttackType type=WeaponAttackType::BASE_ATTACK)
void ResetRedirectThreat ()
void RestoreDisplayId ()
void RestoreFaction ()
void RewardRage (uint32 baseRage, bool attacker)
MeleeHitOutcome RollMeleeOutcomeAgainst (const Unit *victim, WeaponAttackType attType) const
MeleeHitOutcome RollMeleeOutcomeAgainst (const Unit *victim, WeaponAttackType attType, int32 crit_chance, int32 miss_chance, int32 dodge_chance, int32 parry_chance, int32 block_chance) const
UnitSelectNearbyTarget (Unit *exclude=NULL, float dist=NOMINAL_MELEE_RANGE) const
void SendAttackStateUpdate (CalcDamageInfo *damageInfo)
void SendAttackStateUpdate (uint32 HitInfoHitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount)
void SendChangeCurrentVictimOpcode (HostileReference *pHostileReference)
void SendClearTarget ()
void SendClearThreatListOpcode (ObjectGuid UnitGUID)
void SendDurabilityLoss (Player *receiver, uint32 percent)
void SendEnergizeSpellLog (Unit *victim, uint32 spellID, int32 damage, Powers powertype)
void SendHealSpellLog (ObjectGuid CasterGUID, ObjectGuid TargetGUID, uint32 SpellID, uint32 Damage, uint32 OverHeal, uint32 Absorb, bool critical=false)
void SendMeleeAttackStart (Unit *victim)
void SendMeleeAttackStop (Unit *victim=NULL)
void SendMoveKnockBack (Player *player, float speedXY, float speedZ, float vcos, float vsin)
void SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo)
void SendPetActionFeedback (uint8 msg) const
 -------—Pet responses methods--------------—
void SendPetAIReaction (ObjectGuid UnitGUID) const
void SendPetTalk (uint32 pettalk) const
void SendPlaySpellVisual (uint32 SpellVisualId, float x, float y, float z, float orientation, uint8 SpeedTime, uint16 MissReason, uint16 ReflectStatus)
void SendPlaySpellVisualKit (uint32 SpellVisualId, uint32 Duration, int32 Type)
void SendRemoveFromThreatListOpcode (HostileReference *pHostileReference)
void SendSetVehicleRecId (uint32 vehicleId)
void SendSpellDamageImmune (Unit *target, uint32 spellId)
void SendSpellDamageResist (Unit *target, uint32 spellId)
void SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo)
void SendSpellNonMeleeDamageLog (SpellNonMeleeDamage *log)
void SendSpellNonMeleeDamageLog (Unit *target, uint32 SpellID, uint32 Damage, SpellSchoolMask damageSchoolMask, uint32 AbsorbedDamage, uint32 Resist, bool PhysicalDamage, uint32 Blocked, bool CriticalHit=false)
void SendTeleportPacket (Position &pos)
void SendThreatListUpdate ()
void SetAI (UnitAI *newAI)
void SetAnimTier (AnimTier tier)
void SetArmor (int32 val)
void SetAttackTime (WeaponAttackType att, uint32 val)
void setAttackTimer (WeaponAttackType type, uint32 time)
void SetAuraStack (uint32 spellId, Unit *target, uint32 stack)
void SetAutoattackOverrideRange (uint32 range)
void SetAutoattackOverrideSpell (SpellInfo const *spellInfo)
void SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value)
void SetCanDualWield (bool value)
bool SetCanFly (bool enable)
void SetCanModifyStats (bool modifyStats)
void SetCantProc (bool apply)
void SetCharm (Unit *target, bool apply)
bool SetCharmedBy (Unit *charmer, CharmType type, AuraApplication const *aurApp=NULL)
void SetCharmerGUID (uint64 owner)
void SetClass (uint8 newClass)
void SetContestedPvP (Player *attackedPlayer=NULL)
void SetControlled (bool apply, UnitState state)
void SetCreateHealth (uint32 val)
void SetCreateMana (uint32 val)
void SetCreateStat (Stats stat, float val)
void SetCreatorGUID (uint64 creator)
void SetCritterGUID (uint64 guid)
void SetCurrentCastedSpell (Spell *pSpell)
virtual void setDeathState (DeathState s)
bool SetDisableGravity (bool disable, bool packetOnly=false)
virtual void SetDisplayId (uint32 modelId)
void SetExtraUnitMovementFlags (uint16 f)
void SetFacingTo (float ori)
void SetFacingToObject (WorldObject *object)
void setFaction (uint32 faction)
bool SetFall (bool enable)
bool SetFeatherFall (bool enable, bool packetOnly=false)
void SetFieldPowerType (uint32 powerType)
void SetFullHealth ()
void SetGender (uint8 gender)
void SetHealth (uint32 val)
bool SetHover (bool enable, bool packetOnly=false)
void SetInCombatState (bool PvP, Unit *enemy=NULL)
void SetInCombatWith (Unit *enemy)
void SetInFront (WorldObject const *target)
void SetLastDamagedTime (time_t val)
void SetLevel (uint8 lvl)
void SetMaxHealth (uint32 val)
void SetMaxPower (Powers power, int32 val)
void SetMinion (Minion *minion, bool apply)
void SetMinionGUID (uint64 guid)
void SetModifierValue (UnitMods unitMod, UnitModifierType modifierType, float value)
void SetNativeDisplayId (uint32 modelId)
void SetOwnerGUID (uint64 owner)
void SetPetGUID (uint64 guid)
bool SetPhased (uint32 id, bool update, bool apply) OVERRIDE
void SetPhaseMask (uint32 newPhaseMask, bool update) override
void SetPower (Powers power, int32 val)
void setPowerType (Powers power)
void SetPvP (bool state)
void SetRace (uint8 race)
void SetRedirectThreat (uint64 guid, uint32 pct)
void SetResistance (SpellSchools school, int32 val)
void SetResistanceBuffMods (SpellSchools school, bool positive, float val)
void SetShapeshiftForm (ShapeshiftForm form)
virtual void SetSheath (SheathState sheathed)
void SetSpeed (UnitMoveType mtype, float rate, bool forced=false)
void SetStandFlags (uint8 flags)
void SetStandState (uint8 state)
void SetStat (Stats stat, int32 val)
bool SetSwim (bool enable)
virtual void SetTarget (uint64)=0
void setTransForm (uint32 spellid)
void SetUnitMovementFlags (uint32 f)
void SetVehicle (Vehicle *vehicle)
void SetVisible (bool x)
void SetVisibleAura (uint8 slot, AuraApplication *aur)
bool SetWalk (bool enable)
bool SetWaterWalking (bool enable, bool packetOnly=false)
int32 SpellBaseDamageBonusDone (SpellSchoolMask schoolMask) const
int32 SpellBaseDamageBonusTaken (SpellSchoolMask schoolMask) const
int32 SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const
int32 SpellBaseHealingBonusTaken (SpellSchoolMask schoolMask) const
uint32 SpellCriticalDamageBonus (SpellInfo const *spellProto, uint32 damage, Unit *victim)
uint32 SpellCriticalHealingBonus (SpellInfo const *spellProto, uint32 damage, Unit *victim)
uint32 SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint32 stack=1) const
uint32 SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint32 stack=1) const
uint32 SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, uint32 stack=1) const
uint32 SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, uint32 stack=1) const
SpellMissInfo SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect=false)
uint32 SpellNonMeleeDamageLog (Unit *victim, uint32 spellID, uint32 damage)
void StartReactiveTimer (ReactiveType reactive)
void StopAttackFaction (uint32 faction_id)
void StopMoving ()
 -------—End of Pet responses methods-------—
void TauntApply (Unit *victim)
void TauntFadeOut (Unit *taunter)
PetToPet ()
Pet const * ToPet () const
TempSummonToTempSummon ()
TempSummon const * ToTempSummon () const
TotemToTotem ()
Totem const * ToTotem () const
void TrackGameObject (GameObject *gameObj)
void TriggerAurasProcOnEvent (AuraApplicationList *myProcAuras, AuraApplicationList *targetProcAuras, Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo)
void TriggerAurasProcOnEvent (CalcDamageInfo &damageInfo)
void TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationList &procAuras)
void UnsummonAllTotems ()
void Update (uint32 time) OVERRIDE
virtual bool UpdateAllStats ()=0
virtual void UpdateArmor ()=0
virtual void UpdateAttackPowerAndDamage (bool ranged=false)=0
void UpdateAuraForGroup (uint8 slot)
void UpdateCharmAI ()
virtual void UpdateDamagePhysical (WeaponAttackType attType)=0
void UpdateHeight (float newZ)
 Only server-side height update, does not broadcast to client.
void UpdateInterruptMask ()
virtual void UpdateMaxHealth ()=0
virtual void UpdateMaxPower (Powers power)=0
void UpdateObjectVisibility (bool forced=true) override
void UpdateOrientation (float orientation)
 Only server-side orientation update, does not broadcast to client.
bool UpdatePosition (const Position &pos, bool teleport=false)
virtual bool UpdatePosition (float x, float y, float z, float ang, bool teleport=false)
void UpdateReactives (uint32 p_time)
virtual void UpdateResistances (uint32 school)=0
void UpdateSpeed (UnitMoveType mtype, bool forced)
virtual bool UpdateStats (Stats stat)=0
virtual void UpdateUnderwaterState (Map *m, float x, float y, float z)
void WriteMovementInfo (WorldPacket &data, Movement::ExtraMovementStatusElement *extras=NULL)
virtual ~Unit ()
Public Member Functions inherited from WorldObject
void _Create (uint32 guidlow, HighGuid guidhigh, uint32 phaseMask)
void AddObjectToRemoveList ()
void AddToNotify (uint16 f)
void BuildUpdate (UpdateDataMapType &)
bool CanSeeOrDetect (WorldObject const *obj, bool ignoreStealth=false, bool distanceCheck=false) const
void ClearPhases (bool update=false)
void DestroyForNearbyPlayers ()
MapFindMap () const
CreatureFindNearestCreature (uint32 entry, float range, bool alive=true) const
GameObjectFindNearestGameObject (uint32 entry, float range) const
GameObjectFindNearestGameObjectOfType (GameobjectTypes type, float range) const
uint32 GetAreaId () const
Map const * GetBaseMap () const
void GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float angle=0) const
void GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const
void GetCreatureListWithEntryInGrid (std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const
float GetDistance (float x, float y, float z) const
float GetDistance (Position const &pos) const
float GetDistance (WorldObject const *obj) const
float GetDistance2d (float x, float y) const
float GetDistance2d (WorldObject const *obj) const
bool GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const
float GetDistanceZ (WorldObject const *obj) const
void GetFirstCollisionPosition (Position &pos, float dist, float angle)
void GetGameObjectListWithEntryInGrid (std::list< GameObject * > &lList, uint32 uiEntry, float fMaxSearchRange) const
float GetGridActivationRange () const
uint32 GetInstanceId () const
InstanceScriptGetInstanceScript ()
MapGetMap () const
std::string const & GetName () const
virtual std::string const & GetNameForLocaleIdx (LocaleConstant) const
void GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float searcher_size, float distance2d, float absAngle) const
void GetNearPoint2D (float &x, float &y, float distance, float absAngle) const
void GetNearPosition (Position &pos, float dist, float angle)
uint16 GetNotifyFlags () const
float GetObjectSize () const
uint32 GetPhaseMask () const
std::set< uint32 > const & GetPhases () const
void GetPlayerListInGrid (std::list< Player * > &lList, float fMaxSearchRange) const
void GetRandomNearPosition (Position &pos, float radius)
void GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const
void GetRandomPoint (Position const &srcPos, float distance, Position &pos) const
float GetSightRange (WorldObject const *target=NULL) const
virtual float GetStationaryO () const
virtual float GetStationaryX () const
virtual float GetStationaryY () const
virtual float GetStationaryZ () const
std::set< uint32 > const & GetTerrainSwaps () const
float GetTransOffsetO () const
float GetTransOffsetX () const
float GetTransOffsetY () const
float GetTransOffsetZ () const
TransportGetTransport () const
int8 GetTransSeat () const
uint32 GetTransTime () const
float GetVisibilityRange () const
std::set< uint32 > const & GetWorldMapSwaps () const
void GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const
uint32 GetZoneId () const
ZoneScriptGetZoneScript () const
bool HasPhaseList (uint32 phase)
bool InSamePhase (uint32 phasemask) const
bool InSamePhase (WorldObject const *obj) const
bool isActiveObject () const
bool isInBack (WorldObject const *target, float arc=M_PI) const
bool IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const
bool isInFront (WorldObject const *target, float arc=M_PI) const
bool IsInMap (WorldObject const *obj) 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 isNeedNotify (uint16 f) const
bool IsPermanentWorldObject () const
bool IsPhased (uint32 phase) const
bool IsPhased (WorldObject const *obj) const
bool IsSelfOrInSameMap (WorldObject const *obj) const
bool IsTerrainSwaped (uint32 terrainSwap) const
bool IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true) const
bool IsWithinDist2d (float x, float y, float dist) const
bool IsWithinDist2d (Position const *pos, float dist) const
bool IsWithinDist3d (float x, float y, float z, float dist) const
bool IsWithinDist3d (Position const *pos, float dist) const
bool IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true) const
bool IsWithinLOS (float x, float y, float z) const
bool IsWithinLOSInMap (WorldObject const *obj) const
bool IsWorldObject () const
void MonsterSay (const char *text, Language language, WorldObject const *target)
void MonsterSay (int32 textId, Language language, WorldObject const *target)
void MonsterTextEmote (const char *text, WorldObject const *target, bool IsBossEmote=false)
void MonsterTextEmote (int32 textId, WorldObject const *target, bool IsBossEmote=false)
void MonsterWhisper (const char *text, Player const *target, bool IsBossWhisper=false)
void MonsterWhisper (int32 textId, Player const *target, bool IsBossWhisper=false)
void MonsterYell (const char *text, Language language, WorldObject const *target)
void MonsterYell (int32 textId, Language language, WorldObject const *target)
void MovePosition (Position &pos, float dist, float angle)
void MovePositionToFirstCollision (Position &pos, float dist, float angle)
bool NotifyExecuted (uint16 f) const
void PlayDirectSound (uint32 sound_id, Player *target=NULL)
void PlayDistanceSound (uint32 sound_id, Player *target)
void RebuildTerrainSwaps ()
void RebuildWorldMapAreaSwaps ()
void ResetAllNotifies ()
virtual void ResetMap ()
virtual void SaveRespawnTime ()
virtual void SendMessageToSet (WorldPacket *data, bool self)
virtual void SendMessageToSet (WorldPacket *data, Player const *skipped_rcvr)
virtual void SendMessageToSetInRange (WorldPacket *data, float dist, bool self)
void SendObjectDeSpawnAnim (uint64 guid)
void SendPlaySound (uint32 SoundSound, bool OnlySelf)
void setActive (bool isActiveObject)
virtual void SetMap (Map *map)
void SetName (std::string const &newname)
void SetNotified (uint16 f)
void SetTransport (Transport *t)
void SetWorldObject (bool apply)
void SetZoneScript ()
TempSummonSummonCreature (uint32 id, float x, float y, float z, float ang=0, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0) const
TempSummonSummonCreature (uint32 id, Position const &pos, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
void SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=NULL)
GameObjectSummonGameObject (uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime)
CreatureSummonTrigger (float x, float y, float z, float ang, uint32 dur, CreatureAI *(*GetAI)(Creature *)=NULL)
void UpdateAllowedPositionZ (float x, float y, float &z) const
void UpdateAreaPhase ()
void UpdateGroundPositionZ (float x, float y, float &z) const
template<class NOTIFIER>
void VisitNearbyGridObject (float const &radius, NOTIFIER &notifier) const
template<class NOTIFIER>
void VisitNearbyObject (float const &radius, NOTIFIER &notifier) const
template<class NOTIFIER>
void VisitNearbyWorldObject (float const &radius, NOTIFIER &notifier) const
virtual ~WorldObject ()
Public Member Functions inherited from Object
bool AddUInt64Value (uint16 index, uint64 value)
void ApplyModFlag (uint16 index, uint32 flag, bool apply)
void ApplyModFlag64 (uint16 index, uint64 flag, bool apply)
void ApplyModInt32Value (uint16 index, int32 val, bool apply)
void ApplyModPositiveFloatValue (uint16 index, float val, bool apply)
void ApplyModSignedFloatValue (uint16 index, float val, bool apply)
void ApplyModUInt32Value (uint16 index, int32 val, bool apply)
void ApplyPercentModFloatValue (uint16 index, float val, bool apply)
virtual void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const
void BuildFieldsUpdate (Player *, UpdateDataMapType &) const
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player *target) const
void ClearUpdateMask (bool remove)
virtual void DestroyForPlayer (Player *target, bool onDeath=false) const
void ForceValuesUpdateAtIndex (uint32)
uint8 GetByteValue (uint16 index, uint8 offset) const
uint32 GetDynamicUInt32Value (uint32 tab, uint16 index) const
uint32 GetEntry () const
float GetFloatValue (uint16 index) const
uint64 GetGUID () const
uint32 GetGUIDHigh () const
uint32 GetGUIDLow () const
uint32 GetGUIDMid () const
int32 GetInt32Value (uint16 index) const
ObjectGuid GetObjectGUID () const
float GetObjectScale () const
const ByteBufferGetPackGUID () const
TypeID GetTypeId () const
uint16 GetUInt16Value (uint16 index, uint8 offset) const
uint32 GetUInt32Value (uint16 index) const
uint64 GetUInt64Value (uint16 index) const
uint16 GetValuesCount () const
bool HasByteFlag (uint16 index, uint8 offset, uint8 flag) const
bool HasFlag (uint16 index, uint32 flag) const
bool HasFlag64 (uint16 index, uint64 flag) const
virtual bool hasInvolvedQuest (uint32) const
virtual bool hasQuest (uint32) const
bool IsInWorld () const
bool isType (uint16 mask) const
void RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag)
void RemoveFieldNotifyFlag (uint16 flag)
void RemoveFlag (uint16 index, uint32 oldFlag)
void RemoveFlag64 (uint16 index, uint64 oldFlag)
bool RemoveUInt64Value (uint16 index, uint64 value)
void SendDestroyObject (Player *target, ObjectGuid Guid, bool onDeath=false) const
void SendUpdateToPlayer (Player *player)
void SetByteFlag (uint16 index, uint8 offset, uint8 newFlag)
void SetByteValue (uint16 index, uint8 offset, uint8 value)
void SetDynamicUInt32Value (uint32 tab, uint16 index, uint32 value)
void SetEntry (uint32 entry)
void SetFieldNotifyFlag (uint16 flag)
void SetFlag (uint16 index, uint32 newFlag)
void SetFlag64 (uint16 index, uint64 newFlag)
void SetFloatValue (uint16 index, float value)
void SetInt16Value (uint16 index, uint8 offset, int16 value)
void SetInt32Value (uint16 index, int32 value)
virtual void SetObjectScale (float scale)
void SetStatFloatValue (uint16 index, float value)
void SetStatInt32Value (uint16 index, int32 value)
void SetUInt16Value (uint16 index, uint8 offset, uint16 value)
void SetUInt32Value (uint16 index, uint32 value)
void SetUInt64Value (uint16 index, uint64 value)
AreaTriggerToAreaTrigger ()
AreaTrigger const * ToAreaTrigger () const
CorpseToCorpse ()
Corpse const * ToCorpse () const
CreatureToCreature ()
Creature const * ToCreature () const
DynamicObjectToDynObject ()
DynamicObject const * ToDynObject () const
GameObjectToGameObject ()
GameObject const * ToGameObject () const
void ToggleByteFlag (uint16 index, uint8 offset, uint8 flag)
void ToggleFlag (uint16 index, uint32 flag)
void ToggleFlag64 (uint16 index, uint64 flag)
PlayerToPlayer ()
Player const * ToPlayer () const
UnitToUnit ()
Unit const * ToUnit () const
void UpdateUInt32Value (uint16 index, uint32 value)
virtual ~Object ()
Public Member Functions inherited from WorldLocation
uint32 GetMapId () const
 WorldLocation (const WorldLocation &loc)
 WorldLocation (uint32 _mapid=MAPID_INVALID, float _x=0, float _y=0, float _z=0, float _o=0)
void WorldRelocate (const WorldLocation &loc)
Public Member Functions inherited from Position
float GetAngle (float x, float y) const
float GetAngle (Position const *pos) const
float GetExactDist (float x, float y, float z) const
float GetExactDist (Position const *pos) const
float GetExactDist2d (const float x, const float y) const
float GetExactDist2d (Position const *pos) const
float GetExactDist2dSq (float x, float y) const
float GetExactDist2dSq (Position const *pos) const
float GetExactDistSq (float x, float y, float z) const
float GetExactDistSq (Position const *pos) 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
void GetPosition (Position *pos) const
void GetPositionOffsetTo (Position const &endPos, Position &retOffset) const
float GetPositionX () const
float GetPositionY () const
float GetPositionZ () const
float GetRelativeAngle (float x, float y) const
float GetRelativeAngle (Position const *pos) const
void GetSinCos (float x, float y, float &vsin, float &vcos) const
bool HasInArc (float arcangle, Position const *pos, float border=2.0f) const
bool HasInLine (WorldObject const *target, float width) const
bool IsInDist (float x, float y, float z, float dist) const
bool IsInDist (Position const *pos, float dist) const
bool IsInDist2d (float x, float y, float dist) const
bool IsInDist2d (Position const *pos, float dist) const
bool IsPositionValid () const
bool operator!= (Position const &a)
bool operator== (Position const &a)
Position::PositionXYZOStreamer PositionXYZOStream ()
Position::PositionXYZStreamer PositionXYZStream ()
void Relocate (float x, float y)
void Relocate (float x, float y, float z)
void Relocate (float x, float y, float z, float orientation)
void Relocate (Position const &pos)
void Relocate (Position const *pos)
void RelocateOffset (Position const &offset)
void SetOrientation (float orientation)
std::string ToString () const

Static Public Member Functions

static CreatureGetCreature (WorldObject &object, uint64 guid)
static ReputationRank GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, Unit const *target)
static PlayerGetPlayer (WorldObject &object, uint64 guid)
static UnitGetUnit (WorldObject &object, uint64 guid)
static bool IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=NULL, uint8 effIndex=MAX_SPELL_EFFECTS)
Static Public Member Functions inherited from Position
static float NormalizeOrientation (float o)

Public Attributes

bool IsAIEnabled
uint64 LastCharmerGUID
int32 m_baseSpellCritChance
bool m_canDualWield
ControlList m_Controlled
bool m_ControlledByPlayer
EventProcessor m_Events
uint32 m_extraAttacks
uint32 m_lastSanctuaryTime
float m_modAttackSpeedPct [3]
float m_modMeleeHitChance
float m_modRangedHitChance
float m_modSpellHitChance
Playerm_movedPlayer
uint64 m_ObjectSlot [MAX_GAMEOBJECT_SLOT]
PetAuraSet m_petAuras
SpellImmuneList m_spellImmune [MAX_SPELL_IMMUNITY]
uint64 m_SummonSlot [MAX_SUMMON_SLOT]
float m_threatModifier [MAX_SPELL_SCHOOL]
std::unique_ptr< Movement::MoveSplinemovespline
bool NeedChangeAI
Public Attributes inherited from WorldObject
uint32 LastUsedScriptID
FlaggedValuesArray32< int32, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPESm_invisibility
FlaggedValuesArray32< int32, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPESm_invisibilityDetect
MovementInfo m_movementInfo
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPESm_serverSideVisibility
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPESm_serverSideVisibilityDetect
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealth
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealthDetect
Public Attributes inherited from WorldLocation
uint32 m_mapId
Public Attributes inherited from Position
float m_orientation
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 _DeleteRemovedAuras ()
void _UpdateAutoRepeatSpell ()
void _UpdateSpells (uint32 time)
void BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player *target) const override
void DisableSpline ()
virtual SpellSchoolMask GetMeleeDamageSchoolMask () const
bool IsAlwaysDetectableFor (WorldObject const *seer) const override
bool IsAlwaysVisibleFor (WorldObject const *seer) const override
void SendMissileCancel (uint32 spellId, bool cancel=true)
void SetConfused (bool apply)
void SetFeared (bool apply)
void SetRooted (bool apply, bool packetOnly=false)
void SetStunned (bool apply)
 Unit (bool isWorldObject)
Protected Member Functions inherited from WorldObject
virtual bool IsInvisibleDueToDespawn () const
virtual bool IsNeverVisible () const
void SetLocationInstanceId (uint32 _instanceId)
void SetLocationMapId (uint32 _mapId)
 WorldObject (bool isWorldObject)
Protected Member Functions inherited from Object
std::string _ConcatFields (uint16 startIndex, uint16 size) const
void _Create (uint32 guidlow, uint32 entry, HighGuid guidhigh)
void _InitValues ()
void _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count)
void BuildDynamicValuesUpdate (uint8 updateType, ByteBuffer *data, Player *target) const
void BuildMovementUpdate (ByteBuffer *data, uint16 flags) const
uint32 GetUpdateFieldData (Player const *target, uint32 *&flags) const
 Object ()

Protected Attributes

LiquidTypeEntry const * _lastLiquid
UnitAIi_AI
UnitAIi_disabledAI
MotionMaster i_motionMaster
AuraApplicationMap m_appliedAuras
AttackerSet m_attackers
Unitm_attacking
uint32 m_attackTimer [uint8(WeaponAttackType::MAX_ATTACK)]
float m_auraModifiersGroup [UNIT_MOD_END][MODIFIER_TYPE_END]
AuraStateAurasMap m_auraStateAuras
AuraMap::iterator m_auraUpdateIterator
bool m_AutoRepeatFirstCast
bool m_canModifyStats
CharmInfom_charmInfo
float m_createStats [MAX_STATS]
Spellm_currentSpells [CURRENT_MAX_SPELL]
DeathState m_deathState
DynObjectList m_dynObj
GameObjectList m_gameObj
AuraApplicationList m_interruptableAuras
uint32 m_interruptMask
bool m_isSorted
AuraEffectList m_modAuras [TOTAL_AURAS]
uint32 m_movementCounter
 Incrementing counter used in movement packets.
uint32 m_overrideAutoattackRange
SpellInfo const * m_overrideAutoattackSpellInfo
AuraMap m_ownedAuras
int32 m_procDeep
uint32 m_reactiveTimer [MAX_REACTIVE]
uint32 m_regenTimer
AuraList m_removedAuras
uint32 m_removedAurasCount
AuraList m_scAuras
SharedVisionList m_sharedVision
float m_speed_rate [MAX_MOVE_TYPE]
ThreatManager m_ThreatManager
uint32 m_transform
uint32 m_unitTypeMask
Vehiclem_vehicle
Vehiclem_vehicleKit
VisibleAuraMap m_visibleAuras
float m_weaponDamage [uint8(WeaponAttackType::MAX_ATTACK)][2]
Protected Attributes inherited from WorldObject
bool m_isActive
const bool m_isWorldObject
std::string m_name
Transportm_transport
ZoneScriptm_zoneScript
Protected Attributes inherited from Object
union { 
   float *   m_floatValues 
   int32 *   m_int32Values 
   uint32 *   m_uint32Values 
}; 
UpdateMask _changesMask
std::vector< bool * > m_dynamicChange
std::vector< uint32 * > m_dynamicTab
uint16 m_fieldNotifyFlags
uint16 m_objectType
TypeID m_objectTypeId
bool m_objectUpdated
uint16 m_updateFlag
uint16 m_valuesCount

Private Member Functions

uint32 GetCombatRatingDamageReduction (CombatRating cr, float rate, float cap, uint32 damage) const
float GetCombatRatingReduction (CombatRating cr) const
bool HandleAuraProc (Unit *victim, uint32 damage, Aura *triggeredByAura, SpellInfo const *procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown, bool *handled)
bool HandleAuraProcOnPowerAmount (Unit *victim, uint32 damage, AuraEffect *triggeredByAura, SpellInfo const *procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown)
bool HandleAuraRaidProcFromCharge (AuraEffect *triggeredByAura)
bool HandleAuraRaidProcFromChargeWithValue (AuraEffect *triggeredByAura)
bool HandleDummyAuraProc (Unit *victim, uint32 damage, AuraEffect *triggeredByAura, SpellInfo const *procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown)
bool HandleOverrideClassScriptAuraProc (Unit *victim, uint32 damage, AuraEffect *triggeredByAura, SpellInfo const *procSpell, uint32 cooldown)
bool HandleProcTriggerSpell (Unit *victim, uint32 damage, AuraEffect *triggeredByAura, SpellInfo const *procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown)
bool IsTriggeredAtSpellProcEvent (Unit *victim, Aura *aura, SpellInfo const *procSpell, uint32 procFlag, uint32 procExtra, WeaponAttackType attType, bool isVictim, bool active, SpellProcEventEntry const *&spellProcEvent)
void UpdateSplineMovement (uint32 t_diff)
void UpdateSplinePosition ()

Private Attributes

bool _isWalkingBeforeCharm
time_t _lastDamagedTime
RedirectThreatInfo _redirectThreadInfo
bool m_cleanupDone
uint32 m_CombatTimer
ComboPointHolderSet m_ComboPointHolders
Diminishing m_Diminishing
bool m_duringRemoveFromWorld
FollowerRefManager m_FollowingRefManager
HostileRefManager m_HostileRefManager
TimeTrackerSmall m_movesplineTimer
uint32 m_state

Friends

class VehicleJoinEvent

Detailed Description

Definition at line 1366 of file Unit.h.

Member Typedef Documentation

◆ AttackerSet

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

Definition at line 1369 of file Unit.h.

◆ AuraApplicationList

Definition at line 1385 of file Unit.h.

◆ AuraApplicationMap

Definition at line 1376 of file Unit.h.

◆ AuraApplicationMapBounds

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

Definition at line 1377 of file Unit.h.

◆ AuraApplicationMapBoundsNonConst

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

Definition at line 1378 of file Unit.h.

◆ AuraEffectList

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

Definition at line 1383 of file Unit.h.

◆ AuraList

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

Definition at line 1384 of file Unit.h.

◆ AuraMap

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

Definition at line 1372 of file Unit.h.

◆ AuraMapBounds

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

Definition at line 1373 of file Unit.h.

◆ AuraMapBoundsNonConst

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

Definition at line 1374 of file Unit.h.

◆ AuraStateAurasMap

Definition at line 1380 of file Unit.h.

◆ AuraStateAurasMapBounds

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

Definition at line 1381 of file Unit.h.

◆ ComboPointHolderSet

typedef std::set<uint32> Unit::ComboPointHolderSet

Definition at line 1387 of file Unit.h.

◆ ControlList

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

Definition at line 1370 of file Unit.h.

◆ Diminishing

Definition at line 1386 of file Unit.h.

◆ DynObjectList

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

Definition at line 2887 of file Unit.h.

◆ GameObjectList

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

Definition at line 2890 of file Unit.h.

◆ PetAuraSet

typedef std::set<PetAura const*> Unit::PetAuraSet

Definition at line 2707 of file Unit.h.

◆ VisibleAuraMap

Definition at line 1389 of file Unit.h.

Constructor & Destructor Documentation

◆ ~Unit()

◆ Unit()

Unit::Unit ( bool isWorldObject)
explicitprotected

Definition at line 142 of file Unit.cpp.

References _isWalkingBeforeCharm, _lastDamagedTime, _lastLiquid, _redirectThreadInfo, ALIVE, BASE_ATTACK, BASE_MAXDAMAGE, BASE_MINDAMAGE, BASE_PCT, BASE_VALUE, CURRENT_MAX_SPELL, GHOST_VISIBILITY_ALIVE, i_AI, i_disabledAI, i_motionMaster, IsAIEnabled, LastCharmerGUID, m_attacking, m_attackTimer, m_auraModifiersGroup, m_auraUpdateIterator, m_AutoRepeatFirstCast, m_baseSpellCritChance, m_canDualWield, m_canModifyStats, m_charmInfo, m_cleanupDone, m_CombatTimer, m_ControlledByPlayer, m_createStats, m_currentSpells, m_deathState, m_duringRemoveFromWorld, m_extraAttacks, m_HostileRefManager, m_interruptMask, m_isSorted, m_lastSanctuaryTime, m_modAttackSpeedPct, m_modMeleeHitChance, m_modRangedHitChance, m_modSpellHitChance, m_movedPlayer, m_movementCounter, m_ObjectSlot, Object::m_objectType, Object::m_objectTypeId, m_overrideAutoattackRange, m_overrideAutoattackSpellInfo, m_ownedAuras, m_procDeep, m_reactiveTimer, m_regenTimer, m_removedAurasCount, WorldObject::m_serverSideVisibility, m_speed_rate, m_spellImmune, m_state, m_SummonSlot, m_ThreatManager, m_threatModifier, m_transform, m_unitTypeMask, Object::m_updateFlag, m_vehicle, m_vehicleKit, m_weaponDamage, MAX_ATTACK, MAX_GAMEOBJECT_SLOT, MAX_MOVE_TYPE, MAX_REACTIVE, MAX_SPELL_IMMUNITY, MAX_SPELL_SCHOOL, MAX_STATS, MAX_SUMMON_SLOT, MAXDAMAGE, MINDAMAGE, movespline, NeedChangeAI, OFF_ATTACK, RANGED_ATTACK, SERVERSIDE_VISIBILITY_GHOST, TOTAL_PCT, TOTAL_VALUE, TYPEID_UNIT, TYPEMASK_UNIT, UNIT_MASK_NONE, UNIT_MOD_DAMAGE_OFFHAND, UNIT_MOD_END, UPDATEFLAG_LIVING, and WorldObject::WorldObject().

Referenced by _addAttacker(), _AddAura(), _ApplyAura(), _CreateAuraApplication(), Creature::_IsTargetAcceptable(), _IsValidAssistTarget(), _IsValidAttackTarget(), _removeAttacker(), _TryStackingOrRefreshingExistingAura(), _UnapplyAura(), AddAura(), AddAura(), Player::AddComboPoints(), AddThreat(), ApplyDiminishingToDuration(), ApplyResilience(), Attack(), AttackerStateUpdate(), AttackStop(), BuildAuraStateUpdateForTarget(), CalcAbsorbResist(), CalcArmorReducedDamage(), CalcHealAbsorb(), CalcSpellResistance(), CalculateMeleeDamage(), CalculateSpellDamage(), CalculateSpellDamageTaken(), Creature::CanAssistTo(), Creature::CanCreatureAttack(), Creature::CanStartAttack(), CastCustomSpell(), CastCustomSpell(), CastCustomSpell(), CastCustomSpell(), Player::CastItemCombatSpell(), Player::CastItemCombatSpell(), CastSpell(), CastSpell(), CastSpell(), CastSpell(), Player::CharmSpellInitialize(), Player::ClearComboPoints(), ClearInCombat(), CombatStart(), Creature::Creature(), DealDamage(), DealDamageMods(), DealHeal(), DealMeleeDamage(), DealSpellDamage(), EnergizeBySpell(), EnterVehicle(), GetAffectingPlayer(), Creature::GetAggroRange(), GetAllMinionsByEntry(), Creature::GetAttackDistance(), getAttackerForHelper(), GetCharm(), GetCharmer(), GetCharmerOrOwner(), GetCharmerOrOwnerOrSelf(), GetCharmerOrOwnerPlayerOrPlayerItself(), GetDispellableAuraList(), GetFactionReactionTo(), GetFirstControlled(), GetFirstMinion(), GetGuardianPet(), GetMagicHitRedirectTarget(), GetMaxSkillValueForLevel(), GetMeleeHitRedirectTarget(), GetNextRandomRaidMemberOrPet(), Minion::GetOwner(), GetOwner(), GetPartyMembers(), GetRandomContactPoint(), GetReactionTo(), GetRedirectThreatTarget(), Player::GetSelectedUnit(), GetSpellMaxRangeForTarget(), GetSpellMinRangeForTarget(), GetSpellModOwner(), TempSummon::GetSummoner(), GetUnit(), GetUnitCriticalChance(), GetUnitMeleeSkill(), GetVehicleBase(), GetVehicleCreatureBase(), GetVictim(), Player::GiveXP(), HandleAuraProc(), HandleAuraProcOnPowerAmount(), HandleAuraRaidProcFromCharge(), HandleAuraRaidProcFromChargeWithValue(), HandleDummyAuraProc(), HandleOverrideClassScriptAuraProc(), HandleProcExtraAttackFor(), HandleProcTriggerSpell(), HandleSpellClick(), HasAuraState(), HasBreakableByDamageCrowdControlAura(), HasVisionObscured(), HealBySpell(), TempSummon::InitStats(), TempSummon::InitSummon(), IsAlwaysVisibleFor(), IsFriendlyTo(), Player::isHonorOrXPTarget(), IsHostileTo(), isInBackInMap(), isInFrontInMap(), IsInPartyWith(), IsInRaidWith(), IsOnVehicle(), isPossessing(), isPossessing(), isSpellBlocked(), isSpellCrit(), IsTriggeredAtSpellProcEvent(), IsValidAssistTarget(), IsValidAttackTarget(), IsWithinCombatRange(), IsWithinMeleeRange(), Kill(), KnockbackFrom(), MagicSpellHitResult(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), MeleeSpellHitResult(), MeleeSpellMissChance(), Minion::Minion(), ModSpellDuration(), OutDebugInfo(), Player::Player(), Player::PossessSpellInitialize(), ProcDamageAndSpell(), ProcDamageAndSpellFor(), Creature::reachWithSpellAttack(), Creature::reachWithSpellCure(), Creature::ReleaseFocus(), RemoveAllControlled(), RemoveAllMinionsByEntry(), RemoveAreaAurasDueToLeaveWorld(), RemoveAurasDueToSpellByDispel(), RemoveAurasDueToSpellBySteal(), RemoveCharmedBy(), TempSummon::RemoveFromWorld(), RemoveFromWorld(), RemoveNotOwnSingleTargetAuras(), RestoreFaction(), Player::RewardHonor(), Player::RewardPlayerAndGroupAtKill(), Player::RewardReputation(), RollMeleeOutcomeAgainst(), RollMeleeOutcomeAgainst(), SelectNearbyTarget(), Creature::SelectNearestHostileUnitInAggroRange(), Creature::SelectNearestTarget(), Creature::SelectNearestTargetInAttackDistance(), Creature::SelectVictim(), SendAttackStateUpdate(), Player::SendAurasForTarget(), Player::SendAutoRepeatCancel(), Player::SendClearAllCooldowns(), Player::SendClearCooldown(), Player::SendComboPoints(), SendEnergizeSpellLog(), Player::SendInitialVisiblePackets(), Player::SendLogXPGain(), SendMeleeAttackStart(), SendMeleeAttackStop(), SendPetActionFeedback(), SendPetAIReaction(), SendPetTalk(), SendSpellDamageImmune(), SendSpellDamageResist(), SendSpellMiss(), SendSpellNonMeleeDamageLog(), SetAuraStack(), SetCharm(), SetCharmedBy(), Player::SetClientControl(), SetFeared(), SetHealth(), SetInCombatState(), SetInCombatWith(), Creature::SetLootRecipient(), SetMaxHealth(), SetMaxPower(), Player::SetMover(), SetPhased(), SetPhaseMask(), SetPower(), setPowerType(), Player::SetResurrectRequestData(), SetStunned(), Player::SetViewpoint(), SpellCriticalDamageBonus(), SpellCriticalHealingBonus(), SpellDamageBonusDone(), SpellDamageBonusTaken(), SpellHealingBonusDone(), SpellHealingBonusTaken(), SpellHitResult(), SpellNonMeleeDamageLog(), StopAttackFaction(), Player::StopCastingBindSight(), Player::StopCastingCharm(), TauntApply(), TauntFadeOut(), TempSummon::TempSummon(), TriggerAurasProcOnEvent(), TempSummon::UnSummon(), Creature::Update(), Player::Update(), Player::UpdateAchievementCriteria(), UpdateAuraForGroup(), Player::UpdateCharmedAI(), UpdateSpeed(), and Player::UpdateVisibilityOf().

Member Function Documentation

◆ _addAttacker()

void Unit::_addAttacker ( Unit * pAttacker)

Definition at line 53 of file UnitCombatState.cpp.

References m_attackers, and Unit().

◆ _AddAura()

◆ _ApplyAllAuraStatMods()

void Unit::_ApplyAllAuraStatMods ( )

Definition at line 1003 of file UnitAuraState.cpp.

References AURA_EFFECT_HANDLE_STAT, and m_appliedAuras.

Referenced by Player::_ApplyAllStatBonuses().

◆ _ApplyAura()

◆ _ApplyAuraEffect()

◆ _CreateAuraApplication()

◆ _DeleteRemovedAuras()

void Unit::_DeleteRemovedAuras ( )
protected

Definition at line 54 of file UnitAuraState.cpp.

References m_removedAuras.

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

◆ _EnterVehicle()

◆ _ExitVehicle()

◆ _IsValidAssistTarget()

◆ _IsValidAttackTarget()

bool Unit::_IsValidAttackTarget ( Unit const * target,
SpellInfo const * bySpell,
WorldObject const * obj = NULL ) const

Definition at line 3816 of file Unit.cpp.

References ASSERT, SpellInfo::AttributesEx6, SpellInfo::AttributesEx8, WorldObject::CanSeeOrDetect(), CREATURE_TYPEFLAGS_PARTY_MEMBER, Player::duel, FACTION_FLAG_AT_WAR, GetAffectingPlayer(), Object::GetByteValue(), Creature::GetCreatureTemplate(), Object::GetEntry(), GetFactionTemplateEntry(), ReputationMgr::GetForcedRankIfAny(), GetReactionTo(), Player::GetReputationMgr(), ReputationMgr::GetState(), Object::GetTypeId(), Object::HasFlag(), HasUnitState(), SpellInfo::IsAffectingArea(), IsAlive(), SpellInfo::IsAllowingDeadTarget(), Player::IsGameMaster(), IsOnVehicle(), m_vehicle, DuelInfo::opponent, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_UBER, REP_HOSTILE, REP_NEUTRAL, sFactionStore, SPELL_ATTR6_CAN_TARGET_INVISIBLE, SPELL_ATTR6_CAN_TARGET_UNTARGETABLE, SPELL_ATTR8_ATTACK_IGNORE_IMMUNE_TO_PC_FLAG, DuelInfo::startTime, Object::ToCreature(), Object::ToPlayer(), CreatureTemplate::type_flags, TYPEID_PLAYER, TYPEID_UNIT, Unit(), UNIT_BYTE2_FLAG_FFA_PVP, UNIT_BYTE2_FLAG_PVP, UNIT_BYTE2_FLAG_SANCTUARY, UNIT_BYTE2_FLAG_UNK1, UNIT_FIELD_FLAGS, UNIT_FIELD_SHAPESHIFT_FORM, UNIT_FLAG_IMMUNE_TO_NPC, UNIT_FLAG_IMMUNE_TO_PC, UNIT_FLAG_NON_ATTACKABLE, UNIT_FLAG_NOT_ATTACKABLE_1, UNIT_FLAG_NOT_SELECTABLE, UNIT_FLAG_PVP_ATTACKABLE, UNIT_FLAG_TAXI_FLIGHT, UNIT_FLAG_UNK_16, UNIT_STATE_UNATTACKABLE, WORLD_TRIGGER, and WorldObject::WorldObject().

Referenced by SpellInfo::CheckExplicitTarget(), GetMagicHitRedirectTarget(), GetMeleeHitRedirectTarget(), and IsValidAttackTarget().

◆ _RegisterAuraEffect()

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

Definition at line 379 of file UnitAuraState.cpp.

References AuraEffect::GetAuraType(), and m_modAuras.

Referenced by AuraEffect::HandleEffect().

◆ _RegisterDynObject()

void Unit::_RegisterDynObject ( DynamicObject * dynObj)

Definition at line 1608 of file Unit.cpp.

References m_dynObj.

◆ _RemoveAllAuraStatMods()

void Unit::_RemoveAllAuraStatMods ( )

Definition at line 997 of file UnitAuraState.cpp.

References AURA_EFFECT_HANDLE_STAT, and m_appliedAuras.

Referenced by Player::_RemoveAllStatBonuses().

◆ _removeAttacker()

void Unit::_removeAttacker ( Unit * pAttacker)

Definition at line 58 of file UnitCombatState.cpp.

References m_attackers, and Unit().

◆ _RemoveNoStackAurasDueToAura()

void Unit::_RemoveNoStackAurasDueToAura ( Aura * aura)

◆ _TryStackingOrRefreshingExistingAura()

◆ _UnapplyAura() [1/2]

◆ _UnapplyAura() [2/2]

◆ _UnregisterDynObject()

void Unit::_UnregisterDynObject ( DynamicObject * dynObj)

Definition at line 1613 of file Unit.cpp.

References m_dynObj.

◆ _UpdateAutoRepeatSpell()

◆ _UpdateSpells()

◆ AddAura() [1/2]

Aura * Unit::AddAura ( SpellInfo const * spellInfo,
uint32 effMask,
Unit * target )

◆ AddAura() [2/2]

◆ AddComboPointHolder()

void Unit::AddComboPointHolder ( uint32 lowguid)
inline

Definition at line 2667 of file Unit.h.

References m_ComboPointHolders.

Referenced by Player::AddComboPoints().

◆ AddExtraUnitMovementFlag()

void Unit::AddExtraUnitMovementFlag ( uint16 f)
inline

Definition at line 2641 of file Unit.h.

References WorldObject::m_movementInfo.

◆ addFollower()

void Unit::addFollower ( FollowerReference * pRef)
inline

Definition at line 2594 of file Unit.h.

References m_FollowingRefManager.

Referenced by FollowerReference::targetObjectBuildLink().

◆ AddGameObject()

◆ addHatedBy()

void Unit::addHatedBy ( HostileReference * pHostileReference)
inline

Definition at line 2459 of file Unit.h.

References m_HostileRefManager.

Referenced by HostileReference::targetObjectBuildLink().

◆ AddInterruptMask()

void Unit::AddInterruptMask ( uint32 mask)
inline

Definition at line 2483 of file Unit.h.

References m_interruptMask.

Referenced by _CreateAuraApplication().

◆ AddPetAura()

void Unit::AddPetAura ( PetAura const * petSpell)

Definition at line 6235 of file Unit.cpp.

References Object::GetTypeId(), m_petAuras, Object::ToPlayer(), and TYPEID_PLAYER.

Referenced by AuraEffect::HandleAuraDummy().

◆ AddPlayerToVision()

void Unit::AddPlayerToVision ( Player * player)

◆ AddThreat()

◆ AddToWorld()

void Unit::AddToWorld ( )
overridevirtual

◆ AddUnitMovementFlag()

void Unit::AddUnitMovementFlag ( uint32 f)
inline

◆ AddUnitState()

◆ AddUnitTypeMask()

void Unit::AddUnitTypeMask ( uint32 mask)
inline

Definition at line 1499 of file Unit.h.

References m_unitTypeMask.

Referenced by Vehicle::InstallAccessory().

◆ ApplyAttackTimePercentMod()

◆ ApplyCastTimePercentMod()

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

◆ ApplyDiminishingAura()

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

Definition at line 1719 of file UnitAuraState.cpp.

References getMSTime(), and m_Diminishing.

Referenced by UnitAura::_ApplyForTarget(), and UnitAura::_UnapplyForTarget().

◆ ApplyDiminishingToDuration()

◆ ApplyEffectModifiers()

float Unit::ApplyEffectModifiers ( SpellInfo const * spellProto,
uint8 effect_index,
float value ) const

◆ ApplyResilience()

◆ ApplyResistanceBuffModsMod()

void Unit::ApplyResistanceBuffModsMod ( SpellSchools school,
bool positive,
float val,
bool apply )

◆ ApplyResistanceBuffModsPercentMod()

void Unit::ApplyResistanceBuffModsPercentMod ( SpellSchools school,
bool positive,
float val,
bool apply )

◆ ApplySpellDispelImmunity()

void Unit::ApplySpellDispelImmunity ( const SpellInfo * spellProto,
DispelType type,
bool apply )

◆ ApplySpellImmune()

◆ ApplyStatBuffMod()

◆ ApplyStatPercentBuffMod()

void Unit::ApplyStatPercentBuffMod ( Stats stat,
float val,
bool apply )

◆ ApplyTotalThreatModifier()

float Unit::ApplyTotalThreatModifier ( float fThreat,
SpellSchoolMask schoolMask = SPELL_SCHOOL_MASK_NORMAL )

◆ Attack()

◆ AttackerStateUpdate()

◆ AttackStop()

◆ BuildAuraStateUpdateForTarget()

uint32 Unit::BuildAuraStateUpdateForTarget ( Unit * target) const

◆ BuildValuesUpdate()

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

Reimplemented from Object.

Definition at line 9361 of file Unit.cpp.

References Object::_changesMask, ByteBuffer::append(), UpdateMask::AppendToPacket(), BuildAuraStateUpdateForTarget(), Object::BuildDynamicValuesUpdate(), Player::CanSeeSpellClickOn(), CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP, CREATURE_FLAG_EXTRA_TRIGGER, CreatureTemplate::flags_extra, UpdateMask::GetBlockCount(), GetCharmerOrOwnerPlayerOrPlayerItself(), Creature::GetCreatureTemplate(), getFaction(), GetFactionTemplateEntry(), Object::GetGUID(), GetOwnerGUID(), getTransForm(), HasAuraTypeWithCaster(), Object::HasFlag(), Creature::hasLootRecipient(), Player::isAllowedToLoot(), IsControlledByPlayer(), FactionTemplateEntry::IsFriendlyTo(), Player::IsGameMaster(), IsInRaidWith(), Player::IsInSameRaidWith(), Creature::isTappedBy(), Object::m_fieldNotifyFlags, Object::m_floatValues, Object::m_uint32Values, Object::m_valuesCount, MAX_SPELL_EFFECTS, CreatureTemplate::Modelid1, CreatureTemplate::Modelid2, OBJECT_FIELD_DYNAMIC_FLAGS, PER_CASTER_AURA_STATE_MASK, UpdateMask::SetBit(), UpdateMask::SetCount(), 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, UF_FLAG_VIEWER_DEPENDENT, UNIT_BYTE2_FLAG_SANCTUARY, UNIT_DYNFLAG_LOOTABLE, UNIT_DYNFLAG_SPECIALINFO, UNIT_DYNFLAG_TAPPED, UNIT_DYNFLAG_TAPPED_BY_PLAYER, UNIT_DYNFLAG_TRACK_UNIT, UNIT_FIELD_ATTACK_ROUND_BASE_TIME, UNIT_FIELD_AURA_STATE, UNIT_FIELD_DISPLAY_ID, UNIT_FIELD_FACTION_TEMPLATE, UNIT_FIELD_FLAGS, UNIT_FIELD_NPC_FLAGS, UNIT_FIELD_RANGED_ATTACK_ROUND_BASE_TIME, UNIT_FIELD_RESISTANCE_BUFF_MODS_NEGATIVE, UNIT_FIELD_RESISTANCE_BUFF_MODS_POSITIVE, UNIT_FIELD_SHAPESHIFT_FORM, UNIT_FIELD_STAT_NEG_BUFF, UNIT_FIELD_STAT_POS_BUFF, UNIT_FLAG_NOT_SELECTABLE, UNIT_NPC_FLAG_SPELLCLICK, UnitUpdateFieldFlags, and UPDATETYPE_VALUES.

◆ CalcAbsorbResist()

void Unit::CalcAbsorbResist ( Unit * victim,
SpellSchoolMask schoolMask,
DamageEffectType damagetype,
uint32 const damage,
uint32 * absorb,
uint32 * resist,
SpellInfo const * spellInfo = NULL )

◆ CalcArmorReducedDamage()

◆ CalcHealAbsorb()

◆ CalcSpellDuration()

int32 Unit::CalcSpellDuration ( SpellInfo const * spellProto)

Definition at line 4714 of file Unit.cpp.

References SpellInfo::GetDuration(), SpellInfo::GetMaxDuration(), and m_movedPlayer.

Referenced by Aura::CalcMaxDuration().

◆ CalcSpellResistance()

◆ CalculateDamage()

◆ CalculateDefaultCoefficient()

◆ CalculateLevelPenalty()

float Unit::CalculateLevelPenalty ( SpellInfo const * spellProto) const

◆ CalculateMeleeDamage()

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

Definition at line 585 of file UnitCombat.cpp.

References CalcDamageInfo::absorb, AddPct(), ApplyResilience(), CalcDamageInfo::attacker, CalcDamageInfo::attackType, BASE_ATTACK, CalcDamageInfo::blocked_amount, CalcAbsorbResist(), CalcArmorReducedDamage(), CalculateDamage(), CalculatePct(), CalcDamageInfo::cleanDamage, CalcDamageInfo::damage, CalcDamageInfo::damageSchoolMask, DIRECT_DAMAGE, GetBlockPercent(), getLevel(), GetMeleeDamageSchoolMask(), GetTotalAuraModifier(), GetTotalAuraMultiplierByMiscMask(), CalcDamageInfo::HitInfo, HITINFO_AFFECTS_VICTIM, HITINFO_BLOCK, HITINFO_CRITICALHIT, HITINFO_CRUSHING, HITINFO_FULL_ABSORB, HITINFO_FULL_RESIST, HITINFO_GLANCING, HITINFO_MISS, HITINFO_NORMALSWING, HITINFO_OFFHAND, HITINFO_PARTIAL_ABSORB, HITINFO_PARTIAL_RESIST, HITINFO_SWINGNOHITSOUND, CalcDamageInfo::hitOutCome, IsAlive(), isBlockCritical(), IsDamageReducedByArmor(), IsImmunedToDamage(), MELEE_HIT_BLOCK, MELEE_HIT_CRIT, MELEE_HIT_CRUSHING, MELEE_HIT_DODGE, MELEE_HIT_EVADE, MELEE_HIT_GLANCING, MELEE_HIT_MISS, MELEE_HIT_NORMAL, MELEE_HIT_PARRY, MeleeDamageBonusDone(), MeleeDamageBonusTaken(), OFF_ATTACK, PROC_EX_ABSORB, PROC_EX_BLOCK, PROC_EX_CRITICAL_HIT, PROC_EX_DODGE, PROC_EX_EVADE, PROC_EX_IMMUNE, PROC_EX_MISS, PROC_EX_NONE, PROC_EX_NORMAL_HIT, PROC_EX_PARRY, PROC_FLAG_DONE_MAINHAND_ATTACK, PROC_FLAG_DONE_MELEE_AUTO_ATTACK, PROC_FLAG_DONE_OFFHAND_ATTACK, PROC_FLAG_NONE, PROC_FLAG_TAKEN_DAMAGE, PROC_FLAG_TAKEN_MELEE_AUTO_ATTACK, CalcDamageInfo::procAttacker, CalcDamageInfo::procEx, CalcDamageInfo::procVictim, RANGED_ATTACK, CalcDamageInfo::resist, RollMeleeOutcomeAgainst(), SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_DAMAGE, SPELL_AURA_MOD_ATTACKER_RANGED_CRIT_DAMAGE, SPELL_AURA_MOD_CRIT_DAMAGE_BONUS, sScriptMgr, CalcDamageInfo::target, CalcDamageInfo::TargetState, Unit(), VICTIMSTATE_DODGE, VICTIMSTATE_EVADE, VICTIMSTATE_IMMUNE, VICTIMSTATE_MISS, VICTIMSTATE_PARRY, and VICTIMSTATE_WOUND.

Referenced by AttackerStateUpdate().

◆ CalculateSpellDamage()

int32 Unit::CalculateSpellDamage ( Unit const * target,
SpellInfo const * spellProto,
uint8 effect_index,
int32 const * basePoints = NULL ) const

◆ CalculateSpellDamageTaken()

◆ CanDualWield()

bool Unit::CanDualWield ( ) const
inline

◆ CanFly()

virtual bool Unit::CanFly ( ) const
pure virtual

Implemented in Creature, and Player.

Referenced by _ExitVehicle().

◆ CanFreeMove()

◆ CanHaveThreatList()

◆ CanModifyStats()

bool Unit::CanModifyStats ( ) const
inline

◆ CanProc()

bool Unit::CanProc ( ) const
inline

Definition at line 2700 of file Unit.h.

References m_procDeep.

◆ CanUseAttackType()

◆ CastCustomSpell() [1/4]

void Unit::CastCustomSpell ( uint32 spellId,
CustomSpellValues const & value,
Unit * victim = NULL,
TriggerCastFlags triggerFlags = TRIGGERED_NONE,
Item * castItem = NULL,
AuraEffect const * triggeredByAura = NULL,
uint64 originalCaster = 0 )

◆ CastCustomSpell() [2/4]

void Unit::CastCustomSpell ( uint32 spellId,
SpellValueMod mod,
int32 value,
Unit * victim,
bool triggered,
Item * castItem = NULL,
AuraEffect const * triggeredByAura = NULL,
uint64 originalCaster = 0 )

◆ CastCustomSpell() [3/4]

void Unit::CastCustomSpell ( uint32 spellId,
SpellValueMod mod,
int32 value,
Unit * victim = NULL,
TriggerCastFlags triggerFlags = TRIGGERED_NONE,
Item * castItem = NULL,
AuraEffect const * triggeredByAura = NULL,
uint64 originalCaster = 0 )

Definition at line 394 of file UnitCombat.cpp.

References CustomSpellValues::AddSpellMod(), CastCustomSpell(), and Unit().

◆ CastCustomSpell() [4/4]

void Unit::CastCustomSpell ( Unit * victim,
uint32 spellId,
int32 const * bp0,
int32 const * bp1,
int32 const * bp2,
bool triggered,
Item * castItem = NULL,
AuraEffect const * triggeredByAura = NULL,
uint64 originalCaster = 0 )

Definition at line 375 of file UnitCombat.cpp.

References CustomSpellValues::AddSpellMod(), CastCustomSpell(), SPELLVALUE_BASE_POINT0, SPELLVALUE_BASE_POINT1, SPELLVALUE_BASE_POINT2, TRIGGERED_FULL_MASK, TRIGGERED_NONE, and Unit().

Referenced by spell_dru_survival_instincts::spell_dru_survival_instincts_AuraScript::AfterApply(), spell_the_lich_king_necrotic_plague_jump::spell_the_lich_king_necrotic_plague_AuraScript::AfterDispel(), spell_dru_lifebloom::spell_dru_lifebloom_AuraScript::AfterRemove(), Player::ApplyEnchantment(), CastCustomSpell(), CastCustomSpell(), CastCustomSpell(), Pet::CastPetAura(), spell_monk_expel_harm::spell_monk_expel_harm_SpellScript::DealAreaDamage(), EnterVehicle(), spell_dk_scourge_strike::spell_dk_scourge_strike_SpellScript::HandleAfterHit(), AuraEffect::HandleAuraLinked(), HandleAuraProc(), HandleAuraProcOnPowerAmount(), HandleAuraRaidProcFromChargeWithValue(), Aura::HandleAuraSpecificMods(), spell_pri_shadow_word_death::spell_pri_shadow_word_death_SpellScript::HandleDamage(), spell_deathbringer_blood_link::spell_deathbringer_blood_link_SpellScript::HandleDummy(), spell_dk_death_coil::spell_dk_death_coil_SpellScript::HandleDummy(), spell_dk_death_strike::spell_dk_death_strike_SpellScript::HandleDummy(), spell_gen_chaos_blast::spell_gen_chaos_blast_SpellScript::HandleDummy(), spell_gen_dummy_trigger::spell_gen_dummy_trigger_SpellScript::HandleDummy(), spell_hun_last_stand_pet::spell_hun_last_stand_pet_SpellScript::HandleDummy(), spell_sha_ancestral_awakening_proc::spell_sha_ancestral_awakening_proc_SpellScript::HandleDummy(), spell_warl_life_tap::spell_warl_life_tap_SpellScript::HandleDummy(), spell_warr_charge::spell_warr_charge_SpellScript::HandleDummy(), spell_warr_last_stand::spell_warr_last_stand_SpellScript::HandleDummy(), HandleDummyAuraProc(), spell_rog_stealth::spell_rog_stealth_AuraScript::HandleEffectApply(), spell_anubarak_leeching_swarm::spell_anubarak_leeching_swarm_AuraScript::HandleEffectPeriodic(), spell_biting_cold_dot::spell_biting_cold_dot_AuraScript::HandleEffectPeriodic(), spell_pal_eye_for_an_eye::spell_pal_eye_for_an_eye_AuraScript::HandleEffectProc(), spell_pri_vampiric_embrace::spell_pri_vampiric_embrace_AuraScript::HandleEffectProc(), spell_sha_ancestral_awakening::spell_sha_ancestral_awakening_AuraScript::HandleEffectProc(), spell_sha_glyph_of_healing_wave::spell_sha_glyph_of_healing_wave_AuraScript::HandleEffectProc(), spell_sha_telluric_currents::spell_sha_telluric_currents_AuraScript::HandleEffectProc(), spell_sha_tidal_waves::spell_sha_tidal_waves_AuraScript::HandleEffectProc(), spell_pri_evangelism::spell_pri_evangelism_AuraScript::HandleEffectStackProc(), spell_dru_eclipse_energize::spell_dru_eclipse_energize_SpellScript::HandleEnergize(), spell_mage_water_elemental_freeze::spell_mage_water_elemental_freeze_SpellScript::HandleImprovedFreeze(), spell_pri_power_word_shield::spell_pri_power_word_shield_AuraScript::HandleOnEffectApply(), AuraEffect::HandlePeriodicDummyAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), spell_devourer_of_souls_mirrored_soul_proc::spell_devourer_of_souls_mirrored_soul_proc_AuraScript::HandleProc(), spell_dk_blood_gorged::spell_dk_blood_gorged_AuraScript::HandleProc(), spell_dru_living_seed::spell_dru_living_seed_AuraScript::HandleProc(), spell_dru_living_seed_proc::spell_dru_living_seed_proc_AuraScript::HandleProc(), spell_gen_alchemist_stone::spell_gen_alchemist_stone_AuraScript::HandleProc(), spell_item_blessing_of_ancient_kings::spell_item_blessing_of_ancient_kings_AuraScript::HandleProc(), spell_item_necrotic_touch::spell_item_necrotic_touch_AuraScript::HandleProc(), spell_mage_ignite::spell_mage_ignite_AuraScript::HandleProc(), spell_pal_beacon_of_light::spell_pal_beacon_of_light_AuraScript::HandleProc(), spell_pal_seal_of_righteousness::spell_pal_seal_of_righteousness_AuraScript::HandleProc(), spell_pri_divine_aegis::spell_pri_divine_aegis_AuraScript::HandleProc(), spell_rog_blade_flurry::spell_rog_blade_flurry_AuraScript::HandleProc(), spell_sha_earth_shield::spell_sha_earth_shield_AuraScript::HandleProc(), spell_the_lich_king_dark_hunger::spell_the_lich_king_dark_hunger_AuraScript::HandleProc(), spell_uk_second_wind_proc::spell_uk_second_wind_proc_AuraScript::HandleProc(), spell_yogg_saron_grim_reprisal::spell_yogg_saron_grim_reprisal_AuraScript::HandleProc(), HandleProcTriggerSpell(), AuraEffect::HandleProcTriggerSpellWithValueAuraProc(), AuraEffect::HandleRaidProcFromChargeWithValueAuraProc(), spell_deathbringer_blood_nova::spell_deathbringer_blood_nova_SpellScript::HandleScript(), spell_deathbringer_rune_of_blood::spell_deathbringer_rune_of_blood_SpellScript::HandleScript(), spell_kelthuzad_detonate_mana::spell_kelthuzad_detonate_mana_AuraScript::HandleScript(), spell_q12919_gymers_grab::spell_q12919_gymers_grab_SpellScript::HandleScript(), spell_warr_rallying_cry::spell_warr_rallying_cry_SpellScript::HandleScript(), HandleSpellClick(), spell_marrowgar_bone_spike_graveyard::spell_marrowgar_bone_spike_graveyard_SpellScript::HandleSpikes(), spell_gen_two_forms::spell_gen_two_forms_SpellScript::HandleTransform(), spell_putricide_mutated_plague::spell_putricide_mutated_plague_AuraScript::HandleTriggerSpell(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnApply(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), spell_blood_queen_essence_of_the_blood_queen::spell_blood_queen_essence_of_the_blood_queen_AuraScript::OnProc(), spell_monk_serpents_zeal::spell_monk_serpents_zeal_AuraScript::OnProc(), spell_sha_nature_guardian::spell_sha_nature_guardian_AuraScript::OnProc(), spell_warl_fel_synergy::spell_warl_fel_synergy_AuraScript::OnProc(), spell_halion_marks::spell_halion_marks_AuraScript::OnRemove(), spell_sindragosa_instability::spell_sindragosa_instability_AuraScript::OnRemove(), spell_the_lich_king_necrotic_plague::spell_the_lich_king_necrotic_plague_AuraScript::OnRemove(), spell_the_lich_king_necrotic_plague_jump::spell_the_lich_king_necrotic_plague_AuraScript::OnRemove(), spell_blood_queen_pact_of_the_darkfallen_dmg::spell_blood_queen_pact_of_the_darkfallen_dmg_AuraScript::PeriodicTick(), spell_pri_power_word_shield::spell_pri_power_word_shield_AuraScript::ReflectDamage(), npc_combustion_consumption::npc_combustion_consumptionAI::SetData(), spell_boss_lady_malande_shield::spell_boss_lady_malande_shield_AuraScript::Trigger(), spell_dk_anti_magic_shell_self::spell_dk_anti_magic_shell_self_AuraScript::Trigger(), and spell_the_lich_king_life_siphon::spell_the_lich_king_life_siphon_SpellScript::TriggerHeal().

◆ CastSpell() [1/7]

void Unit::CastSpell ( float x,
float y,
float z,
uint32 spellId,
bool triggered,
Item * castItem = NULL,
AuraEffect const * triggeredByAura = NULL,
uint64 originalCaster = 0 )

◆ CastSpell() [2/7]

void Unit::CastSpell ( GameObject * go,
uint32 spellId,
bool triggered,
Item * castItem = NULL,
AuraEffect * triggeredByAura = NULL,
uint64 originalCaster = 0 )

◆ CastSpell() [3/7]

void Unit::CastSpell ( SpellCastTargets const & targets,
SpellInfo const * spellInfo,
CustomSpellValues const * value,
TriggerCastFlags triggerFlags = TRIGGERED_NONE,
Item * castItem = NULL,
AuraEffect const * triggeredByAura = NULL,
uint64 originalCaster = 0 )
Todo
this is a workaround - not needed anymore, but required for some scripts :(

Definition at line 324 of file UnitCombat.cpp.

References CustomSpellValues::begin(), CustomSpellValues::end(), AuraEffect::GetCasterGUID(), Object::GetEntry(), Object::GetGUIDLow(), Object::GetTypeId(), Spell::m_CastItem, Spell::prepare(), Spell::SetSpellValue(), SF_LOG_ERROR, and TYPEID_PLAYER.

Referenced by Player::_LoadGlyphAuras(), BattlegroundAB::_NodeOccupied(), BattlegroundBFG::_NodeOccupied(), Battleground::_ProcessRessurect(), Player::_StoreItem(), spell_rog_cheat_death::spell_rog_cheat_death_AuraScript::Absorb(), spell_valkyr_essences::spell_valkyr_essences_AuraScript::Absorb(), instance_uldaman::instance_uldaman_InstanceMapScript::ActivateArchaedas(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ActivateCrystal(), boss_archaedas::boss_archaedasAI::ActivateMinion(), Player::ActivateSpec(), instance_uldaman::instance_uldaman_InstanceMapScript::ActivateWallMinions(), spell_halion_combustion_consumption::spell_halion_combustion_consumption_AuraScript::AddMarkStack(), Battleground::AddPlayer(), BattlegroundIC::AddPlayer(), BattlegroundSA::AddPlayer(), Battleground::AddPlayerToResurrectQueue(), Pet::addSpell(), Player::addSpell(), spell_astromancer_wrath_of_the_astromancer::spell_astromancer_wrath_of_the_astromancer_AuraScript::AfterRemove(), spell_gen_lifebloom::spell_gen_lifebloom_AuraScript::AfterRemove(), spell_gen_stop_time::spell_gen_stop_time_AuraScript::Apply(), Player::ApplyEnchantment(), Player::ApplyEquipSpell(), boss_morogrim_tidewalker::boss_morogrim_tidewalkerAI::ApplyWateryGrave(), AttackerStateUpdate(), Player::BuildPlayerRepop(), boss_gathios_the_shatterer::boss_gathios_the_shattererAI::CastAuraOnCouncil(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::CastConsumingMadness(), CastCustomSpell(), boss_essence_of_suffering::boss_essence_of_sufferingAI::CastFixate(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::CastGravityLapseFly(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::CastGravityLapseKnockUp(), Player::CastItemCombatSpell(), Pet::CastPetAura(), GameObject::CastSpell(), LuaUnit::CastSpell(), CastSpell(), CastSpell(), CastSpell(), CastSpell(), CastSpell(), CastSpell(), LuaUnit::CastSpellAoF(), spell_the_lich_king_defile::spell_the_lich_king_defile_SpellScript::ChangeDamageAndGrow(), Spell::CheckItems(), spell_the_lich_king_ice_burst_target_search::spell_the_lich_king_ice_burst_target_search_SpellScript::CheckTargetCount(), spell_the_lich_king_shadow_trap_periodic::spell_the_lich_king_shadow_trap_periodic_SpellScript::CheckTargetCount(), spell_the_lich_king_vile_spirit_damage_target_search::spell_the_lich_king_vile_spirit_damage_target_search_SpellScript::CheckTargetCount(), spell_yogg_saron_induce_madness::spell_yogg_saron_induce_madness_SpellScript::ClearShatteredIllusion(), AchievementMgr< Guild >::CompletedAchievement(), DealDamage(), DealMeleeDamage(), boss_magtheridon::boss_magtheridonAI::DebuffClicker(), BattlegroundIC::DoAction(), npc_halion_controller::npc_halion_controllerAI::DoAction(), boss_brutallus::boss_brutallusAI::DoIntro(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::DoSpawnPortal(), Spell::DoTriggersOnSpellHit(), spell_yogg_saron_brain_link::spell_yogg_saron_brain_link_AuraScript::DummyTick(), spell_yogg_saron_sanity::spell_yogg_saron_sanity_AuraScript::DummyTick(), Spell::EffectApplyGlyph(), Spell::EffectInebriate(), Battleground::EndBattleground(), boss_freya::boss_freyaAI::EnterCombat(), BattlegroundEY::EventPlayerClickedOnFlag(), BattlegroundTP::EventPlayerClickedOnFlag(), BattlegroundVOP::EventPlayerClickedOnFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), BattlegroundEY::EventPlayerDroppedFlag(), BattlegroundTP::EventPlayerDroppedFlag(), BattlegroundWS::EventPlayerDroppedFlag(), BattlegroundEY::EventTeamCapturedPoint(), boss_xt002::boss_xt002_AI::ExposeHeart(), spell_festergut_blighted_spores::spell_festergut_blighted_spores_AuraScript::ExtraEffect(), spell_alysrazor_fieroblast::spell_alysrazor_fieroblast_SpellScript::FireItUp(), boss_hodir::boss_hodirAI::FlashFreeze(), boss_archimonde::boss_archimondeAI::GainSoulCharge(), spell_monk_roll::spell_monk_roll_SpellScript::HandleAfterCast(), spell_monk_teachings_of_the_monastery::spell_monk_teachings_of_the_monastery_SpellScript::HandleAfterCast(), spell_ex_66244::spell_ex_66244AuraScript::HandleAfterEffectApply(), spell_ex_66244::spell_ex_66244AuraScript::HandleAfterEffectRemove(), spell_rog_deadly_poison::spell_rog_deadly_poison_SpellScript::HandleAfterHit(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), BattlegroundIC::HandleAreaTrigger(), OutdoorPvPSI::HandleAreaTrigger(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraLinked(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraMounted(), HandleAuraProc(), HandleAuraProcOnPowerAmount(), HandleAuraRaidProcFromCharge(), Aura::HandleAuraSpecificMods(), WorldSession::HandleBattlePetSummonCompanion(), misc_commandscript::HandleBindSightCommand(), spell_rotface_unstable_ooze_explosion_init::spell_rotface_unstable_ooze_explosion_init_SpellScript::HandleCast(), cast_commandscript::HandleCastBackCommand(), cast_commandscript::HandleCastCommand(), cast_commandscript::HandleCastDestCommand(), cast_commandscript::HandleCastDistCommand(), cast_commandscript::HandleCastSelfCommand(), cast_commandscript::HandleCastTargetCommad(), npc_akama_illidan::npc_akama_illidanAI::HandleChannelSequence(), spell_warr_charge::spell_warr_charge_SpellScript::HandleCharge(), spell_gen_mounted_charge::spell_gen_mounted_charge_SpellScript::HandleChargeEffect(), OutdoorPvPSI::HandleCustomSpell(), WorldSession::HandleDuelResponseOpcode(), spell_capacitus_polarity_shift::spell_capacitus_polarity_shift_SpellScript::HandleDummy(), spell_dru_starfall_dummy::spell_dru_starfall_dummy_SpellScript::HandleDummy(), spell_gen_cannibalize::spell_gen_cannibalize_SpellScript::HandleDummy(), spell_gen_fishing::spell_gen_fishing_SpellScript::HandleDummy(), spell_gen_gadgetzan_transporter_backfire::spell_gen_gadgetzan_transporter_backfire_SpellScript::HandleDummy(), spell_gen_gnomish_transporter::spell_gen_gnomish_transporter_SpellScript::HandleDummy(), spell_hun_pet_carrion_feeder::spell_hun_pet_carrion_feeder_SpellScript::HandleDummy(), spell_item_brewfest_mount_transformation::spell_item_brewfest_mount_transformation_SpellScript::HandleDummy(), spell_item_chicken_cover::spell_item_chicken_cover_SpellScript::HandleDummy(), spell_item_complete_raptor_capture::spell_item_complete_raptor_capture_SpellScript::HandleDummy(), spell_item_demon_broiled_surprise::spell_item_demon_broiled_surprise_SpellScript::HandleDummy(), spell_item_deviate_fish::spell_item_deviate_fish_SpellScript::HandleDummy(), spell_item_flask_of_the_north::spell_item_flask_of_the_north_SpellScript::HandleDummy(), spell_item_gnomish_death_ray::spell_item_gnomish_death_ray_SpellScript::HandleDummy(), spell_item_greatmothers_soulcatcher::spell_item_greatmothers_soulcatcher_SpellScript::HandleDummy(), spell_item_make_a_wish::spell_item_make_a_wish_SpellScript::HandleDummy(), spell_item_net_o_matic::spell_item_net_o_matic_SpellScript::HandleDummy(), spell_item_nigh_invulnerability::spell_item_nigh_invulnerability_SpellScript::HandleDummy(), spell_item_nitro_boots::spell_item_nitro_boots_SpellScript::HandleDummy(), spell_item_noggenfogger_elixir::spell_item_noggenfogger_elixir_SpellScript::HandleDummy(), spell_item_poultryizer::spell_item_poultryizer_SpellScript::HandleDummy(), spell_item_purify_helboar_meat::spell_item_purify_helboar_meat_SpellScript::HandleDummy(), spell_item_pygmy_oil::spell_item_pygmy_oil_SpellScript::HandleDummy(), spell_item_reindeer_transformation::spell_item_reindeer_transformation_SpellScript::HandleDummy(), spell_item_rocket_boots::spell_item_rocket_boots_SpellScript::HandleDummy(), spell_item_savory_deviate_delight::spell_item_savory_deviate_delight_SpellScript::HandleDummy(), spell_item_six_demon_bag::spell_item_six_demon_bag_SpellScript::HandleDummy(), spell_item_socrethars_stone::spell_item_socrethars_stone_SpellScript::HandleDummy(), spell_item_teach_language::spell_item_teach_language_SpellScript::HandleDummy(), spell_item_trigger_spell::spell_item_trigger_spell_SpellScript::HandleDummy(), spell_item_underbelly_elixir::spell_item_underbelly_elixir_SpellScript::HandleDummy(), spell_item_vanquished_clutches::spell_item_vanquished_clutches_SpellScript::HandleDummy(), spell_mage_conjure_refreshment::spell_mage_conjure_refreshment_SpellScript::HandleDummy(), spell_mage_conjure_refreshment_table::spell_mage_conjure_refreshment_table_SpellScript::HandleDummy(), spell_mage_mirror_image::spell_mage_mirror_image_SpellScript::HandleDummy(), spell_monk_legacy_of_the_emperor::spell_monk_legacy_of_the_emperor_SpellScript::HandleDummy(), spell_ooze_zap::spell_ooze_zap_SpellScript::HandleDummy(), spell_pal_blessing_of_faith::spell_pal_blessing_of_faith_SpellScript::HandleDummy(), spell_pal_holy_shock::spell_pal_holy_shock_SpellScript::HandleDummy(), spell_pal_judgment::spell_pal_judgment_SpellScript::HandleDummy(), spell_pri_penance::spell_pri_penance_SpellScript::HandleDummy(), spell_putricide_ooze_eruption_searcher::spell_putricide_ooze_eruption_searcher_SpellScript::HandleDummy(), spell_q11396_11399_scourging_crystal_controller::spell_q11396_11399_scourging_crystal_controller_SpellScript::HandleDummy(), spell_q11587_arcane_prisoner_rescue::spell_q11587_arcane_prisoner_rescue_SpellScript::HandleDummy(), spell_q11730_ultrasonic_screwdriver::spell_q11730_ultrasonic_screwdriver_SpellScript::HandleDummy(), spell_q12096_q12092_dummy::spell_q12096_q12092_dummy_SpellScript::HandleDummy(), spell_q12308_escape_from_silverbrook::spell_q12308_escape_from_silverbrook_SpellScript::HandleDummy(), spell_q12589_shoot_rjr::spell_q12589_shoot_rjr_SpellScript::HandleDummy(), spell_q12634_despawn_fruit_tosser::spell_q12634_despawn_fruit_tosser_SpellScript::HandleDummy(), spell_q12641_death_comes_from_on_high::spell_q12641_death_comes_from_on_high_SpellScript::HandleDummy(), spell_q12683_take_sputum_sample::spell_q12683_take_sputum_sample_SpellScript::HandleDummy(), spell_q12937_relief_for_the_fallen::spell_q12937_relief_for_the_fallen_SpellScript::HandleDummy(), spell_q13291_q13292_q13239_q13261_frostbrood_skytalon_grab_decoy::spell_q13291_q13292_q13239_q13261_frostbrood_skytalon_grab_decoy_SpellScript::HandleDummy(), spell_q5206_test_fetid_skull::spell_q5206_test_fetid_skull_SpellScript::HandleDummy(), spell_q9452_cast_net::spell_q9452_cast_net_SpellScript::HandleDummy(), spell_rotface_vile_gas_trigger::spell_rotface_vile_gas_trigger_SpellScript::HandleDummy(), spell_saviana_conflagration_init::spell_saviana_conflagration_init_SpellScript::HandleDummy(), spell_sha_fire_nova::spell_sha_fire_nova_SpellScript::HandleDummy(), spell_voodoo::spell_voodoo_SpellScript::HandleDummy(), spell_warl_soulshatter::spell_warl_soulshatter_SpellScript::HandleDummy(), spell_yogg_saron_boil_ominously::spell_yogg_saron_boil_ominously_SpellScript::HandleDummy(), HandleDummyAuraProc(), spell_ex_5581::spell_ex_5581SpellScript::HandleDummyHitTarget(), spell_blood_council_shadow_prison::spell_blood_council_shadow_prison_AuraScript::HandleDummyTick(), spell_mistress_kiss::spell_mistress_kiss_AuraScript::HandleDummyTick(), spell_shadowfang_keep_haunting_spirits::spell_shadowfang_keep_haunting_spirits_AuraScript::HandleDummyTick(), spell_warl_demonic_circle_summon::spell_warl_demonic_circle_summon_AuraScript::HandleDummyTick(), spell_murmur_sonic_boom::spell_murmur_sonic_boom_SpellScript::HandleEffect(), spell_pal_aura_mastery::spell_pal_aura_mastery_AuraScript::HandleEffectApply(), spell_pri_shadowform::spell_pri_shadowform_AuraScript::HandleEffectApply(), spell_q12851_going_bearback::spell_q12851_going_bearback_AuraScript::HandleEffectApply(), spell_dru_stampede::spell_dru_stampede_AuraScript::HandleEffectBearProc(), spell_dru_stampede::spell_dru_stampede_AuraScript::HandleEffectCatProc(), spell_pri_leap_of_faith::spell_pri_leap_of_faith_SpellScript::HandleEffectDummy(), spell_q13086_cannons_target::spell_q13086_cannons_target_SpellScript::HandleEffectDummy(), spell_biting_cold::spell_biting_cold_AuraScript::HandleEffectPeriodic(), spell_gen_whisper_gulch_yogg_saron_whisper::spell_gen_whisper_gulch_yogg_saron_whisper_AuraScript::HandleEffectPeriodic(), spell_ignis_slag_pot::spell_ignis_slag_pot_AuraScript::HandleEffectPeriodic(), spell_mage_ring_of_frost::spell_mage_ring_of_frost_AuraScript::HandleEffectPeriodic(), spell_dru_glyph_of_innervate::spell_dru_glyph_of_innervate_AuraScript::HandleEffectProc(), spell_dru_glyph_of_starfire_proc::spell_dru_glyph_of_starfire_proc_AuraScript::HandleEffectProc(), spell_mage_nether_vortex::spell_mage_nether_vortex_AuraScript::HandleEffectProc(), spell_pri_vampiric_touch::spell_pri_vampiric_touch_AuraScript::HandleEffectProc(), spell_sha_lava_surge::spell_sha_lava_surge_AuraScript::HandleEffectProc(), spell_warr_retaliation::spell_warr_retaliation_AuraScript::HandleEffectProc(), spell_rog_stealth::spell_rog_stealth_AuraScript::HandleEffectRemove(), spell_pal_selfless_healer::spell_pal_selfless_healer_AuraScript::HandleEffectStackProc(), spell_dru_eclipse_energize::spell_dru_eclipse_energize_SpellScript::HandleEnergize(), boss_felmyst::boss_felmystAI::HandleFlightSequence(), boss_illidan_stormrage::boss_illidan_stormrageAI::HandleFlightSequence(), spell_deathbringer_blood_nova_targeting::spell_deathbringer_blood_nova_targeting_SpellScript::HandleForceCast(), spell_dreamwalker_summon_suppresser_effect::spell_dreamwalker_summon_suppresser_effect_SpellScript::HandleForceCast(), spell_dreamwalker_summoner::spell_dreamwalker_summoner_SpellScript::HandleForceCast(), spell_kologarn_summon_focused_eyebeam::spell_kologarn_summon_focused_eyebeam_SpellScript::HandleForceCast(), OPvPCapturePointZM_GraveYard::HandleGossipOption(), spell_warl_soul_swap::spell_warl_soul_swap_SpellScript::HandleHit(), spell_warr_shockwave::spell_warr_shockwave_SpellScript::HandleHit(), spell_mage_blast_wave::spell_mage_blast_wave_SpellScript::HandleImprovedFlamestrike(), spell_sindragosa_frost_breath::spell_sindragosa_frost_breath_SpellScript::HandleInfusion(), OutdoorPvPHP::HandleKillImpl(), OutdoorPvPNA::HandleKillImpl(), OutdoorPvPZM::HandleKillImpl(), BattlegroundIC::HandleKillUnit(), spell_gen_running_wild::spell_gen_running_wild_AuraScript::HandleMount(), WorldSession::HandleMoveSplineDoneOpcode(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAckOpcode(), spell_pri_power_word_shield::spell_pri_power_word_shield_AuraScript::HandleOnEffectApply(), spell_ticking_time_bomb::spell_ticking_time_bomb_AuraScript::HandleOnEffectRemove(), spell_dk_gorefiends_grasp::spell_dk_gorefiends_grasp_SpellScript::HandleOnHit(), spell_hun_steady_shot::spell_hun_steady_shot_SpellScript::HandleOnHit(), spell_monk_breath_of_fire::spell_monk_breath_of_fire_SpellScript::HandleOnHit(), HandleOverrideClassScriptAuraProc(), spell_algalon_phase_punch::spell_algalon_phase_punch_AuraScript::HandlePeriodic(), spell_assembly_rune_of_summoning::spell_assembly_rune_of_summoning_AuraScript::HandlePeriodic(), spell_close_rift::spell_close_rift_AuraScript::HandlePeriodic(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicDummyAuraTick(), spell_bronjahm_soulstorm_channel::spell_bronjahm_soulstorm_channel_AuraScript::HandlePeriodicTick(), spell_bronjahm_soulstorm_visual::spell_bronjahm_soulstorm_visual_AuraScript::HandlePeriodicTick(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), OutdoorPvPHP::HandlePlayerEnterZone(), OutdoorPvPNA::HandlePlayerEnterZone(), OutdoorPvPSI::HandlePlayerEnterZone(), OutdoorPvPTF::HandlePlayerEnterZone(), OutdoorPvPZM::HandlePlayerEnterZone(), WorldSession::HandlePlayerLogin(), BattlegroundIC::HandlePlayerResurrect(), misc_commandscript::HandlePossessCommand(), spell_blood_queen_vampiric_bite::spell_blood_queen_vampiric_bite_SpellScript::HandlePresence(), spell_gen_adaptive_warding::spell_gen_adaptive_warding_AuraScript::HandleProc(), spell_gen_interrupt::spell_gen_interrupt_AuraScript::HandleProc(), spell_hun_misdirection::spell_hun_misdirection_AuraScript::HandleProc(), spell_item_aegis_of_preservation::spell_item_aegis_of_preservation_AuraScript::HandleProc(), spell_item_desperate_defense::spell_item_desperate_defense_AuraScript::HandleProc(), spell_item_shadowmourne::spell_item_shadowmourne_AuraScript::HandleProc(), spell_item_shadows_fate::spell_item_shadows_fate_AuraScript::HandleProc(), spell_monk_crackling_jade_lightning_aura::spell_monk_crackling_jade_lightning_aura_AuraScript::HandleProc(), spell_pal_item_healing_discount::spell_pal_item_healing_discount_AuraScript::HandleProc(), spell_pri_mana_leech::spell_pri_mana_leech_AuraScript::HandleProc(), spell_rog_tricks_of_the_trade::spell_rog_tricks_of_the_trade_AuraScript::HandleProc(), spell_warr_second_wind_proc::spell_warr_second_wind_proc_AuraScript::HandleProc(), spell_warr_sweeping_strikes::spell_warr_sweeping_strikes_AuraScript::HandleProc(), HandleProcTriggerSpell(), AuraEffect::HandleProcTriggerSpellAuraProc(), AuraEffect::HandleRaidProcFromChargeAuraProc(), spell_alexstrasza_bunny_destroy_platform_event::spell_alexstrasza_bunny_destroy_platform_event_SpellScript::HandleScript(), spell_archavon_rock_shards::spell_archavon_rock_shards_SpellScript::HandleScript(), spell_blood_queen_bloodbolt::spell_blood_queen_bloodbolt_SpellScript::HandleScript(), spell_bronjahm_consume_soul::spell_bronjahm_consume_soul_SpellScript::HandleScript(), spell_devourer_of_souls_mirrored_soul_target_selector::spell_devourer_of_souls_mirrored_soul_target_selector_SpellScript::HandleScript(), spell_dreamwalker_summon_dream_portal::spell_dreamwalker_summon_dream_portal_SpellScript::HandleScript(), spell_dreamwalker_summon_nightmare_portal::spell_dreamwalker_summon_nightmare_portal_SpellScript::HandleScript(), spell_dreamwalker_twisted_nightmares::spell_dreamwalker_twisted_nightmares_SpellScript::HandleScript(), spell_energize_aoe::spell_energize_aoe_SpellScript::HandleScript(), spell_festergut_gastric_bloat::spell_festergut_gastric_bloat_SpellScript::HandleScript(), spell_frost_giant_death_plague::spell_frost_giant_death_plague_SpellScript::HandleScript(), spell_gen_bandage::spell_gen_bandage_SpellScript::HandleScript(), spell_gen_create_lance::spell_gen_create_lance_SpellScript::HandleScript(), spell_gen_dalaran_disguise::spell_gen_dalaran_disguise_SpellScript::HandleScript(), spell_gen_elune_candle::spell_gen_elune_candle_SpellScript::HandleScript(), spell_gen_orc_disguise::spell_gen_orc_disguise_SpellScript::HandleScript(), spell_hallow_end_trick::spell_hallow_end_trick_SpellScript::HandleScript(), spell_hallow_end_trick_or_treat::spell_hallow_end_trick_or_treat_SpellScript::HandleScript(), spell_hallow_end_tricky_treat::spell_hallow_end_tricky_treat_SpellScript::HandleScript(), spell_hun_pet_heart_of_the_phoenix::spell_hun_pet_heart_of_the_phoenix_SpellScript::HandleScript(), spell_item_defibrillate::spell_item_defibrillate_SpellScript::HandleScript(), spell_item_red_rider_air_rifle::spell_item_red_rider_air_rifle_SpellScript::HandleScript(), spell_item_scroll_of_recall::spell_item_scroll_of_recall_SpellScript::HandleScript(), spell_mistress_kiss_area::spell_mistress_kiss_area_SpellScript::HandleScript(), spell_novos_summon_minions::spell_novos_summon_minions_SpellScript::HandleScript(), spell_occuthar_eyes_of_occuthar::spell_occuthar_eyes_of_occuthar_SpellScript::HandleScript(), spell_paletress_summon_memory::spell_paletress_summon_memory_SpellScript::HandleScript(), spell_putricide_choking_gas_bomb::spell_putricide_choking_gas_bomb_SpellScript::HandleScript(), spell_putricide_unbound_plague::spell_putricide_unbound_plague_SpellScript::HandleScript(), spell_putricide_unstable_experiment::spell_putricide_unstable_experiment_SpellScript::HandleScript(), spell_q12372_cast_from_gossip_trigger::spell_q12372_cast_from_gossip_trigger_SpellScript::HandleScript(), spell_q12619_emblazon_runeblade_effect::spell_q12619_emblazon_runeblade_effect_SpellScript::HandleScript(), spell_q12735_song_of_cleansing::spell_q12735_song_of_cleansing_SpellScript::HandleScript(), spell_q12919_gymers_grab::spell_q12919_gymers_grab_SpellScript::HandleScript(), spell_q12919_gymers_throw::spell_q12919_gymers_throw_SpellScript::HandleScript(), spell_rotface_large_ooze_buff_combine::spell_rotface_large_ooze_buff_combine_SpellScript::HandleScript(), spell_rotface_little_ooze_combine::spell_rotface_little_ooze_combine_SpellScript::HandleScript(), spell_rotface_ooze_flood::spell_rotface_ooze_flood_SpellScript::HandleScript(), spell_saviana_conflagration_throwback::spell_saviana_conflagration_throwback_SpellScript::HandleScript(), spell_sindragosa_icy_grip::spell_sindragosa_icy_grip_SpellScript::HandleScript(), spell_taldaram_glittering_sparks::spell_taldaram_glittering_sparks_SpellScript::HandleScript(), spell_taldaram_summon_flame_ball::spell_taldaram_summon_flame_ball_SpellScript::HandleScript(), spell_the_lich_king_cast_back_to_caster::spell_the_lich_king_cast_back_to_caster_SpellScript::HandleScript(), spell_the_lich_king_jump::spell_the_lich_king_jump_SpellScript::HandleScript(), spell_the_lich_king_raging_spirit::spell_the_lich_king_raging_spirit_SpellScript::HandleScript(), spell_the_lich_king_summon_spirit_bomb::spell_the_lich_king_summon_spirit_bomb_SpellScript::HandleScript(), spell_the_lich_king_valkyr_target_search::spell_the_lich_king_valkyr_target_search_SpellScript::HandleScript(), spell_ulduar_rubble_summon::spell_ulduar_rubble_summonSpellScript::HandleScript(), spell_winter_veil_mistletoe::spell_winter_veil_mistletoe_SpellScript::HandleScript(), spell_wintergrasp_force_building::spell_wintergrasp_force_building_SpellScript::HandleScript(), spell_yogg_saron_insane_periodic::spell_yogg_saron_insane_periodic_SpellScript::HandleScript(), spell_yogg_saron_target_selectors::spell_yogg_saron_target_selectors_SpellScript::HandleScript(), spell_fixate::spell_fixate_SpellScript::HandleScriptEffect(), spell_gen_clone::spell_gen_clone_SpellScript::HandleScriptEffect(), spell_gen_clone_weapon::spell_gen_clone_weapon_SpellScript::HandleScriptEffect(), spell_gen_mounted_charge::spell_gen_mounted_charge_SpellScript::HandleScriptEffect(), spell_hun_chimera_shot::spell_hun_chimera_shot_SpellScript::HandleScriptEffect(), spell_hun_cobra_shot::spell_hun_cobra_shot_SpellScript::HandleScriptEffect(), spell_marrowgar_coldflame::spell_marrowgar_coldflame_SpellScript::HandleScriptEffect(), spell_marrowgar_coldflame_bonestorm::spell_marrowgar_coldflame_SpellScript::HandleScriptEffect(), spell_q12527_zuldrak_rat::spell_q12527_zuldrak_rat_SpellScript::HandleScriptEffect(), spell_q12641_death_comes_from_on_high_summon_ghouls::spell_q12641_death_comes_from_on_high_summon_ghouls_SpellScript::HandleScriptEffect(), spell_q14112_14145_chum_the_water::spell_q14112_14145_chum_the_water_SpellScript::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), HandleSpellClick(), spell_putricide_mutated_transformation::spell_putricide_mutated_transformation_SpellScript::HandleSummon(), boss_alythess::boss_alythessAI::HandleTouchedSpells(), boss_sacrolash::boss_sacrolashAI::HandleTouchedSpells(), spell_trigger_spell_from_caster::spell_trigger_spell_from_caster_SpellScript::HandleTrigger(), spell_magic_eater_food::spell_magic_eater_food_AuraScript::HandleTriggerSpell(), spell_pal_righteous_defense::spell_pal_righteous_defense_SpellScript::HandleTriggerSpellHit(), spell_malygos_arcane_storm::spell_malygos_arcane_storm_SpellScript::HandleVisual(), npc_pet_mage_mirror_image::npc_pet_mage_mirror_imageAI::InitializeAI(), Totem::InitSummon(), npc_mechanolift::npc_mechanoliftAI::JustDied(), npc_nerubar_victim::npc_nerubar_victimAI::JustDied(), Kill(), spell_alysrazor_turn_monstrosity::spell_alysrazor_turn_monstrosity_SpellScript::KnockBarrage(), Player::learnQuestRewardedSpells(), Player::LeaveBattleground(), spell_gen_running_wild::spell_gen_running_wild_SpellScript::Load(), lfg::LFGMgr::MakeNewGroup(), boss_teron_gorefiend::boss_teron_gorefiendAI::MindControlGhost(), ModifyAuraState(), npc_air_force_bots::npc_air_force_botsAI::MoveInLineOfSight(), npc_dkc1_gothik::npc_dkc1_gothikAI::MoveInLineOfSight(), npc_fezzix_geartwist::npc_fezzix_geartwistAI::MoveInLineOfSight(), boss_selin_fireheart::boss_selin_fireheartAI::MovementInform(), boss_palehoof::boss_palehoofAI::NextPhase(), npc_overlord_morghor::npc_overlord_morghorAI::NextStep(), spell_yogg_saron_hodirs_protective_gaze::spell_yogg_saron_hodirs_protective_gaze_AuraScript::OnAbsorb(), spell_gen_turkey_marker::spell_gen_turkey_marker_AuraScript::OnApply(), spell_halion_combustion_consumption::spell_halion_combustion_consumption_AuraScript::OnApply(), spell_hun_ready_set_aim::spell_hun_ready_set_aim_AuraScript::OnApply(), spell_load_into_catapult::spell_load_into_catapult_AuraScript::OnApply(), spell_love_is_in_the_air_romantic_picnic::spell_love_is_in_the_air_romantic_picnic_AuraScript::OnApply(), spell_monk_crackling_jade_lightning::spell_monk_crackling_jade_lightning_AuraScript::OnApply(), spell_monk_soothing_mist::spell_monk_soothing_mist_AuraScript::OnApply(), spell_yogg_saron_constrictor_tentacle::spell_yogg_saron_constrictor_tentacle_AuraScript::OnApply(), spell_yogg_saron_insane::spell_yogg_saron_insane_AuraScript::OnApply(), spell_blood_queen_vampiric_bite::spell_blood_queen_vampiric_bite_SpellScript::OnCast(), BattlefieldWG::OnCreatureCreate(), spell_warl_soul_swap_exhale::spell_warl_soul_swap_exhale_SpellScript::OnEffectHit(), go_gauntlet_gate::OnGossipHello(), go_scourge_enclosure::OnGossipHello(), npc_marshal_dughan::OnGossipSelect(), Player::OnGossipSelect(), lfg::LFGPlayerScript::OnMapChanged(), spell_love_is_in_the_air_romantic_picnic::spell_love_is_in_the_air_romantic_picnic_AuraScript::OnPeriodic(), spell_mark_of_kazrogal::spell_mark_of_kazrogal_AuraScript::OnPeriodic(), spell_mark_of_kazzak::spell_mark_of_kazzak_AuraScript::OnPeriodic(), spell_the_lich_king_soul_reaper::spell_the_lich_king_soul_reaper_AuraScript::OnPeriodic(), spell_the_lich_king_vile_spirits::spell_the_lich_king_vile_spirits_AuraScript::OnPeriodic(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), BattlefieldWG::OnPlayerJoinWar(), spell_dk_scent_of_blood::spell_dk_scent_of_blood_AuraScript::OnProc(), spell_gen_obsidian_armor::spell_gen_obsidian_armor_AuraScript::OnProc(), spell_pri_item_greater_heal_refund::spell_pri_item_greater_heal_refund_AuraScript::OnProc(), spell_rog_crippling_poison::spell_rog_crippling_poison_AuraScript::OnProc(), spell_sha_item_lightning_shield::spell_sha_item_lightning_shield_AuraScript::OnProc(), spell_sha_item_lightning_shield_trigger::spell_sha_item_lightning_shield_trigger_AuraScript::OnProc(), spell_warl_shadow_trance_proc::spell_warl_shadow_trance_proc_AuraScript::OnProc(), spell_ignis_slag_pot::spell_ignis_slag_pot_AuraScript::OnRemove(), spell_mage_ring_of_frost_freeze::spell_mage_ring_of_frost_freeze_AuraScript::OnRemove(), spell_putricide_mutated_plague::spell_putricide_mutated_plague_AuraScript::OnRemove(), spell_putricide_mutation_init::spell_putricide_mutation_init_AuraScript::OnRemove(), spell_taldaram_flame_ball_visual::spell_flame_ball_visual_AuraScript::OnRemove(), spell_the_lich_king_harvest_soul::spell_the_lich_king_harvest_soul_AuraScript::OnRemove(), spell_the_lich_king_in_frostmourne_room::spell_the_lich_king_in_frostmourne_room_AuraScript::OnRemove(), spell_the_lich_king_shadow_trap_visual::spell_the_lich_king_shadow_trap_visual_AuraScript::OnRemove(), spell_ulduar_stone_grip_absorb::spell_ulduar_stone_grip_absorb_AuraScript::OnRemove(), spell_yogg_saron_malady_of_the_mind::spell_yogg_saron_malady_of_the_mind_AuraScript::OnRemove(), spell_yogg_saron_nondescript::spell_yogg_saron_nondescript_AuraScript::OnRemove(), lfg::LFGGroupScript::OnRemoveMember(), npc_firework_launcher::npc_firework_launcherAI::OnSpellClick(), spell_exploding_orb_hasty_grow::spell_exploding_orb_hasty_grow_AuraScript::OnStackChange(), spell_item_shadowmourne_soul_fragment::spell_item_shadowmourne_soul_fragment_AuraScript::OnStackChange(), spell_dreamwalker_summon_suppresser::spell_dreamwalker_summon_suppresser_AuraScript::PeriodicTick(), spell_random_ingredient_aura::spell_random_ingredient_aura_AuraScript::PeriodicTick(), spell_halion_twilight_phasing::spell_halion_twilight_phasing_SpellScript::Phase(), BattlegroundAV::PopulateNode(), spell_gen_break_shield::spell_gen_break_shield_SpellScript::PrepareSpellScript(), spell_ulduar_proximity_mines::spell_ulduar_proximity_minesSpellScript::PrepareSpellScript(), ProcDamageAndSpellFor(), SmartScript::ProcessAction(), ProcessCastaction(), Player::ProcessDelayedOperations(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::ProcessEvent(), ProcessUnlearnAction(), BattlefieldWG::PromotePlayer(), spell_gen_defend::spell_gen_defend_AuraScript::RefreshVisualShields(), Player::ReportedAfkBy(), npc_pulsing_pumpkin::npc_pulsing_pumpkinAI::Reset(), Player::ResurectUsingRequestData(), BfGraveyard::Resurrect(), Resurrect(), Player::ResurrectPlayer(), Player::RewardQuest(), Map::ScriptsProcess(), boss_selin_fireheart::boss_selin_fireheartAI::SelectNearestCrystal(), npc_sayge::SendAction(), go_skull_pile::SendActionMenu(), npc_prof_blacksmith::SendActionMenu(), Player::SendInitialPacketsAfterAddToMap(), spell_monk_mana_tea_stacks::spell_monk_mana_tea_stacks_AuraScript::SetData(), spell_monk_tigereye_brew_stacks::spell_monk_tigereye_brew_stacks_AuraScript::SetData(), Player::SetQuestStatus(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_vics_flying_machine::npc_vics_flying_machineAI::SpellHit(), boss_volazj::boss_volazjAI::SpellHitTarget(), boss_hydross_the_unstable::boss_hydross_the_unstableAI::SummonBeams(), npc_frostworn_general::npc_frostworn_generalAI::SummonClones(), go_wind_stone::SummonNPC(), SummonOokOokIfReady(), boss_mother_shahraz::boss_shahrazAI::TeleportPlayers(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::TeleportPlayersToSelf(), npc_orb_carrier::npc_orb_carrierAI::TriggerCutter(), spell_flame_warder_meteor_fists::spell_flame_warder_meteor_fists_AuraScript::TriggerFists(), spell_koralon_meteor_fists::spell_koralon_meteor_fists_AuraScript::TriggerFists(), spell_gen_darkflight::spell_gen_darkflight_SpellScript::TriggerTransform(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::Update(), instance_violet_hold::instance_violet_hold_InstanceMapScript::Update(), boss_alar::boss_alarAI::UpdateAI(), boss_blood_council_controller::boss_blood_council_controllerAI::UpdateAI(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI(), boss_curator::boss_curatorAI::UpdateAI(), boss_emalon::boss_emalonAI::UpdateAI(), boss_entropius::boss_entropiusAI::UpdateAI(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), boss_morogrim_tidewalker::boss_morogrim_tidewalkerAI::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_temple_guardian_anhuur::boss_temple_guardian_anhuurAI::UpdateAI(), boss_the_lich_king::boss_the_lich_kingAI::UpdateAI(), boss_vaelastrasz::boss_vaelAI::UpdateAI(), npc_egg_pile::npc_egg_pileAI::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), npc_head::npc_headAI::UpdateAI(), npc_image_of_medivh::npc_image_of_medivhAI::UpdateAI(), npc_slad_ran_constrictor::npc_slad_ran_constrictorAI::UpdateAI(), npc_thassarian::npc_thassarianAI::UpdateAI(), Player::UpdateAreaDependentAuras(), Player::UpdateUnderwaterState(), UpdateUnderwaterState(), Player::UpdateZoneDependentAuras(), GameObject::Use(), Player::VehicleSpellInitialize(), and instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::VortexHandling().

◆ CastSpell() [4/7]

void Unit::CastSpell ( Unit * victim,
SpellInfo const * spellInfo,
bool triggered,
Item * castItem = NULL,
AuraEffect const * triggeredByAura = NULL,
uint64 originalCaster = 0 )

Definition at line 363 of file UnitCombat.cpp.

References CastSpell(), TRIGGERED_FULL_MASK, TRIGGERED_NONE, and Unit().

◆ CastSpell() [5/7]

void Unit::CastSpell ( Unit * victim,
SpellInfo const * spellInfo,
TriggerCastFlags triggerFlags = TRIGGERED_NONE,
Item * castItem = NULL,
AuraEffect const * triggeredByAura = NULL,
uint64 originalCaster = 0 )

Definition at line 368 of file UnitCombat.cpp.

References CastSpell(), SpellCastTargets::SetUnitTarget(), and Unit().

◆ CastSpell() [6/7]

void Unit::CastSpell ( Unit * victim,
uint32 spellId,
bool triggered,
Item * castItem = NULL,
AuraEffect const * triggeredByAura = NULL,
uint64 originalCaster = 0 )

Definition at line 346 of file UnitCombat.cpp.

References CastSpell(), TRIGGERED_FULL_MASK, TRIGGERED_NONE, and Unit().

◆ CastSpell() [7/7]

void Unit::CastSpell ( Unit * victim,
uint32 spellId,
TriggerCastFlags triggerFlags = TRIGGERED_NONE,
Item * castItem = NULL,
AuraEffect const * triggeredByAura = NULL,
uint64 originalCaster = 0 )

◆ CastStop()

◆ ChangeSeat()

◆ CleanupBeforeRemoveFromMap()

◆ CleanupsBeforeDelete()

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

◆ ClearAllReactives()

◆ ClearComboPointHolders()

◆ ClearDiminishings()

void Unit::ClearDiminishings ( )
inline

Definition at line 1412 of file Unit.h.

References m_Diminishing.

Referenced by setDeathState().

◆ ClearInCombat()

◆ ClearPhases()

void Unit::ClearPhases ( bool update = false)

◆ ClearUnitState()

void Unit::ClearUnitState ( uint32 f)
inline

Definition at line 1489 of file Unit.h.

References m_state.

Referenced by HomeMovementGenerator< Creature >::_setTargetLocation(), Attack(), AttackStop(), ClearInCombat(), LuaUnit::ClearUnitState(), LuaUnit::DisableMelee(), ConfusedMovementGenerator< T >::DoFinalize(), ConfusedMovementGenerator< T >::DoFinalize(), FleeingMovementGenerator< Creature >::DoFinalize(), FleeingMovementGenerator< Creature >::DoFinalize(), FlightPathMovementGenerator::DoFinalize(), HomeMovementGenerator< Creature >::DoFinalize(), RandomMovementGenerator< T >::DoFinalize(), WaypointMovementGenerator< Creature >::DoFinalize(), RandomMovementGenerator< T >::DoUpdate(), WaypointMovementGenerator< Creature >::DoUpdate(), Spell::EffectSummonDeadPet(), AssistanceDistractMovementGenerator::Finalize(), DistractMovementGenerator::Finalize(), RotateMovementGenerator::Finalize(), TimedFleeingMovementGenerator::Finalize(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleFeignDeath(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), npc_counselor_talbot::npc_counselor_talbotAI::JustDied(), WaypointMovementGenerator< Creature >::OnArrived(), Creature::ReleaseFocus(), RemoveCharmedBy(), Player::ResetContestedPvP(), SetControlled(), Creature::setDeathState(), SetInCombatState(), spell_putricide_ooze_channel::spell_putricide_ooze_channel_SpellScript::StartAttack(), StopMoving(), instance_magtheridons_lair::instance_magtheridons_lair_InstanceMapScript::Update(), TimedFleeingMovementGenerator::Update(), and spell_alysrazor_aggro_closest::spell_alysrazor_aggro_closest_SpellScript::UpdateThreat().

◆ CombatStart()

◆ CombatStop()

◆ CombatStopWithPets()

void Unit::CombatStopWithPets ( bool includingCast = false)

◆ CountPctFromCurHealth()

uint32 Unit::CountPctFromCurHealth ( int32 pct) const
inline

Definition at line 1637 of file Unit.h.

References CalculatePct(), and GetHealth().

Referenced by LuaUnit::CountPctFromCurHealth().

◆ CountPctFromMaxHealth()

uint32 Unit::CountPctFromMaxHealth ( int32 pct) const
inline

Definition at line 1633 of file Unit.h.

References CalculatePct(), and GetMaxHealth().

Referenced by spell_monk_dampen_harm::spell_monk_dampen_harm_AuraScript::Absorb(), spell_rog_cheat_death::spell_rog_cheat_death_AuraScript::Absorb(), spell_dru_survival_instincts::spell_dru_survival_instincts_AuraScript::AfterApply(), spell_dk_anti_magic_shell_self::spell_dk_anti_magic_shell_self_AuraScript::CalculateAmount(), spell_dk_vampiric_blood::spell_dk_vampiric_blood_AuraScript::CalculateAmount(), spell_dru_might_of_ursoc::spell_dru_might_of_ursoc_AuraScript::CalculateAmount(), LuaUnit::CountPctFromMaxHealth(), Spell::EffectHeal(), Spell::EffectResurrect(), Spell::EffectResurrectWithAura(), Spell::EffectSummonDeadPet(), AuraEffect::HandleAuraModIncreaseHealthPercent(), spell_hun_last_stand_pet::spell_hun_last_stand_pet_SpellScript::HandleDummy(), spell_warl_life_tap::spell_warl_life_tap_SpellScript::HandleDummy(), spell_warr_last_stand::spell_warr_last_stand_SpellScript::HandleDummy(), HandleDummyAuraProc(), spell_q28813_set_health_random::spell_q28813_set_health_random_SpellScript::HandleDummyEffect(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicDummyAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), HealthAbovePct(), HealthAbovePctHealed(), HealthBelowPct(), HealthBelowPctDamaged(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), and spell_sha_nature_guardian::spell_sha_nature_guardian_AuraScript::OnProc().

◆ CountPctFromMaxPower()

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

Definition at line 1667 of file Unit.h.

References CalculatePct(), and GetMaxPower().

◆ CreateTamedPetFrom() [1/2]

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

◆ CreateTamedPetFrom() [2/2]

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

◆ CreateVehicleKit()

bool Unit::CreateVehicleKit ( uint32 id,
uint32 creatureEntry,
bool loading = false )

◆ DealDamage()

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

Definition at line 63 of file UnitCombat.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, AddThreat(), Creature::AI(), ASSERT, CreatureAI::AttackedBy(), CleanDamage::attackType, SpellInfo::AttributesEx4, AURA_INTERRUPT_FLAG_DIRECT_DAMAGE, AURA_INTERRUPT_FLAG_TAKE_DAMAGE, BASE_ATTACK, CalculatePct(), CastSpell(), CHANNEL_FLAG_DELAY, CHEAT_GOD, CombatStopWithPets(), CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, UnitAI::DamageDealt(), UnitAI::DamageTaken(), DealDamage(), DealDamageMods(), DIRECT_DAMAGE, DOT, Player::duel, DUEL_WON, Player::DuelComplete(), Player::DurabilityPointLossForEquipSlot(), EQUIPMENT_SLOT_END, GetAI(), GetAttackTime(), GetAuraEffectsByType(), Player::GetBattleground(), GetCharmer(), GetCharmerGUID(), Player::GetCommandStatus(), Object::GetGUID(), GetHealth(), GetOwnerGUID(), Player::GetPet(), getPowerType(), SpellInfo::GetSchoolMask(), Object::GetTypeId(), Creature::hasLootRecipient(), SpellInfo::Id, InterruptNonMeleeSpells(), IsAIEnabled, IsAlive(), IsControlledByPlayer(), DuelInfo::isMounted, IsPet(), IsVehicle(), Kill(), Creature::LowerPlayerDamageReq(), m_currentSpells, ModifyHealth(), NODAMAGE, OFF_ATTACK, DuelInfo::opponent, CreatureAI::OwnerAttackedBy(), POWER_RAGE, RATE_DURABILITY_LOSS_DAMAGE, RemoveAurasWithInterruptFlags(), RewardRage(), roll_chance_f(), SCORE_DAMAGE_DONE, SetHealth(), SetLastDamagedTime(), Creature::SetLootRecipient(), SF_LOG_DEBUG, SPELL_ATTR4_DAMAGE_DOESNT_BREAK_AURAS, SPELL_AURA_SHARE_DAMAGE_PCT, SPELL_DIRECT_DAMAGE, SPELL_INTERRUPT_FLAG_ABORT_ON_DMG, SPELL_INTERRUPT_FLAG_PUSH_BACK, SPELL_STATE_CASTING, SPELL_STATE_PREPARING, sScriptMgr, sWorld, Object::ToCreature(), ToPet(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, UI64FMTD, Unit(), and Player::UpdateAchievementCriteria().

Referenced by CalcAbsorbResist(), LuaUnit::DealDamage(), DealDamage(), DealMeleeDamage(), DealSpellDamage(), Player::EnvironmentalDamage(), misc_commandscript::HandleDamageCommand(), misc_commandscript::HandleDieCommand(), HandleDummyAuraProc(), spell_egg_explosion::spell_egg_explosion_SpellScript::HandleDummyHitTarget(), spell_ex_66244::spell_ex_66244AuraScript::HandleEffectPeriodic(), spell_algalon_collapse::spell_algalon_collapse_AuraScript::HandlePeriodic(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicDummyAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::Reset(), npc_illidari_council::npc_illidari_councilAI::UpdateAI(), and Player::UpdateCharmedAI().

◆ DealDamageMods()

◆ DealHeal()

◆ DealMeleeDamage()

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

Definition at line 777 of file UnitCombat.cpp.

References CalcDamageInfo::absorb, CalcDamageInfo::attackType, BASE_ATTACK, CalcDamageInfo::blocked_amount, Player::CastItemCombatSpell(), CastSpell(), CalcDamageInfo::cleanDamage, CalcDamageInfo::damage, CalcDamageInfo::damageSchoolMask, DealDamage(), DealDamageMods(), DIRECT_DAMAGE, EMOTE_ONESHOT_PARRY_SHIELD, EMOTE_ONESHOT_WOUND_CRITICAL, ByteBuffer::FlushBits(), GetAttackTime(), getAttackTimer(), GetAuraEffectsByType(), Object::GetGUID(), GetHealth(), getLevel(), GetMaxSkillValueForLevel(), SpellInfo::GetSchoolMask(), Object::GetTypeId(), HandleEmoteCommand(), Position::HasInArc(), HasUnitState(), haveOffhandWeapon(), CalcDamageInfo::HitInfo, HITINFO_CRITICALHIT, CalcDamageInfo::hitOutCome, SpellInfo::Id, IsAlive(), IsControlledByPlayer(), IsImmunedToDamage(), Creature::IsInEvadeMode(), IsVehicle(), Creature::isWorldBoss(), M_PI, MELEE_HIT_CRIT, MELEE_HIT_CRUSHING, MELEE_HIT_GLANCING, MELEE_HIT_NORMAL, OFF_ATTACK, CalcDamageInfo::procEx, CalcDamageInfo::procVictim, roll_chance_f(), SpellInfo::SchoolMask, WorldObject::SendMessageToSet(), SendSpellDamageImmune(), SendSpellMiss(), setAttackTimer(), SMSG_SPELLDAMAGESHIELD, SPELL_AURA_DAMAGE_SHIELD, SPELL_DIRECT_DAMAGE, SpellDamageBonusTaken(), SpellHitResult(), CalcDamageInfo::target, CalcDamageInfo::TargetState, Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, Unit(), UNIT_STATE_IN_FLIGHT, VICTIMSTATE_BLOCK, VICTIMSTATE_PARRY, ByteBuffer::WriteBit(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().

Referenced by AttackerStateUpdate().

◆ DealSpellDamage()

◆ DelayOwnedAuras()

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

◆ DeleteCharmInfo()

void Unit::DeleteCharmInfo ( )

Definition at line 5526 of file Unit.cpp.

References m_charmInfo.

Referenced by RemoveCharmedBy().

◆ DeleteThreatList()

◆ DeMorph()

void Unit::DeMorph ( )

Definition at line 1536 of file Unit.cpp.

References GetNativeDisplayId(), and SetDisplayId().

Referenced by LuaUnit::DeMorph(), and modify_commandscript::HandleDeMorphCommand().

◆ DisableSpline()

void Unit::DisableSpline ( )
protected

◆ Dismount()

◆ EnergizeBySpell()

void Unit::EnergizeBySpell ( Unit * victim,
uint32 SpellID,
int32 Damage,
Powers powertype )

◆ EnterVehicle()

◆ ExitVehicle()

void Unit::ExitVehicle ( Position const * exitPosition = NULL)

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)

Definition at line 8306 of file Unit.cpp.

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

Referenced by _EnterVehicle(), Player::ActivateSpec(), Player::ActivateTaxiPathTo(), Vehicle::AddPassenger(), WorldSession::HandleEjectPassenger(), spell_ulduar_squeezed_lifeless::spell_ulduar_squeezed_lifeless_SpellScript::HandleInstaKill(), WorldSession::HandleRequestVehicleExit(), RemoveFromWorld(), setDeathState(), npc_vics_flying_machine::npc_vics_flying_machineAI::SpellHit(), Player::StopCastingCharm(), Player::TeleportTo(), and npc_freed_protodrake::npc_freed_protodrakeAI::UpdateAI().

◆ FindCurrentSpellBySpellId()

Spell * Unit::FindCurrentSpellBySpellId ( uint32 spell_id) const

◆ FinishSpell()

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

◆ GetAffectingPlayer()

◆ GetAI()

UnitAI * Unit::GetAI ( )
inline

Definition at line 1393 of file Unit.h.

References i_AI.

Referenced by spell_marrowgar_bone_spike_graveyard::spell_marrowgar_bone_spike_graveyard_SpellScript::CheckCast(), spell_algalon_big_bang::spell_algalon_big_bang_SpellScript::CheckTargets(), spell_marrowgar_bone_slice::spell_marrowgar_bone_slice_SpellScript::ClearSpikeImmunities(), DealDamage(), DealHeal(), spell_yogg_saron_brain_link::spell_yogg_saron_brain_link_AuraScript::DummyTick(), spell_blood_queen_bloodbolt::spell_blood_queen_bloodbolt_SpellScript::FilterTargets(), spell_intense_cold::spell_intense_cold_AuraScript::HandlePeriodicTick(), spell_frostwarden_handler_focus_fire::spell_frostwarden_handler_focus_fire_SpellScript::HandleScript(), spell_xt002_gravity_bomb_damage::spell_xt002_gravity_bomb_damage_SpellScript::HandleScript(), spell_the_lich_king_quake::spell_the_lich_king_quake_SpellScript::HandleSendEvent(), boss_freya::boss_freyaAI::JustDied(), spell_tyrannus_overlord_brand::spell_tyrannus_overlord_brand_AuraScript::OnApply(), spell_xt002_gravity_bomb_aura::spell_xt002_gravity_bomb_aura_AuraScript::OnPeriodic(), spell_tyrannus_overlord_brand::spell_tyrannus_overlord_brand_AuraScript::OnRemove(), spell_yogg_saron_brain_link::spell_yogg_saron_brain_link_AuraScript::OnRemove(), ActiveConstellationFilter::operator()(), Creature::ProhibitSpellSchool(), spell_marrowgar_coldflame::spell_marrowgar_coldflame_SpellScript::SelectTarget(), spell_the_lich_king_valkyr_target_search::spell_the_lich_king_valkyr_target_search_SpellScript::SelectTarget(), spell_marrowgar_bone_slice::spell_marrowgar_bone_slice_SpellScript::SplitDamage(), and spell_alysrazor_aggro_closest::spell_alysrazor_aggro_closest_SpellScript::UpdateThreat().

◆ GetAllMinionsByEntry()

◆ GetAPMultiplier()

◆ GetAppliedAuras() [1/2]

◆ GetAppliedAuras() [2/2]

AuraApplicationMap const & Unit::GetAppliedAuras ( ) const
inline

Definition at line 2208 of file Unit.h.

References m_appliedAuras.

◆ GetArmor()

◆ GetAttackableUnitListInRange()

void Unit::GetAttackableUnitListInRange ( std::list< Unit * > & list,
float fMaxSearchRange ) const

◆ getAttackerForHelper()

◆ getAttackers()

AttackerSet const & Unit::getAttackers ( ) const
inline

◆ GetAttackTime()

◆ getAttackTimer()

uint32 Unit::getAttackTimer ( WeaponAttackType type) const
inline

Definition at line 1428 of file Unit.h.

References m_attackTimer.

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

◆ GetAura()

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

◆ GetAuraApplication()

AuraApplication * Unit::GetAuraApplication ( uint32 spellId,
uint64 casterGUID = 0,
uint64 itemCasterGUID = 0,
uint32 reqEffMask = 0,
AuraApplication * except = NULL ) const

◆ GetAuraApplicationOfRankedSpell()

AuraApplication * Unit::GetAuraApplicationOfRankedSpell ( uint32 spellId,
uint64 casterGUID = 0,
uint64 itemCasterGUID = 0,
uint32 reqEffMask = 0,
AuraApplication * except = NULL ) const

Definition at line 1095 of file UnitAuraState.cpp.

References GetAuraApplication(), and sSpellMgr.

Referenced by GetAuraOfRankedSpell().

◆ GetAuraCount()

uint32 Unit::GetAuraCount ( uint32 spellId) const

◆ GetAuraEffect() [1/3]

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

◆ GetAuraEffect() [2/3]

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

◆ GetAuraEffect() [3/3]

◆ GetAuraEffectOfRankedSpell()

AuraEffect * Unit::GetAuraEffectOfRankedSpell ( uint32 spellId,
uint8 effIndex,
uint64 casterGUID = 0 ) const

◆ GetAuraEffectsByType()

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

Definition at line 2243 of file Unit.h.

References m_modAuras.

Referenced by Player::_ApplyWeaponDependentAuraMods(), KillRewarder::_RewardXP(), CalcAbsorbResist(), CalcArmorReducedDamage(), CalcHealAbsorb(), CalcSpellResistance(), DealDamage(), DealMeleeDamage(), GetAuraEffect(), GetAuraEffect(), GetDoTsByCaster(), GetMagicHitRedirectTarget(), GetMaxNegativeAuraModifier(), GetMaxNegativeAuraModifierByAffectMask(), GetMaxNegativeAuraModifierByMiscMask(), GetMaxNegativeAuraModifierByMiscValue(), GetMaxPositiveAuraModifier(), GetMaxPositiveAuraModifierByAffectMask(), GetMaxPositiveAuraModifierByMiscMask(), GetMaxPositiveAuraModifierByMiscValue(), GetMeleeHitRedirectTarget(), GetRemainingPeriodicAmount(), Player::GetResurrectionSpellId(), Player::GetRuneTypeBaseCooldown(), GetTotalAuraModifier(), GetTotalAuraModifierByAffectMask(), GetTotalAuraModifierByMiscMask(), GetTotalAuraModifierByMiscValue(), GetTotalAuraMultiplier(), GetTotalAuraMultiplierByAffectMask(), GetTotalAuraMultiplierByMiscMask(), GetTotalAuraMultiplierByMiscValue(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleAuraTransform(), WorldSession::HandleCastSpellOpcode(), list_commandscript::HandleListAurasCommand(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleMirrorImageDataRequest(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleShapeshiftBoosts(), HasAuraState(), HasAuraTypeWithAffectMask(), HasAuraTypeWithCaster(), HasAuraTypeWithFamilyFlags(), HasAuraTypeWithMiscvalue(), HasAuraTypeWithValue(), HasBreakableByDamageAuraType(), HasVisionObscured(), IsImmunedToSpellEffect(), Player::IsPetNeedBeTemporaryUnsummoned(), IsScriptOverriden(), isSpellCrit(), Player::isTotalImmune(), Player::isTotalImmunity(), Kill(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), MeleeSpellHitResult(), Mount(), Creature::Regenerate(), Player::Regenerate(), Creature::RegenerateHealth(), Player::RegenerateHealth(), Creature::RegenerateMana(), RestoreDisplayId(), Player::RewardQuest(), Creature::SelectVictim(), Player::SendInitialPacketsAfterAddToMap(), Player::SetBattlegroundEntryPoint(), SetFeared(), Player::SetSkill(), SpellBaseDamageBonusDone(), SpellBaseDamageBonusTaken(), SpellBaseHealingBonusDone(), SpellBaseHealingBonusTaken(), SpellDamageBonusDone(), SpellDamageBonusTaken(), SpellHealingBonusDone(), SpellHealingBonusTaken(), SpellHitResult(), Player::UpdateCharmedAI(), Guardian::UpdateDamagePhysical(), Player::UpdateExpertise(), Player::UpdateRating(), Player::UpdateSpellDamageAndHealingBonus(), and Player::UpdateStats().

◆ GetAuraOfRankedSpell()

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

◆ GetBlockPercent()

virtual uint32 Unit::GetBlockPercent ( ) const
inlinevirtual

Reimplemented in Player.

Definition at line 1812 of file Unit.h.

Referenced by CalculateMeleeDamage(), and CalculateSpellDamageTaken().

◆ GetCastingTimeForBonus()

◆ GetCharm()

◆ GetCharmer()

◆ GetCharmerGUID()

◆ GetCharmerOrOwner()

◆ GetCharmerOrOwnerGUID()

◆ GetCharmerOrOwnerOrOwnGUID()

uint64 Unit::GetCharmerOrOwnerOrOwnGUID ( ) const

◆ GetCharmerOrOwnerOrSelf()

Unit * Unit::GetCharmerOrOwnerOrSelf ( ) const

◆ GetCharmerOrOwnerPlayerOrPlayerItself()

◆ GetCharmGUID()

◆ GetCharmInfo()

◆ getClass()

uint8 Unit::getClass ( ) const
inline

Definition at line 1543 of file Unit.h.

References Object::GetByteValue(), and UNIT_FIELD_SEX.

Referenced by Player::_LoadHomeBind(), Player::_LoadSkills(), Player::_LoadSpells(), Player::ActivateSpec(), Player::ActivateTaxiPathTo(), AchievementMgr< T >::AdditionalRequirementsSatisfied(), Player::ApplyEnchantment(), Player::ApplyRatingMod(), Player::BuildPlayerTalentsInfoData(), Player::CanRollForItemInLFG(), Player::CanUseItem(), Spell::CheckRuneCost(), ClearAllReactives(), Player::Create(), WorldSession::DoLootRelease(), Player::DuelComplete(), Spell::EffectActivateRune(), Player::EquipItem(), Player::FindEquipSlot(), boss_archimonde::boss_archimondeAI::GainSoulCharge(), LuaUnit::GetClass(), LuaUnit::GetClassAsString(), getClassMask(), GetCreatePowers(), Player::GetDodgeFromAgility(), SocialMgr::GetFriendInfo(), LuaUnit::GetMaxPower(), Player::GetMeleeCritFromAgility(), spell_gen_on_tournament_mount::spell_gen_on_tournament_mount_AuraScript::GetPennatSpellId(), LuaUnit::GetPower(), GetPowerIndex(), Player::GetRatingMultiplier(), Player::GetSpellCritFromIntellect(), Player::GetStartPosition(), Player::GiveLevel(), AuraEffect::HandleAuraConvertRune(), AuraEffect::HandleAuraModShapeshift(), Aura::HandleAuraSpecificMods(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleCastSpellOpcode(), WorldSession::HandleCharCreateCallback(), spell_item_flask_of_the_north::spell_item_flask_of_the_north_SpellScript::HandleDummy(), HandleDummyAuraProc(), misc_commandscript::HandleFreezeCommand(), learn_commandscript::HandleLearnAllMySpellsCommand(), learn_commandscript::HandleLearnAllMyTalentsCommand(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMirrorImageDataRequest(), modify_commandscript::HandleModifyGenderCommand(), AuraEffect::HandlePeriodicDummyAuraTick(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), HandleProcTriggerSpell(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsOrLevelHelper(), spell_gen_pet_summoned::spell_gen_pet_summoned_SpellScript::HandleScript(), WorldSession::HandleWhoOpcode(), Player::InitDataForForm(), Player::InitDisplayIds(), Player::InitRunes(), Guardian::InitStatsForLevel(), Player::InitStatsForLevel(), Player::InitTaxiNodesForLevel(), Creature::isCanTrainingAndResetTalentsOf(), Pet::IsPermanentPetFor(), Kill(), Player::learnDefaultSpells(), Player::LearnTalent(), Player::LoadFromDB(), AchievementCriteriaData::Meets(), Player::OCTRegenMPPerSpirit(), Skyfire::WorldObjectSpellTargetCheck::operator()(), Player::PrepareGossipMenu(), ProcDamageAndSpellFor(), Player::RegenerateAll(), RemoveCharmedBy(), Player::resetSpells(), Player::ResetTalents(), Player::RewardHonor(), Player::SaveToDB(), Creature::SelectLevel(), Player::SendInspectResult(), SetCharmedBy(), Guild::Member::SetStats(), Player::StoreNewItemInBestSlots(), Player::TeleportTo(), Player::UpdateAttackPowerAndDamage(), Player::UpdateDodgePercentage(), Player::UpdateParryPercentage(), UpdateReactives(), and Guardian::UpdateStats().

◆ getClassMask()

◆ GetCombatRatingDamageReduction()

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

Definition at line 7632 of file Unit.cpp.

References CalculatePct(), and GetCombatRatingReduction().

Referenced by GetCritDamageReduction(), and GetDamageReduction().

◆ GetCombatRatingReduction()

float Unit::GetCombatRatingReduction ( CombatRating cr) const
private

Definition at line 7620 of file Unit.cpp.

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

Referenced by GetCombatRatingDamageReduction().

◆ GetCombatReach()

float Unit::GetCombatReach ( ) const
inline

◆ GetCombatTimer()

uint32 Unit::GetCombatTimer ( ) const
inline

Definition at line 1904 of file Unit.h.

References m_CombatTimer.

Referenced by Spell::DoSpellHitOnUnit(), and LuaUnit::GetCombatTime().

◆ GetCreateHealth()

◆ GetCreateMana()

uint32 Unit::GetCreateMana ( ) const
inline

Definition at line 2329 of file Unit.h.

References Object::GetUInt32Value(), and UNIT_FIELD_BASE_MANA.

Referenced by GetCreatePowers(), Player::GiveLevel(), and HandleDummyAuraProc().

◆ GetCreatePowers()

◆ GetCreateStat()

float Unit::GetCreateStat ( Stats stat) const
inline

◆ GetCreatorGUID()

uint64 Unit::GetCreatorGUID ( ) const
inline

Definition at line 2055 of file Unit.h.

References Object::GetUInt64Value(), and UNIT_FIELD_CREATED_BY.

Referenced by LuaUnit::GetCreatorGUID(), and Condition::Meets().

◆ GetCreature()

Creature * Unit::GetCreature ( WorldObject & object,
uint64 guid )
static

Definition at line 4905 of file Unit.cpp.

References Map::GetCreature(), WorldObject::GetMap(), and WorldObject::WorldObject().

Referenced by boss_moroes_guestAI::AcquireGUID(), boss_priestess_lackey_commonAI::AcquireGUIDs(), boss_moroes::boss_moroesAI::AddsAttack(), boss_erekem::boss_erekemAI::AttackStart(), npc_living_mojo::npc_living_mojoAI::AttackStart(), boss_ionar::boss_ionarAI::CallBackSparks(), npc_anubisath_sentinel::aqsentinelAI::CallBuddiesToAttack(), boss_sartharion::boss_sartharionAI::CallDragon(), npc_greyheart_spellbinder::npc_greyheart_spellbinderAI::CastChanneling(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::CastConsumingMadness(), boss_kelidan_the_breaker::boss_kelidan_the_breakerAI::ChannelerDied(), boss_kelidan_the_breaker::boss_kelidan_the_breakerAI::ChannelerEngaged(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::CheckChannelers(), spell_rotface_unstable_ooze_explosion::spell_rotface_unstable_ooze_explosion_SpellScript::CheckTarget(), netherspite_infernal::netherspite_infernalAI::Cleanup(), boss_drakkari_elemental::boss_drakkari_elementalAI::DamageTaken(), boss_illidari_councilAI::DamageTaken(), boss_julianne::boss_julianneAI::DamageTaken(), boss_romulo::boss_romuloAI::DamageTaken(), SummonList::DespawnAll(), boss_ymiron::boss_ymironAI::DespawnBoatGhosts(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::DespawnDemon(), npc_brann_hos::npc_brann_hosAI::DespawnDwarf(), SummonList::DespawnEntry(), boss_volkhan::boss_volkhanAI::DespawnGolem(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::DespawnNPC(), hyjalAI::DeSpawnVeins(), boss_netherspite::boss_netherspiteAI::DestroyPortals(), boss_hydross_the_unstable::boss_hydross_the_unstableAI::DeSummonBeams(), npc_head::npc_headAI::Disappear(), boss_drakkari_elemental::boss_drakkari_elementalAI::DoAction(), boss_professor_putricide::boss_professor_putricideAI::DoAction(), SummonList::DoAction(), boss_four_horsemen::boss_four_horsemenAI::DoEncounteraction(), boss_gothik::boss_gothikAI::DoGothikSummon(), boss_brutallus::boss_brutallusAI::DoIntro(), npc_parasitic_shadowfiend::npc_parasitic_shadowfiendAI::DoMeleeAttackIfReady(), boss_warbringer_omrogg::boss_warbringer_omroggAI::DoYellForThreat(), SummonList::DoZoneInCombat(), boss_alythess::boss_alythessAI::EnterCombat(), boss_emalon::boss_emalonAI::EnterCombat(), boss_faction_championsAI::EnterCombat(), boss_priestess_lackey_commonAI::EnterCombat(), boss_romulo::boss_romuloAI::EnterCombat(), boss_rotface::boss_rotfaceAI::EnterCombat(), boss_sacrolash::boss_sacrolashAI::EnterCombat(), boss_warbringer_omrogg::boss_warbringer_omroggAI::EnterCombat(), npc_elemental_lord::npc_elemental_lordAI::EnterCombat(), npc_fel_orc_convert::npc_fel_orc_convertAI::EnterCombat(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::EnterCombat(), npc_tempest_minion::npc_tempest_minionAI::EnterCombat(), boss_kiljaeden::boss_kiljaedenAI::EnterEvadeMode(), boss_rotface::boss_rotfaceAI::EnterEvadeMode(), AssistDelayEvent::Execute(), boss_sartharion::boss_sartharionAI::FetchDragons(), npc_azure_saboteur::npc_azure_saboteurAI::FinishPointReached(), boss_erekem::boss_erekemAI::GetChainHealTargetGUID(), boss_kelidan_the_breaker::boss_kelidan_the_breakerAI::GetChanneled(), boss_twinemperorsAI::GetOtherBoss(), npc_anubisath_sentinel::aqsentinelAI::GetOtherSentinels(), boss_twin_baseAI::GetSister(), npc_air_force_bots::npc_air_force_botsAI::GetSummonedGuard(), GrandChampionsOutVehicle(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), spell_rotface_large_ooze_buff_combine::spell_rotface_large_ooze_buff_combine_SpellScript::HandleScript(), SummonList::HasEntry(), boss_alythess::boss_alythessAI::IntroStep(), isAttackingPlayer(), npc_ashtongue_defender::npc_ashtongue_defenderAI::IsSummonedBy(), npc_ashtongue_elementalist::npc_ashtongue_elementalistAI::IsSummonedBy(), npc_ashtongue_rogue::npc_ashtongue_rogueAI::IsSummonedBy(), npc_ashtongue_sorcerer::npc_ashtongue_sorcererAI::IsSummonedBy(), npc_ashtongue_spiritbinder::npc_ashtongue_spiritbinderAI::IsSummonedBy(), npc_big_ooze::npc_big_oozeAI::IsSummonedBy(), boss_drakkari_elemental::boss_drakkari_elementalAI::JustDied(), boss_faction_championsAI::JustDied(), boss_fathomguard_caribdis::boss_fathomguard_caribdisAI::JustDied(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::JustDied(), boss_fathomguard_tidalvess::boss_fathomguard_tidalvessAI::JustDied(), boss_interrogator_vishas::boss_interrogator_vishasAI::JustDied(), boss_jormungarAI::JustDied(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::JustDied(), boss_palehoof::boss_palehoofAI::JustDied(), boss_priestess_lackey_commonAI::JustDied(), boss_rotface::boss_rotfaceAI::JustDied(), boss_sartharion::boss_sartharionAI::JustDied(), boss_sathrovarr::boss_sathrovarrAI::JustDied(), boss_terestian_illhoof::boss_terestianAI::JustDied(), boss_the_black_stalker::boss_the_black_stalkerAI::JustDied(), boss_warbringer_omrogg::boss_warbringer_omroggAI::JustDied(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), npc_big_ooze::npc_big_oozeAI::JustDied(), npc_counselor_talbot::npc_counselor_talbotAI::JustDied(), npc_elemental_lord::npc_elemental_lordAI::JustDied(), npc_enslaved_soul::npc_enslaved_soulAI::JustDied(), npc_fel_crystal::npc_fel_crystalAI::JustDied(), npc_fel_orc_convert::npc_fel_orc_convertAI::JustDied(), npc_ferocious_rhino::npc_ferocious_rhinoAI::JustDied(), npc_fizzlebang_toc::npc_fizzlebang_tocAI::JustDied(), npc_frenzied_worgen::npc_frenzied_worgenAI::JustDied(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::JustDied(), npc_ichor_globule::npc_ichor_globuleAI::JustDied(), npc_illidari_spawn::npc_illidari_spawnAI::JustDied(), npc_massive_jormungar::npc_massive_jormungarAI::JustDied(), npc_precious_icc::npc_precious_iccAI::JustDied(), npc_qiraj_war_spawn::npc_qiraj_war_spawnAI::JustDied(), npc_ravenous_furbolg::npc_ravenous_furbolgAI::JustDied(), npc_tainted_elemental::npc_tainted_elementalAI::JustDied(), npc_tempest_minion::npc_tempest_minionAI::JustDied(), npc_tito::npc_titoAI::JustDied(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::JustDied(), boss_faction_championsAI::JustReachedHome(), boss_skadi::boss_skadiAI::JustReachedHome(), boss_rotface::boss_rotfaceAI::JustSummoned(), npc_crystal_channel_target::npc_crystal_channel_targetAI::JustSummoned(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::JustSummoned(), boss_faction_championsAI::KilledUnit(), boss_headless_horseman::boss_headless_horsemanAI::KilledUnit(), boss_priestess_lackey_commonAI::KilledUnit(), boss_sathrovarr::boss_sathrovarrAI::KilledUnit(), boss_warbringer_omrogg::boss_warbringer_omroggAI::KilledUnit(), npc_drakuru_shackles::npc_drakuru_shacklesAI::LockRageclaw(), npc_grizzlemaw_cw_trigger::npc_grizzlemaw_cw_triggerAI::MoveInLineOfSight(), boss_professor_putricide::boss_professor_putricideAI::MovementInform(), npc_living_mojo::npc_living_mojoAI::MovementInform(), npc_palehoof_orb::npc_palehoof_orbAI::MovementInform(), boss_palehoof::boss_palehoofAI::NextPhase(), npc_geezle::npc_geezleAI::NextStep(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), spell_anhuur_disable_beacon_beams::spell_anhuur_disable_beacon_beams_SpellScript::Notify(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::NPCChangeTarget(), containment_sphere::OnGossipHello(), go_acherus_soul_prison::OnGossipHello(), go_broggok_lever::OnGossipHello(), go_harpoon_launcher::OnGossipHello(), go_manticron_cube::OnGossipHello(), go_orb_of_domination::OnGossipHello(), go_orb_of_the_blue_flight::OnGossipHello(), go_palehoof_sphere::OnGossipHello(), npc_announcer_toc10::OnGossipSelect(), npc_taretha::OnGossipSelect(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::OnPlayerEnter(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), at_hor_waves_restarter::OnTrigger(), at_kelthuzad_center::OnTrigger(), item_tainted_core::OnUse(), npc_doctor::npc_doctorAI::PatientSaved(), boss_kaelthas::boss_kaelthasAI::PrepareAdvisors(), boss_warchief_kargath_bladefist::boss_warchief_kargath_bladefistAI::removeAdds(), SummonList::RemoveNotExisting(), boss_black_knight::boss_black_knightAI::RemoveSummons(), advisorbase_ai::Reset(), boss_alythess::boss_alythessAI::Reset(), boss_bjarngrim::boss_bjarngrimAI::Reset(), boss_erekem::boss_erekemAI::Reset(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::Reset(), boss_fathomlord_karathress::boss_fathomlord_karathressAI::Reset(), boss_headless_horseman::boss_headless_horsemanAI::Reset(), boss_kalecgos::boss_kalecgosAI::Reset(), boss_kiljaeden::boss_kiljaedenAI::Reset(), boss_palehoof::boss_palehoofAI::Reset(), boss_paletress::boss_paletressAI::Reset(), boss_priestess_lackey_commonAI::Reset(), boss_sacrolash::boss_sacrolashAI::Reset(), boss_sartharion::boss_sartharionAI::Reset(), boss_sathrovarr::boss_sathrovarrAI::Reset(), boss_selin_fireheart::boss_selin_fireheartAI::Reset(), boss_skadi::boss_skadiAI::Reset(), boss_terestian_illhoof::boss_terestianAI::Reset(), npc_acolyte_of_shadron::npc_acolyte_of_shadronAI::Reset(), npc_anubisath_sentinel::aqsentinelAI::Reset(), npc_ferocious_rhino::npc_ferocious_rhinoAI::Reset(), npc_frenzied_worgen::npc_frenzied_worgenAI::Reset(), npc_greyheart_spellbinder::npc_greyheart_spellbinderAI::Reset(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::Reset(), npc_illidari_council::npc_illidari_councilAI::Reset(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::Reset(), npc_massive_jormungar::npc_massive_jormungarAI::Reset(), npc_ravenous_furbolg::npc_ravenous_furbolgAI::Reset(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::RestoreAll(), npc_anubisath_sentinel::aqsentinelAI::SendMyListToBuddies(), boss_toc_champion_controller::boss_toc_champion_controllerAI::SetData(), npc_announcer_toc5::npc_announcer_toc5AI::SetData(), SetPhased(), SetPhaseMask(), boss_volkhan::boss_volkhanAI::ShatterGolem(), boss_selin_fireheart::boss_selin_fireheartAI::ShatterRemainingCrystals(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::SpawnNPC(), boss_gothik::boss_gothikAI::SpellHit(), npc_drakuru_shackles::npc_drakuru_shacklesAI::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), npc_announcer_toc5::npc_announcer_toc5AI::StartGrandChampionsAttack(), boss_brutallus::boss_brutallusAI::StartIntro(), boss_kelidan_the_breaker::boss_kelidan_the_breakerAI::SummonChannelers(), boss_volazj::boss_volazjAI::SummonedCreatureDespawn(), boss_illidan_stormrage::boss_illidan_stormrageAI::Talk(), npc_drakuru_shackles::npc_drakuru_shacklesAI::UnlockRageclaw(), boss_vazruden_the_herald::boss_vazruden_the_heraldAI::UnsummonAdds(), UnsummonAllTotems(), boss_alythess::boss_alythessAI::UpdateAI(), boss_anub_arak::boss_anub_arakAI::UpdateAI(), boss_anubarak_trial::boss_anubarak_trialAI::UpdateAI(), boss_attumen::boss_attumenAI::UpdateAI(), boss_brutallus::boss_brutallusAI::UpdateAI(), boss_emalon::boss_emalonAI::UpdateAI(), boss_erekem::boss_erekemAI::UpdateAI(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::UpdateAI(), boss_fathomlord_karathress::boss_fathomlord_karathressAI::UpdateAI(), boss_headless_horseman::boss_headless_horsemanAI::UpdateAI(), boss_high_inquisitor_whitemane::boss_high_inquisitor_whitemaneAI::UpdateAI(), boss_ichoron::boss_ichoronAI::UpdateAI(), boss_julianne::boss_julianneAI::UpdateAI(), boss_kaelthas::boss_kaelthasAI::UpdateAI(), boss_kalecgos::boss_kalecgosAI::UpdateAI(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), boss_lich_king_toc::boss_lich_king_tocAI::UpdateAI(), boss_moroes::boss_moroesAI::UpdateAI(), boss_nazan::boss_nazanAI::UpdateAI(), boss_palehoof::boss_palehoofAI::UpdateAI(), boss_paletress::boss_paletressAI::UpdateAI(), boss_ragnaros::boss_ragnarosAI::UpdateAI(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::UpdateAI(), boss_romulo::boss_romuloAI::UpdateAI(), boss_sathrovarr::boss_sathrovarrAI::UpdateAI(), boss_svala::boss_svalaAI::UpdateAI(), boss_terestian_illhoof::boss_terestianAI::UpdateAI(), boss_vazruden_the_herald::boss_vazruden_the_heraldAI::UpdateAI(), boss_warbringer_omrogg::boss_warbringer_omroggAI::UpdateAI(), npc_announcer_toc5::npc_announcer_toc5AI::UpdateAI(), npc_arthas::npc_arthasAI::UpdateAI(), npc_barnes::npc_barnesAI::UpdateAI(), npc_blood_elf_council_voice_trigger::npc_blood_elf_council_voice_triggerAI::UpdateAI(), npc_doom_blossom::npc_doom_blossomAI::UpdateAI(), npc_elemental_lord::npc_elemental_lordAI::UpdateAI(), npc_enchanted_elemental::npc_enchanted_elementalAI::UpdateAI(), npc_ethereal_sphere::npc_ethereal_sphereAI::UpdateAI(), npc_fizzlebang_toc::npc_fizzlebang_tocAI::UpdateAI(), npc_grimstone::npc_grimstoneAI::UpdateAI(), npc_gurgthock::npc_gurgthockAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_ichor_globule::npc_ichor_globuleAI::UpdateAI(), npc_illidari_council::npc_illidari_councilAI::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), npc_koltira_deathweaver::npc_koltira_deathweaverAI::UpdateAI(), npc_lesser_doomguard::npc_lesser_doomguardAI::UpdateAI(), npc_margrave_dhakar::npc_margrave_dhakarAI::UpdateAI(), npc_palehoof_orb::npc_palehoof_orbAI::UpdateAI(), npc_scarlet_miner::npc_scarlet_minerAI::UpdateAI(), npc_shadowy_construct::npc_shadowy_constructAI::UpdateAI(), npc_tirion_toc::npc_tirion_tocAI::UpdateAI(), npc_towering_infernal::npc_towering_infernalAI::UpdateAI(), npc_tribuna_controller::npc_tribuna_controllerAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_water_elemental::npc_water_elementalAI::UpdateAI(), npc_wrathbone_flayer::npc_wrathbone_flayerAI::UpdateAI(), npc_brann_hos::npc_brann_hosAI::UpdateEscortAI(), npc_tooga::npc_toogaAI::UpdateFollowerAI(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), hyjalAI::WaypointReached(), npc_emily::npc_emilyAI::WaypointReached(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), and npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::WaypointReached().

◆ GetCreatureType()

◆ GetCreatureTypeMask()

uint32 Unit::GetCreatureTypeMask ( ) const

◆ GetCritDamageReduction()

uint32 Unit::GetCritDamageReduction ( uint32 damage) const
inline

Definition at line 1788 of file Unit.h.

References CR_RESILIENCE_CRIT_TAKEN, and GetCombatRatingDamageReduction().

Referenced by ApplyResilience().

◆ GetCritterGUID()

uint64 Unit::GetCritterGUID ( ) const
inline

◆ GetCurrentSpell() [1/2]

◆ GetCurrentSpell() [2/2]

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

Definition at line 2367 of file Unit.h.

References m_currentSpells.

◆ GetCurrentSpellCastTime()

int32 Unit::GetCurrentSpellCastTime ( uint32 spell_id) const

Definition at line 1456 of file Unit.cpp.

References FindCurrentSpellBySpellId().

◆ GetDamageReduction()

uint32 Unit::GetDamageReduction ( uint32 damage) const
inline

Definition at line 1792 of file Unit.h.

References CR_RESILIENCE_PLAYER_DAMAGE_TAKEN, and GetCombatRatingDamageReduction().

Referenced by ApplyResilience().

◆ getDeathState()

DeathState Unit::getDeathState ( ) const
inline

◆ GetDiminishing()

DiminishingLevels Unit::GetDiminishing ( DiminishingGroup group)

Definition at line 4837 of file Unit.cpp.

References DIMINISHING_LEVEL_1, getMSTime(), getMSTimeDiff(), and m_Diminishing.

Referenced by Spell::DoSpellHitOnUnit().

◆ GetDirectTransport()

TransportBase * Unit::GetDirectTransport ( ) const

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

Definition at line 7227 of file Unit.cpp.

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

Referenced by WaypointMovementGenerator< Creature >::StartMove(), and UpdateSplinePosition().

◆ GetDiseasesByCaster()

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

◆ GetDispellableAuraList()

◆ GetDisplayId()

◆ GetDoTsByCaster()

uint32 Unit::GetDoTsByCaster ( uint64 casterGUID) const

◆ GetDummyAuraEffect()

AuraEffect * Unit::GetDummyAuraEffect ( SpellFamilyNames name,
uint32 iconId,
uint8 effIndex ) const

◆ GetDynObject()

DynamicObject * Unit::GetDynObject ( uint32 spellId)

Definition at line 1618 of file Unit.cpp.

References DynamicObject::GetSpellId(), and m_dynObj.

◆ GetExtraUnitMovementFlags()

uint16 Unit::GetExtraUnitMovementFlags ( ) const
inline

◆ getFaction()

◆ GetFactionReactionTo()

◆ GetFactionTemplateEntry()

◆ GetFirstControlled()

Unit * Unit::GetFirstControlled ( ) const

◆ GetFirstMinion()

Minion * Unit::GetFirstMinion ( ) const

◆ GetFollowAngle()

virtual float Unit::GetFollowAngle ( ) const
inlinevirtual

Reimplemented in Minion.

Definition at line 2788 of file Unit.h.

References M_PI.

Referenced by Spell::EffectSummonType(), npc_commandscript::HandleNpcFollowCommand(), and WorldSession::HandlePetActionHelper().

◆ GetGameObject()

GameObject * Unit::GetGameObject ( uint32 spellId) const

Definition at line 1654 of file Unit.cpp.

References m_gameObj.

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

◆ getGender()

◆ GetGuardianPet()

◆ GetHealth()

uint32 Unit::GetHealth ( ) const
inline

Definition at line 1600 of file Unit.h.

References Object::GetUInt32Value(), and UNIT_FIELD_HEALTH.

Referenced by spell_rog_cheat_death::spell_rog_cheat_death_AuraScript::Absorb(), boss_twilight_halion::boss_twilight_halionAI::boss_twilight_halionAI(), WorldSession::BuildPartyMemberStatsChangedPacket(), boss_supremus::boss_supremusAI::CalculateHatefulStrikeTarget(), spell_razorscale_flame_breath::spell_razorscale_flame_breath_SpellScript::CheckDamage(), CountPctFromCurHealth(), boss_twinemperorsAI::DamageTaken(), DealDamage(), DealMeleeDamage(), LuaUnit::GetHealth(), GetHealthGain(), GetHealthPct(), AuraEffect::HandleAuraModIncreaseHealth(), AuraEffect::HandleAuraModIncreaseMaxHealth(), misc_commandscript::HandleDieCommand(), HandleDummyAuraProc(), Player::HandleFall(), npc_commandscript::HandleNpcInfoCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), HandleProcTriggerSpell(), HealthAbovePct(), HealthAbovePctHealed(), HealthBelowPct(), HealthBelowPctDamaged(), IsFullHealth(), Kill(), ModifyHealth(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), spell_xt002_gravity_bomb_aura::spell_xt002_gravity_bomb_aura_AuraScript::OnPeriodic(), Skyfire::HealthPctOrderPred::operator()(), Skyfire::MostHPMissingInRange::operator()(), Creature::RegenerateHealth(), Player::RegenerateHealth(), boss_warchief_kargath_bladefist::boss_warchief_kargath_bladefistAI::removeAdds(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::Reset(), Creature::ResetPlayerDamageReq(), Pet::SavePetToDB(), Creature::SaveToDB(), Player::SaveToDB(), SendAttackStateUpdate(), SendSpellNonMeleeDamageLog(), SetMaxHealth(), boss_xt002::boss_xt002_AI::SetPhaseOne(), boss_twinemperorsAI::SpellHit(), boss_attumen::boss_attumenAI::UpdateAI(), boss_patchwerk::boss_patchwerkAI::UpdateAI(), npc_illidari_council::npc_illidari_councilAI::UpdateAI(), Player::UpdateCharmedAI(), and boss_faction_championsAI::UpdateThreat().

◆ GetHealthGain()

int32 Unit::GetHealthGain ( int32 dVal)

Definition at line 4055 of file Unit.cpp.

References GetHealth(), and GetMaxHealth().

◆ GetHealthPct()

◆ getHostileRefManager()

◆ GetInterruptMask()

uint32 Unit::GetInterruptMask ( ) const
inline

Definition at line 2479 of file Unit.h.

References m_interruptMask.

◆ GetLastDamagedTime()

time_t Unit::GetLastDamagedTime ( ) const
inline

Definition at line 2840 of file Unit.h.

References _lastDamagedTime.

Referenced by Creature::SelectVictim().

◆ getLevel()

uint8 Unit::getLevel ( ) const
inline

Definition at line 1528 of file Unit.h.

References Object::GetUInt32Value(), and UNIT_FIELD_LEVEL.

Referenced by Player::_ApplyItemBonuses(), Player::_LoadGroup(), Player::_LoadSkills(), Player::_LoadSpells(), KillRewarder::_RewardPlayer(), KillRewarder::_RewardXP(), Player::_SaveStats(), AchievementMgr< T >::AdditionalRequirementsSatisfied(), Group::AddMember(), BattlegroundAV::AddPlayer(), Pet::addSpell(), Spell::AddUnitTarget(), Player::ApplyEnchantment(), BattlegroundMgr::BuildBattlegroundListPacket(), WorldSession::BuildPartyMemberStatsChangedPacket(), CalcArmorReducedDamage(), SpellInfo::CalcCastTime(), SpellEffectInfo::CalcRadius(), CalcSpellResistance(), spell_item_arcane_shroud::spell_item_arcane_shroud_AuraScript::CalculateAmount(), spell_item_the_eye_of_diminution::spell_item_the_eye_of_diminution_AuraScript::CalculateAmount(), CalculateDefaultCoefficient(), CalculateLevelPenalty(), CalculateMeleeDamage(), Player::CalculateReputationGain(), Player::CalculateTalentsPoints(), SpellEffectInfo::CalcValue(), Player::CanEquipItem(), Group::CanJoinBattlegroundQueue(), Player::CanRollForItemInLFG(), Player::CanSeeStartQuest(), Player::CanUseItem(), Player::CheckAreaExploreAndOutdoor(), Spell::CheckCast(), spell_hun_tame_beast::spell_hun_tame_beast_SpellScript::CheckCast(), Spell::CheckEffectTarget(), Pet::CreateBaseAtTamed(), CreateTamedPetFrom(), CreateTamedPetFrom(), DealMeleeDamage(), DoLowUnlearnCost(), DoMedUnlearnCost(), Spell::EffectSkinning(), Spell::EffectTameCreature(), lfg::LFGMgr::FinishDungeon(), Skyfire::XP::Gain(), Player::GetBarberShopCost(), Player::GetBGAccessByLevel(), LuaAura::GetCasterLevel(), GetCastingTimeForBonus(), Pet::GetCurrentFoodBenefitLevel(), WorldSession::getDialogStatus(), Player::GetDodgeFromAgility(), SocialMgr::GetFriendInfo(), Player::GetHealthBonusFromStamina(), LuaItem::GetItemLink(), LuaUnit::GetLevel(), Creature::getLevelForTarget(), getLevelForTarget(), lfg::LFGMgr::GetLockedDungeons(), GetMaxSkillValueForLevel(), Player::GetMeleeCritFromAgility(), Player::GetQuestLevel(), Player::GetRatingMultiplier(), Player::GetSpellCritFromIntellect(), Player::GetsRecruitAFriendBonus(), Player::GetTrainerSpellState(), GetUnitMeleeSkill(), Player::GiveLevel(), Pet::GivePetLevel(), Pet::GivePetXP(), LuaPlayer::GiveXP(), Player::GiveXP(), WorldSession::HandleCastSpellOpcode(), character_commandscript::HandleCharacterLevelCommand(), WorldSession::HandleCharCreateCallback(), Player::HandleDrowning(), spell_mage_conjure_refreshment::spell_mage_conjure_refreshment_SpellScript::HandleDummy(), spell_mage_conjure_refreshment_table::spell_mage_conjure_refreshment_table_SpellScript::HandleDummy(), WorldSession::HandleGrantLevel(), WorldSession::HandleInitiateTradeOpcode(), character_commandscript::HandleLevelUpCommand(), WorldSession::HandleMessagechatOpcode(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), spell_pri_divine_aegis::spell_pri_divine_aegis_AuraScript::HandleProc(), reset_commandscript::HandleResetLevelCommand(), spell_item_scroll_of_recall::spell_item_scroll_of_recall_SpellScript::HandleScript(), WorldSession::HandleSendMail(), WorldSession::HandleWhoOpcode(), Player::InitGlyphsForLevel(), Pet::InitLevelupSpellsForLevel(), Guardian::InitStats(), Puppet::InitStats(), TempSummon::InitStats(), Totem::InitStats(), Guardian::InitStatsForLevel(), Player::InitStatsForLevel(), Pet::InitTalentForLevel(), Player::InitTalentForLevel(), Player::InitTaxiNodesForLevel(), Battlefield::InvitePlayerToWar(), Creature::isCanTrainingAndResetTalentsOf(), Player::isHonorOrXPTarget(), Player::IsResearchDigsiteAvailable(), Pet::LearnSpecializationSpells(), Pet::LoadPetFromDB(), AchievementCriteriaData::Meets(), Player::OCTRegenMPPerSpirit(), Player::OnGossipSelect(), Player::PetSpellInitialize(), Player::PrepareGossipMenu(), ProcDamageAndSpellFor(), Player::RegenerateHealth(), Player::RemovedInsignia(), Pet::removeSpell(), Player::ResetTalents(), Player::ResurrectPlayer(), Player::RewardHonor(), Player::RewardQuest(), Player::RewardReputation(), RollMeleeOutcomeAgainst(), Player::Satisfy(), Player::SatisfyQuestLevel(), Pet::SavePetToDB(), Player::SaveToDB(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInvite(), WorldSession::SendLfgPlayerLockInfo(), WorldSession::SendLfgRoleCheckUpdate(), Player::SendLoot(), Player::SendQuestReward(), WorldSession::SendStablePetCallback(), Player::SetRestBonus(), Guild::Member::SetStats(), LuaUnit::SummonGuardian(), Spell::SummonGuardian(), Player::SummonPet(), Pet::SynchronizeLevelWithOwner(), AchievementMgr< T >::UpdateAchievementCriteria(), Player::UpdateAttackPowerAndDamage(), Creature::UpdateEntry(), GameObject::Use(), and Quest::XPValue().

◆ getLevelForTarget()

uint8 Unit::getLevelForTarget ( WorldObject const * ) const
inlineoverridevirtual

◆ GetMagicHitRedirectTarget()

◆ GetMaxHealth()

uint32 Unit::GetMaxHealth ( ) const
inline

Definition at line 1604 of file Unit.h.

References Object::GetUInt32Value(), and UNIT_FIELD_MAX_HEALTH.

Referenced by Player::_SaveStats(), boss_prince_keleseth_icc::boss_prince_kelesethAI::boss_prince_kelesethAI(), boss_prince_taldaram_icc::boss_prince_taldaramAI::boss_prince_taldaramAI(), boss_prince_valanar_icc::boss_prince_valanarAI::boss_prince_valanarAI(), WorldSession::BuildPartyMemberStatsChangedPacket(), spell_monk_touch_of_karma::spell_monk_touch_of_karma_AuraScript::CalculateAmount(), CountPctFromMaxHealth(), boss_twinemperorsAI::DamageTaken(), GetHealthGain(), GetHealthPct(), LuaUnit::GetMaxHealth(), AuraEffect::HandleAuraModIncreaseMaxHealth(), HandleAuraProc(), Player::HandleDrowning(), Player::HandleFall(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcInfoCommand(), AuraEffect::HandlePeriodicDummyAuraTick(), HandleProcTriggerSpell(), spell_stinky_precious_decimate::spell_stinky_precious_decimate_SpellScript::HandleScript(), IsFullHealth(), Creature::LoadCreatureFromDB(), Player::LoadFromDB(), Pet::LoadPetFromDB(), ModifyHealth(), Skyfire::HealthPctOrderPred::operator()(), Skyfire::MostHPMissingInRange::operator()(), Player::outDebugValues(), Player::ProcessDelayedOperations(), Creature::RegenerateHealth(), Player::RegenerateHealth(), Player::ResetAllPowers(), Player::ResurectUsingRequestData(), Player::ResurrectPlayer(), RewardRage(), SetFullHealth(), SetHealth(), boss_xt002::boss_xt002_AI::SetPhaseOne(), and boss_twinemperorsAI::SpellHit().

◆ GetMaxNegativeAuraModifier()

int32 Unit::GetMaxNegativeAuraModifier ( AuraType auratype) const

◆ GetMaxNegativeAuraModifierByAffectMask()

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

Definition at line 1555 of file Unit.cpp.

References GetAuraEffectsByType().

◆ GetMaxNegativeAuraModifierByMiscMask()

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

Definition at line 1446 of file UnitAuraState.cpp.

References GetAuraEffectsByType().

◆ GetMaxNegativeAuraModifierByMiscValue()

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

Definition at line 1512 of file UnitAuraState.cpp.

References GetAuraEffectsByType().

Referenced by ModSpellDuration().

◆ GetMaxPositiveAuraModifier()

int32 Unit::GetMaxPositiveAuraModifier ( AuraType auratype) const

◆ GetMaxPositiveAuraModifierByAffectMask()

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

Definition at line 1541 of file Unit.cpp.

References GetAuraEffectsByType().

◆ GetMaxPositiveAuraModifierByMiscMask()

int32 Unit::GetMaxPositiveAuraModifierByMiscMask ( AuraType auratype,
uint32 misc_mask,
const AuraEffect * except = NULL ) const

◆ GetMaxPositiveAuraModifierByMiscValue()

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

Definition at line 1498 of file UnitAuraState.cpp.

References GetAuraEffectsByType().

◆ GetMaxPower()

◆ GetMaxSkillValueForLevel()

◆ GetMechanicImmunityMask()

uint32 Unit::GetMechanicImmunityMask ( ) const

Definition at line 3570 of file Unit.cpp.

References IMMUNITY_MECHANIC, and m_spellImmune.

◆ GetMechanicResistChance()

◆ GetMeleeDamageSchoolMask()

SpellSchoolMask Unit::GetMeleeDamageSchoolMask ( ) const
protectedvirtual

Reimplemented in Creature.

Definition at line 5801 of file Unit.cpp.

References SPELL_SCHOOL_MASK_NORMAL.

Referenced by CalculateMeleeDamage(), and MeleeDamageBonusTaken().

◆ GetMeleeHitRedirectTarget()

◆ GetMeleeReach()

float Unit::GetMeleeReach ( ) const

Definition at line 441 of file Unit.cpp.

References Object::m_floatValues, MIN_MELEE_REACH, and UNIT_FIELD_COMBAT_REACH.

Referenced by IsWithinMeleeRange().

◆ GetMinionGUID()

uint64 Unit::GetMinionGUID ( ) const
inline

◆ GetMinPower()

int32 Unit::GetMinPower ( Powers power) const
inline

Definition at line 1662 of file Unit.h.

References POWER_ECLIPSE.

Referenced by ModifyPower().

◆ GetModelForForm()

◆ GetModelForTotem()

◆ GetModifierValue()

◆ GetMotionMaster() [1/2]

MotionMaster * Unit::GetMotionMaster ( )
inline

Definition at line 2605 of file Unit.h.

References i_motionMaster.

Referenced by HomeMovementGenerator< Creature >::_setTargetLocation(), BattlegroundAV::AddAVCreature(), boss_illidan_stormrage::boss_illidan_stormrageAI::CastEyeBlast(), CleanupBeforeRemoveFromMap(), Map::CreatureRespawnRelocation(), Creature::DoFleeToGetAssistance(), Spell::EffectSummonType(), boss_sartharion::boss_sartharionAI::FetchDragons(), AssistanceMovementGenerator::Finalize(), EffectMovementGenerator::Finalize(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), misc_commandscript::HandleAppearCommand(), AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), WorldSession::HandleCharCreateCallback(), misc_commandscript::HandleComeToMeCommand(), spell_malygos_random_portal::spell_malygos_random_portal_SpellScript::HandleDummy(), spell_q12589_shoot_rjr::spell_q12589_shoot_rjr_SpellScript::HandleDummy(), go_commandscript::HandleGoCreatureCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoObjectCommand(), go_commandscript::HandleGoTaxinodeCommand(), go_commandscript::HandleGoTicketCommand(), go_commandscript::HandleGoTriggerCommand(), go_commandscript::HandleGoXYZCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), AuraEffect::HandleModPossessPet(), misc_commandscript::HandleMovegensCommand(), WorldSession::HandleMoveWorldportAckOpcode(), npc_commandscript::HandleNpcAddMoveCommand(), npc_commandscript::HandleNpcFollowCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetSpawnDistCommand(), npc_commandscript::HandleNpcUnFollowCommand(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleRecallCommand(), spell_nexus_lord_align_disk_aggro::spell_nexus_lord_align_disk_aggro_SpellScript::HandleScript(), spell_saviana_conflagration_throwback::spell_saviana_conflagration_throwback_SpellScript::HandleScript(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), tele_commandscript::HandleTeleNameCommand(), wp_commandscript::HandleWpLoadCommand(), wp_commandscript::HandleWpUnLoadCommand(), JumpTo(), JumpTo(), LuaUnit::JumpToCoords(), npc_counselor_talbot::npc_counselor_talbotAI::JustDied(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), npc_fel_crystal::npc_fel_crystalAI::JustDied(), KnockbackFrom(), spell_alysrazor_turn_monstrosity::spell_alysrazor_turn_monstrosity_SpellScript::KnockBarrage(), spell_svalna_revive_champion::spell_svalna_revive_champion_SpellScript::Land(), CreatureGroup::LeaderMoveTo(), boss_teron_gorefiend::boss_teron_gorefiendAI::MindControlGhost(), boss_midnight::boss_midnightAI::Mount(), LuaUnit::MoveCharge(), LuaUnit::MoveChase(), LuaUnit::MoveClear(), instance_deadmines::instance_deadmines_InstanceMapScript::MoveCreatureInside(), LuaUnit::MoveFollow(), LuaUnit::MoveRandom(), LuaUnit::MoveRotate(), LuaUnit::MoveTo(), boss_palehoof::boss_palehoofAI::NextPhase(), npc_geezle::npc_geezleAI::NextStep(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), npc_argent_valiant::npc_argent_valiantAI::npc_argent_valiantAI(), npc_freya_ward_summon::npc_freya_ward_summonAI::npc_freya_ward_summonAI(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), spell_gen_rock_jump_a::spell_gen_rock_jump_a_SpellScript::PrepareSpellScript(), spell_gen_rock_jump_b::spell_gen_rock_jump_b_SpellScript::PrepareSpellScript(), spell_gen_rock_jump_c::spell_gen_rock_jump_c_SpellScript::PrepareSpellScript(), PretendToDie(), npc_jungle_punch_target::npc_jungle_punch_targetAI::proceedCwEvent(), propagateSpeedChange(), boss_warchief_kargath_bladefist::boss_warchief_kargath_bladefistAI::removeAdds(), RemoveCharmedBy(), Skyfire::PetTransport::RemoveOwnerHunterPet(), boss_fathomlord_karathress::boss_fathomlord_karathressAI::Reset(), boss_sartharion::boss_sartharionAI::Reset(), ResetCryForTheMoonActor(), Creature::Respawn(), instance_uldaman::instance_uldaman_InstanceMapScript::RespawnMinions(), Resurrect(), WorldSession::SendDoFlight(), SetCharmedBy(), SetConfused(), setDeathState(), SetFeared(), SetInCombatState(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::SpawnPyramidWave(), instance_violet_hold::instance_violet_hold_InstanceMapScript::StartBossEncounter(), WaypointMovementGenerator< Creature >::StartMove(), Player::SummonIfPossible(), LuaPlayer::Teleport(), lfg::LFGMgr::TeleportPlayer(), instance_violet_hold::instance_violet_hold_InstanceMapScript::Update(), boss_krick::boss_krickAI::UpdateAI(), boss_malygos::boss_malygosAI::UpdateAI(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::UpdateAI(), boss_sartharion::boss_sartharionAI::UpdateAI(), boss_the_lich_king::boss_the_lich_kingAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_elder_kekek::npc_elder_kekekAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), Player::UpdateCharmedAI(), and Creature::UpdateMovementFlags().

◆ GetMotionMaster() [2/2]

const MotionMaster * Unit::GetMotionMaster ( ) const
inline

Definition at line 2609 of file Unit.h.

References i_motionMaster.

◆ GetMountCapability()

◆ GetMountID()

◆ GetMovementCounter()

uint32 Unit::GetMovementCounter ( ) const
inline

Definition at line 2849 of file Unit.h.

References m_movementCounter.

Referenced by Object::BuildMovementUpdate().

◆ GetNativeDisplayId()

◆ GetNegStat()

float Unit::GetNegStat ( Stats stat) const
inline

Definition at line 2339 of file Unit.h.

References Object::GetFloatValue(), and UNIT_FIELD_STAT_NEG_BUFF.

◆ GetNextRandomRaidMemberOrPet()

◆ GetOwnedAura()

Aura * Unit::GetOwnedAura ( uint32 spellId,
uint64 casterGUID = 0,
uint64 itemCasterGUID = 0,
uint32 reqEffMask = 0,
Aura * except = NULL ) const

Definition at line 443 of file UnitAuraState.cpp.

References m_ownedAuras.

Referenced by _TryStackingOrRefreshingExistingAura().

◆ GetOwnedAuras() [1/2]

AuraMap & Unit::GetOwnedAuras ( )
inline

Definition at line 2188 of file Unit.h.

References m_ownedAuras.

Referenced by GetDispellableAuraList().

◆ GetOwnedAuras() [2/2]

AuraMap const & Unit::GetOwnedAuras ( ) const
inline

Definition at line 2192 of file Unit.h.

References m_ownedAuras.

◆ GetOwner()

Unit * Unit::GetOwner ( ) const

Definition at line 2339 of file Unit.cpp.

References GetOwnerGUID(), ObjectAccessor::GetUnit(), and Unit().

Referenced by ApplyResilience(), spell_sha_mana_tide_totem::spell_sha_mana_tide_totem_AuraScript::CalculateAmount(), spell_dk_rune_weapon_scaling_02::spell_dk_rune_weapon_scaling_02_AuraScript::CalculateDamageDoneAmount(), spell_dk_pet_scaling_01::spell_dk_pet_scaling_01_AuraScript::CalculateStaminaAmount(), spell_dk_pet_scaling_01::spell_dk_pet_scaling_01_AuraScript::CalculateStrengthAmount(), spell_dk_blood_gorged::spell_dk_blood_gorged_AuraScript::CheckProc(), spell_pri_mana_leech::spell_pri_mana_leech_AuraScript::CheckProc(), ClearInCombat(), DealHeal(), GetCharmerOrOwner(), GetCombatRatingReduction(), GetNextRandomRaidMemberOrPet(), LuaUnit::GetOwner(), GetSpellModOwner(), Aura::HandleAuraSpecificMods(), spell_q12277_wintergarde_mine_explosion::spell_q12277_wintergarde_mine_explosion_SpellScript::HandleDummy(), spell_sha_healing_stream_totem::spell_sha_healing_stream_totem_SpellScript::HandleDummy(), HandleDummyAuraProc(), spell_mage_water_elemental_freeze::spell_mage_water_elemental_freeze_SpellScript::HandleImprovedFreeze(), WorldSession::HandlePetActionHelper(), reset_commandscript::HandleResetTalentsCommand(), spell_hun_pet_heart_of_the_phoenix::spell_hun_pet_heart_of_the_phoenix_SpellScript::HandleScript(), IsAlwaysVisibleFor(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::JustDied(), Kill(), npc_dkc1_gothik::npc_dkc1_gothikAI::MoveInLineOfSight(), npc_fezzix_geartwist::npc_fezzix_geartwistAI::MoveInLineOfSight(), npc_khunok_the_behemoth::npc_khunok_the_behemothAI::MoveInLineOfSight(), npc_ancestral_wolf::npc_ancestral_wolfAI::npc_ancestral_wolfAI(), spell_monk_soothing_mist::spell_monk_soothing_mist_AuraScript::OnApply(), spell_monk_serpents_zeal::spell_monk_serpents_zeal_AuraScript::OnProc(), RemoveFromWorld(), RestoreFaction(), Creature::SelectVictim(), SendPetActionFeedback(), SendPetAIReaction(), SendPetTalk(), SetHealth(), SetMaxHealth(), SetMaxPower(), SetPower(), setPowerType(), SetStunned(), SpellDamageBonusDone(), SpellHealingBonusDone(), npc_scarlet_courier::npc_scarlet_courierAI::UpdateAI(), and UpdateAuraForGroup().

◆ GetOwnerGUID()

◆ GetPartyMembers()

◆ GetPetGUID()

◆ GetPlayer()

◆ GetPositionZMinusOffset()

◆ GetPosStat()

float Unit::GetPosStat ( Stats stat) const
inline

Definition at line 2335 of file Unit.h.

References Object::GetFloatValue(), and UNIT_FIELD_STAT_POS_BUFF.

◆ GetPower()

◆ GetPowerIndex()

uint32 Unit::GetPowerIndex ( uint32 powerType) const

This is here because hunter pets are of the warrior class. With the current implementation, the core only gives them POWER_RAGE, so we enforce the class to hunter so that they effectively get focus power.

Definition at line 5346 of file Unit.cpp.

References getClass(), and GetPowerIndexByClass().

Referenced by GetMaxPower(), GetPower(), Player::LoadFromDB(), Player::Regenerate(), Player::SaveToDB(), SetMaxPower(), SetPower(), SpellBaseDamageBonusDone(), and SpellBaseHealingBonusDone().

◆ getPowerType()

◆ GetPowerTypeByAuraGroup()

◆ GetPPMProcChance()

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

◆ GetProcAurasTriggeredOnEvent()

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

Definition at line 610 of file UnitProcEvent.cpp.

References ASSERT, and GetAppliedAuras().

Referenced by TriggerAurasProcOnEvent().

◆ getRace()

◆ getRaceMask()

◆ GetRandomContactPoint()

void Unit::GetRandomContactPoint ( const Unit * target,
float & x,
float & y,
float & z,
float distance2dMin,
float distance2dMax ) const

◆ GetReactionTo()

◆ GetRedirectThreatPercent()

uint32 Unit::GetRedirectThreatPercent ( ) const
inline

Definition at line 2728 of file Unit.h.

References _redirectThreadInfo.

Referenced by ThreatManager::doAddThreat().

◆ GetRedirectThreatTarget()

◆ GetRemainingPeriodicAmount()

uint32 Unit::GetRemainingPeriodicAmount ( uint64 caster,
uint32 spellId,
AuraType auraType,
uint8 effectIndex = 0 ) const

◆ GetResistance() [1/2]

uint32 Unit::GetResistance ( SpellSchoolMask mask) const

Definition at line 9056 of file Unit.cpp.

References GetResistance(), MAX_SPELL_SCHOOL, and SPELL_SCHOOL_NORMAL.

◆ GetResistance() [2/2]

◆ GetResistanceBuffMods()

float Unit::GetResistanceBuffMods ( SpellSchools school,
bool positive ) const

◆ GetSchoolImmunityMask()

uint32 Unit::GetSchoolImmunityMask ( ) const

Definition at line 3560 of file Unit.cpp.

References IMMUNITY_SCHOOL, and m_spellImmune.

◆ GetShapeshiftForm()

◆ GetSharedVisionList()

◆ GetSheath()

SheathState Unit::GetSheath ( ) const
inline

Definition at line 1685 of file Unit.h.

References Object::GetByteValue(), and UNIT_FIELD_SHAPESHIFT_FORM.

◆ GetSingleCastAuras() [1/2]

◆ GetSingleCastAuras() [2/2]

AuraList const & Unit::GetSingleCastAuras ( ) const
inline

Definition at line 2251 of file Unit.h.

References m_scAuras.

◆ GetSpeed()

float Unit::GetSpeed ( UnitMoveType mtype) const

◆ GetSpeedRate()

◆ GetSpellMaxRangeForTarget()

float Unit::GetSpellMaxRangeForTarget ( Unit const * target,
SpellInfo const * spellInfo ) const

◆ GetSpellMinRangeForTarget()

float Unit::GetSpellMinRangeForTarget ( Unit const * target,
SpellInfo const * spellInfo ) const

◆ GetSpellModOwner()

◆ GetSpellSchoolByAuraGroup()

◆ getStandState()

◆ GetStat()

◆ GetStatByAuraGroup()

◆ GetTarget()

◆ getThreatManager()

◆ GetTotalAttackPowerValue()

◆ GetTotalAuraModifier()

◆ GetTotalAuraModifierByAffectMask()

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

Definition at line 1526 of file UnitAuraState.cpp.

References GetAuraEffectsByType(), and sSpellMgr.

◆ GetTotalAuraModifierByMiscMask()

int32 Unit::GetTotalAuraModifierByMiscMask ( AuraType auratype,
uint32 misc_mask ) const

◆ GetTotalAuraModifierByMiscValue()

◆ GetTotalAuraModValue()

◆ GetTotalAuraMultiplier()

float Unit::GetTotalAuraMultiplier ( AuraType auratype) const

◆ GetTotalAuraMultiplierByAffectMask()

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

Definition at line 1545 of file UnitAuraState.cpp.

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

◆ GetTotalAuraMultiplierByMiscMask()

float Unit::GetTotalAuraMultiplierByMiscMask ( AuraType auratype,
uint32 misc_mask ) const

◆ GetTotalAuraMultiplierByMiscValue()

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

Definition at line 1479 of file UnitAuraState.cpp.

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

Referenced by Player::ModifyCurrency(), and Player::UpdateManaRegen().

◆ GetTotalStatValue()

float Unit::GetTotalStatValue ( Stats stat) const

◆ getTransForm()

uint32 Unit::getTransForm ( ) const
inline

◆ GetTransGUID()

◆ GetUnit()

Unit * Unit::GetUnit ( WorldObject & object,
uint64 guid )
static

Definition at line 4895 of file Unit.cpp.

References ObjectAccessor::GetUnit(), Unit(), and WorldObject::WorldObject().

Referenced by instance_uldaman::instance_uldaman_InstanceMapScript::ActivateArchaedas(), boss_archaedas::boss_archaedasAI::ActivateMinion(), boss_malchezaar::boss_malchezaarAI::AxesCleanup(), boss_supremus::boss_supremusAI::CalculateHatefulStrikeTarget(), boss_archimonde::boss_archimondeAI::CanUseFingerOfDeath(), boss_gathios_the_shatterer::boss_gathios_the_shattererAI::CastAuraOnCouncil(), boss_gurtogg_bloodboil::boss_gurtogg_bloodboilAI::CastBloodboil(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::CastConsumingMadness(), boss_essence_of_suffering::boss_essence_of_sufferingAI::CastFixate(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::CastGravityLapseFly(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::CastGravityLapseKnockUp(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::CheckBanish(), npc_shadowy_construct::npc_shadowy_constructAI::CheckPlayers(), boss_headless_horseman::boss_headless_horsemanAI::DamageTaken(), boss_scarlet_commander_mograine::boss_scarlet_commander_mograineAI::DamageTaken(), npc_ember_of_alar::npc_ember_of_alarAI::DamageTaken(), npc_pulsing_pumpkin::npc_pulsing_pumpkinAI::Despawn(), UnitAI::DoAddAuraToAllHostilePlayers(), UnitAI::DoCastToAllHostilePlayers(), ScriptedAI::DoResetThreat(), npc_time_rift::npc_time_riftAI::DoSummonAtRift(), boss_faction_championsAI::EnemiesInRange(), boss_malchezaar::boss_malchezaarAI::EnfeebleHealthEffect(), boss_malchezaar::boss_malchezaarAI::EnfeebleResetHealth(), boss_priestess_delrissa::boss_priestess_delrissaAI::EnterCombat(), boss_priestess_lackey_commonAI::EnterCombat(), boss_illidari_councilAI::EnterEvadeMode(), AssistDelayEvent::Execute(), boss_shade_of_aran::boss_aranAI::FlameWreathEffect(), SmartScript::GetTargets(), WorldSession::HandleChangeSeatsOnControlledVehicle(), npc_akama_illidan::npc_akama_illidanAI::HandleChannelSequence(), boss_felmyst::boss_felmystAI::HandleFlightSequence(), boss_illidan_stormrage::boss_illidan_stormrageAI::HandleFlightSequence(), boss_malchezaar::boss_malchezaarAI::InfernalCleanup(), boss_priestess_delrissa::boss_priestess_delrissaAI::InitializeLackeys(), boss_attumen::boss_attumenAI::JustDied(), boss_kaelthas::boss_kaelthasAI::JustDied(), dummy_dragonAI::JustDied(), npc_claw_tentacle::claw_tentacleAI::JustDied(), npc_demon_chain::npc_demon_chainAI::JustDied(), npc_eye_tentacle::eye_tentacleAI::JustDied(), npc_giant_claw_tentacle::giant_claw_tentacleAI::JustDied(), npc_giant_eye_tentacle::giant_eye_tentacleAI::JustDied(), npc_inner_demon::npc_inner_demonAI::JustDied(), npc_kilrek::npc_kilrekAI::JustDied(), npc_shadow_demon::shadow_demonAI::JustDied(), npc_webwrap::npc_webwrapAI::JustDied(), boss_archimonde::boss_archimondeAI::JustSummoned(), boss_exarch_maladaar::boss_exarch_maladaarAI::JustSummoned(), boss_kologarn::boss_kologarnAI::JustSummoned(), boss_shirrak_the_dead_watcher::boss_shirrak_the_dead_watcherAI::JustSummoned(), npc_orinoko_tuskbreaker::npc_orinoko_tuskbreakerAI::JustSummoned(), npc_akama_illidan::npc_akama_illidanAI::KillAllElites(), boss_midnight::boss_midnightAI::KilledUnit(), netherspite_infernal::netherspite_infernalAI::KilledUnit(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::MergeThreatList(), boss_teron_gorefiend::boss_teron_gorefiendAI::MindControlGhost(), boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::MoveDown(), boss_four_horsemen::boss_four_horsemenAI::MovementInform(), boss_headless_horseman::boss_headless_horsemanAI::MovementInform(), boss_selin_fireheart::boss_selin_fireheartAI::MovementInform(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::MovementInform(), boss_magtheridon::boss_magtheridonAI::NeedCheckCubeStatus(), SmartScript::ProcessAction(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::RemoveGravityLapse(), boss_najentus::boss_najentusAI::RemoveImpalingSpine(), boss_garaxxas::boss_garaxxasAI::Reset(), boss_lady_vashj::boss_lady_vashjAI::Reset(), boss_warbringer_omrogg::boss_warbringer_omroggAI::Reset(), boss_gurtogg_bloodboil::boss_gurtogg_bloodboilAI::RevertThreatOnTarget(), boss_fathomguard_caribdis::boss_fathomguard_caribdisAI::selectAdvisorUnit(), boss_gathios_the_shatterer::boss_gathios_the_shattererAI::SelectCouncilMember(), boss_faction_championsAI::SelectEnemyCaster(), boss_moroes_guestAI::SelectGuestTarget(), boss_selin_fireheart::boss_selin_fireheartAI::SelectNearestCrystal(), boss_cthun::cthunAI::SelectRandomNotStomach(), boss_magtheridon::boss_magtheridonAI::SetClicker(), npc_webwrap::npc_webwrapAI::SetGUID(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::SetThreatList(), boss_teron_gorefiend::boss_teron_gorefiendAI::SetThreatList(), boss_headless_horseman::boss_headless_horsemanAI::SpellHit(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::TeleportPlayersToSelf(), advisorbase_ai::UpdateAI(), boss_alythess::boss_alythessAI::UpdateAI(), boss_archaedas::boss_archaedasAI::UpdateAI(), boss_archimonde::boss_archimondeAI::UpdateAI(), boss_attumen::boss_attumenAI::UpdateAI(), boss_azuregos::boss_azuregosAI::UpdateAI(), boss_bigbadwolf::boss_bigbadwolfAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), boss_fathomguard_caribdis::boss_fathomguard_caribdisAI::UpdateAI(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::UpdateAI(), boss_fathomguard_tidalvess::boss_fathomguard_tidalvessAI::UpdateAI(), boss_fathomlord_karathress::boss_fathomlord_karathressAI::UpdateAI(), boss_grand_astromancer_capernian::boss_grand_astromancer_capernianAI::UpdateAI(), boss_harbinger_skyriss::boss_harbinger_skyrissAI::UpdateAI(), boss_high_botanist_freywinn::boss_high_botanist_freywinnAI::UpdateAI(), boss_high_inquisitor_whitemane::boss_high_inquisitor_whitemaneAI::UpdateAI(), boss_hunter_toc5::boss_hunter_toc5AI::UpdateAI(), boss_kaelthas::boss_kaelthasAI::UpdateAI(), boss_krosh_firehand::boss_krosh_firehandAI::UpdateAI(), boss_lady_vashj::boss_lady_vashjAI::UpdateAI(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_midnight::boss_midnightAI::UpdateAI(), boss_mother_shahraz::boss_shahrazAI::UpdateAI(), boss_priestess_delrissa::boss_priestess_delrissaAI::UpdateAI(), boss_sacrolash::boss_sacrolashAI::UpdateAI(), boss_sartharion::boss_sartharionAI::UpdateAI(), boss_sathrovarr::boss_sathrovarrAI::UpdateAI(), boss_scarlet_commander_mograine::boss_scarlet_commander_mograineAI::UpdateAI(), boss_selin_fireheart::boss_selin_fireheartAI::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_teron_gorefiend::boss_teron_gorefiendAI::UpdateAI(), boss_the_black_stalker::boss_the_black_stalkerAI::UpdateAI(), boss_vaelastrasz::boss_vaelAI::UpdateAI(), boss_void_reaver::boss_void_reaverAI::UpdateAI(), boss_warlord_salaris::boss_warlord_salarisAI::UpdateAI(), boss_yauj::boss_yaujAI::UpdateAI(), boss_yazzai::boss_yazzaiAI::UpdateAI(), boss_zelfan::boss_zelfanAI::UpdateAI(), guard_shattrath_aldor::guard_shattrath_aldorAI::UpdateAI(), guard_shattrath_scryer::guard_shattrath_scryerAI::UpdateAI(), hyjalAI::UpdateAI(), npc_ancient_wisp::npc_ancient_wispAI::UpdateAI(), npc_blackhole::npc_blackholeAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI(), npc_doomfire_targetting::npc_doomfire_targettingAI::UpdateAI(), npc_elemental_lord::npc_elemental_lordAI::UpdateAI(), npc_garments_of_quests::npc_garments_of_questsAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), npc_greyheart_spellbinder::npc_greyheart_spellbinderAI::UpdateAI(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::UpdateAI(), npc_head::npc_headAI::UpdateAI(), npc_image_of_medivh::npc_image_of_medivhAI::UpdateAI(), npc_inner_demon::npc_inner_demonAI::UpdateAI(), npc_manaforge_control_console::npc_manaforge_control_consoleAI::UpdateAI(), npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), npc_restless_soul::npc_restless_soulAI::UpdateAI(), npc_rocknot::npc_rocknotAI::UpdateAI(), npc_shadowmoon_channeler::npc_shadowmoon_channelerAI::UpdateAI(), npc_shield_generator_channel::npc_shield_generator_channelAI::UpdateAI(), npc_shield_orb::npc_shield_orbAI::UpdateAI(), npc_solarium_priest::npc_solarium_priestAI::UpdateAI(), npc_spring_rabbit::npc_spring_rabbitAI::UpdateAI(), npc_steamrigger_mechanic::npc_steamrigger_mechanicAI::UpdateAI(), npc_stinkbeard::npc_stinkbeardAI::UpdateAI(), npc_toxic_sporebat::npc_toxic_sporebatAI::UpdateAI(), npc_warp_splinter_treant::npc_warp_splinter_treantAI::UpdateAI(), npc_yggdras::npc_yggdrasAI::UpdateAI(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), boss_faction_championsAI::UpdateThreat(), boss_anetheron::boss_anetheronAI::WaypointReached(), boss_azgalor::boss_azgalorAI::WaypointReached(), boss_kazrogal::boss_kazrogalAI::WaypointReached(), boss_rage_winterchill::boss_rage_winterchillAI::WaypointReached(), npc_abomination::npc_abominationAI::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(), npc_ghoul::npc_ghoulAI::WaypointReached(), npc_giant_infernal::npc_giant_infernalAI::WaypointReached(), and npc_necromancer::npc_necromancerAI::WaypointReached().

◆ GetUnitBlockChance()

◆ GetUnitCriticalChance()

◆ GetUnitDodgeChance()

◆ GetUnitMeleeSkill()

uint32 Unit::GetUnitMeleeSkill ( Unit const * target = NULL) const

Definition at line 1058 of file Unit.cpp.

References getLevel(), getLevelForTarget(), and Unit().

◆ GetUnitMissChance()

float Unit::GetUnitMissChance ( WeaponAttackType attType) const

◆ GetUnitMovementFlags()

uint32 Unit::GetUnitMovementFlags ( ) const
inline

◆ GetUnitParryChance()

◆ GetVehicle()

◆ GetVehicleBase()

◆ GetVehicleCreatureBase()

◆ GetVehicleKit()

Vehicle * Unit::GetVehicleKit ( ) const
inline

Definition at line 2739 of file Unit.h.

References m_vehicleKit.

Referenced by _EnterVehicle(), Creature::AddToWorld(), Creature::AIM_Initialize(), boss_deathbringer_saurfang::boss_deathbringer_saurfangAI::boss_deathbringer_saurfangAI(), Object::BuildMovementUpdate(), Player::CanSeeSpellClickOn(), Aura::CanStackWith(), Map::CreatureRelocation(), Dismount(), AuraEffect::HandleAuraControlVehicle(), AuraEffect::HandleAuraSetVehicle(), spell_q13280_13283_plant_battle_standard::spell_q13280_13283_plant_battle_standard_SpellScript::HandleDummy(), spell_the_lich_king_eject_all_passengers::spell_the_lich_king_eject_all_passengers_SpellScript::HandleDummy(), WorldSession::HandlePetCastSpellOpcode(), spell_auto_repair::spell_auto_repair_SpellScript::HandleScript(), spell_pursue::spell_pursue_SpellScript::HandleScript(), spell_q12919_gymers_throw::spell_q12919_gymers_throw_SpellScript::HandleScript(), HandleSpellClick(), IsOnVehicle(), Mount(), Map::MoveAllCreaturesInMoveList(), npc_bone_spike::npc_bone_spikeAI::npc_bone_spikeAI(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::npc_high_overlord_saurfangAI(), npc_orb_carrier::npc_orb_carrierAI::npc_orb_carrierAI(), spell_blood_queen_frenzied_bloodthirst::spell_blood_queen_frenzied_bloodthirst_AuraScript::OnRemove(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), FlameLeviathanPursuedTargetSelector::operator()(), OutDebugInfo(), Map::PlayerRelocation(), SmartScript::ProcessAction(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), spell_malygos_surge_of_power_warning_selector_25::spell_malygos_surge_of_power_warning_selector_25_SpellScript::SendThreeTargets(), Creature::SetPosition(), Creature::Update(), npc_snobold_vassal::npc_snobold_vassalAI::UpdateAI(), Player::UpdateForQuestWorldObjects(), UpdateHeight(), and UpdateOrientation().

◆ GetVictim()

Unit * Unit::GetVictim ( ) const
inline

Definition at line 1468 of file Unit.h.

References m_attacking, and Unit().

Referenced by FollowerAI::AssistPlayerInCombat(), npc_escortAI::AssistPlayerInCombat(), SmartAI::AssistPlayerInCombat(), Object::BuildMovementUpdate(), Creature::CallAssistance(), Creature::CallForHelp(), ConfusedMovementGenerator< T >::DoFinalize(), FleeingMovementGenerator< Creature >::DoFinalize(), Creature::DoFleeToGetAssistance(), CreatureAI::DoZoneInCombat(), boss_alythess::boss_alythessAI::EnterCombat(), boss_emalon::boss_emalonAI::EnterCombat(), boss_romulo::boss_romuloAI::EnterCombat(), boss_sacrolash::boss_sacrolashAI::EnterCombat(), boss_sartharion::boss_sartharionAI::FetchDragons(), EffectMovementGenerator::Finalize(), TimedFleeingMovementGenerator::Finalize(), getAttackerForHelper(), LuaUnit::GetVictim(), cast_commandscript::HandleCastTargetCommad(), HandleDummyAuraProc(), AuraEffect::HandleModPossessPet(), WorldSession::HandlePetActionHelper(), spell_nexus_lord_align_disk_aggro::spell_nexus_lord_align_disk_aggro_SpellScript::HandleScript(), RotateMovementGenerator::Initialize(), npc_fel_crystal::npc_fel_crystalAI::JustDied(), CreatureGroup::LeaderMoveTo(), CreatureGroup::MemberAttackStart(), npc_air_force_bots::npc_air_force_botsAI::MoveInLineOfSight(), Creature::ReleaseFocus(), ResolveAmpuleTarget(), Resurrect(), SelectNearbyTarget(), Creature::SelectVictim(), Player::SendInitialVisiblePackets(), SetConfused(), SetFeared(), SetStunned(), StopAttackFaction(), SummonCroneIfReady(), TauntApply(), TauntFadeOut(), Creature::Update(), Player::Update(), boss_alythess::boss_alythessAI::UpdateAI(), boss_moroes::boss_moroesAI::UpdateAI(), boss_vazruden_the_herald::boss_vazruden_the_heraldAI::UpdateAI(), npc_stalagg::npc_stalaggAI::UpdateAI(), Player::UpdateCharmedAI(), and InstanceScript::UpdateMinionState().

◆ getVirtualRealm()

◆ GetVisibleAura()

AuraApplication * Unit::GetVisibleAura ( uint8 slot) const

Definition at line 492 of file Unit.cpp.

References m_visibleAuras.

◆ GetVisibleAuras()

VisibleAuraMap const * Unit::GetVisibleAuras ( )
inline

Definition at line 2471 of file Unit.h.

References m_visibleAuras.

Referenced by AuraApplication::AuraApplication(), and Player::SendAurasForTarget().

◆ GetWeaponDamageRange()

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

◆ GetWeaponProcChance()

float Unit::GetWeaponProcChance ( ) const

◆ HandleAuraProc()

bool Unit::HandleAuraProc ( Unit * victim,
uint32 damage,
Aura * triggeredByAura,
SpellInfo const * procSpell,
uint32 procFlag,
uint32 procEx,
uint32 cooldown,
bool * handled )
private
Todo
move those to spell scripts

Possible hack alert Don't drop charges on proc, they will be dropped on SpellMod removal Before this change, it was dropping two charges per attack, one in ProcDamageAndSpellFor, and one in RemoveSpellMods. The reason of this behaviour is Recklessness having three auras, 2 of them can not proc (isTriggeredAura array) but the other one can, making the whole spell proc.

Definition at line 1471 of file UnitProc.cpp.

References Player::AddSpellCooldown(), CalculatePct(), SpellEffectInfo::CalcValue(), CastCustomSpell(), CastSpell(), CLASS_DEATH_KNIGHT, SpellEffectInfo::Effect, EFFECT_0, EFFECT_1, SpellInfo::Effects, Aura::GetCaster(), Aura::GetCasterGUID(), Aura::GetEffect(), Object::GetGUID(), Player::GetLastUsedRune(), WorldObject::GetMap(), GetMaxHealth(), Map::GetSpawnMode(), Aura::GetSpellInfo(), Aura::GetStackAmount(), Object::GetTypeId(), SpellInfo::Id, MAX_RUNES, MAX_SPELL_EFFECTS, RemoveAuraFromStack(), AuraEffect::ResetPeriodic(), RUNE_BLOOD, RUNE_DEATH, SPELL_EFFECT_ENERGIZE, SPELLFAMILY_DEATHKNIGHT, SPELLFAMILY_GENERIC, SPELLFAMILY_PALADIN, SPELLFAMILY_WARRIOR, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, SPELLVALUE_BASE_POINT0, Object::ToPlayer(), TYPEID_PLAYER, and Unit().

Referenced by ProcDamageAndSpellFor().

◆ HandleAuraProcOnPowerAmount()

◆ HandleAuraRaidProcFromCharge()

◆ HandleAuraRaidProcFromChargeWithValue()

◆ HandleDummyAuraProc()

bool Unit::HandleDummyAuraProc ( Unit * victim,
uint32 damage,
AuraEffect * triggeredByAura,
SpellInfo const * procSpell,
uint32 procFlag,
uint32 procEx,
uint32 cooldown )
private
Todo
It should be moved to database, shouldn't it?

Definition at line 193 of file UnitProc.cpp.

References AddPct(), Player::AddSpellCooldown(), SpellEffectInfo::ApplyAuraTickCount, ApplyPct(), Player::ApplySpellMod(), BASE_ATTACK, CalculatePct(), CalculateSpellDamage(), SpellEffectInfo::CalcValue(), CastCustomSpell(), CastSpell(), CLASS_DEATH_KNIGHT, CLASS_DRUID, CLASS_HUNTER, CLASS_MAGE, CLASS_PALADIN, CLASS_PRIEST, CLASS_ROGUE, CLASS_SHAMAN, CLASS_WARLOCK, CLASS_WARRIOR, CountPctFromMaxHealth(), DealDamage(), InstanceScript::DoCastSpellOnPlayers(), EFFECT_0, SpellInfo::Effects, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, SpellInfo::EquippedItemClass, SpellInfo::GetAllEffectsMechanicMask(), AuraEffect::GetAmount(), Player::GetAttackBySlot(), GetAttackTime(), GetAura(), GetAuraEffect(), AuraEffect::GetBase(), AuraEffect::GetCaster(), Aura::GetCastItemGUID(), Aura::GetCharges(), getClass(), GetCreateMana(), WorldObject::GetDistance(), Aura::GetDuration(), Aura::GetEffect(), AuraEffect::GetEffIndex(), Item::GetEnchantmentId(), Object::GetEntry(), Player::GetGroup(), GetGuardianPet(), Object::GetGUID(), GetHealth(), AuraEffect::GetId(), WorldObject::GetInstanceScript(), Player::GetItemByGuid(), Aura::GetMaxDuration(), SpellInfo::GetMaxDuration(), Object::GetObjectGUID(), GetOwner(), getPowerType(), SpellInfo::GetRank(), GetRemainingPeriodicAmount(), Player::GetReputationRank(), SpellInfo::GetSchoolMask(), Player::GetSelectedUnit(), Player::GetSession(), Item::GetSlot(), Player::GetSpellCooldownDelay(), AuraEffect::GetSpellInfo(), SpellInfo::GetSpellSpecific(), Aura::GetStackAmount(), Object::GetTypeId(), GetVehicleBase(), GetVictim(), Player::GetWeaponForAttack(), Player::HasSpellCooldown(), haveOffhandWeapon(), SpellInfo::Id, IsAlive(), flag128::IsEqual(), Item::IsEquipped(), IsFriendlyTo(), LANG_UNIVERSAL, m_Controlled, MECHANIC_ROOT, MECHANIC_SNARE, ModifyHealth(), OFF_ATTACK, POWER_ENERGY, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, PROC_EX_CRITICAL_HIT, PROC_EX_NORMAL_HIT, PROC_FLAG_DONE_MAINHAND_ATTACK, PROC_FLAG_DONE_OFFHAND_ATTACK, PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_POS, RAND(), RemoveAuraFromStack(), RemoveAurasDueToSpell(), Player::RemoveSpellCooldown(), REP_EXALTED, roll_chance_f(), roll_chance_i(), Player::Say(), WorldSession::SendModifyCooldown(), SendSpellNonMeleeDamageLog(), AuraEffect::SetAmount(), Aura::SetDuration(), Aura::SetMaxDuration(), SF_LOG_ERROR, SPELL_AURA_PERIODIC_DAMAGE, SPELL_AURA_PERIODIC_HEAL, SPELL_AURA_PROC_TRIGGER_SPELL, SPELL_DIRECT_DAMAGE, SPELL_SCHOOL_MASK_FIRE, SPELL_SCHOOL_MASK_FROST, SPELL_SCHOOL_MASK_SHADOW, SPELL_SPECIFIC_JUDGEMENT, SpellBaseDamageBonusDone(), SpellBaseDamageBonusTaken(), SPELLFAMILY_DEATHKNIGHT, SPELLFAMILY_DRUID, SPELLFAMILY_GENERIC, SPELLFAMILY_MAGE, SPELLFAMILY_PALADIN, SPELLFAMILY_PRIEST, SPELLFAMILY_SHAMAN, SPELLFAMILY_WARLOCK, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, SpellItemEnchantmentEntry::spellid, SPELLMOD_CHANCE_OF_SUCCESS, SPELLVALUE_BASE_POINT0, SpellInfo::SpellVisual, sSpellItemEnchantmentStore, sSpellMgr, TEMP_ENCHANTMENT_SLOT, Object::ToPlayer(), SpellEffectInfo::TriggerSpell, TYPEID_PLAYER, TYPEID_UNIT, and Unit().

Referenced by ProcDamageAndSpellFor().

◆ HandleEmoteCommand()

◆ HandleOverrideClassScriptAuraProc()

◆ HandleProcExtraAttackFor()

void Unit::HandleProcExtraAttackFor ( Unit * victim)

Definition at line 1417 of file UnitCombat.cpp.

References AttackerStateUpdate(), BASE_ATTACK, m_extraAttacks, and Unit().

◆ HandleProcTriggerSpell()

bool Unit::HandleProcTriggerSpell ( Unit * victim,
uint32 damage,
AuraEffect * triggeredByAura,
SpellInfo const * procSpell,
uint32 procFlag,
uint32 procEx,
uint32 cooldown )
private

Definition at line 1663 of file UnitProc.cpp.

References Player::AddSpellCooldown(), SpellEffectInfo::ApplyAuraTickCount, AURA_REMOVE_BY_ENEMY_SPELL, BASE_ATTACK, CalculatePct(), SpellEffectInfo::CalcValue(), CastCustomSpell(), CastSpell(), CLASS_DEATH_KNIGHT, CLASS_DRUID, CLASS_PALADIN, CLASS_PRIEST, CLASS_SHAMAN, SpellInfo::Effects, FORM_BEAR, FORM_CAT, FORM_MOONKIN, FORM_NONE, FORM_TREE, AuraEffect::GetAmount(), GetAura(), GetAuraEffect(), AuraEffect::GetAuraType(), AuraEffect::GetBase(), Aura::GetCastItemGUID(), getClass(), GetCreateHealth(), AuraEffect::GetEffIndex(), Object::GetEntry(), Object::GetGUID(), GetHealth(), Player::GetItemByGuid(), SpellInfo::GetMaxDuration(), GetMaxHealth(), SpellInfo::GetRank(), GetRemainingPeriodicAmount(), GetShapeshiftForm(), AuraEffect::GetSpellInfo(), Aura::GetStackAmount(), GetStat(), GetTotalAttackPowerValue(), Object::GetTypeId(), HasAura(), SpellInfo::HasEffect(), HealthAbovePct(), HealthBelowPct(), HealthBelowPctDamaged(), SpellInfo::Id, IsAlive(), IsFullHealth(), SpellInfo::IsPositive(), m_extraAttacks, MAX_RUNES, Aura::ModStackAmount(), PROC_EX_CRITICAL_HIT, PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_POS, PROC_FLAG_DONE_SPELL_NONE_DMG_CLASS_POS, RemoveAura(), RemoveAurasDueToSpell(), roll_chance_i(), SF_LOG_ERROR, SPELL_AURA_PERIODIC_DAMAGE, SPELL_AURA_PROC_TRIGGER_SPELL_WITH_VALUE, SPELL_EFFECT_ADD_EXTRA_ATTACKS, SPELLFAMILY_DEATHKNIGHT, SPELLFAMILY_DRUID, SPELLFAMILY_GENERIC, SPELLFAMILY_HUNTER, SPELLFAMILY_MAGE, SPELLFAMILY_PALADIN, SPELLFAMILY_ROGUE, SPELLFAMILY_WARRIOR, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, sSpellMgr, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STRENGTH, Object::ToPlayer(), SpellEffectInfo::TriggerSpell, TYPEID_PLAYER, and Unit().

Referenced by ProcDamageAndSpellFor().

◆ HandleSpellClick()

◆ HandleStatModifier()

bool Unit::HandleStatModifier ( UnitMods unitMod,
UnitModifierType modifierType,
float amount,
bool apply )

Definition at line 4955 of file Unit.cpp.

References ApplyPercentModFloatVar(), BASE_ATTACK, BASE_PCT, BASE_VALUE, CanModifyStats(), GetPowerTypeByAuraGroup(), GetSpellSchoolByAuraGroup(), GetStatByAuraGroup(), m_auraModifiersGroup, MODIFIER_TYPE_END, OFF_ATTACK, RANGED_ATTACK, SF_LOG_ERROR, TOTAL_PCT, TOTAL_VALUE, UNIT_MOD_ARCANE_CHARGES, UNIT_MOD_ARMOR, UNIT_MOD_ATTACK_POWER, UNIT_MOD_ATTACK_POWER_RANGED, UNIT_MOD_BURNING_EMBERS, UNIT_MOD_CHI, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, UNIT_MOD_DAMAGE_RANGED, UNIT_MOD_DEMONIC_FURY, UNIT_MOD_ECLIPSE, UNIT_MOD_END, UNIT_MOD_ENERGY, UNIT_MOD_FOCUS, UNIT_MOD_HEALTH, UNIT_MOD_HOLY_POWER, UNIT_MOD_MANA, UNIT_MOD_RAGE, UNIT_MOD_RESISTANCE_ARCANE, UNIT_MOD_RESISTANCE_FIRE, UNIT_MOD_RESISTANCE_FROST, UNIT_MOD_RESISTANCE_HOLY, UNIT_MOD_RESISTANCE_NATURE, UNIT_MOD_RESISTANCE_SHADOW, UNIT_MOD_RUNE, UNIT_MOD_RUNIC_POWER, UNIT_MOD_SHADOW_ORBS, UNIT_MOD_SOUL_SHARDS, UNIT_MOD_STAT_AGILITY, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_STAT_STAMINA, UNIT_MOD_STAT_STRENGTH, UpdateArmor(), UpdateAttackPowerAndDamage(), UpdateDamagePhysical(), UpdateMaxHealth(), UpdateMaxPower(), UpdateResistances(), and UpdateStats().

Referenced by Player::_ApplyItemBonuses(), Player::_ApplyWeaponDependentAuraDamageMod(), Player::ApplyEnchantment(), Player::ApplyReforgeEnchantment(), AuraEffect::HandleAuraIncreaseBaseHealthPercent(), AuraEffect::HandleAuraModAttackPower(), AuraEffect::HandleAuraModAttackPowerPercent(), AuraEffect::HandleAuraModBaseResistancePCT(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), AuraEffect::HandleAuraModIncreaseHealth(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModIncreaseMaxHealth(), AuraEffect::HandleAuraModIncreaseMaxPowerFlat(), AuraEffect::HandleAuraModRangedAttackPower(), AuraEffect::HandleAuraModRangedAttackPowerPercent(), AuraEffect::HandleAuraModResistance(), AuraEffect::HandleAuraModResistanceExclusive(), AuraEffect::HandleAuraModStat(), AuraEffect::HandleModBaseResistance(), AuraEffect::HandleModDamageDone(), AuraEffect::HandleModDamagePercentDone(), AuraEffect::HandleModOffhandDamagePercent(), AuraEffect::HandleModPercentStat(), AuraEffect::HandleModResistancePercent(), and AuraEffect::HandleModTotalPercentStat().

◆ HasAura()

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

Definition at line 1182 of file UnitAuraState.cpp.

References GetAuraApplication().

Referenced by Player::_StoreItem(), AchievementMgr< T >::AdditionalRequirementsSatisfied(), spell_marrowgar_coldflame_damage::spell_marrowgar_coldflame_damage_AuraScript::CanBeAppliedOn(), Player::CanJoinToBattleground(), Player::CanUseBattlegroundObject(), boss_sapphiron::boss_sapphironAI::CastExplosion(), spell_pal_templar_s_verdict::spell_pal_templar_s_verdict_SpellScript::ChangeDamage(), spell_pal_aura_mastery_immune::spell_pal_aura_mastery_immune_AuraScript::CheckAreaTarget(), Spell::CheckCast(), SpellInfo::CheckTarget(), Spell::EffectHeal(), Spell::EffectResurrectWithAura(), BattlegroundVOP::EventPlayerClickedOnFlag(), boss_hodir::boss_hodirAI::FlashFreeze(), GetDispellableAuraList(), GetModelForForm(), GetMountCapability(), instance_sunwell_plateau::instance_sunwell_plateau_InstanceMapScript::GetPlayerInMap(), go_wind_stone::GetPlayerRank(), LuaPlayer::GiveXP(), Player::GiveXP(), spell_monk_roll::spell_monk_roll_SpellScript::HandleAfterCast(), BattlegroundDS::HandleAreaTrigger(), OutdoorPvPSI::HandleAreaTrigger(), AuraEffect::HandleAuraMounted(), HandleAuraProcOnPowerAmount(), Aura::HandleAuraSpecificMods(), spell_capacitus_polarity_charge::spell_capacitus_polarity_charge_SpellScript::HandleDamage(), spell_thaddius_pos_neg_charge::spell_thaddius_pos_neg_charge_SpellScript::HandleDamage(), spell_impale::spell_impale_SpellScript::HandleDamageCalc(), spell_q12851_going_bearback::spell_q12851_going_bearback_AuraScript::HandleEffectApply(), spell_rog_stealth::spell_rog_stealth_AuraScript::HandleEffectRemove(), spell_dru_eclipse_energize::spell_dru_eclipse_energize_SpellScript::HandleEnergize(), spell_putricide_gaseous_bloat::spell_putricide_gaseous_bloat_AuraScript::HandleExtraEffect(), Player::HandleFall(), gm_commandscript::HandleGMVisibleCommand(), spell_sindragosa_frost_breath::spell_sindragosa_frost_breath_SpellScript::HandleInfusion(), lookup_commandscript::HandleLookupSpellCommand(), lookup_commandscript::HandleLookupSpellIdCommand(), WorldSession::HandleMessagechatOpcode(), OPvPCapturePointZM_GraveYard::HandleOpenGo(), HandleProcTriggerSpell(), spell_freya_attuned_to_nature_dose_reduction::spell_freya_attuned_to_nature_dose_reduction_SpellScript::HandleScript(), spell_hallow_end_tricky_treat::spell_hallow_end_tricky_treat_SpellScript::HandleScript(), spell_hun_pet_heart_of_the_phoenix::spell_hun_pet_heart_of_the_phoenix_SpellScript::HandleScript(), spell_dru_glyph_of_starfire::spell_dru_glyph_of_starfire_SpellScript::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), boss_alythess::boss_alythessAI::HandleTouchedSpells(), boss_sacrolash::boss_sacrolashAI::HandleTouchedSpells(), LuaPlayer::HasAura(), Guardian::InitStatsForLevel(), SpellArea::IsFitToRequirements(), IsVampire(), lfg::LFGMgr::JoinLfg(), npc_acolyte_of_shadron::npc_acolyte_of_shadronAI::JustDied(), npc_acolyte_of_vesperon::npc_acolyte_of_vesperonAI::JustDied(), npc_inner_demon::npc_inner_demonAI::JustDied(), boss_illidan_stormrage::boss_illidan_stormrageAI::JustSummoned(), Creature::LoadCreaturesAddon(), boss_teron_gorefiend::boss_teron_gorefiendAI::MindControlGhost(), ModSpellCastTime(), ModSpellDuration(), npc_mageguard_dalaran::npc_mageguard_dalaranAI::MoveInLineOfSight(), boss_magtheridon::boss_magtheridonAI::NeedCheckCubeStatus(), go_gauntlet_gate::OnGossipHello(), spell_love_is_in_the_air_romantic_picnic::spell_love_is_in_the_air_romantic_picnic_AuraScript::OnPeriodic(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), spell_fetch_ingredient_aura::spell_fetch_ingredient_aura_AuraScript::OnRemove(), at_bring_your_orphan_to::OnTrigger(), BoneSpikeTargetSelector::operator()(), DeathPlagueTargetSelector::operator()(), DefaultTargetSelector::operator()(), FrostBeaconSelector::operator()(), NecroticPlagueTargetCheck::operator()(), Skyfire::FriendlyMissingBuffInRange::operator()(), Skyfire::UnitAuraCheck::operator()(), ProcDamageAndSpellFor(), spell_mage_pyroblast::spell_mage_pyroblast_SpellScript::RecalculateDamage(), npc_halion_controller::npc_halion_controllerAI::RemoveCorporeality(), boss_najentus::boss_najentusAI::RemoveImpalingSpine(), Player::ReportedAfkBy(), Player::RewardHonor(), RewardRage(), Player::SetQuestStatus(), SpellDamageBonusDone(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), instance_violet_hold::instance_violet_hold_InstanceMapScript::Update(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI(), boss_kalecgos::boss_kalecgosAI::UpdateAI(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), boss_lady_vashj::boss_lady_vashjAI::UpdateAI(), boss_sathrovarr::boss_sathrovarrAI::UpdateAI(), npc_chaotic_rift::npc_chaotic_riftAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_eye_tentacle::eye_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), npc_giant_eye_tentacle::giant_eye_tentacleAI::UpdateAI(), npc_ice_tomb::npc_ice_tombAI::UpdateAI(), npc_scorch_ground::npc_scorch_groundAI::UpdateAI(), npc_shield_generator_channel::npc_shield_generator_channelAI::UpdateAI(), Player::UpdateAreaDependentAuras(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), Player::UpdateUnderwaterState(), UpdateUnderwaterState(), Player::UpdateZoneDependentAuras(), and instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::VortexHandling().

◆ HasAuraEffect()

◆ HasAuraState()

◆ HasAuraType()

bool Unit::HasAuraType ( AuraType auraType) const

Definition at line 1189 of file UnitAuraState.cpp.

References m_modAuras.

Referenced by AchievementMgr< T >::AdditionalRequirementsSatisfied(), Player::ApplySpellPowerBonus(), ApplyTotalThreatModifier(), Attack(), Player::CanTameExoticPets(), spell_q11010_q11102_q11023_q11008_check_fly_mount::spell_q11010_q11102_q11023_q11008_check_fly_mount_SpellScript::CheckRequirement(), SpellInfo::CheckTarget(), Creature::DoFleeToGetAssistance(), Battleground::EndBattleground(), Player::getMaxTimer(), AuraEffect::HandleArenaPreparation(), AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraAllowOnlyAbility(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraEmpathy(), AuraEffect::HandleAuraFeatherFall(), AuraEffect::HandleAuraGhost(), AuraEffect::HandleAuraHover(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleAuraModFakeInebriation(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), AuraEffect::HandleAuraModPacify(), AuraEffect::HandleAuraModPacifyAndSilence(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraModSilence(), AuraEffect::HandleAuraModStalked(), AuraEffect::HandleAuraTrackStealthed(), AuraEffect::HandleAuraUntrackable(), AuraEffect::HandleAuraWaterWalk(), AuraEffect::HandleComprehendLanguage(), spell_item_brewfest_mount_transformation::spell_item_brewfest_mount_transformation_SpellScript::HandleDummy(), spell_item_reindeer_transformation::spell_item_reindeer_transformation_SpellScript::HandleDummy(), spell_rog_master_of_subtlety::spell_rog_master_of_subtlety_AuraScript::HandleEffectPeriodic(), Player::HandleFall(), AuraEffect::HandleForceMoveForward(), WorldSession::HandleMirrorImageDataRequest(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleModInvisibilityDetect(), AuraEffect::HandleModStealth(), AuraEffect::HandleModStealthDetect(), AuraEffect::HandleModUnattackable(), AuraEffect::HandlePreventFleeing(), reset_commandscript::HandleResetStatsOrLevelHelper(), spell_gen_two_forms::spell_gen_two_forms_SpellScript::HandleTransform(), HasAuraTypeWithFamilyFlags(), HasInvisibilityAura(), HasStealthAura(), isFeared(), SpellArea::IsFitToRequirements(), isInRoots(), Player::IsPetNeedBeTemporaryUnsummoned(), isSpellBlocked(), Player::KillPlayer(), MagicSpellHitResult(), MeleeSpellHitResult(), Mount(), Skyfire::AnyDeadUnitObjectInRangeCheck::operator()(), Player::ReadMovementInfo(), Player::Regenerate(), Player::RegenerateAll(), Player::RegenerateHealth(), Battleground::RemovePlayerAtLeave(), Player::RewardHonor(), RollMeleeOutcomeAgainst(), Player::SendAurasForTarget(), Player::SendInitialPacketsAfterAddToMap(), SetControlled(), Player::SetDrunkValue(), Player::Update(), Player::UpdateAttackPowerAndDamage(), Player::UpdateSpellDamageAndHealingBonus(), Player::UpdateTriggerVisibility(), and Player::UpdateZone().

◆ HasAuraTypeWithAffectMask()

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

Definition at line 1212 of file UnitAuraState.cpp.

References GetAuraEffectsByType().

Referenced by _UpdateAutoRepeatSpell(), and RemoveAurasWithInterruptFlags().

◆ HasAuraTypeWithCaster()

bool Unit::HasAuraTypeWithCaster ( AuraType auratype,
uint64 caster ) const

Definition at line 1194 of file UnitAuraState.cpp.

References GetAuraEffectsByType().

Referenced by BuildValuesUpdate(), and IsAlwaysDetectableFor().

◆ HasAuraTypeWithFamilyFlags()

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

Definition at line 567 of file Unit.cpp.

References GetAuraEffectsByType(), and HasAuraType().

◆ HasAuraTypeWithMiscvalue()

bool Unit::HasAuraTypeWithMiscvalue ( AuraType auratype,
int32 miscvalue ) const

Definition at line 1203 of file UnitAuraState.cpp.

References GetAuraEffectsByType().

Referenced by WorldObject::CanDetectStealthOf().

◆ HasAuraTypeWithValue()

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

Definition at line 1221 of file UnitAuraState.cpp.

References GetAuraEffectsByType().

Referenced by Player::Regenerate().

◆ HasAuraWithMechanic()

bool Unit::HasAuraWithMechanic ( uint32 mechanicMask) const

◆ HasBreakableByDamageAuraType()

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

◆ HasBreakableByDamageCrowdControlAura()

bool Unit::HasBreakableByDamageCrowdControlAura ( Unit * excludeCasterChannel = NULL) const

◆ HasExtraUnitMovementFlag()

uint16 Unit::HasExtraUnitMovementFlag ( uint16 f) const
inline

◆ HasInvisibilityAura()

bool Unit::HasInvisibilityAura ( ) const
inline

◆ HasNegativeAuraWithAttribute()

bool Unit::HasNegativeAuraWithAttribute ( uint32 flag,
uint64 guid = 0 ) const

◆ HasNegativeAuraWithInterruptFlag()

bool Unit::HasNegativeAuraWithInterruptFlag ( uint32 flag,
uint64 guid = 0 ) const

Definition at line 1230 of file UnitAuraState.cpp.

References m_interruptableAuras, and m_interruptMask.

Referenced by ThreatContainer::selectNextVictim().

◆ HasSharedVision()

bool Unit::HasSharedVision ( ) const
inline

◆ HasSpell()

virtual bool Unit::HasSpell ( uint32 ) const
inlinevirtual

◆ HasStealthAura()

bool Unit::HasStealthAura ( ) const
inline

Definition at line 1917 of file Unit.h.

References HasAuraType(), and SPELL_AURA_MOD_STEALTH.

Referenced by Player::CanCaptureTowerPoint(), and Player::IsOutdoorPvPActive().

◆ HasUnitMovementFlag()

◆ HasUnitState()

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

Definition at line 1485 of file Unit.h.

References m_state.

Referenced by Creature::_IsTargetAcceptable(), _IsValidAssistTarget(), _IsValidAttackTarget(), HomeMovementGenerator< Creature >::_setTargetLocation(), Player::ActivateTaxiPathTo(), Attack(), AttackerStateUpdate(), Player::BuildPlayerRepop(), Player::CanEquipItem(), CanFreeMove(), SpellInfo::CheckTarget(), CreatureUnitRelocationWorker(), DealDamageMods(), DealMeleeDamage(), DealSpellDamage(), Spell::DoSpellHitOnUnit(), RandomMovementGenerator< T >::DoUpdate(), WaypointMovementGenerator< Creature >::DoUpdate(), EffectMovementGenerator::Finalize(), GetUnitBlockChance(), GetUnitDodgeChance(), GetUnitParryChance(), spell_dru_starfall_dummy::spell_dru_starfall_dummy_SpellScript::HandleDummy(), spell_mistress_kiss::spell_mistress_kiss_AuraScript::HandleDummyTick(), WorldSession::HandleInitiateTradeOpcode(), AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), WorldSession::HandlePlayerLogin(), LuaUnit::HasUnitState(), isAttackingPlayer(), Creature::IsInEvadeMode(), IsInFlight(), isPossessed(), isPossessedByPlayer(), IsStopped(), isTargetableForAttack(), Skyfire::FriendlyCCedInRange::operator()(), RemoveCharmedBy(), Player::ResurrectPlayer(), Player::SendInitialVisiblePackets(), WorldSession::SendListInventory(), SetContestedPvP(), SetControlled(), SetInCombatState(), SetInFront(), SetStunned(), lfg::LFGMgr::TeleportPlayer(), Player::Update(), TimedFleeingMovementGenerator::Update(), and UpdateSplinePosition().

◆ HasUnitTypeMask()

◆ HasVisionObscured()

bool Unit::HasVisionObscured ( Unit const * target) const

◆ haveOffhandWeapon()

◆ HealBySpell()

◆ HealthAbovePct()

◆ HealthAbovePctHealed()

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

Definition at line 1625 of file Unit.h.

References CountPctFromMaxHealth(), and GetHealth().

◆ HealthBelowPct()

◆ HealthBelowPctDamaged()

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

◆ IncrDiminishing()

void Unit::IncrDiminishing ( DiminishingGroup group)

◆ InitCharmInfo()

CharmInfo * Unit::InitCharmInfo ( )

Definition at line 5518 of file Unit.cpp.

References m_charmInfo.

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

◆ InitStatBuffMods()

void Unit::InitStatBuffMods ( )

◆ InitTamedPet()

◆ InterruptNonMeleeSpells()

◆ InterruptSpell()

◆ IsAlive()

bool Unit::IsAlive ( ) const
inline

Definition at line 2032 of file Unit.h.

References ALIVE, and m_deathState.

Referenced by _CreateAuraApplication(), _EnterVehicle(), _IsValidAssistTarget(), _IsValidAttackTarget(), Player::_LoadItem(), KillRewarder::_RewardHonor(), KillRewarder::_RewardKillCredit(), KillRewarder::_RewardXP(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ActivateCrystal(), boss_archaedas::boss_archaedasAI::ActivateMinion(), instance_uldaman::instance_uldaman_InstanceMapScript::ActivateStoneKeepers(), instance_uldaman::instance_uldaman_InstanceMapScript::ActivateWallMinions(), AddAura(), AchievementMgr< T >::AdditionalRequirementsSatisfied(), boss_moroes::boss_moroesAI::AddsAttack(), HostileReference::addThreat(), Spell::AddUnitTarget(), Skyfire::PetTransport::AttachHunterPetToOwnerTransport(), Attack(), AttackerStateUpdate(), boss_malchezaar::boss_malchezaarAI::AxesCleanup(), WorldSession::BuildPartyMemberStatsChangedPacket(), Player::BuyCurrencyFromVendorSlot(), Player::BuyItemFromVendorSlot(), CalcAbsorbResist(), CalculateMeleeDamage(), CalculateSpellDamageTaken(), Creature::CanAssistTo(), PetAI::CanAttack(), Player::CanCaptureTowerPoint(), CanHaveThreatList(), Player::CanInteractWithQuestGiver(), MapManager::CanPlayerEnter(), Player::CanUseBattlegroundObject(), boss_archimonde::boss_archimondeAI::CanUseFingerOfDeath(), Player::CanUseItem(), boss_gurtogg_bloodboil::boss_gurtogg_bloodboilAI::CastBloodboil(), npc_greyheart_spellbinder::npc_greyheart_spellbinderAI::CastChanneling(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::CastConsumingMadness(), boss_essence_of_suffering::boss_essence_of_sufferingAI::CastFixate(), Player::CastItemCombatSpell(), boss_kelidan_the_breaker::boss_kelidan_the_breakerAI::ChannelerDied(), Player::CheckAreaExploreAndOutdoor(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::CheckBanish(), Spell::CheckCast(), npc_shadowy_construct::npc_shadowy_constructAI::CheckPlayers(), spell_devourer_of_souls_mirrored_soul_proc::spell_devourer_of_souls_mirrored_soul_proc_AuraScript::CheckProc(), spell_item_necrotic_touch::spell_item_necrotic_touch_AuraScript::CheckProc(), spell_item_shadowmourne::spell_item_shadowmourne_AuraScript::CheckProc(), spell_putricide_mutation_init::spell_putricide_mutation_init_SpellScript::CheckRequirementInternal(), SpellInfo::CheckTarget(), instance_violet_hold::instance_violet_hold_InstanceMapScript::CheckWipe(), netherspite_infernal::netherspite_infernalAI::Cleanup(), CreatureUnitRelocationWorker(), boss_headless_horseman::boss_headless_horsemanAI::DamageTaken(), boss_taldaram::boss_taldaramAI::DamageTaken(), DealDamage(), DealDamageMods(), DealMeleeDamage(), DealSpellDamage(), boss_magtheridon::boss_magtheridonAI::DebuffClicker(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::DespawnDemon(), npc_brann_hos::npc_brann_hosAI::DespawnDwarf(), npc_head::npc_headAI::Disappear(), Creature::DisappearAndDie(), Spell::DoAllEffectOnTarget(), boss_four_horsemen::boss_four_horsemenAI::DoEncounteraction(), RandomMovementGenerator< T >::DoInitialize(), WorldSession::DoLootRelease(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::DoSpeech(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomcheck(), Spell::EffectFeedPet(), Spell::EffectSkinPlayerCorpse(), Spell::EffectSummonDeadPet(), Battleground::EndBattleground(), boss_malchezaar::boss_malchezaarAI::EnfeebleResetHealth(), boss_alythess::boss_alythessAI::EnterCombat(), boss_emalon::boss_emalonAI::EnterCombat(), boss_sacrolash::boss_sacrolashAI::EnterCombat(), Player::EnvironmentalDamage(), Player::EquipItem(), boss_sartharion::boss_sartharionAI::FetchDragons(), AssistanceMovementGenerator::Finalize(), EffectMovementGenerator::Finalize(), TimedFleeingMovementGenerator::Finalize(), boss_shade_of_aran::boss_aranAI::FlameWreathEffect(), boss_hodir::boss_hodirAI::FlashFreeze(), Creature::ForcedDespawn(), Battleground::GetAlivePlayersCountByTeam(), boss_erekem::boss_erekemAI::GetChainHealTargetGUID(), instance_ahnkahet::instance_ahnkahet_InstanceScript::GetData(), instance_ahnkahet::instance_ahnkahet_InstanceScript::GetData64(), FollowerAI::GetLeaderForFollower(), Player::getMaxTimer(), Player::GetNPCIfCanInteractWith(), GetPartyMembers(), npc_air_force_bots::npc_air_force_botsAI::GetSummonedGuard(), Pet::GivePetXP(), Player::GiveXP(), BattlegroundEY::HandleAreaTrigger(), WorldSession::HandleAreaTriggerOpcode(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModTotalThreat(), WorldSession::HandleAutostoreLootItemOpcode(), misc_commandscript::HandleDamageCommand(), misc_commandscript::HandleDieCommand(), Player::HandleDrowning(), HandleDummyAuraProc(), Player::HandleFall(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleLootMoneyOpcode(), AuraEffect::HandleModTaunt(), AuraEffect::HandleModTotalPercentStat(), WorldSession::HandleMovementOpcodes(), npc_commandscript::HandleNpcAddMoveCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetSpawnDistCommand(), AuraEffect::HandleObsModPowerAuraTick(), HandleOverrideClassScriptAuraProc(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), misc_commandscript::HandlePInfoCommand(), HandleProcTriggerSpell(), AuraEffect::HandleSpiritOfRedemption(), WorldSession::HandleStablePet(), WorldSession::HandleStableSwapPetCallback(), WorldSession::HandleUnstablePetCallback(), LuaUnit::IsAlive(), Player::IsAtGroupRewardDistance(), Player::IsAtRecruitAFriendDistance(), Creature::IsInvisibleDueToDespawn(), Player::IsOutdoorPvPActive(), Player::IsPetNeedBeTemporaryUnsummoned(), isTargetableForAttack(), Spell::IsValidDeadOrAliveTarget(), ThreatCalcHelper::isValidProcess(), boss_palehoof::boss_palehoofAI::JustDied(), boss_priestess_lackey_commonAI::JustDied(), boss_sartharion::boss_sartharionAI::JustDied(), npc_acolyte_of_shadron::npc_acolyte_of_shadronAI::JustDied(), npc_acolyte_of_vesperon::npc_acolyte_of_vesperonAI::JustDied(), npc_fel_crystal::npc_fel_crystalAI::JustDied(), npc_kilrek::npc_kilrekAI::JustDied(), npc_tito::npc_titoAI::JustDied(), Kill(), CreatureGroup::LeaderMoveTo(), Player::LoadCorpse(), Player::LoadFromDB(), MagicSpellHitResult(), CreatureGroup::MemberAttackStart(), boss_teron_gorefiend::boss_teron_gorefiendAI::MindControlGhost(), boss_selin_fireheart::boss_selin_fireheartAI::MovementInform(), boss_palehoof::boss_palehoofAI::NextPhase(), containment_sphere::OnGossipHello(), go_dragonflayer_cage::OnGossipHello(), go_jotunheim_cage::OnGossipHello(), go_manticron_cube::OnGossipHello(), go_palehoof_sphere::OnGossipHello(), prince_taldaram_sphere::OnGossipHello(), npc_announcer_toc10::OnGossipSelect(), spell_sha_nature_guardian::spell_sha_nature_guardian_AuraScript::OnProc(), SmartTrigger::OnTrigger(), AELootCreatureCheck::operator()(), FrostwingVrykulSearcher::operator()(), RisenArchmageCheck::operator()(), Skyfire::AllFriendlyCreaturesInGrid::operator()(), Skyfire::AnyDeadUnitCheck::operator()(), Skyfire::AnyDeadUnitObjectInRangeCheck::operator()(), Skyfire::AnyDeadUnitObjectInRangeCheck::operator()(), Skyfire::AnyFriendlyUnitInObjectRangeCheck::operator()(), Skyfire::AnyGroupedUnitInObjectRangeCheck::operator()(), Skyfire::AnyPlayerInObjectRangeCheck::operator()(), Skyfire::AnyUnfriendlyAttackableVisibleUnitInObjectRangeCheck::operator()(), Skyfire::AnyUnfriendlyNoTotemUnitInObjectRangeCheck::operator()(), Skyfire::AnyUnfriendlyUnitInObjectRangeCheck::operator()(), Skyfire::AnyUnitInObjectRangeCheck::operator()(), Skyfire::FriendlyCCedInRange::operator()(), Skyfire::FriendlyMissingBuffInRange::operator()(), Skyfire::MostHPMissingInRange::operator()(), Skyfire::NearestCreatureEntryWithLiveStateInObjectRangeCheck::operator()(), Skyfire::NearestPlayerInObjectRangeCheck::operator()(), Skyfire::PlayerAtMinimumRangeAway::operator()(), TrashRespawnWorker::operator()(), ProcDamageAndSpell(), instance_ulduar::instance_ulduar_InstanceMapScript::ProcessEvent(), boss_warchief_kargath_bladefist::boss_warchief_kargath_bladefistAI::removeAdds(), Group::RemoveMember(), Battleground::RemovePlayerAtLeave(), Player::RepopAtGraveyard(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::Reset(), boss_fathomlord_karathress::boss_fathomlord_karathressAI::Reset(), boss_palehoof::boss_palehoofAI::Reset(), boss_sartharion::boss_sartharionAI::Reset(), npc_ferocious_rhino::npc_ferocious_rhinoAI::Reset(), npc_frenzied_worgen::npc_frenzied_worgenAI::Reset(), npc_greyheart_spellbinder::npc_greyheart_spellbinderAI::Reset(), npc_illidari_council::npc_illidari_councilAI::Reset(), npc_massive_jormungar::npc_massive_jormungarAI::Reset(), npc_ravenous_furbolg::npc_ravenous_furbolgAI::Reset(), ResetCryForTheMoonActor(), instance_blood_furnace::instance_blood_furnace_InstanceMapScript::ResetPrisoner(), Creature::Respawn(), Player::RewardPlayerAndGroupAtEvent(), boss_moroes_guestAI::SelectGuestTarget(), boss_selin_fireheart::boss_selin_fireheartAI::SelectNearestCrystal(), Creature::SelectVictim(), Player::SendInitialVisiblePackets(), Player::SendLoot(), WorldSession::SendStablePetCallback(), SetConfused(), instance_magtheridons_lair::instance_magtheridons_lair_InstanceMapScript::SetData(), instance_scarlet_monastery::instance_scarlet_monastery_InstanceMapScript::SetData(), Player::setDeathState(), SetFeared(), SetInCombatState(), SetStunned(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::SetThreatList(), boss_teron_gorefiend::boss_teron_gorefiendAI::SetThreatList(), boss_selin_fireheart::boss_selin_fireheartAI::ShatterRemainingCrystals(), Battlefield::ShowNpc(), boss_headless_horseman::boss_headless_horsemanAI::SpellHit(), boss_volazj::boss_volazjAI::SpellHitTarget(), npc_illidari_council::npc_illidari_councilAI::StartEvent(), Player::SwapItem(), lfg::LFGMgr::TeleportPlayer(), boss_mother_shahraz::boss_shahrazAI::TeleportPlayers(), Creature::Update(), instance_magtheridons_lair::instance_magtheridons_lair_InstanceMapScript::Update(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::Update(), Pet::Update(), Player::Update(), Puppet::Update(), TempSummon::Update(), TimedFleeingMovementGenerator::Update(), Totem::Update(), Update(), boss_emalon::boss_emalonAI::UpdateAI(), boss_erekem::boss_erekemAI::UpdateAI(), boss_fathomguard_caribdis::boss_fathomguard_caribdisAI::UpdateAI(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::UpdateAI(), boss_fathomlord_karathress::boss_fathomlord_karathressAI::UpdateAI(), boss_headless_horseman::boss_headless_horsemanAI::UpdateAI(), boss_julianne::boss_julianneAI::UpdateAI(), boss_lich_king_toc::boss_lich_king_tocAI::UpdateAI(), boss_moroes::boss_moroesAI::UpdateAI(), boss_mother_shahraz::boss_shahrazAI::UpdateAI(), boss_nazan::boss_nazanAI::UpdateAI(), boss_palehoof::boss_palehoofAI::UpdateAI(), boss_patchwerk::boss_patchwerkAI::UpdateAI(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::UpdateAI(), boss_sartharion::boss_sartharionAI::UpdateAI(), boss_sathrovarr::boss_sathrovarrAI::UpdateAI(), boss_selin_fireheart::boss_selin_fireheartAI::UpdateAI(), boss_shirrak_the_dead_watcher::boss_shirrak_the_dead_watcherAI::UpdateAI(), boss_taldaram::boss_taldaramAI::UpdateAI(), boss_terestian_illhoof::boss_terestianAI::UpdateAI(), boss_vazruden_the_herald::boss_vazruden_the_heraldAI::UpdateAI(), boss_void_reaver::boss_void_reaverAI::UpdateAI(), hyjalAI::UpdateAI(), npc_doom_blossom::npc_doom_blossomAI::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), npc_grimstone::npc_grimstoneAI::UpdateAI(), npc_illidari_council::npc_illidari_councilAI::UpdateAI(), npc_inner_demon::npc_inner_demonAI::UpdateAI(), npc_koltira_deathweaver::npc_koltira_deathweaverAI::UpdateAI(), npc_shadowy_construct::npc_shadowy_constructAI::UpdateAI(), npc_shield_generator_channel::npc_shield_generator_channelAI::UpdateAI(), npc_snobold_vassal::npc_snobold_vassalAI::UpdateAI(), npc_spark_of_ionar::npc_spark_of_ionarAI::UpdateAI(), npc_toxic_sporebat::npc_toxic_sporebatAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_tooga::npc_toogaAI::UpdateFollowerAI(), InstanceScript::UpdateMinionState(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), Player::UpdateZone(), boss_anetheron::boss_anetheronAI::WaypointReached(), boss_azgalor::boss_azgalorAI::WaypointReached(), boss_kazrogal::boss_kazrogalAI::WaypointReached(), boss_rage_winterchill::boss_rage_winterchillAI::WaypointReached(), npc_abomination::npc_abominationAI::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(), npc_ghoul::npc_ghoulAI::WaypointReached(), npc_giant_infernal::npc_giant_infernalAI::WaypointReached(), and npc_necromancer::npc_necromancerAI::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

◆ isAttackingPlayer()

bool Unit::isAttackingPlayer ( ) const

◆ isAttackReady()

bool Unit::isAttackReady ( WeaponAttackType type = WeaponAttackType::BASE_ATTACK) const
inline

Definition at line 1432 of file Unit.h.

References BASE_ATTACK, and m_attackTimer.

Referenced by _UpdateAutoRepeatSpell(), GetWeaponProcChance(), and Player::Update().

◆ IsAuctioner()

bool Unit::IsAuctioner ( ) const
inline

Definition at line 1873 of file Unit.h.

References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_AUCTIONEER.

Referenced by LuaUnit::IsAuctioneer().

◆ IsBanker()

bool Unit::IsBanker ( ) const
inline

Definition at line 1853 of file Unit.h.

References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_BANKER.

Referenced by LuaUnit::IsBanker().

◆ IsBattleMaster()

◆ isBeingLoaded()

virtual bool Unit::isBeingLoaded ( ) const
inlinevirtual

Reimplemented in Pet, and Player.

Definition at line 2794 of file Unit.h.

Referenced by _AddAura().

◆ isBlockCritical()

bool Unit::isBlockCritical ( )

◆ IsBMAuctioner()

bool Unit::IsBMAuctioner ( ) const
inline

◆ IsCharmed()

◆ IsCharmedOwnedByPlayerOrPlayer()

bool Unit::IsCharmedOwnedByPlayerOrPlayer ( ) const
inline

Definition at line 2106 of file Unit.h.

References GetCharmerOrOwnerOrOwnGUID(), and IS_PLAYER_GUID().

◆ IsContestedGuard()

bool Unit::IsContestedGuard ( ) const

Definition at line 7309 of file Unit.cpp.

References GetFactionTemplateEntry().

◆ IsControlledByPlayer()

◆ IsDamageReducedByArmor()

◆ isDead()

bool Unit::isDead ( ) const
inline

Definition at line 2040 of file Unit.h.

References CORPSE, DEAD, and m_deathState.

Referenced by MapManager::CanPlayerEnter(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), instance_uldaman::instance_uldaman_InstanceMapScript::DeActivateMinions(), Spell::EffectSummonPet(), npc_ethereal_beacon::npc_ethereal_beaconAI::EnterCombat(), Player::HandleFall(), misc_commandscript::HandleRespawnCommand(), Player::isAllowedToLoot(), LuaUnit::IsDead(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), Player::OnGossipSelect(), at_bring_your_orphan_to::OnTrigger(), Player::PrepareGossipMenu(), Player::RepopAtGraveyard(), instance_uldaman::instance_uldaman_InstanceMapScript::RespawnMinions(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), SendMeleeAttackStop(), instance_violet_hold::instance_violet_hold_InstanceMapScript::StartBossEncounter(), boss_kelidan_the_breaker::boss_kelidan_the_breakerAI::SummonChannelers(), boss_alythess::boss_alythessAI::UpdateAI(), boss_anomalus::boss_anomalusAI::UpdateAI(), boss_dalronn_the_controller::boss_dalronn_the_controllerAI::UpdateAI(), boss_sacrolash::boss_sacrolashAI::UpdateAI(), boss_skarvald_the_constructor::boss_skarvald_the_constructorAI::UpdateAI(), npc_arthas::npc_arthasAI::UpdateAI(), npc_ethereal_beacon::npc_ethereal_beaconAI::UpdateAI(), npc_grimstone::npc_grimstoneAI::UpdateAI(), npc_ice_tomb::npc_ice_tombAI::UpdateAI(), npc_inner_demon::npc_inner_demonAI::UpdateAI(), npc_lesser_doomguard::npc_lesser_doomguardAI::UpdateAI(), and npc_towering_infernal::npc_towering_infernalAI::UpdateAI().

◆ IsDuringRemoveFromWorld()

bool Unit::IsDuringRemoveFromWorld ( ) const
inline

Definition at line 2798 of file Unit.h.

References m_duringRemoveFromWorld.

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

◆ isDying()

bool Unit::isDying ( ) const
inline

Definition at line 2036 of file Unit.h.

References JUST_DIED, and m_deathState.

Referenced by CanHaveThreatList(), and LuaUnit::IsDying().

◆ IsFalling()

◆ isFeared()

bool Unit::isFeared ( ) const
inline

Definition at line 1925 of file Unit.h.

References HasAuraType(), and SPELL_AURA_MOD_FEAR.

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

◆ IsFlying()

◆ IsFriendlyTo()

◆ isFrozen()

bool Unit::isFrozen ( ) const

Definition at line 5796 of file Unit.cpp.

References AURA_STATE_FROZEN, and HasAuraState().

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

◆ IsFullHealth()

bool Unit::IsFullHealth ( ) const
inline

◆ IsGossip()

bool Unit::IsGossip ( ) const
inline

Definition at line 1837 of file Unit.h.

References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_GOSSIP.

Referenced by LuaUnit::IsGossip().

◆ IsGuardian()

◆ IsGuildMaster()

bool Unit::IsGuildMaster ( ) const
inline

Definition at line 1845 of file Unit.h.

References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_PETITIONER.

Referenced by LuaUnit::IsGuildMaster().

◆ IsHostileTo()

◆ IsHostileToPlayers()

◆ IsHunterPet()

bool Unit::IsHunterPet ( ) const
inline

◆ IsImmunedToDamage() [1/2]

◆ IsImmunedToDamage() [2/2]

◆ IsImmunedToSpell()

◆ IsImmunedToSpellEffect()

◆ isInAccessiblePlaceFor()

◆ isInBackInMap()

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

Definition at line 1468 of file Unit.cpp.

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

◆ IsInCombat()

bool Unit::IsInCombat ( ) const
inline

Definition at line 1896 of file Unit.h.

References Object::HasFlag(), UNIT_FIELD_FLAGS, and UNIT_FLAG_IN_COMBAT.

Referenced by Player::ActivateTaxiPathTo(), npc_anubisath_sentinel::aqsentinelAI::CallBuddiesToAttack(), Creature::CanAssistTo(), Player::CanEquipItem(), Creature::CanStartAttack(), Player::CanUnequipItem(), boss_kelidan_the_breaker::boss_kelidan_the_breakerAI::ChannelerEngaged(), Spell::CheckCast(), SpellInfo::CheckTarget(), CombatStart(), Spell::DoSpellHitOnUnit(), RandomMovementGenerator< T >::DoUpdate(), boss_twinemperorsAI::EnterCombat(), npc_ethereal_beacon::npc_ethereal_beaconAI::EnterCombat(), Player::EquipItem(), boss_sartharion::boss_sartharionAI::FetchDragons(), WorldSession::HandleBattlePetWildRequest(), WorldSession::HandleLogoutRequestOpcode(), tele_commandscript::HandleTeleCommand(), misc_commandscript::HandleUnstuckCommand(), LuaUnit::IsInCombat(), RisenArchmageCheck::operator()(), Skyfire::FriendlyCCedInRange::operator()(), Skyfire::FriendlyMissingBuffInRange::operator()(), Skyfire::MostHPMissingInRange::operator()(), SmartScript::ProcessEvent(), Player::Regenerate(), Player::RegenerateAll(), Player::RegenerateHealth(), Creature::RegenerateMana(), SetInCombatState(), SetSpeed(), lfg::LFGMgr::TeleportPlayer(), Creature::Update(), TempSummon::Update(), Update(), boss_sathrovarr::boss_sathrovarrAI::UpdateAI(), npc_ethereal_beacon::npc_ethereal_beaconAI::UpdateAI(), npc_scarlet_ghoul::npc_scarlet_ghoulAI::UpdateAI(), SimpleCharmedAI::UpdateAI(), Player::UpdateCharmedAI(), Player::UpdateContestedPvP(), InstanceScript::UpdateMinionState(), Creature::UpdateMovementFlags(), Player::UpdatePotionCooldown(), and UpdateSpeed().

◆ IsInDisallowedMountForm()

◆ IsInFeralForm()

◆ IsInFlight()

bool Unit::IsInFlight ( ) const
inline

Definition at line 1891 of file Unit.h.

References HasUnitState(), and UNIT_STATE_IN_FLIGHT.

Referenced by Player::CheckAreaExploreAndOutdoor(), CreatureUnitRelocationWorker(), Spell::EffectStuck(), Player::GetNPCIfCanInteractWith(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), misc_commandscript::HandleDismountCommand(), go_commandscript::HandleGoCreatureCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoObjectCommand(), go_commandscript::HandleGoTaxinodeCommand(), go_commandscript::HandleGoTicketCommand(), go_commandscript::HandleGoTriggerCommand(), go_commandscript::HandleGoXYZCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleLogoutRequestOpcode(), modify_commandscript::HandleModifyASpeedCommand(), modify_commandscript::HandleModifyBWalkCommand(), modify_commandscript::HandleModifySpeedCommand(), modify_commandscript::HandleModifySwimCommand(), WorldSession::HandleMovementOpcodes(), misc_commandscript::HandleRecallCommand(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), tele_commandscript::HandleTeleNameCommand(), misc_commandscript::HandleUnstuckCommand(), Battlefield::InvitePlayerToWar(), Player::IsOutdoorPvPActive(), Player::SummonIfPossible(), LuaPlayer::Teleport(), lfg::LFGMgr::TeleportPlayer(), and Player::UpdateUnderwaterState().

◆ isInFrontInMap()

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

Definition at line 1463 of file Unit.cpp.

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

◆ IsInnkeeper()

bool Unit::IsInnkeeper ( ) const
inline

Definition at line 1857 of file Unit.h.

References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_INNKEEPER.

Referenced by LuaUnit::IsInnkeeper().

◆ IsInPartyWith()

◆ IsInRaidWith()

◆ isInRoots()

bool Unit::isInRoots ( ) const
inline

Definition at line 1929 of file Unit.h.

References HasAuraType(), and SPELL_AURA_MOD_ROOT.

◆ IsInWater()

bool Unit::IsInWater ( ) const
virtual

◆ IsLevitating()

◆ IsMounted()

◆ isMoving()

◆ IsNeutralToAll()

◆ IsNonMeleeSpellCasted()

◆ IsOnVehicle()

◆ IsPet()

bool Unit::IsPet ( ) const
inline

Definition at line 1511 of file Unit.h.

References m_unitTypeMask, and UNIT_MASK_PET.

Referenced by FollowMovementGenerator< T >::_updateSpeed(), Map::AddToActive(), Attack(), BeforeVisibilityDestroy< Creature >(), Creature::CallAssistance(), Creature::CallForHelp(), Creature::CanSwim(), CombatStart(), hyjal_trashAI::DamageTaken(), DealDamage(), Spell::EffectTameCreature(), Creature::GetAggroRange(), GetCastingTimeForBonus(), GetCombatRatingReduction(), GetCreatePowers(), GetNextRandomRaidMemberOrPet(), GetSpellModOwner(), AuraEffect::HandleAuraModBaseResistancePCT(), AuraEffect::HandleAuraModResistance(), AuraEffect::HandleAuraModStat(), debug_commandscript::HandleDebugThreatListCommand(), AuraEffect::HandleModBaseResistance(), AuraEffect::HandleModPossessPet(), AuraEffect::HandleModResistancePercent(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcDeleteCommand(), npc_commandscript::HandleNpcSetLevelCommand(), npc_commandscript::HandleNpcSetModelCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetPhaseCommand(), npc_commandscript::HandleNpcSetPhaseGroup(), npc_commandscript::HandleNpcTameCommand(), WorldSession::HandlePetAbandon(), WorldSession::HandlePetActionHelper(), pet_commandscript::HandlePetCreateCommand(), WorldSession::HandlePetSetAction(), WorldSession::HandlePetSpellAutocastOpcode(), reset_commandscript::HandleResetTalentsCommand(), misc_commandscript::HandleRespawnCommand(), TempSummon::InitStats(), Guardian::InitStatsForLevel(), DisableMgr::IsDisabledFor(), Creature::isElite(), Minion::IsGuardianPet(), Creature::isWorldBoss(), Kill(), Map::MoveAllCreaturesInMoveList(), spell_monk_soothing_mist::spell_monk_soothing_mist_AuraScript::OnApply(), spell_monk_serpents_zeal::spell_monk_serpents_zeal_AuraScript::OnProc(), PlayerOrPetCheck::operator()(), PetAI::Permissible(), Map::RemoveFromActive(), RollMeleeOutcomeAgainst(), FactorySelector::selectAI(), Creature::SelectLevel(), WorldSession::SendPetNameQuery(), Creature::setDeathState(), SetInCombatState(), SetMinion(), SpellDamageBonusDone(), ToPet(), ToPet(), TempSummon::UnSummon(), Update(), Guardian::UpdateArmor(), Guardian::UpdateAttackPowerAndDamage(), UpdateAuraForGroup(), Guardian::UpdateResistances(), UpdateSpeed(), UpdateUnderwaterState(), and ObjectGridEvacuator::Visit().

◆ IsPolymorphed()

◆ isPossessed()

bool Unit::isPossessed ( ) const
inline

◆ isPossessedByPlayer()

bool Unit::isPossessedByPlayer ( ) const

Definition at line 2808 of file Unit.cpp.

References GetCharmerGUID(), HasUnitState(), IS_PLAYER_GUID(), and UNIT_STATE_POSSESSED.

◆ isPossessing() [1/2]

bool Unit::isPossessing ( ) const

Definition at line 2818 of file Unit.cpp.

References GetCharm(), and Unit().

Referenced by misc_commandscript::HandleUnbindSightCommand().

◆ isPossessing() [2/2]

bool Unit::isPossessing ( Unit * u) const

Definition at line 2813 of file Unit.cpp.

References GetCharmGUID(), Object::GetGUID(), isPossessed(), and Unit().

◆ IsPvP()

◆ IsQuestGiver()

◆ IsScriptOverriden()

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

◆ IsServiceProvider()

◆ IsSitState()

◆ isSpellBlocked()

◆ isSpellCrit()

bool Unit::isSpellCrit ( Unit * victim,
SpellInfo const * spellProto,
SpellSchoolMask schoolMask,
WeaponAttackType attackType = WeaponAttackType::BASE_ATTACK ) const

Mobs can't crit with spells. Player Totems can Fire Elemental (from totem) can too - but this part is a hack and needs more research

Definition at line 3111 of file Unit.cpp.

References ApplyPct(), SpellInfo::AttributesEx2, AURA_STATE_BLEEDING, AURA_STATE_FAERIE_FIRE, AURA_STATE_FROZEN, CREATURE_TYPEMASK_DEMON_OR_UNDEAD, SpellInfo::DmgClass, EFFECT_0, FindCurrentSpellBySpellId(), GetAuraEffect(), GetAuraEffectsByType(), SpellInfo::GetCategory(), GetCreatureTypeMask(), GetDummyAuraEffect(), Object::GetEntry(), GetFirstSchoolInMask(), Object::GetFloatValue(), Object::GetGUID(), GetOwnerGUID(), GetSpellModOwner(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), Object::GetTypeId(), GetUnitCriticalChance(), HasAuraState(), HasAuraWithMechanic(), SpellInfo::Id, IS_CREATURE_GUID(), IS_PLAYER_GUID(), SpellInfo::IsPositive(), IsTotem(), m_baseSpellCritChance, MECHANIC_KNOCKOUT, MECHANIC_STUN, PLAYER_FIELD_SPELL_CRIT_PERCENTAGE, roll_chance_f(), SPELL_ATTR2_CANT_CRIT, SPELL_AURA_MOD_ATTACKER_SPELL_AND_WEAPON_CRIT_CHANCE, SPELL_AURA_MOD_ATTACKER_SPELL_CRIT_CHANCE, SPELL_AURA_MOD_CRIT_CHANCE_FOR_CASTER, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_AURA_PERIODIC_DAMAGE, SPELL_DAMAGE_CLASS_MAGIC, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_NONE, SPELL_DAMAGE_CLASS_RANGED, SPELL_SCHOOL_MASK_NORMAL, SPELLFAMILY_DRUID, SPELLFAMILY_MAGE, SPELLFAMILY_PALADIN, SPELLFAMILY_ROGUE, SPELLFAMILY_SHAMAN, SPELLFAMILY_WARRIOR, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, SPELLMOD_CRITICAL_CHANCE, TYPEID_PLAYER, and Unit().

Referenced by Spell::DoAllEffectOnTarget(), and AuraEffect::IsPeriodicTickCrit().

◆ IsSpiritGuide()

bool Unit::IsSpiritGuide ( ) const
inline

◆ IsSpiritHealer()

bool Unit::IsSpiritHealer ( ) const
inline

◆ IsSpiritService()

◆ IsSplineEnabled()

bool Unit::IsSplineEnabled ( ) const

Definition at line 9355 of file Unit.cpp.

References movespline.

Referenced by Object::BuildMovementUpdate(), and WriteMovementInfo().

◆ IsStandState()

◆ IsStopped()

◆ IsSummon()

◆ IsTabardDesigner()

bool Unit::IsTabardDesigner ( ) const
inline

Definition at line 1869 of file Unit.h.

References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_TABARDDESIGNER.

Referenced by LuaUnit::IsTabardDesigner().

◆ isTargetableForAttack()

◆ IsTaxi()

bool Unit::IsTaxi ( ) const
inline

Definition at line 1841 of file Unit.h.

References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_FLIGHTMASTER.

Referenced by LuaUnit::IsTaxi().

◆ IsTotem()

◆ IsTrainer()

bool Unit::IsTrainer ( ) const
inline

Definition at line 1829 of file Unit.h.

References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_TRAINER.

Referenced by LuaUnit::IsTrainer().

◆ IsTriggeredAtSpellProcEvent()

◆ isTurning()

bool Unit::isTurning ( ) const
inline

Definition at line 2775 of file Unit.h.

References WorldObject::m_movementInfo, and MOVEMENTFLAG_MASK_TURNING.

◆ IsUnderWater()

bool Unit::IsUnderWater ( ) const
virtual

◆ IsValidAssistTarget()

bool Unit::IsValidAssistTarget ( Unit const * target) const

Definition at line 3930 of file Unit.cpp.

References _IsValidAssistTarget(), and Unit().

◆ IsValidAttackTarget()

◆ IsVehicle()

bool Unit::IsVehicle ( ) const
inline

Definition at line 1523 of file Unit.h.

References m_unitTypeMask, and UNIT_MASK_VEHICLE.

Referenced by Creature::AddToWorld(), ApplyResilience(), Spell::CheckEffectTarget(), SpellInfo::CheckTarget(), Map::CreatureRelocation(), DealDamage(), DealMeleeDamage(), Spell::EffectSummonType(), AuraEffect::HandleAuraControlVehicle(), debug_commandscript::HandleDebugEnterVehicleCommand(), debug_commandscript::HandleDebugSetVehicleIdCommand(), spell_q13280_13283_plant_battle_standard::spell_q13280_13283_plant_battle_standard_SpellScript::HandleDummy(), BattlegroundIC::HandleKillUnit(), WorldSession::HandlePetActionHelper(), spell_q12919_gymers_throw::spell_q12919_gymers_throw_SpellScript::HandleScript(), spell_putricide_mutated_transformation::spell_putricide_mutated_transformation_SpellScript::HandleSummon(), TempSummon::InitStats(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustDied(), KillRewarder::KillRewarder(), spell_the_lich_king_eject_all_passengers::spell_the_lich_king_eject_all_passengers_SpellScript::Load(), Map::MoveAllCreaturesInMoveList(), BattlefieldWG::OnUnitDeath(), OutDebugInfo(), Map::PlayerRelocation(), RemoveCharmedBy(), RemoveFromWorld(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), FactorySelector::selectAI(), SetCharmedBy(), Creature::SetLootRecipient(), GameObject::SetLootRecipient(), Creature::SetPosition(), Player::StopCastingCharm(), Creature::Update(), UpdateCharmAI(), Creature::UpdateEntry(), UpdateHeight(), UpdateOrientation(), and UpdateUnderwaterState().

◆ IsVendor()

bool Unit::IsVendor ( ) const
inline

◆ IsVisible()

◆ IsWalking()

bool Unit::IsWalking ( ) const
inline

Definition at line 2007 of file Unit.h.

References WorldObject::m_movementInfo, and MOVEMENTFLAG_WALKING.

Referenced by SetCharm(), and SetWalk().

◆ IsWithinCombatRange()

bool Unit::IsWithinCombatRange ( const Unit * obj,
float dist2compare ) const

◆ IsWithinMeleeRange()

bool Unit::IsWithinMeleeRange ( const Unit * obj,
float dist = MELEE_RANGE ) const

◆ JumpTo() [1/2]

void Unit::JumpTo ( float speedXY,
float speedZ,
bool forward = true )

◆ JumpTo() [2/2]

void Unit::JumpTo ( WorldObject * obj,
float speedZ )

◆ Kill()

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

Definition at line 6342 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(), BASE_ATTACK, CastSpell(), CLASS_PRIEST, Loot::clear(), CONFIG_DURABILITY_LOSS_IN_PVP, CREATURE_FLAG_EXTRA_INSTANCE_BIND, CREATURE_TYPE_CRITTER, DeleteThreatList(), DUEL_INTERRUPTED, Loot::FillLoot(), ObjectAccessor::FindPlayer(), CreatureTemplate::flags_extra, Loot::generateMoneyLoot(), GetAuraEffectsByType(), Player::GetBattleground(), GetCharmerOrOwnerPlayerOrPlayerItself(), getClass(), Creature::GetCreatureTemplate(), GetCreatureType(), Object::GetEntry(), Player::GetGroup(), Object::GetGUID(), GetHealth(), WorldObject::GetInstanceId(), Creature::GetLootMode(), Creature::GetLootRecipient(), WorldObject::GetMap(), Player::GetOutdoorPvP(), GetOwner(), Player::GetPet(), Creature::GetRespawnTimeEx(), Player::GetResurrectionSpellId(), Object::GetTypeId(), Object::GetUInt32Value(), WorldObject::GetZoneId(), HOUR, Player::InBattleground(), IsAIEnabled, IsAlive(), Pet::isControlled(), Creature::IsDamageEnoughForLootingAndReward(), Map::IsInstance(), IsPet(), Map::IsRaidOrHeroicDungeon(), IsTotem(), JUST_DIED, CreatureAI::JustDied(), CreatureAI::KilledUnit(), Creature::loot, Creature::lootForPickPocketed, CreatureTemplate::lootid, LootTemplates_Creature, CreatureTemplate::maxgold, CreatureTemplate::mingold, OBJECT_FIELD_DYNAMIC_FLAGS, PLAYER_FIELD_SELF_RES_SPELL, PROC_EX_NONE, PROC_FLAG_DEATH, PROC_FLAG_KILL, PROC_FLAG_KILLED, PROC_FLAG_NONE, ProcDamageAndSpell(), RATE_DURABILITY_LOSS_ON_DEATH, RemoveAllAurasOnDeath(), Player::RewardPlayerAndGroupAtKill(), sBattlefieldMgr, Player::SendDirectMessage(), SendDurabilityLoss(), Player::SendMessageToSet(), setDeathState(), Object::SetFlag(), Creature::SetLootRecipient(), Object::SetUInt32Value(), SF_LOG_DEBUG, sInstanceSaveMgr, SMSG_LOOT_LIST, SMSG_PARTYKILLLOG, SPELL_AURA_DUMMY, SPELL_AURA_MOD_DURABILITY_LOSS, sScriptMgr, sWorld, Object::ToCreature(), Object::ToPlayer(), ToTempSummon(), TYPEID_PLAYER, TYPEID_UNIT, Unit(), UNIT_DYNFLAG_LOOTABLE, Player::UpdateAchievementCriteria(), ByteBuffer::WriteBit(), ByteBuffer::WriteByteSeq(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().

Referenced by instance_violet_hold::instance_violet_hold_InstanceMapScript::ActivateCrystal(), boss_malchezaar::boss_malchezaarAI::AxesCleanup(), DealDamage(), AuraEffect::HandleAuraControlVehicle(), misc_commandscript::HandleDieCommand(), spell_ooze_zap_channel_end::spell_ooze_zap_channel_end_SpellScript::HandleDummy(), spell_q12589_shoot_rjr::spell_q12589_shoot_rjr_SpellScript::HandleDummy(), spell_cultist_dark_martyrdom::spell_cultist_dark_martyrdom_SpellScript::HandleEffect(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), spell_yogg_saron_titanic_storm::spell_yogg_saron_titanic_storm_SpellScript::HandleScript(), npc_counselor_talbot::npc_counselor_talbotAI::JustDied(), LuaUnit::Kill(), spell_yogg_saron_insane::spell_yogg_saron_insane_AuraScript::OnRemove(), instance_scarlet_monastery::instance_scarlet_monastery_InstanceMapScript::SetData(), boss_selin_fireheart::boss_selin_fireheartAI::ShatterRemainingCrystals(), boss_selin_fireheart::boss_selin_fireheartAI::UpdateAI(), npc_crusade_persuaded::npc_crusade_persuadedAI::UpdateAI(), and SimpleCharmedAI::UpdateAI().

◆ KnockbackFrom()

void Unit::KnockbackFrom ( float x,
float y,
float speedXY,
float speedZ )

◆ MagicSpellHitResult()

◆ MeleeDamageBonusDone()

◆ MeleeDamageBonusTaken()

◆ MeleeSpellHitResult()

◆ MeleeSpellMissChance()

float Unit::MeleeSpellMissChance ( Unit const * victim,
WeaponAttackType attType,
uint32 spellId ) const

◆ ModifyAuraState()

◆ ModifyHealth()

◆ ModifyPower()

◆ ModifyPowerPct()

int32 Unit::ModifyPowerPct ( Powers power,
float pct,
bool apply = true )

◆ ModifyRedirectThreat()

void Unit::ModifyRedirectThreat ( int32 amount)
inline

Definition at line 2724 of file Unit.h.

References _redirectThreadInfo.

◆ ModSpellCastTime()

◆ ModSpellDuration()

◆ MonsterMoveWithSpeed()

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

◆ Mount()

◆ NearTeleportTo()

◆ OutDebugInfo()

◆ PlayOneShotAnimKit()

◆ ProcDamageAndSpell()

◆ ProcDamageAndSpellFor()

void Unit::ProcDamageAndSpellFor ( bool isVictim,
Unit * target,
uint32 procFlag,
uint32 procExtra,
WeaponAttackType attType,
SpellInfo const * procSpell,
uint32 damage,
SpellInfo const * procAura = NULL )

Definition at line 211 of file UnitProcEvent.cpp.

References Player::AddComboPoints(), ASSERT, SpellInfo::AttributesEx3, ProcTriggeredData::aura, AURA_STATE_DEFENSE, AURA_STATE_HUNTER_PARRY, SpellInfo::CalcCastTime(), Aura::CallScriptCheckProcHandlers(), CastSpell(), CLASS_HUNTER, CLASS_ROGUE, CLASS_WARLOCK, CLASS_WARRIOR, CONDITION_SOURCE_TYPE_SPELL_PROC, EFFECT_0, EFFECT_1, EFFECT_2, SpellInfo::Effects, ProcTriggeredData::effMask, ProcEventInfo::GetActionTarget(), ProcEventInfo::GetActor(), AuraEffect::GetAmount(), GetAppliedAuras(), AuraEffect::GetAuraType(), AuraEffect::GetBase(), AuraEffect::GetCasterGUID(), getClass(), Aura::GetDuration(), Aura::GetEffect(), Object::GetGUID(), AuraEffect::GetId(), getLevel(), Aura::GetMaxDuration(), AuraEffect::GetMiscValue(), GetPower(), ProcEventInfo::GetProcTarget(), Object::GetTypeId(), Aura::GetUnitOwner(), HandleAuraProc(), HandleAuraProcOnPowerAmount(), HandleAuraRaidProcFromCharge(), HandleAuraRaidProcFromChargeWithValue(), HandleDummyAuraProc(), HandleOverrideClassScriptAuraProc(), AuraEffect::HandleProcTriggerDamageAuraProc(), HandleProcTriggerSpell(), HasAura(), SpellInfo::Id, isAlwaysTriggeredAura, isNonTriggerAura, isTriggerAura, IsTriggeredAtSpellProcEvent(), MAX_SPELL_EFFECTS, SpellInfo::Mechanic, MELEE_BASED_TRIGGER_MASK, ModifyAuraState(), POWER_BURNING_EMBERS, PROC_EX_ABSORB, PROC_EX_BLOCK, PROC_EX_CRITICAL_HIT, PROC_EX_DODGE, PROC_EX_INTERNAL_CANT_PROC, PROC_EX_INTERNAL_REQ_FAMILY, PROC_EX_INTERNAL_TRIGGERED, PROC_EX_PARRY, PROC_FLAG_DONE_TRAP_ACTIVATION, REACTIVE_DEFENSE, REACTIVE_HUNTER_PARRY, REACTIVE_OVERPOWER, Player::RemoveSpellCooldown(), roll_chance_f(), SpellInfo::SchoolMask, sConditionMgr, AuraEffect::SetAmount(), SetCantProc(), SetPower(), SF_LOG_DEBUG, SPELL_ATTR3_CAN_PROC_WITH_TRIGGERED, SPELL_ATTR3_DISABLE_PROC, SPELL_AURA_DUMMY, SPELL_AURA_MANA_SHIELD, SPELL_AURA_MECHANIC_IMMUNITY, SPELL_AURA_MOD_CASTING_SPEED_NOT_STACK, SPELL_AURA_MOD_CONFUSE, SPELL_AURA_MOD_DAMAGE_FROM_CASTER, SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_FEAR_2, SPELL_AURA_MOD_MECHANIC_RESISTANCE, SPELL_AURA_MOD_MELEE_HASTE, SPELL_AURA_MOD_MELEE_HASTE_3, SPELL_AURA_MOD_POWER_COST_SCHOOL, SPELL_AURA_MOD_POWER_COST_SCHOOL_PCT, SPELL_AURA_MOD_POWER_REGEN_PERCENT, SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_SPELL_CRIT_CHANCE, SPELL_AURA_MOD_STUN, SPELL_AURA_OBS_MOD_POWER, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_AURA_PROC_ON_POWER_AMOUNT, SPELL_AURA_PROC_TRIGGER_DAMAGE, SPELL_AURA_PROC_TRIGGER_SPELL, SPELL_AURA_PROC_TRIGGER_SPELL_2, SPELL_AURA_PROC_TRIGGER_SPELL_WITH_VALUE, SPELL_AURA_RAID_PROC_FROM_CHARGE, SPELL_AURA_RAID_PROC_FROM_CHARGE_WITH_VALUE, SPELL_AURA_REFLECT_SPELLS_SCHOOL, SPELL_AURA_SPELL_MAGNET, SPELL_AURA_TRANSFORM, SPELL_DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, SPELLFAMILY_WARLOCK, SPELLFAMILY_WARRIOR, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, ProcTriggeredData::spellProcEvent, StartReactiveTimer(), Object::ToPlayer(), Object::ToUnit(), SpellEffectInfo::TriggerSpell, TYPEID_PLAYER, and Unit().

Referenced by ProcDamageAndSpell().

◆ ProhibitSpellSchool()

virtual void Unit::ProhibitSpellSchool ( SpellSchoolMask ,
uint32  )
inlinevirtual

Reimplemented in Creature, Pet, and Player.

Definition at line 2349 of file Unit.h.

◆ propagateSpeedChange()

void Unit::propagateSpeedChange ( )
inline

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

Definition at line 2683 of file Unit.h.

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

Referenced by SetSpeed().

◆ RemoveAllAttackers()

void Unit::RemoveAllAttackers ( )

Definition at line 255 of file UnitCombatState.cpp.

References m_attackers, and SF_LOG_ERROR.

Referenced by CombatStop().

◆ RemoveAllAuras()

◆ RemoveAllAurasExceptType() [1/2]

void Unit::RemoveAllAurasExceptType ( AuraType type)

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

References m_dynObj.

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

◆ RemoveAllGameObjects()

void Unit::RemoveAllGameObjects ( )

Definition at line 1753 of file Unit.cpp.

References m_gameObj.

Referenced by CleanupBeforeRemoveFromMap(), and RemoveFromWorld().

◆ RemoveAllMinionsByEntry()

void Unit::RemoveAllMinionsByEntry ( uint32 entry)

◆ 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 459 of file UnitAuraState.cpp.

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

Referenced by _EnterVehicle(), _RemoveNoStackAurasDueToAura(), ApplySpellDispelImmunity(), Player::DuelComplete(), Battleground::EndBattleground(), GetDiseasesByCaster(), AuraEffect::HandleAuraLinked(), AuraEffect::HandleAuraModSchoolImmunity(), Aura::HandleAuraSpecificMods(), deserter_commandscript::HandleDeserterRemove(), spell_q12096_q12092_bark::spell_q12096_q12092_bark_SpellScript::HandleDummy(), spell_valanar_kinetic_bomb::spell_valanar_kinetic_bomb_AuraScript::HandleDummyTick(), spell_warl_demonic_circle_summon::spell_warl_demonic_circle_summon_AuraScript::HandleDummyTick(), spell_warr_victorious::spell_warr_victorious_AuraScript::HandleEffectProc(), spell_dru_eclipse_energize::spell_dru_eclipse_energize_SpellScript::HandleEnergize(), spell_sha_chain_heal::spell_sha_chain_heal_SpellScript::HandleHeal(), spell_sindragosa_frost_breath::spell_sindragosa_frost_breath_SpellScript::HandleInfusion(), spell_monk_glyph_of_mana_tea::spell_monk_glyph_of_mana_tea_SpellScript::HandleOnHit(), AuraEffect::HandlePeriodicDummyAuraTick(), HandleProcTriggerSpell(), spell_warl_demonic_circle_summon::spell_warl_demonic_circle_summon_AuraScript::HandleRemove(), spell_pal_divine_light::spell_pal_divine_light_SpellScript::HandleRemoveAura(), spell_pal_flash_of_light::spell_pal_flash_of_light_SpellScript::HandleRemoveAura(), spell_pal_holy_radiance::spell_pal_holy_radiance_SpellScript::HandleRemoveAura(), spell_pri_flash_heal::spell_pri_flash_heal_SpellScript::HandleRemoveAura(), spell_pri_greater_heal::spell_pri_greater_heal_SpellScript::HandleRemoveAura(), spell_pri_prayer_of_healing::spell_pri_prayer_of_healing_SpellScript::HandleRemoveAura(), spell_putricide_eat_ooze::spell_putricide_eat_ooze_SpellScript::HandleScript(), spell_ulduar_cancel_stone_grip::spell_ulduar_cancel_stone_gripSpellScript::HandleScript(), AuraEffect::HandleShapeshiftBoosts(), npc_counselor_talbot::npc_counselor_talbotAI::JustDied(), ModifyAuraState(), spell_hun_ready_set_aim::spell_hun_ready_set_aim_AuraScript::OnApply(), spell_blood_queen_vampiric_bite::spell_blood_queen_vampiric_bite_SpellScript::OnCast(), spell_love_is_in_the_air_romantic_picnic::spell_love_is_in_the_air_romantic_picnic_AuraScript::OnPeriodic(), spell_fetch_ingredient_aura::spell_fetch_ingredient_aura_AuraScript::OnRemove(), spell_monk_crackling_jade_lightning::spell_monk_crackling_jade_lightning_AuraScript::OnRemove(), spell_monk_mana_tea::spell_monk_mana_tea_AuraScript::OnTick(), spell_trash_npc_glacial_strike::spell_trash_npc_glacial_strike_AuraScript::PeriodicTick(), BattlefieldWG::PromotePlayer(), RemoveAreaAurasDueToLeaveWorld(), RemoveArenaAuras(), RemoveAura(), RemoveAura(), RemoveAura(), RemoveAurasByType(), RemoveAurasDueToItemSpell(), RemoveAurasDueToSpell(), RemoveAurasWithAttribute(), RemoveAurasWithFamily(), RemoveAurasWithInterruptFlags(), RemoveAurasWithMechanic(), RemoveNotOwnSingleTargetAuras(), BattlegroundIC::RemovePlayer(), spell_pal_hand_of_sacrifice::spell_pal_hand_of_sacrifice_AuraScript::Split(), Player::StopCinematic(), and Spell::UpdateChanneledTargetList().

◆ RemoveAura() [4/4]

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

◆ RemoveAuraFromStack()

◆ RemoveAurasByType()

void Unit::RemoveAurasByType ( AuraType auraType,
uint64 casterGUID = 0,
Aura * except = NULL,
bool negative = true,
bool positive = true )

Definition at line 683 of file UnitAuraState.cpp.

References Aura::GetApplicationOfTarget(), Aura::GetCasterGUID(), Object::GetGUID(), AuraApplication::IsPositive(), m_modAuras, m_removedAurasCount, and RemoveAura().

Referenced by Player::ActivateTaxiPathTo(), Player::AddComboPoints(), Battleground::AddPlayer(), Attack(), spell_gen_summon_tournament_mount::spell_gen_summon_tournament_mount_SpellScript::CheckIfLanceEquiped(), Player::ClearComboPoints(), LuaUnit::Dismount(), Spell::DoSpellHitOnUnit(), Battleground::EndBattleground(), ExitVehicle(), spell_monk_roll::spell_monk_roll_SpellScript::HandleAfterCast(), WorldSession::HandleAuctionHelloOpcode(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionListItems(), WorldSession::HandleAuctionListOwnerItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraModStateImmunity(), AuraEffect::HandleAuraMounted(), AuraEffect::HandleAuraTransform(), WorldSession::HandleBankerActivateOpcode(), WorldSession::HandleBinderActivateOpcode(), WorldSession::HandleBlackMarketHelloOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleBuyStableSlot(), misc_commandscript::HandleDismountCommand(), spell_item_brewfest_mount_transformation::spell_item_brewfest_mount_transformation_SpellScript::HandleDummy(), spell_item_reindeer_transformation::spell_item_reindeer_transformation_SpellScript::HandleDummy(), spell_mage_glyph_of_polymorph::spell_mage_glyph_of_polymorph_AuraScript::HandleEffectProc(), WorldSession::HandleGossipSelectOptionOpcode(), AuraEffect::HandleModStateImmunityMask(), spell_algalon_remove_phase::spell_algalon_remove_phase_AuraScript::HandlePeriodic(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleRequestStabledPetsOpcode(), WorldSession::HandleRespecWipeConfirmOpcode(), WorldSession::HandleSaveGuildEmblemOpcode(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSpiritHealerActivateOpcode(), WorldSession::HandleStablePet(), WorldSession::HandleStableSwapPet(), WorldSession::HandleTaxiQueryAvailableNodes(), WorldSession::HandleTrainerBuySpellOpcode(), spell_gen_two_forms::spell_gen_two_forms_SpellScript::HandleTransform(), WorldSession::HandleUnstablePet(), FollowerAI::MoveInLineOfSight(), npc_escortAI::MoveInLineOfSight(), SmartAI::MoveInLineOfSight(), RemoveBindSightAuras(), RemoveCharmAuras(), Battleground::RemovePlayerAtLeave(), WorldSession::SendDoFlight(), WorldSession::SendListInventory(), WorldSession::SendTrainerList(), SetCharmedBy(), and GameObject::Use().

◆ RemoveAurasDueToItemSpell()

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

Definition at line 669 of file UnitAuraState.cpp.

References m_appliedAuras, and RemoveAura().

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

◆ RemoveAurasDueToSpell()

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

Definition at line 532 of file UnitAuraState.cpp.

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

Referenced by Player::ActivateSpec(), spell_dru_survival_instincts::spell_dru_survival_instincts_AuraScript::AfterRemove(), Player::ApplyEquipSpell(), AuraEffect::CleanupTriggeredSpells(), boss_magtheridon::boss_magtheridonAI::DebuffClicker(), Player::DestroyItem(), npc_head::npc_headAI::Disappear(), npc_halion_controller::npc_halion_controllerAI::DoAction(), Spell::DoTriggersOnSpellHit(), Spell::EffectApplyGlyph(), BattlegroundEY::EventPlayerCapturedFlag(), BattlegroundTP::EventPlayerCapturedFlag(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundEY::EventPlayerDroppedFlag(), BattlegroundTP::EventPlayerDroppedFlag(), BattlegroundWS::EventPlayerDroppedFlag(), BattlegroundDS::HandleAreaTrigger(), OutdoorPvPSI::HandleAreaTrigger(), AuraEffect::HandleAuraControlVehicle(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraMounted(), HandleAuraProcOnPowerAmount(), Aura::HandleAuraSpecificMods(), spell_dru_starfall_dummy::spell_dru_starfall_dummy_SpellScript::HandleDummy(), spell_putricide_ooze_eruption_searcher::spell_putricide_ooze_eruption_searcher_SpellScript::HandleDummy(), HandleDummyAuraProc(), spell_mistress_kiss::spell_mistress_kiss_AuraScript::HandleDummyTick(), spell_q12730_quenching_mist::spell_q12730_quenching_mist_AuraScript::HandleEffectPeriodic(), spell_rog_master_of_subtlety::spell_rog_master_of_subtlety_AuraScript::HandleEffectPeriodic(), spell_pri_shadowform::spell_pri_shadowform_AuraScript::HandleEffectRemove(), spell_dru_eclipse_energize::spell_dru_eclipse_energize_SpellScript::HandleEnergize(), gm_commandscript::HandleGMVisibleCommand(), OPvPCapturePointZM_GraveYard::HandleOpenGo(), spell_algalon_phase_punch::spell_algalon_phase_punch_AuraScript::HandlePeriodic(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), OutdoorPvPHP::HandlePlayerLeaveZone(), OutdoorPvPNA::HandlePlayerLeaveZone(), OutdoorPvPSI::HandlePlayerLeaveZone(), OutdoorPvPTF::HandlePlayerLeaveZone(), OutdoorPvPZM::HandlePlayerLeaveZone(), HandleProcTriggerSpell(), spell_icc_harvest_blight_specimen::spell_icc_harvest_blight_specimen_SpellScript::HandleQuestComplete(), spell_anhuur_disable_beacon_beams::spell_anhuur_disable_beacon_beams_SpellScript::HandleScript(), spell_deathbringer_remove_marks::spell_deathbringer_remove_marks_SpellScript::HandleScript(), spell_festergut_gastric_bloat::spell_festergut_gastric_bloat_SpellScript::HandleScript(), spell_festergut_pungent_blight::spell_festergut_pungent_blight_SpellScript::HandleScript(), spell_halion_clear_debuffs::spell_halion_clear_debuffs_SpellScript::HandleScript(), spell_icc_harvest_blight_specimen::spell_icc_harvest_blight_specimen_SpellScript::HandleScript(), spell_putricide_clear_aura_effect_value::spell_putricide_clear_aura_effect_value_SpellScript::HandleScript(), spell_putricide_eat_ooze::spell_putricide_eat_ooze_SpellScript::HandleScript(), spell_putricide_unbound_plague::spell_putricide_unbound_plague_SpellScript::HandleScript(), spell_rotface_large_ooze_buff_combine::spell_rotface_large_ooze_buff_combine_SpellScript::HandleScript(), spell_rotface_large_ooze_combine::spell_rotface_large_ooze_combine_SpellScript::HandleScript(), spell_rotface_little_ooze_combine::spell_rotface_little_ooze_combine_SpellScript::HandleScript(), spell_the_lich_king_jump::spell_the_lich_king_jump_SpellScript::HandleScript(), spell_the_lich_king_jump_remove_aura::spell_the_lich_king_jump_SpellScript::HandleScript(), boss_alythess::boss_alythessAI::HandleTouchedSpells(), boss_sacrolash::boss_sacrolashAI::HandleTouchedSpells(), misc_commandscript::HandleUnAuraCommand(), misc_commandscript::HandleUnFreezeCommand(), npc_acolyte_of_shadron::npc_acolyte_of_shadronAI::JustDied(), npc_acolyte_of_vesperon::npc_acolyte_of_vesperonAI::JustDied(), npc_demon_chain::npc_demon_chainAI::JustDied(), npc_inner_demon::npc_inner_demonAI::JustDied(), Player::learnQuestRewardedSpells(), npc_overlord_morghor::npc_overlord_morghorAI::NextStep(), spell_halion_twilight_realm_handlers::spell_halion_twilight_realm_handlers_AuraScript::OnApply(), spell_systems_shutdown::spell_systems_shutdown_AuraScript::OnApply(), spell_warl_soul_swap_exhale::spell_warl_soul_swap_exhale_SpellScript::OnEffectHit(), lfg::LFGPlayerScript::OnMapChanged(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), BattlefieldWG::OnPlayerLeaveWar(), BattlefieldWG::OnPlayerLeaveZone(), spell_algalon_phase_punch::spell_algalon_phase_punch_AuraScript::OnRemove(), spell_halion_combustion_consumption::spell_halion_combustion_consumption_AuraScript::OnRemove(), spell_halion_twilight_realm_handlers::spell_halion_twilight_realm_handlers_AuraScript::OnRemove(), spell_item_shadowmourne_soul_fragment::spell_item_shadowmourne_soul_fragment_AuraScript::OnRemove(), spell_load_into_catapult::spell_load_into_catapult_AuraScript::OnRemove(), spell_yogg_saron_sanity::spell_yogg_saron_sanity_AuraScript::OnRemove(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), spell_exploding_orb_hasty_grow::spell_exploding_orb_hasty_grow_AuraScript::OnStackChange(), spell_item_shadowmourne_soul_fragment::spell_item_shadowmourne_soul_fragment_AuraScript::OnStackChange(), spell_mage_pyroblast::spell_mage_pyroblast_SpellScript::RecalculateDamage(), spell_gen_defend::spell_gen_defend_AuraScript::RefreshVisualShields(), LuaUnit::RemoveAura(), BattlefieldWG::RemoveAurasFromPlayer(), npc_halion_controller::npc_halion_controllerAI::RemoveCorporeality(), RemoveGameObject(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::RemoveGravityLapse(), boss_najentus::boss_najentusAI::RemoveImpalingSpine(), BattlegroundAV::RemovePlayer(), Pet::removeSpell(), spell_gen_defend::spell_gen_defend_AuraScript::RemoveVisualShields(), ResetCryForTheMoonActor(), boss_volazj::boss_volazjAI::ResetPlayersPhaseMask(), Player::ResurrectPlayer(), OPvPCapturePointZM_GraveYard::SetBeaconState(), boss_xt002::boss_xt002_AI::SetPhaseOne(), Player::SetQuestStatus(), Totem::UnSummon(), instance_violet_hold::instance_violet_hold_InstanceMapScript::Update(), boss_cthun::cthunAI::UpdateAI(), npc_palehoof_orb::npc_palehoof_orbAI::UpdateAI(), npc_slad_ran_constrictor::npc_slad_ran_constrictorAI::UpdateAI(), Player::UpdateUnderwaterState(), and UpdateUnderwaterState().

◆ RemoveAurasDueToSpellByDispel()

◆ RemoveAurasDueToSpellBySteal()

◆ RemoveAurasWithAttribute()

void Unit::RemoveAurasWithAttribute ( uint32 flags)

◆ RemoveAurasWithFamily()

void Unit::RemoveAurasWithFamily ( SpellFamilyNames family,
uint32 familyFlag1,
uint32 familyFlag2,
uint32 familyFlag3,
uint64 casterGUID )

◆ RemoveAurasWithInterruptFlags()

◆ RemoveAurasWithMechanic()

◆ RemoveBindSightAuras()

void Unit::RemoveBindSightAuras ( )

Definition at line 2899 of file Unit.cpp.

References RemoveAurasByType(), and SPELL_AURA_BIND_SIGHT.

Referenced by LuaUnit::RemoveBindSightAuras(), and RemoveFromWorld().

◆ RemoveCharmAuras()

◆ RemoveCharmedBy()

◆ RemoveComboPointHolder()

void Unit::RemoveComboPointHolder ( uint32 lowguid)
inline

Definition at line 2671 of file Unit.h.

References m_ComboPointHolders.

◆ RemoveDynObject()

void Unit::RemoveDynObject ( uint32 spellId)

Definition at line 1631 of file Unit.cpp.

References DynamicObject::GetSpellId(), m_dynObj, and DynamicObject::Remove().

◆ RemoveExtraUnitMovementFlag()

void Unit::RemoveExtraUnitMovementFlag ( uint16 f)
inline

Definition at line 2645 of file Unit.h.

References WorldObject::m_movementInfo.

◆ removeFollower()

void Unit::removeFollower ( FollowerReference * )
inline

Definition at line 2598 of file Unit.h.

Referenced by FollowerReference::targetObjectDestroyLink().

◆ RemoveFromWorld()

◆ RemoveGameObject() [1/2]

◆ RemoveGameObject() [2/2]

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

Definition at line 1729 of file Unit.cpp.

References m_gameObj.

◆ removeHatedBy()

void Unit::removeHatedBy ( HostileReference * )
inline

Definition at line 2463 of file Unit.h.

Referenced by HostileReference::targetObjectDestroyLink().

◆ RemoveMovementImpairingAuras()

◆ RemoveNotOwnSingleTargetAuras()

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

Definition at line 409 of file UnitAuraState.cpp.

References m_ownedAuras, and RemoveOwnedAura().

◆ RemovePetAura()

void Unit::RemovePetAura ( PetAura const * petSpell)

◆ RemovePlayerFromVision()

void Unit::RemovePlayerFromVision ( Player * player)

◆ RemoveStandFlags()

void Unit::RemoveStandFlags ( uint8 flags)
inline

◆ RemoveUnitMovementFlag()

void Unit::RemoveUnitMovementFlag ( uint32 f)
inline

◆ RemoveVehicleKit()

◆ RemoveVisibleAura()

void Unit::RemoveVisibleAura ( uint8 slot)

Definition at line 506 of file Unit.cpp.

References m_visibleAuras, and UpdateAuraForGroup().

Referenced by AuraApplication::_Remove().

◆ resetAttackTimer()

void Unit::resetAttackTimer ( WeaponAttackType type = WeaponAttackType::BASE_ATTACK)

Definition at line 436 of file Unit.cpp.

References GetAttackTime(), m_attackTimer, and m_modAttackSpeedPct.

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

◆ ResetRedirectThreat()

◆ RestoreDisplayId()

◆ RestoreFaction()

◆ RewardRage()

void Unit::RewardRage ( uint32 baseRage,
bool attacker )

◆ RollMeleeOutcomeAgainst() [1/2]

◆ RollMeleeOutcomeAgainst() [2/2]

◆ SelectNearbyTarget()

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

◆ SendChangeCurrentVictimOpcode()

◆ SendClearTarget()

◆ SendClearThreatListOpcode()

void Unit::SendClearThreatListOpcode ( ObjectGuid UnitGUID)

◆ SendDurabilityLoss()

void Unit::SendDurabilityLoss ( Player * receiver,
uint32 percent )

◆ SendEnergizeSpellLog()

◆ SendHealSpellLog()

void Unit::SendHealSpellLog ( ObjectGuid CasterGUID,
ObjectGuid TargetGUID,
uint32 SpellID,
uint32 Damage,
uint32 OverHeal,
uint32 Absorb,
bool critical = false )

◆ SendMeleeAttackStart()

◆ SendMeleeAttackStop()

◆ SendMissileCancel()

void Unit::SendMissileCancel ( uint32 spellId,
bool cancel = true )
protected

◆ SendMoveKnockBack()

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

◆ SendPeriodicAuraLog()

◆ SendPetActionFeedback()

void Unit::SendPetActionFeedback ( uint8 msg) const

-------—Pet responses methods--------------—

Definition at line 5833 of file Unit.cpp.

References GetOwner(), Player::GetSession(), Object::GetTypeId(), WorldSession::SendPacket(), SMSG_PET_ACTION_FEEDBACK, Object::ToPlayer(), TYPEID_PLAYER, and Unit().

◆ SendPetAIReaction()

◆ SendPetTalk()

◆ SendPlaySpellVisual()

void Unit::SendPlaySpellVisual ( uint32 SpellVisualId,
float x,
float y,
float z,
float orientation,
uint8 SpeedTime,
uint16 MissReason,
uint16 ReflectStatus )

◆ SendPlaySpellVisualKit()

void Unit::SendPlaySpellVisualKit ( uint32 SpellVisualId,
uint32 Duration,
int32 Type )

◆ SendRemoveFromThreatListOpcode()

◆ SendSetVehicleRecId()

◆ SendSpellDamageImmune()

◆ SendSpellDamageResist()

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

Definition at line 1946 of file Unit.cpp.

References Object::GetGUID(), WorldObject::SendMessageToSet(), SMSG_PROCRESIST, and Unit().

◆ SendSpellMiss()

◆ SendSpellNonMeleeDamageLog() [1/2]

◆ SendSpellNonMeleeDamageLog() [2/2]

void Unit::SendSpellNonMeleeDamageLog ( Unit * target,
uint32 SpellID,
uint32 Damage,
SpellSchoolMask damageSchoolMask,
uint32 AbsorbedDamage,
uint32 Resist,
bool PhysicalDamage,
uint32 Blocked,
bool CriticalHit = false )

◆ SendTeleportPacket()

◆ SendThreatListUpdate()

◆ SetAI()

◆ SetAnimTier()

void Unit::SetAnimTier ( AnimTier tier)

◆ SetArmor()

void Unit::SetArmor ( int32 val)
inline

◆ SetAttackTime()

◆ setAttackTimer()

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

Definition at line 1423 of file Unit.h.

References m_attackTimer.

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

◆ SetAuraStack()

◆ SetAutoattackOverrideRange()

void Unit::SetAutoattackOverrideRange ( uint32 range)
inline

Definition at line 2857 of file Unit.h.

References m_overrideAutoattackRange.

Referenced by AuraEffect::HandleAuraOverrideAutoattackWithSpell().

◆ SetAutoattackOverrideSpell()

void Unit::SetAutoattackOverrideSpell ( SpellInfo const * spellInfo)
inline

Definition at line 2853 of file Unit.h.

References m_overrideAutoattackSpellInfo.

Referenced by AuraEffect::HandleAuraOverrideAutoattackWithSpell().

◆ SetBaseWeaponDamage()

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

◆ SetCanDualWield()

void Unit::SetCanDualWield ( bool value)
inline

Definition at line 1441 of file Unit.h.

References m_canDualWield.

Referenced by Player::removeSpell().

◆ SetCanFly()

◆ SetCanModifyStats()

void Unit::SetCanModifyStats ( bool modifyStats)
inline

◆ SetCantProc()

void Unit::SetCantProc ( bool apply)

Definition at line 674 of file UnitProcEvent.cpp.

References ASSERT, and m_procDeep.

Referenced by ProcDamageAndSpellFor().

◆ SetCharm()

◆ SetCharmedBy()

bool Unit::SetCharmedBy ( Unit * charmer,
CharmType type,
AuraApplication const * aurApp = NULL )
Todo
CombatStop(true) may cause crash (interrupt spells)

Definition at line 6878 of file Unit.cpp.

References AddUnitState(), Creature::AI(), ASSERT, CastStop(), CHARM_TYPE_CHARM, CHARM_TYPE_CONVERT, CHARM_TYPE_POSSESS, CHARM_TYPE_VEHICLE, Player::CharmSpellInitialize(), CLASS_MAGE, CLASS_WARLOCK, CombatStop(), CREATURE_TYPE_DEMON, DeleteThreatList(), GetCharmerGUID(), GetCharmInfo(), getClass(), Creature::GetCreatureTemplate(), Object::GetEntry(), getFaction(), Object::GetGUIDLow(), WorldObject::GetMap(), GetMotionMaster(), AuraApplication::GetRemoveMode(), WorldObject::GetTransport(), Object::GetTypeId(), CharmInfo::InitCharmCreateSpells(), InitCharmInfo(), CharmInfo::InitPossessCreateSpells(), Player::isAFK(), Map::IsBattleground(), Object::IsInWorld(), IsVehicle(), MotionMaster::MoveIdle(), CreatureAI::OnCharmed(), Player::PossessSpellInitialize(), RemoveAurasByType(), SetCharm(), SetClass(), Player::SetClientControl(), setFaction(), Object::SetFlag(), Player::SetMover(), CharmInfo::SetPetNumber(), Object::SetUInt32Value(), Player::SetViewpoint(), SF_LOG_DEBUG, SF_LOG_FATAL, sObjectMgr, SPELL_AURA_MOUNTED, Player::StopCastingBindSight(), Player::StopCastingCharm(), Object::ToCreature(), Player::ToggleAFK(), Object::ToPlayer(), CreatureTemplate::type, TYPEID_PLAYER, TYPEID_UNIT, Unit(), UNIT_FIELD_FLAGS, UNIT_FIELD_PET_NAME_TIMESTAMP, UNIT_FLAG_DISABLE_MOVE, UNIT_FLAG_PLAYER_CONTROLLED, UNIT_STATE_POSSESSED, and Player::VehicleSpellInitialize().

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

◆ SetCharmerGUID()

void Unit::SetCharmerGUID ( uint64 owner)
inline

Definition at line 2075 of file Unit.h.

References Object::SetUInt64Value(), and UNIT_FIELD_CHARMED_BY.

Referenced by LuaUnit::SetCharmerGUID().

◆ SetClass()

◆ SetConfused()

◆ SetContestedPvP()

◆ SetControlled()

◆ SetCreateHealth()

◆ SetCreateMana()

void Unit::SetCreateMana ( uint32 val)
inline

◆ SetCreateStat()

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

Definition at line 2313 of file Unit.h.

References m_createStats.

Referenced by Player::GiveLevel(), Guardian::InitStatsForLevel(), and Player::InitStatsForLevel().

◆ SetCreatorGUID()

◆ SetCritterGUID()

void Unit::SetCritterGUID ( uint64 guid)
inline

Definition at line 2091 of file Unit.h.

References Object::SetUInt64Value(), and UNIT_FIELD_CRITTER.

Referenced by LuaUnit::SetCritterGUID(), and SetMinion().

◆ SetCurrentCastedSpell()

◆ setDeathState()

◆ SetDisableGravity()

◆ SetDisplayId()

◆ SetExtraUnitMovementFlags()

void Unit::SetExtraUnitMovementFlags ( uint16 f)
inline

Definition at line 2657 of file Unit.h.

References WorldObject::m_movementInfo.

Referenced by debug_commandscript::HandleDebugMoveflagsCommand().

◆ SetFacingTo()

◆ SetFacingToObject()

◆ setFaction()

void Unit::setFaction ( uint32 faction)
inline

Definition at line 1699 of file Unit.h.

References Object::SetUInt32Value(), and UNIT_FIELD_FACTION_TEMPLATE.

Referenced by BattlegroundAB::_NodeOccupied(), BattlegroundBFG::_NodeOccupied(), instance_uldaman::instance_uldaman_InstanceMapScript::ActivateIronaya(), boss_archaedas::boss_archaedasAI::ActivateMinion(), instance_uldaman::instance_uldaman_InstanceMapScript::ActivateStoneKeepers(), instance_uldaman::instance_uldaman_InstanceMapScript::ActivateWallMinions(), boss_vaelastrasz::boss_vaelAI::boss_vaelAI(), GameObject::CastSpell(), Spell::EffectSummonType(), BattlegroundEY::EventTeamCapturedPoint(), AuraEffect::HandleAuraModFaction(), BattlegroundIC::HandleCapturedNodes(), spell_q12096_q12092_dummy::spell_q12096_q12092_dummy_SpellScript::HandleDummy(), boss_illidan_stormrage::boss_illidan_stormrageAI::HandleFlightSequence(), misc_commandscript::HandleFreezeCommand(), modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcSetFactionIdCommand(), Minion::InitStats(), TempSummon::InitStats(), InitTamedPet(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustDied(), Pet::LoadPetFromDB(), npc_argent_valiant::npc_argent_valiantAI::npc_argent_valiantAI(), go_crystalline_tear::OnQuestAccept(), at_zumrah::OnTrigger(), BattlegroundAV::PopulateNode(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), RestoreFaction(), SetCharmedBy(), LuaUnit::SetFaction(), Player::setFactionForRace(), instance_uldaman::instance_uldaman_InstanceMapScript::SetFrozenState(), Player::SetGameMaster(), BattlegroundIC::SetupBattleground(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::SpawnNPC(), npc_frostworn_general::npc_frostworn_generalAI::SummonClones(), LuaUnit::SummonGuardian(), Spell::SummonGuardian(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), WorldObject::SummonTrigger(), boss_alar::boss_alarAI::UpdateAI(), boss_kaelthas::boss_kaelthasAI::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_thassarian::npc_thassarianAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), and Creature::UpdateEntry().

◆ SetFall()

◆ SetFeared()

◆ SetFeatherFall()

◆ SetFieldPowerType()

void Unit::SetFieldPowerType ( uint32 powerType)
inline

◆ SetFullHealth()

◆ SetGender()

◆ SetHealth()

void Unit::SetHealth ( uint32 val)

Definition at line 5162 of file Unit.cpp.

References DEAD, getDeathState(), Player::GetGroup(), Object::GetGUID(), GetMaxHealth(), GetOwner(), Object::GetTypeId(), GROUP_UPDATE_FLAG_CUR_HP, GROUP_UPDATE_FLAG_PET_CUR_HP, Object::IsInWorld(), JUST_DIED, WorldObject::SendMessageToSet(), Player::SetGroupUpdateFlag(), Object::SetUInt32Value(), SMSG_HEALTH_UPDATE, Object::ToCreature(), ToPet(), Object::ToPlayer(), TYPEID_PLAYER, Unit(), UNIT_FIELD_HEALTH, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().

Referenced by Player::BuildPlayerRepop(), boss_twinemperorsAI::DamageTaken(), DealDamage(), Spell::EffectSelfResurrect(), Spell::EffectSummonDeadPet(), Spell::EffectSummonType(), boss_malchezaar::boss_malchezaarAI::EnfeebleResetHealth(), AuraEffect::HandleAuraModIncreaseHealth(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModIncreaseMaxHealth(), spell_q28813_set_health_random::spell_q28813_set_health_random_SpellScript::HandleDummyEffect(), modify_commandscript::HandleModifyHPCommand(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcSetLevelCommand(), pet_commandscript::HandlePetCreateCommand(), spell_stinky_precious_decimate::spell_stinky_precious_decimate_SpellScript::HandleScript(), AuraEffect::HandleSpiritOfRedemption(), boss_twinemperorsAI::JustDied(), Creature::LoadCreatureFromDB(), Player::LoadFromDB(), Pet::LoadPetFromDB(), ModifyHealth(), PretendToDie(), Player::ProcessDelayedOperations(), Player::ResetAllPowers(), Player::ResurectUsingRequestData(), Player::ResurrectPlayer(), Creature::SelectLevel(), setDeathState(), SetFullHealth(), LuaUnit::SetHealth(), SetMaxHealth(), boss_twinemperorsAI::SpellHit(), boss_brutallus::boss_brutallusAI::StartIntro(), boss_blood_council_controller::boss_blood_council_controllerAI::UpdateAI(), and boss_freya::boss_freyaAI::UpdateAI().

◆ SetHover()

◆ SetInCombatState()

◆ SetInCombatWith()

◆ SetInFront()

◆ SetLastDamagedTime()

void Unit::SetLastDamagedTime ( time_t val)
inline

Definition at line 2844 of file Unit.h.

References _lastDamagedTime.

Referenced by DealDamage().

◆ SetLevel()

◆ SetMaxHealth()

◆ SetMaxPower()

◆ SetMinion()

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

◆ SetMinionGUID()

void Unit::SetMinionGUID ( uint64 guid)
inline

Definition at line 2067 of file Unit.h.

References Object::SetUInt64Value(), and UNIT_FIELD_SUMMON.

Referenced by GetFirstMinion(), and SetMinion().

◆ SetModifierValue()

void Unit::SetModifierValue ( UnitMods unitMod,
UnitModifierType modifierType,
float value )
inline

◆ SetNativeDisplayId()

◆ SetOwnerGUID()

◆ SetPetGUID()

void Unit::SetPetGUID ( uint64 guid)
inline

Definition at line 2083 of file Unit.h.

References m_SummonSlot, and SUMMON_SLOT_PET.

Referenced by GetGuardianPet(), SetMinion(), LuaUnit::SetMinionGUID(), and LuaUnit::SetPetGUID().

◆ SetPhased()

◆ SetPhaseMask()

◆ SetPower()

void Unit::SetPower ( Powers power,
int32 val )

◆ setPowerType()

◆ SetPvP()

void Unit::SetPvP ( bool state)

◆ SetRace()

void Unit::SetRace ( uint8 race)
inline

◆ SetRedirectThreat()

void Unit::SetRedirectThreat ( uint64 guid,
uint32 pct )
inline

Definition at line 2716 of file Unit.h.

References _redirectThreadInfo.

Referenced by ResetRedirectThreat().

◆ SetResistance()

◆ SetResistanceBuffMods()

void Unit::SetResistanceBuffMods ( SpellSchools school,
bool positive,
float val )

◆ SetRooted()

◆ SetShapeshiftForm()

void Unit::SetShapeshiftForm ( ShapeshiftForm form)

◆ SetSheath()

virtual void Unit::SetSheath ( SheathState sheathed)
inlinevirtual

◆ SetSpeed()

void Unit::SetSpeed ( UnitMoveType mtype,
float rate,
bool forced = false )

Definition at line 4318 of file Unit.cpp.

References Movement::ExtraMovementStatusElement::Data, Movement::ExtraMovementStatusElement::floatData, GetSpeed(), Object::GetTypeId(), IsInCombat(), Object::IsInWorld(), Player::m_forced_speed_changes, m_speed_rate, MAX_MOVE_TYPE, MSEExtraFloat, propagateSpeedChange(), Movement::PacketSender::Send(), SMSG_MOVE_SET_FLIGHT_BACK_SPEED, SMSG_MOVE_SET_FLIGHT_SPEED, SMSG_MOVE_SET_PITCH_RATE, SMSG_MOVE_SET_RUN_BACK_SPEED, SMSG_MOVE_SET_RUN_SPEED, SMSG_MOVE_SET_SWIM_BACK_SPEED, SMSG_MOVE_SET_SWIM_SPEED, SMSG_MOVE_SET_TURN_RATE, SMSG_MOVE_SET_WALK_SPEED, SMSG_MOVE_UPDATE_FLIGHT_BACK_SPEED, SMSG_MOVE_UPDATE_FLIGHT_SPEED, SMSG_MOVE_UPDATE_PITCH_RATE, SMSG_MOVE_UPDATE_RUN_BACK_SPEED, SMSG_MOVE_UPDATE_RUN_SPEED, SMSG_MOVE_UPDATE_SWIM_BACK_SPEED, SMSG_MOVE_UPDATE_SWIM_SPEED, SMSG_MOVE_UPDATE_TURN_RATE, SMSG_MOVE_UPDATE_WALK_SPEED, SMSG_SPLINE_MOVE_SET_FLIGHT_BACK_SPEED, SMSG_SPLINE_MOVE_SET_FLIGHT_SPEED, SMSG_SPLINE_MOVE_SET_PITCH_RATE, SMSG_SPLINE_MOVE_SET_RUN_BACK_SPEED, SMSG_SPLINE_MOVE_SET_RUN_SPEED, SMSG_SPLINE_MOVE_SET_SWIM_BACK_SPEED, SMSG_SPLINE_MOVE_SET_SWIM_SPEED, SMSG_SPLINE_MOVE_SET_TURN_RATE, SMSG_SPLINE_MOVE_SET_WALK_SPEED, Object::ToPlayer(), and TYPEID_PLAYER.

Referenced by Battleground::AddCreature(), boss_illidan_stormrage::boss_illidan_stormrageAI::CastEyeBlast(), ClearInCombat(), modify_commandscript::HandleModifyASpeedCommand(), modify_commandscript::HandleModifyBWalkCommand(), modify_commandscript::HandleModifyFlyCommand(), modify_commandscript::HandleModifySpeedCommand(), modify_commandscript::HandleModifySwimCommand(), Creature::InitEntry(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), npc_ancestral_wolf::npc_ancestral_wolfAI::npc_ancestral_wolfAI(), SetMinion(), LuaUnit::SetSpeed(), Battlefield::SpawnCreature(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), and UpdateSpeed().

◆ SetStandFlags()

void Unit::SetStandFlags ( uint8 flags)
inline

Definition at line 1733 of file Unit.h.

References Object::SetByteFlag(), and UNIT_FIELD_ANIM_TIER.

Referenced by AuraEffect::HandleModStealth().

◆ SetStandState()

◆ SetStat()

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

◆ SetStunned()

◆ SetSwim()

◆ SetTarget()

virtual void Unit::SetTarget ( uint64 )
pure virtual

◆ setTransForm()

void Unit::setTransForm ( uint32 spellid)
inline

Definition at line 2504 of file Unit.h.

References m_transform.

Referenced by AuraEffect::HandleAuraTransform().

◆ SetUnitMovementFlags()

void Unit::SetUnitMovementFlags ( uint32 f)
inline

◆ SetVehicle()

void Unit::SetVehicle ( Vehicle * vehicle)
inline

Definition at line 2747 of file Unit.h.

References m_vehicle.

Referenced by Vehicle::RemovePassenger().

◆ SetVisible()

◆ SetVisibleAura()

void Unit::SetVisibleAura ( uint8 slot,
AuraApplication * aur )

Definition at line 500 of file Unit.cpp.

References m_visibleAuras, and UpdateAuraForGroup().

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

◆ SetWalk()

◆ SetWaterWalking()

◆ SpellBaseDamageBonusDone()

◆ SpellBaseDamageBonusTaken()

◆ SpellBaseHealingBonusDone()

◆ SpellBaseHealingBonusTaken()

int32 Unit::SpellBaseHealingBonusTaken ( SpellSchoolMask schoolMask) const

Definition at line 3403 of file Unit.cpp.

References GetAuraEffectsByType(), and SPELL_AURA_MOD_HEALING.

Referenced by SpellHealingBonusTaken().

◆ SpellCriticalDamageBonus()

◆ SpellCriticalHealingBonus()

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

◆ SpellDamageBonusDone()

uint32 Unit::SpellDamageBonusDone ( Unit * victim,
SpellInfo const * spellProto,
uint32 pdamage,
DamageEffectType damagetype,
uint32 stack = 1 ) const

Definition at line 53 of file UnitCombatBonus.cpp.

References AddPct(), SpellBonusEntry::ap_bonus, SpellBonusEntry::ap_dot_bonus, SpellInfo::AttributesEx3, SpellInfo::AttributesEx6, AURA_STATE_CONFLAGRATE, AURA_STATE_FROZEN, BASE_ATTACK, CalculateDefaultCoefficient(), CalculateLevelPenalty(), DIRECT_DAMAGE, SpellBonusEntry::direct_damage, SpellInfo::DmgClass, DOT, SpellBonusEntry::dot_damage, SpellInfo::EquippedItemClass, GetAuraEffect(), GetAuraEffectsByType(), GetCreatureTypeMask(), GetDoTsByCaster(), Object::GetGUID(), GetOwner(), GetOwnerGUID(), SpellInfo::GetSchoolMask(), Creature::GetSpellDamageMod(), GetSpellModOwner(), GetTotalAttackPowerValue(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), GetTotalAuraModifierByMiscValue(), Object::GetTypeId(), HasAura(), HasAuraState(), HasAuraWithMechanic(), HasUnitTypeMask(), SpellInfo::Id, IsPet(), SpellInfo::IsRangedWeaponSpell(), IsTotem(), SpellInfo::Mechanic, MECHANIC_SLOW_ATTACK, MECHANIC_SNARE, RANGED_ATTACK, SPELL_ATTR3_NO_DONE_BONUS, SPELL_ATTR5_SPECIAL_ITEM_CLASS_CHECK, SPELL_ATTR6_NO_DONE_PCT_DAMAGE_MODS, SPELL_AURA_DUMMY, SPELL_AURA_MELEE_ATTACK_POWER_ATTACKER_BONUS, 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_FLAT_SPELL_DAMAGE_VERSUS, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_AURA_PERIODIC_DAMAGE, SPELL_AURA_RANGED_ATTACK_POWER_ATTACKER_BONUS, SPELL_DAMAGE_CLASS_MELEE, SPELL_SCHOOL_MASK_ARCANE, SpellBaseDamageBonusDone(), SPELLFAMILY_DRUID, SPELLFAMILY_MAGE, SPELLFAMILY_PRIEST, SPELLFAMILY_WARLOCK, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, SPELLMOD_BONUS_MULTIPLIER, SPELLMOD_DAMAGE, SPELLMOD_DOT, sSpellMgr, Object::ToCreature(), Object::ToPlayer(), TYPEID_UNIT, Unit(), and UNIT_MASK_GUARDIAN.

Referenced by Aura::HandleAuraSpecificMods(), spell_monk_diffuse_magic::spell_monk_diffuse_magic_SpellScript::HandleOnHit(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandleProcTriggerDamageAuraProc(), and SpellNonMeleeDamageLog().

◆ SpellDamageBonusTaken()

◆ SpellHealingBonusDone()

◆ SpellHealingBonusTaken()

◆ SpellHitResult()

◆ SpellNonMeleeDamageLog()

◆ StartReactiveTimer()

void Unit::StartReactiveTimer ( ReactiveType reactive)
inline

Definition at line 2690 of file Unit.h.

References m_reactiveTimer, and REACTIVE_TIMER_START.

Referenced by ProcDamageAndSpellFor().

◆ StopAttackFaction()

◆ StopMoving()

◆ TauntApply()

◆ TauntFadeOut()

◆ ToPet() [1/2]

Pet * Unit::ToPet ( )
inline

Definition at line 2803 of file Unit.h.

References IsPet().

Referenced by spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArcaneResistanceAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateArcaneResistanceAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArmorAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateArmorAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateAttackPowerAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateAttackPowerAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateDamageDoneAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateDamageDoneAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateFireResistanceAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateFireResistanceAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateFrostResistanceAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateFrostResistanceAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateIntellectAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateNatureResistanceAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateNatureResistanceAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateShadowResistanceAmount(), spell_warl_pet_scaling_04::spell_warl_pet_scaling_04_AuraScript::CalculateShadowResistanceAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateStaminaAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateStaminaAmount(), DealDamage(), AuraEffect::HandleModPossessPet(), WorldSession::HandlePetCastSpellOpcode(), reset_commandscript::HandleResetTalentsCommand(), ModifyAuraState(), SetHealth(), SetMaxHealth(), SetMaxPower(), SetPower(), and setPowerType().

◆ ToPet() [2/2]

Pet const * Unit::ToPet ( ) const
inline

Definition at line 2807 of file Unit.h.

References IsPet().

◆ ToTempSummon() [1/2]

◆ ToTempSummon() [2/2]

TempSummon const * Unit::ToTempSummon ( ) const
inline

Definition at line 2825 of file Unit.h.

References IsSummon().

◆ ToTotem() [1/2]

Totem * Unit::ToTotem ( )
inline

◆ ToTotem() [2/2]

Totem const * Unit::ToTotem ( ) const
inline

Definition at line 2816 of file Unit.h.

References IsTotem().

◆ TrackGameObject()

void Unit::TrackGameObject ( GameObject * gameObj)

Definition at line 1663 of file Unit.cpp.

References m_gameObj.

◆ TriggerAurasProcOnEvent() [1/3]

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

◆ TriggerAurasProcOnEvent() [2/3]

◆ TriggerAurasProcOnEvent() [3/3]

void Unit::TriggerAurasProcOnEvent ( ProcEventInfo & eventInfo,
AuraApplicationList & procAuras )

Definition at line 665 of file UnitProcEvent.cpp.

◆ UnsummonAllTotems()

void Unit::UnsummonAllTotems ( )

◆ Update()

◆ UpdateAllStats()

virtual bool Unit::UpdateAllStats ( )
pure virtual

Implemented in Creature, Guardian, Player, and Totem.

◆ UpdateArmor()

virtual void Unit::UpdateArmor ( )
pure virtual

Implemented in Creature, Guardian, Player, and Totem.

Referenced by HandleStatModifier().

◆ UpdateAttackPowerAndDamage()

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

Implemented in Creature, Guardian, Player, and Totem.

Referenced by HandleStatModifier().

◆ UpdateAuraForGroup()

◆ UpdateCharmAI()

void Unit::UpdateCharmAI ( )

◆ UpdateDamagePhysical()

virtual void Unit::UpdateDamagePhysical ( WeaponAttackType attType)
pure virtual

◆ UpdateHeight()

void Unit::UpdateHeight ( float newZ)

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

Definition at line 8749 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 HandleStatModifier().

◆ UpdateMaxPower()

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

Implemented in Creature, Guardian, Player, and Totem.

Referenced by HandleStatModifier().

◆ UpdateObjectVisibility()

◆ UpdateOrientation()

void Unit::UpdateOrientation ( float orientation)

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

Definition at line 8741 of file Unit.cpp.

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

Referenced by UpdatePosition().

◆ UpdatePosition() [1/2]

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

◆ UpdatePosition() [2/2]

◆ UpdateReactives()

◆ UpdateResistances()

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

Implemented in Creature, Guardian, Player, and Totem.

Referenced by HandleStatModifier().

◆ UpdateSpeed()

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

Definition at line 4173 of file Unit.cpp.

References AddPct(), baseMoveSpeed, GetCharmer(), GetCharmerOrOwner(), Creature::GetCreatureTemplate(), WorldObject::GetDistance(), GetMaxNegativeAuraModifier(), GetMaxPositiveAuraModifier(), GetSpeedRate(), GetTotalAuraModifier(), GetTotalAuraMultiplier(), Object::GetTypeId(), GetVehicle(), GetVehicleBase(), IsControlledByPlayer(), IsGuardian(), IsInCombat(), IsMounted(), IsPet(), MOVE_FLIGHT, MOVE_FLIGHT_BACK, MOVE_RUN, MOVE_RUN_BACK, MOVE_SWIM, MOVE_SWIM_BACK, MOVE_WALK, playerBaseMoveSpeed, SetSpeed(), SF_LOG_ERROR, 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, Object::ToCreature(), TYPEID_PLAYER, TYPEID_UNIT, Unit(), and UpdateSpeed().

Referenced by FollowMovementGenerator< T >::_updateSpeed(), AttackStop(), Creature::DoFleeToGetAssistance(), AuraEffect::HandleAuraModDecreaseSpeed(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), AuraEffect::HandleAuraModIncreaseSpeed(), AuraEffect::HandleAuraModIncreaseSwimSpeed(), AuraEffect::HandleAuraModUseNormalSpeed(), Creature::setDeathState(), SetInCombatState(), and UpdateSpeed().

◆ UpdateSplineMovement()

void Unit::UpdateSplineMovement ( uint32 t_diff)
private

Definition at line 366 of file Unit.cpp.

References DisableSpline(), m_movesplineTimer, movespline, and UpdateSplinePosition().

Referenced by Update().

◆ UpdateSplinePosition()

◆ UpdateStats()

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

Implemented in Creature, Guardian, Player, and Totem.

Referenced by HandleStatModifier().

◆ UpdateUnderwaterState()

◆ WriteMovementInfo()

void Unit::WriteMovementInfo ( WorldPacket & data,
Movement::ExtraMovementStatusElement * extras = NULL )

Definition at line 8407 of file Unit.cpp.

References ASSERT, MovementInfo::JumpInfo::cosAngle, MovementInfo::JumpInfo::fallTime, ByteBuffer::FlushBits(), GetExtraUnitMovementFlags(), Object::GetGUID(), GetMovementStatusElementsSequence(), WorldPacket::GetOpcode(), GetOpcodeNameForLogging(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetTransGUID(), WorldObject::GetTransOffsetO(), WorldObject::GetTransOffsetX(), WorldObject::GetTransOffsetY(), WorldObject::GetTransOffsetZ(), WorldObject::GetTransSeat(), WorldObject::GetTransTime(), Object::GetUInt32Value(), GetUnitMovementFlags(), HasExtraUnitMovementFlag(), HasUnitMovementFlag(), IsSplineEnabled(), MovementInfo::jump, m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG2_ALWAYS_ALLOW_PITCHING, MOVEMENTFLAG_FALLING, MOVEMENTFLAG_FLYING, MOVEMENTFLAG_SPLINE_ELEVATION, MOVEMENTFLAG_SWIMMING, movespline, MSECount, MSECounter, MSEEnd, MSEExtraElement, MSEFallCosAngle, MSEFallHorizontalSpeed, MSEFallSinAngle, MSEFallTime, MSEFallVerticalSpeed, MSEFlushBits, MSEForces, MSEForcesCount, MSEGuidByte0, MSEGuidByte1, MSEGuidByte2, MSEGuidByte3, MSEGuidByte4, MSEGuidByte5, MSEGuidByte6, MSEGuidByte7, MSEHasCounter, MSEHasFallData, MSEHasFallDirection, MSEHasGuidByte0, MSEHasGuidByte1, MSEHasGuidByte2, MSEHasGuidByte3, MSEHasGuidByte4, MSEHasGuidByte5, MSEHasGuidByte6, MSEHasGuidByte7, MSEHasMountDisplayId, MSEHasMovementFlags, MSEHasMovementFlags2, MSEHasOrientation, MSEHasPitch, MSEHasSpline, MSEHasSplineElevation, MSEHasTimestamp, MSEHasTransportData, MSEHasTransportGuidByte0, MSEHasTransportGuidByte1, MSEHasTransportGuidByte2, MSEHasTransportGuidByte3, MSEHasTransportGuidByte4, MSEHasTransportGuidByte5, MSEHasTransportGuidByte6, MSEHasTransportGuidByte7, MSEHasTransportTime2, MSEHasTransportTime3, MSEHasTransportVehicleId, MSEMountDisplayIdWithCheck, MSEMountDisplayIdWithoutCheck, MSEMovementFlags, MSEMovementFlags2, MSEOneBit, MSEOrientation, MSEOrientationWithoutCheck, MSEPitch, MSEPositionX, MSEPositionY, MSEPositionZ, MSESplineElevation, MSETimestamp, MSETransportGuidByte0, MSETransportGuidByte1, MSETransportGuidByte2, MSETransportGuidByte3, MSETransportGuidByte4, MSETransportGuidByte5, MSETransportGuidByte6, MSETransportGuidByte7, MSETransportOrientation, MSETransportPositionX, MSETransportPositionY, MSETransportPositionZ, MSETransportSeat, MSETransportTime, MSETransportTime2, MSETransportTime3, MSETransportVehicleId, MSEUintCount, MSEZeroBit, MovementInfo::pitch, Movement::PrintInvalidSequenceElement(), SF_LOG_ERROR, MovementInfo::JumpInfo::sinAngle, MovementInfo::splineElevation, MovementInfo::time, MovementInfo::TransportInfo::time2, MovementInfo::TransportInfo::time3, MovementInfo::transport, UNIT_FIELD_MOUNT_DISPLAY_ID, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), ByteBuffer::WriteByteSeq(), Movement::ExtraMovementStatusElement::WriteNextElement(), MovementInfo::JumpInfo::xyspeed, and MovementInfo::JumpInfo::zspeed.

Referenced by debug_commandscript::HandleDebugMoveflagsCommand(), WorldSession::HandleMovementOpcodes(), and SendTeleportPacket().

◆ VehicleJoinEvent

friend class VehicleJoinEvent
friend

Definition at line 2734 of file Unit.h.

References VehicleJoinEvent.

Referenced by VehicleJoinEvent.

Member Data Documentation

◆ _isWalkingBeforeCharm

bool Unit::_isWalkingBeforeCharm
private

Definition at line 2986 of file Unit.h.

Referenced by SetCharm(), and Unit().

◆ _lastDamagedTime

time_t Unit::_lastDamagedTime
private

Definition at line 2988 of file Unit.h.

Referenced by GetLastDamagedTime(), SetLastDamagedTime(), and Unit().

◆ _lastLiquid

LiquidTypeEntry const* Unit::_lastLiquid
protected

◆ _redirectThreadInfo

RedirectThreatInfo Unit::_redirectThreadInfo
private

◆ i_AI

UnitAI* Unit::i_AI
protected

◆ i_disabledAI

UnitAI * Unit::i_disabledAI
protected

Definition at line 2867 of file Unit.h.

Referenced by Unit(), and UpdateCharmAI().

◆ i_motionMaster

◆ IsAIEnabled

◆ LastCharmerGUID

uint64 Unit::LastCharmerGUID

Definition at line 2736 of file Unit.h.

Referenced by RemoveCharmedBy(), Unit(), and Creature::Update().

◆ m_appliedAuras

◆ m_attackers

◆ m_attacking

Unit* Unit::m_attacking
protected

Definition at line 2881 of file Unit.h.

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

◆ m_attackTimer

◆ m_auraModifiersGroup

◆ m_auraStateAuras

AuraStateAurasMap Unit::m_auraStateAuras
protected

◆ m_auraUpdateIterator

AuraMap::iterator Unit::m_auraUpdateIterator
protected

Definition at line 2902 of file Unit.h.

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

◆ m_AutoRepeatFirstCast

bool Unit::m_AutoRepeatFirstCast
protected

Definition at line 2874 of file Unit.h.

Referenced by _UpdateAutoRepeatSpell(), SetCurrentCastedSpell(), and Unit().

◆ m_baseSpellCritChance

int32 Unit::m_baseSpellCritChance

◆ m_canDualWield

bool Unit::m_canDualWield

◆ m_canModifyStats

bool Unit::m_canModifyStats
protected

Definition at line 2913 of file Unit.h.

Referenced by CanModifyStats(), SetCanModifyStats(), and Unit().

◆ m_charmInfo

◆ m_cleanupDone

bool Unit::m_cleanupDone
private

Definition at line 2983 of file Unit.h.

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

◆ m_CombatTimer

uint32 Unit::m_CombatTimer
private

Definition at line 2970 of file Unit.h.

Referenced by ClearInCombat(), GetCombatTimer(), SetInCombatState(), Unit(), and Update().

◆ m_ComboPointHolders

ComboPointHolderSet Unit::m_ComboPointHolders
private

Definition at line 2979 of file Unit.h.

Referenced by AddComboPointHolder(), ClearComboPointHolders(), and RemoveComboPointHolder().

◆ m_Controlled

◆ m_ControlledByPlayer

bool Unit::m_ControlledByPlayer

◆ m_createStats

float Unit::m_createStats[MAX_STATS]
protected

Definition at line 2878 of file Unit.h.

Referenced by GetCreateStat(), SetCreateStat(), and Unit().

◆ m_currentSpells

◆ m_deathState

◆ m_Diminishing

Diminishing Unit::m_Diminishing
private

Definition at line 2973 of file Unit.h.

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

◆ m_duringRemoveFromWorld

bool Unit::m_duringRemoveFromWorld
private

Definition at line 2984 of file Unit.h.

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

◆ m_dynObj

DynObjectList Unit::m_dynObj
protected

◆ m_Events

◆ m_extraAttacks

◆ m_FollowingRefManager

FollowerRefManager Unit::m_FollowingRefManager
private

Definition at line 2977 of file Unit.h.

Referenced by addFollower().

◆ m_gameObj

◆ m_HostileRefManager

HostileRefManager Unit::m_HostileRefManager
private

Definition at line 2975 of file Unit.h.

Referenced by addHatedBy(), getHostileRefManager(), Unit(), and Update().

◆ m_interruptableAuras

◆ m_interruptMask

◆ m_isSorted

bool Unit::m_isSorted
protected

Definition at line 2892 of file Unit.h.

Referenced by Unit().

◆ m_lastSanctuaryTime

uint32 Unit::m_lastSanctuaryTime

Definition at line 2446 of file Unit.h.

Referenced by Spell::DoAllEffectOnTarget(), and Unit().

◆ m_modAttackSpeedPct

float Unit::m_modAttackSpeedPct[3]

◆ m_modAuras

AuraEffectList Unit::m_modAuras[TOTAL_AURAS]
protected

◆ m_modMeleeHitChance

float Unit::m_modMeleeHitChance

◆ m_modRangedHitChance

float Unit::m_modRangedHitChance

◆ m_modSpellHitChance

float Unit::m_modSpellHitChance

◆ m_movedPlayer

Player* Unit::m_movedPlayer

◆ m_movementCounter

uint32 Unit::m_movementCounter
protected

Incrementing counter used in movement packets.

Definition at line 2966 of file Unit.h.

Referenced by GetMovementCounter(), SendSetVehicleRecId(), Player::SendTimeSync(), Unit(), and WriteMovementInfo().

◆ m_movesplineTimer

TimeTrackerSmall Unit::m_movesplineTimer
private

Definition at line 2971 of file Unit.h.

Referenced by UpdateSplineMovement(), and UpdateSplinePosition().

◆ m_ObjectSlot

uint64 Unit::m_ObjectSlot[MAX_GAMEOBJECT_SLOT]

Definition at line 2375 of file Unit.h.

Referenced by RemoveGameObject(), ReplaceSurveyObjectSlot(), and Unit().

◆ m_overrideAutoattackRange

uint32 Unit::m_overrideAutoattackRange
protected

Definition at line 2897 of file Unit.h.

Referenced by SetAutoattackOverrideRange(), Unit(), and Player::Update().

◆ m_overrideAutoattackSpellInfo

SpellInfo const* Unit::m_overrideAutoattackSpellInfo
protected

Definition at line 2896 of file Unit.h.

Referenced by AttackerStateUpdate(), SetAutoattackOverrideSpell(), Unit(), and Player::Update().

◆ m_ownedAuras

◆ m_petAuras

PetAuraSet Unit::m_petAuras

Definition at line 2708 of file Unit.h.

Referenced by AddPetAura(), Pet::CastPetAuras(), Pet::IsPetAura(), and RemovePetAura().

◆ m_procDeep

int32 Unit::m_procDeep
protected

Definition at line 2885 of file Unit.h.

Referenced by CanProc(), SetCantProc(), Unit(), and Update().

◆ m_reactiveTimer

uint32 Unit::m_reactiveTimer[MAX_REACTIVE]
protected

Definition at line 2927 of file Unit.h.

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

◆ m_regenTimer

uint32 Unit::m_regenTimer
protected

◆ m_removedAuras

AuraList Unit::m_removedAuras
protected

Definition at line 2901 of file Unit.h.

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

◆ m_removedAurasCount

uint32 Unit::m_removedAurasCount
protected

◆ m_scAuras

AuraList Unit::m_scAuras
protected

Definition at line 2906 of file Unit.h.

Referenced by GetSingleCastAuras(), and GetSingleCastAuras().

◆ m_sharedVision

SharedVisionList Unit::m_sharedVision
protected

◆ m_speed_rate

float Unit::m_speed_rate[MAX_MOVE_TYPE]
protected

Definition at line 2916 of file Unit.h.

Referenced by GetSpeed(), GetSpeedRate(), SetMinion(), SetSpeed(), and Unit().

◆ m_spellImmune

◆ m_state

uint32 Unit::m_state
private

Definition at line 2969 of file Unit.h.

Referenced by AddUnitState(), ClearUnitState(), HasUnitState(), and Unit().

◆ m_SummonSlot

◆ m_ThreatManager

ThreatManager Unit::m_ThreatManager
protected

◆ m_threatModifier

float Unit::m_threatModifier[MAX_SPELL_SCHOOL]

Definition at line 2392 of file Unit.h.

Referenced by ApplyTotalThreatModifier(), AuraEffect::HandleModThreat(), and Unit().

◆ m_transform

uint32 Unit::m_transform
protected

Definition at line 2893 of file Unit.h.

Referenced by getTransForm(), setTransForm(), and Unit().

◆ m_unitTypeMask

◆ m_vehicle

◆ m_vehicleKit

Vehicle* Unit::m_vehicleKit
protected

Definition at line 2933 of file Unit.h.

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

◆ m_visibleAuras

VisibleAuraMap Unit::m_visibleAuras
protected

◆ m_weaponDamage

float Unit::m_weaponDamage[uint8(WeaponAttackType::MAX_ATTACK)][2]
protected

Definition at line 2912 of file Unit.h.

Referenced by GetWeaponDamageRange(), SetBaseWeaponDamage(), and Unit().

◆ movespline

◆ NeedChangeAI

bool Unit::NeedChangeAI

Definition at line 2735 of file Unit.h.

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


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