![]() |
TrinityCore
|
#include <Unit.h>
Inheritance diagram for Unit:Public Types | |
| typedef std::set< Unit * > | AttackerSet |
| typedef std::set< Unit * > | ControlList |
| typedef std::vector< Unit * > | UnitVector |
| typedef std::multimap< uint32, Aura * > | AuraMap |
| typedef std::pair< AuraMap::const_iterator, AuraMap::const_iterator > | AuraMapBounds |
| typedef std::pair< AuraMap::iterator, AuraMap::iterator > | AuraMapBoundsNonConst |
| typedef std::multimap< uint32, AuraApplication * > | AuraApplicationMap |
| typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > | AuraApplicationMapBounds |
| typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > | AuraApplicationMapBoundsNonConst |
| typedef std::multimap< AuraStateType, AuraApplication * > | AuraStateAurasMap |
| typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > | AuraStateAurasMapBounds |
| typedef std::list< AuraEffect * > | AuraEffectList |
| typedef std::list< Aura * > | AuraList |
| typedef std::list< AuraApplication * > | AuraApplicationList |
| typedef std::array< DiminishingReturn, DIMINISHING_MAX > | Diminishing |
| typedef std::vector< std::pair< uint8, AuraApplication * > > | AuraApplicationProcContainer |
| typedef std::map< uint8, AuraApplication * > | VisibleAuraMap |
Public Member Functions | |
| virtual | ~Unit () |
| bool | IsAIEnabled () const |
| void | AIUpdateTick (uint32 diff) |
| UnitAI * | GetAI () const |
| void | ScheduleAIChange () |
| void | PushAI (UnitAI *newAI) |
| bool | PopAI () |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| void | CleanupBeforeRemoveFromMap (bool finalCleanup) |
| void | CleanupsBeforeDelete (bool finalCleanup=true) override |
| uint32 | GetDynamicFlags () const override |
| void | ReplaceAllDynamicFlags (uint32 flag) override |
| virtual bool | IsAffectedByDiminishingReturns () const |
| DiminishingLevels | GetDiminishing (DiminishingGroup group) const |
| void | IncrDiminishing (SpellInfo const *auraSpellInfo, bool triggered) |
| bool | ApplyDiminishingToDuration (SpellInfo const *auraSpellInfo, bool triggered, int32 &duration, WorldObject *caster, DiminishingLevels previousLevel) const |
| void | ApplyDiminishingAura (DiminishingGroup group, bool apply) |
| void | ClearDiminishings () |
| virtual void | Update (uint32 time) override |
| void | Heartbeat () override |
| void | setAttackTimer (WeaponAttackType type, uint32 time) |
| void | resetAttackTimer (WeaponAttackType type=BASE_ATTACK) |
| uint32 | getAttackTimer (WeaponAttackType type) const |
| bool | isAttackReady (WeaponAttackType type=BASE_ATTACK) const |
| bool | haveOffhandWeapon () const |
| bool | CanDualWield () const |
| virtual void | SetCanDualWield (bool value) |
| float | GetCombatReach () const override |
| void | SetCombatReach (float combatReach) |
| float | GetBoundingRadius () const |
| void | SetBoundingRadius (float boundingRadius) |
| bool | IsWithinCombatRange (Unit const *obj, float dist2compare) const |
| bool | IsWithinMeleeRange (Unit const *obj) const |
| bool | IsWithinMeleeRangeAt (Position const &pos, Unit const *obj) const |
| float | GetMeleeRange (Unit const *target) const |
| virtual SpellSchoolMask | GetMeleeDamageSchoolMask (WeaponAttackType attackType=BASE_ATTACK, uint8 damageIndex=0) const =0 |
| void | _addAttacker (Unit *pAttacker) |
| void | _removeAttacker (Unit *pAttacker) |
| Unit * | getAttackerForHelper () const |
| bool | Attack (Unit *victim, bool meleeAttack) |
| void | CastStop (uint32 except_spellid=0) |
| bool | AttackStop () |
| void | RemoveAllAttackers () |
| AttackerSet const & | getAttackers () const |
| bool | isAttackingPlayer () const |
| Unit * | GetVictim () const |
| Unit * | EnsureVictim () const |
| void | ValidateAttackersAndOwnTarget () |
| void | CombatStop (bool includingCast=false, bool mutualPvP=true) |
| void | CombatStopWithPets (bool includingCast=false) |
| void | StopAttackFaction (uint32 faction_id) |
| Unit * | SelectNearbyTarget (Unit *exclude=nullptr, float dist=NOMINAL_MELEE_RANGE) const |
| void | SendMeleeAttackStop (Unit const *victim=nullptr) const |
| void | SendMeleeAttackStart (Unit *victim) |
| void | AddUnitState (uint32 f) |
| bool | HasUnitState (const uint32 f) const |
| void | ClearUnitState (uint32 f) |
| bool | CanFreeMove () const |
| uint32 | HasUnitTypeMask (uint32 mask) const |
| void | AddUnitTypeMask (uint32 mask) |
| bool | IsSummon () const |
| bool | IsGuardian () const |
| bool | IsPet () const |
| bool | IsHunterPet () const |
| bool | IsTotem () const |
| bool | IsVehicle () const |
| uint8 | GetLevel () const |
| uint8 | GetLevelForTarget (WorldObject const *) const override |
| void | SetLevel (uint8 lvl, bool sendUpdate=true) |
| uint8 | GetRace () const |
| void | SetRace (uint8 race) |
| uint32 | GetRaceMask () const |
| uint8 | GetClass () const |
| void | SetClass (uint8 classId) |
| uint32 | GetClassMask () const |
| Gender | GetGender () const |
| void | SetGender (Gender gender) |
| virtual Gender | GetNativeGender () const |
| virtual void | SetNativeGender (Gender gender) |
| float | GetStat (Stats stat) const |
| void | SetStat (Stats stat, int32 val) |
| uint32 | GetArmor () const |
| void | SetArmor (int32 val) |
| int32 | GetResistance (SpellSchools school) const |
| int32 | GetResistance (SpellSchoolMask mask) const |
| void | SetResistance (SpellSchools school, int32 val) |
| uint32 | GetHealth () const |
| uint32 | GetMaxHealth () const |
| bool | IsFullHealth () const |
| bool | HealthBelowPct (int32 pct) const |
| bool | HealthBelowPctDamaged (int32 pct, uint32 damage) const |
| bool | HealthAbovePct (int32 pct) const |
| bool | HealthAbovePctHealed (int32 pct, uint32 heal) const |
| float | GetHealthPct () const |
| uint32 | CountPctFromMaxHealth (int32 pct) const |
| uint32 | CountPctFromCurHealth (int32 pct) const |
| void | SetHealth (uint32 val) |
| void | SetMaxHealth (uint32 val) |
| void | SetFullHealth () |
| int32 | ModifyHealth (int32 val) |
| int32 | GetHealthGain (int32 dVal) |
| Powers | GetPowerType () const |
| void | SetPowerType (Powers power, bool sendUpdate=true) |
| void | UpdateDisplayPower () |
| uint32 | GetPower (Powers power) const |
| int32 | GetMinPower (Powers) const |
| uint32 | GetMaxPower (Powers power) const |
| float | GetPowerPct (Powers power) const |
| int32 | CountPctFromMaxPower (Powers power, int32 pct) const |
| void | SetPower (Powers power, uint32 val, bool withPowerUpdate=true, bool force=false) |
| void | SetMaxPower (Powers power, uint32 val) |
| void | SetFullPower (Powers power) |
| int32 | ModifyPower (Powers power, int32 val, bool withPowerUpdate=true) |
| uint32 | GetAttackTime (WeaponAttackType att) const |
| void | SetAttackTime (WeaponAttackType att, uint32 val) |
| void | ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply) |
| void | ApplyCastTimePercentMod (float val, bool apply) |
| void | SetModCastingSpeed (float castingSpeed) |
| UnitFlags | GetUnitFlags () const |
| bool | HasUnitFlag (UnitFlags flags) const |
| void | SetUnitFlag (UnitFlags flags) |
| void | RemoveUnitFlag (UnitFlags flags) |
| void | ReplaceAllUnitFlags (UnitFlags flags) |
| UnitFlags2 | GetUnitFlags2 () const |
| bool | HasUnitFlag2 (UnitFlags2 flags) const |
| void | SetUnitFlag2 (UnitFlags2 flags) |
| void | RemoveUnitFlag2 (UnitFlags2 flags) |
| void | ReplaceAllUnitFlags2 (UnitFlags2 flags) |
| void | SetCreatedBySpell (int32 spellId) |
| Emote | GetEmoteState () const |
| void | SetEmoteState (Emote emote) |
| SheathState | GetSheath () const |
| virtual void | SetSheath (SheathState sheathed) |
| uint32 | GetFaction () const override |
| void | SetFaction (uint32 faction) override |
| bool | IsInPartyWith (Unit const *unit) const |
| bool | IsInRaidWith (Unit const *unit) const |
| void | GetPartyMembers (std::list< Unit * > &units) |
| bool | IsContestedGuard () const |
| UnitPVPStateFlags | GetPvpFlags () const |
| bool | HasPvpFlag (UnitPVPStateFlags flags) const |
| void | SetPvpFlag (UnitPVPStateFlags flags) |
| void | RemovePvpFlag (UnitPVPStateFlags flags) |
| void | ReplaceAllPvpFlags (UnitPVPStateFlags flags) |
| bool | IsInSanctuary () const |
| bool | IsPvP () const |
| bool | IsFFAPvP () const |
| virtual void | SetPvP (bool state) |
| UnitPetFlag | GetPetFlags () const |
| bool | HasPetFlag (UnitPetFlag flags) const |
| void | SetPetFlag (UnitPetFlag flags) |
| void | RemovePetFlag (UnitPetFlag flags) |
| void | ReplaceAllPetFlags (UnitPetFlag flags) |
| uint32 | GetCreatureType () const |
| uint32 | GetCreatureTypeMask () const |
| UnitStandStateType | GetStandState () const |
| bool | IsSitState () const |
| bool | IsStandState () const |
| void | SetStandState (UnitStandStateType state) |
| void | SetVisFlag (UnitVisFlags flags) |
| void | RemoveVisFlag (UnitVisFlags flags) |
| void | ReplaceAllVisFlags (UnitVisFlags flags) |
| AnimTier | GetAnimTier () const |
| void | SetAnimTier (AnimTier animTier) |
| bool | IsMounted () const |
| uint32 | GetMountDisplayId () const |
| void | SetMountDisplayId (uint32 mountDisplayId) |
| void | Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0) |
| void | Dismount () |
| uint32 | GetMaxSkillValueForLevel (Unit const *target=nullptr) const |
| void | KillSelf (bool durabilityLoss=true) |
| void | GetProcAurasTriggeredOnEvent (AuraApplicationProcContainer &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo &eventInfo) |
| void | TriggerAurasProcOnEvent (Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
| void | TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationProcContainer &procAuras) |
| void | HandleEmoteCommand (Emote emoteId) |
| void | AttackerStateUpdate (Unit *victim, WeaponAttackType attType=BASE_ATTACK, bool extra=false) |
| void | CalculateMeleeDamage (Unit *victim, CalcDamageInfo *damageInfo, WeaponAttackType attackType=BASE_ATTACK) |
| void | DealMeleeDamage (CalcDamageInfo *damageInfo, bool durabilityLoss) |
| void | HandleProcExtraAttackFor (Unit *victim, uint32 count) |
| void | SetLastExtraAttackSpell (uint32 spellId) |
| uint32 | GetLastExtraAttackSpell () const |
| void | AddExtraAttacks (uint32 count) |
| void | SetLastDamagedTargetGuid (ObjectGuid guid) |
| ObjectGuid | GetLastDamagedTargetGuid () const |
| void | CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=BASE_ATTACK, bool crit=false, bool blocked=false, Spell *spell=nullptr) |
| void | DealSpellDamage (SpellNonMeleeDamage const *damageInfo, bool durabilityLoss) |
| float | GetMeleeCritChanceReduction () const |
| float | GetRangedCritChanceReduction () const |
| float | GetSpellCritChanceReduction () const |
| uint32 | GetMeleeCritDamageReduction (uint32 damage) const |
| uint32 | GetRangedCritDamageReduction (uint32 damage) const |
| uint32 | GetSpellCritDamageReduction (uint32 damage) const |
| uint32 | GetMeleeDamageReduction (uint32 damage) const |
| uint32 | GetRangedDamageReduction (uint32 damage) const |
| uint32 | GetSpellDamageReduction (uint32 damage) const |
| virtual bool | CanApplyResilience () const |
| int32 | CalculateAOEAvoidance (int32 damage, uint32 schoolMask, ObjectGuid const &casterGuid) const |
| float | MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, int32 skillDiff, uint32 spellId) const override |
| SpellMissInfo | MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const override |
| float | GetUnitDodgeChance (WeaponAttackType attType, Unit const *victim) const |
| float | GetUnitParryChance (WeaponAttackType attType, Unit const *victim) const |
| float | GetUnitBlockChance (WeaponAttackType attType, Unit const *victim) const |
| float | GetUnitMissChance () const |
| float | GetUnitCriticalChanceDone (WeaponAttackType attackType) const |
| float | GetUnitCriticalChanceTaken (Unit const *attacker, WeaponAttackType attackType, float critDone) const |
| float | GetUnitCriticalChanceAgainst (WeaponAttackType attackType, Unit const *victim) const |
| int32 | GetMechanicResistChance (SpellInfo const *spellInfo) const |
| bool | CanUseAttackType (uint8 attacktype) const |
| virtual uint32 | GetShieldBlockValue () const =0 |
| uint32 | GetShieldBlockValue (uint32 soft_cap, uint32 hard_cap) const |
| uint32 | GetDefenseSkillValue (Unit const *target=nullptr) const |
| uint32 | GetWeaponSkillValue (WeaponAttackType attType, Unit const *target=nullptr) const |
| float | GetWeaponProcChance () const |
| float | GetPPMProcChance (uint32 WeaponSpeed, float PPM, SpellInfo const *spellProto) const |
| MeleeHitOutcome | RollMeleeOutcomeAgainst (Unit const *victim, WeaponAttackType attType) const |
| NPCFlags | GetNpcFlags () const |
| bool | HasNpcFlag (NPCFlags flags) const |
| void | SetNpcFlag (NPCFlags flags) |
| void | RemoveNpcFlag (NPCFlags flags) |
| void | ReplaceAllNpcFlags (NPCFlags flags) |
| bool | IsVendor () const |
| bool | IsTrainer () const |
| bool | IsQuestGiver () const |
| bool | IsGossip () const |
| bool | IsTaxi () const |
| bool | IsGuildMaster () const |
| bool | IsBattleMaster () const |
| bool | IsBanker () const |
| bool | IsInnkeeper () const |
| bool | IsSpiritHealer () const |
| bool | IsSpiritGuide () const |
| bool | IsTabardDesigner () const |
| bool | IsAuctioner () const |
| bool | IsArmorer () const |
| bool | IsServiceProvider () const |
| bool | IsSpiritService () const |
| bool | IsCritter () const |
| bool | IsInFlight () const |
| bool | CanHaveThreatList () const |
| ====================== THREAT & COMBAT ==================== | |
| virtual bool | IsEngaged () const |
| bool | IsEngagedBy (Unit const *who) const |
| void | EngageWithTarget (Unit *who) |
| CombatManager & | GetCombatManager () |
| CombatManager const & | GetCombatManager () const |
| void | AtTargetAttacked (Unit *target, bool canInitialAggro) |
| bool | IsImmuneToAll () const |
| void | SetImmuneToAll (bool apply, bool keepCombat) |
| virtual void | SetImmuneToAll (bool apply) |
| bool | IsImmuneToPC () const |
| void | SetImmuneToPC (bool apply, bool keepCombat) |
| virtual void | SetImmuneToPC (bool apply) |
| bool | IsImmuneToNPC () const |
| void | SetImmuneToNPC (bool apply, bool keepCombat) |
| virtual void | SetImmuneToNPC (bool apply) |
| bool | IsInCombat () const |
| bool | IsInCombatWith (Unit const *who) const |
| void | SetInCombatWith (Unit *enemy, bool addSecondUnitSuppressed=false) |
| void | ClearInCombat () |
| void | UpdatePetCombatState () |
| bool | IsThreatened () const |
| bool | IsThreatenedBy (Unit const *who) const |
| ThreatManager & | GetThreatManager () |
| ThreatManager const & | GetThreatManager () const |
| void | SendClearTarget () |
| bool | HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, flag96 familyFlags) const |
| virtual bool | HasSpell (uint32) const |
| bool | HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const |
| bool | HasBreakableByDamageCrowdControlAura (Unit *excludeCasterChannel=nullptr) const |
| bool | HasStealthAura () const |
| bool | HasInvisibilityAura () const |
| bool | IsFeared () const |
| bool | IsRooted () const |
| bool | IsPolymorphed () const |
| bool | IsFrozen () const |
| bool | isTargetableForAttack (bool checkFakeDeath=true) const |
| bool | IsInWater () const |
| bool | IsUnderWater () const |
| bool | isInAccessiblePlaceFor (Creature const *c) const |
| void | SendHealSpellLog (HealInfo &healInfo, bool critical=false) |
| int32 | HealBySpell (HealInfo &healInfo, bool critical=false) |
| void | SendEnergizeSpellLog (Unit *victim, uint32 spellId, int32 damage, Powers powerType) |
| void | EnergizeBySpell (Unit *victim, uint32 spellId, int32 damage, Powers powerType) |
| void | EnergizeBySpell (Unit *victim, SpellInfo const *spellInfo, int32 damage, Powers powerType) |
| Aura * | AddAura (uint32 spellId, Unit *target) |
| Aura * | AddAura (SpellInfo const *spellInfo, uint8 effMask, Unit *target) |
| void | SetAuraStack (uint32 spellId, Unit *target, uint32 stack) |
| void | SendPlaySpellVisualKit (uint32 id, uint32 type) const |
| void | DeMorph () |
| void | SendAttackStateUpdate (CalcDamageInfo *damageInfo) |
| void | SendAttackStateUpdate (uint32 HitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount) |
| void | SendSpellNonMeleeDamageLog (SpellNonMeleeDamage const *log) |
| void | SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo) |
| void | SendSpellDamageResist (Unit *target, uint32 spellId) |
| void | SendSpellDamageImmune (Unit *target, uint32 spellId) |
| void | NearTeleportTo (Position const &pos, bool casting=false) |
| void | NearTeleportTo (float x, float y, float z, float orientation, bool casting=false) |
| void | SendTeleportPacket (Position const &pos, bool teleportingTransport=false) |
| virtual bool | UpdatePosition (float x, float y, float z, float ang, bool teleport=false) |
| virtual bool | UpdatePosition (Position const &pos, bool teleport=false) |
| void | UpdateOrientation (float orientation) |
| Only server-side orientation update, does not broadcast to client. | |
| void | UpdateHeight (float newZ) |
| Only server-side height update, does not broadcast to client. | |
| void | SendMoveKnockBack (Player *player, float speedXY, float speedZ, float vcos, float vsin) |
| void | KnockbackFrom (float x, float y, float speedXY, float speedZ) |
| void | JumpTo (float speedXY, float speedZ, bool forward=true, Optional< Position > dest={}) |
| void | JumpTo (WorldObject *obj, float speedZ, bool withOrientation=false) |
| void | MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false) |
| void | SetHoverHeight (float hoverHeight) |
| bool | IsGravityDisabled () const |
| bool | IsWalking () const |
| bool | IsHovering () const |
| bool | SetWalk (bool enable) |
| bool | SetDisableGravity (bool disable, bool updateAnimTier=true) |
| bool | SetFall (bool enable) |
| bool | SetSwim (bool enable) |
| bool | SetCanFly (bool enable, bool packetOnly=false) |
| bool | SetWaterWalking (bool enable) |
| bool | SetFeatherFall (bool enable) |
| bool | SetHover (bool enable, bool updateAnimTier=true) |
| void | SetInFront (WorldObject const *target) |
| void | SetFacingTo (float ori, bool force=true, uint32 movementId=EVENT_FACE) |
| void | SetFacingToObject (WorldObject const *object, bool force=true, uint32 movementId=EVENT_FACE) |
| bool | IsAlive () const |
| bool | isDying () const |
| bool | isDead () const |
| bool | IsGhouled () const |
| DeathState | getDeathState () const |
| virtual void | setDeathState (DeathState s) |
| ObjectGuid | GetOwnerGUID () const override |
| void | SetOwnerGUID (ObjectGuid owner) |
| ObjectGuid | GetCreatorGUID () const |
| void | SetCreatorGUID (ObjectGuid creator) |
| ObjectGuid | GetMinionGUID () const |
| void | SetMinionGUID (ObjectGuid guid) |
| ObjectGuid | GetPetGUID () const |
| void | SetPetGUID (ObjectGuid guid) |
| ObjectGuid | GetCritterGUID () const |
| void | SetCritterGUID (ObjectGuid guid) |
| ObjectGuid | GetCharmerGUID () const |
| Unit * | GetCharmer () const |
| ObjectGuid | GetCharmedGUID () const |
| Unit * | GetCharmed () const |
| bool | IsControlledByPlayer () const |
| Player * | GetControllingPlayer () const |
| ObjectGuid | GetCharmerOrOwnerGUID () const override |
| bool | IsCharmedOwnedByPlayerOrPlayer () const |
| Guardian * | GetGuardianPet () const |
| Minion * | GetFirstMinion () const |
| Unit * | GetCharmerOrOwner () const |
| void | SetMinion (Minion *minion, bool apply) |
| void | GetAllMinionsByEntry (std::list< TempSummon * > &Minions, uint32 entry) |
| void | RemoveAllMinionsByEntry (uint32 entry) |
| void | SetCharm (Unit *target, bool apply) |
| Unit * | GetNextRandomRaidMemberOrPet (float radius) |
| bool | SetCharmedBy (Unit *charmer, CharmType type, AuraApplication const *aurApp=nullptr) |
| void | RemoveCharmedBy (Unit *charmer) |
| void | RestoreFaction () |
| Unit * | GetFirstControlled () const |
| void | RemoveAllControlled () |
| bool | IsCharmed () const |
| bool | IsCharming () const |
| bool | isPossessed () const |
| bool | isPossessedByPlayer () const |
| bool | isPossessing () const |
| bool | isPossessing (Unit *u) const |
| CharmInfo * | GetCharmInfo () |
| CharmInfo * | InitCharmInfo () |
| void | DeleteCharmInfo () |
| void | SetPetNumberForClient (uint32 petNumber) |
| void | SetPetNameTimestamp (uint32 timestamp) |
| bool | IsCharmerOrSelfPlayer () const |
| Unit * | GetCharmerOrSelf () const |
| Player * | GetCharmerOrSelfPlayer () const |
| Unit * | GetCharmedOrSelf () const |
| bool | IsMovedByClient () const |
| bool | IsMovedByServer () const |
| GameClient * | GetGameClientMovingMe () const |
| void | SetGameClientMovingMe (GameClient *gameClientMovingMe) |
| SharedVisionList const & | GetSharedVisionList () |
| void | AddPlayerToVision (Player *player) |
| void | RemovePlayerFromVision (Player *player) |
| bool | HasSharedVision () const |
| void | RemoveBindSightAuras () |
| void | RemoveCharmAuras () |
| Pet * | CreateTamedPetFrom (Creature *creatureTarget, uint32 spell_id=0) |
| Pet * | CreateTamedPetFrom (uint32 creatureEntry, uint32 spell_id=0) |
| bool | InitTamedPet (Pet *pet, uint8 level, uint32 spell_id) |
| Aura * | _TryStackingOrRefreshingExistingAura (AuraCreateInfo &createInfo) |
| void | _AddAura (UnitAura *aura, Unit *caster) |
| AuraApplication * | _CreateAuraApplication (Aura *aura, uint8 effMask) |
| void | _ApplyAuraEffect (Aura *aura, uint8 effIndex) |
| void | _ApplyAura (AuraApplication *aurApp, uint8 effMask) |
| void | _UnapplyAura (AuraApplicationMap::iterator &i, AuraRemoveMode removeMode) |
| void | _UnapplyAura (AuraApplication *aurApp, AuraRemoveMode removeMode) |
| void | _RemoveNoStackAurasDueToAura (Aura *aura, bool owned) |
| void | _RegisterAuraEffect (AuraEffect *aurEff, bool apply) |
| AuraMap & | GetOwnedAuras () |
| AuraMap const & | GetOwnedAuras () const |
| void | RemoveOwnedAura (AuraMap::iterator &i, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAura (Aura *aura, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| Aura * | GetOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, Aura *except=nullptr) const |
| AuraApplicationMap & | GetAppliedAuras () |
| AuraApplicationMap const & | GetAppliedAuras () const |
| void | RemoveAura (AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (AuraApplication *aurApp, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (Aura *aur, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAppliedAuras (std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAuras (std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAppliedAuras (uint32 spellId, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAuras (uint32 spellId, std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasByType (AuraType auraType, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasDueToSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAuraFromStack (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, ObjectGuid casterGUID, WorldObject *dispeller, uint8 chargesRemoved=1) |
| void | RemoveAurasDueToSpellBySteal (uint32 spellId, ObjectGuid casterGUID, WorldObject *stealer) |
| void | RemoveAurasDueToItemSpell (uint32 spellId, ObjectGuid castItemGuid) |
| void | RemoveAurasByType (AuraType auraType, ObjectGuid casterGUID=ObjectGuid::Empty, Aura *except=nullptr, bool negative=true, bool positive=true) |
| void | RemoveNotOwnSingleTargetAuras (uint32 newPhase=0x0) |
| void | RemoveAurasWithInterruptFlags (uint32 flag, uint32 except=0) |
| void | RemoveAurasWithAttribute (SpellAttr0 flags) |
| void | RemoveAurasWithFamily (SpellFamilyNames family, flag96 const &familyFlag, ObjectGuid casterGUID) |
| void | RemoveAurasWithMechanic (uint32 mechanicMaskToRemove, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, uint32 exceptSpellId=0, bool withEffectMechanics=false) |
| void | RemoveMovementImpairingAuras (bool withRoot) |
| void | RemoveAurasByShapeShift () |
| void | RemoveAreaAurasDueToLeaveWorld () |
| void | RemoveAllAuras () |
| void | RemoveArenaAuras () |
| void | RemoveAurasOnEvade () |
| void | RemoveAllAurasOnDeath () |
| void | RemoveAllAurasRequiringDeadTarget () |
| void | RemoveAllAurasExceptType (AuraType type) |
| void | RemoveAllAurasExceptType (AuraType type1, AuraType type2) |
| void | RemoveAllGroupBuffsFromCaster (ObjectGuid casterGUID) |
| void | DelayOwnedAuras (uint32 spellId, ObjectGuid caster, int32 delaytime) |
| void | _RemoveAllAuraStatMods () |
| void | _ApplyAllAuraStatMods () |
| AuraEffectList const & | GetAuraEffectsByType (AuraType type) const |
| AuraEffectList & | GetAuraEffectsByType (AuraType type) |
| AuraList & | GetSingleCastAuras () |
| AuraList const & | GetSingleCastAuras () const |
| AuraEffect * | GetAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const |
| AuraEffect * | GetAuraEffectOfRankedSpell (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const |
| AuraEffect * | GetAuraEffect (AuraType type, SpellFamilyNames name, uint32 iconId, uint8 effIndex) const |
| AuraEffect * | GetAuraEffect (AuraType type, SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, ObjectGuid casterGUID=ObjectGuid::Empty) const |
| AuraEffect * | GetDummyAuraEffect (SpellFamilyNames name, uint32 iconId, uint8 effIndex) const |
| AuraApplication * | GetAuraApplication (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraApplication *except=nullptr) const |
| Aura * | GetAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const |
| AuraApplication * | GetAuraApplicationOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraApplication *except=nullptr) const |
| Aura * | GetAuraOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const |
| void | GetDispellableAuraList (WorldObject const *caster, uint32 dispelMask, DispelChargesList &dispelList, bool isReflect=false) const |
| bool | HasAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid caster=ObjectGuid::Empty) const |
| uint32 | GetAuraCount (uint32 spellId) const |
| bool | HasAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const |
| bool | HasAuraType (AuraType auraType) const |
| bool | HasAuraTypeWithCaster (AuraType auraType, ObjectGuid caster) const |
| bool | HasAuraTypeWithMiscvalue (AuraType auraType, int32 miscValue) const |
| bool | HasAuraTypeWithAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| bool | HasAuraTypeWithValue (AuraType auraType, int32 value) const |
| bool | HasAuraTypeWithTriggerSpell (AuraType auratype, uint32 triggerSpell) const |
| bool | HasNegativeAuraWithInterruptFlag (uint32 flag, ObjectGuid guid=ObjectGuid::Empty) const |
| bool | HasAuraWithMechanic (uint32 mechanicMask) const |
| bool | HasStrongerAuraWithDR (SpellInfo const *auraSpellInfo, Unit *caster, bool triggered) const |
| AuraEffect * | IsScriptOverriden (SpellInfo const *spell, int32 script) const |
| uint32 | GetDiseasesByCaster (ObjectGuid casterGUID, bool remove=false) |
| uint32 | GetDoTsByCaster (ObjectGuid casterGUID) const |
| int32 | GetTotalAuraModifier (AuraType auraType) const |
| float | GetTotalAuraMultiplier (AuraType auraType) const |
| int32 | GetMaxPositiveAuraModifier (AuraType auraType) const |
| int32 | GetMaxNegativeAuraModifier (AuraType auraType) const |
| int32 | GetTotalAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| float | GetTotalAuraMultiplier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| int32 | GetMaxPositiveAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| int32 | GetMaxNegativeAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| int32 | GetTotalAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const |
| float | GetTotalAuraMultiplierByMiscMask (AuraType auraType, uint32 misc_mask) const |
| int32 | GetMaxPositiveAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask, AuraEffect const *except=nullptr) const |
| int32 | GetMaxNegativeAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const |
| int32 | GetTotalAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const |
| float | GetTotalAuraMultiplierByMiscValue (AuraType auraType, int32 misc_value) const |
| int32 | GetMaxPositiveAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const |
| int32 | GetMaxNegativeAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const |
| int32 | GetTotalAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| float | GetTotalAuraMultiplierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| int32 | GetMaxPositiveAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| int32 | GetMaxNegativeAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| void | UpdateResistanceBuffModsMod (SpellSchools school) |
| void | InitStatBuffMods () |
| void | UpdateStatBuffMod (Stats stat) |
| void | SetCreateStat (Stats stat, float val) |
| void | SetCreateHealth (uint32 val) |
| uint32 | GetCreateHealth () const |
| void | SetCreateMana (uint32 val) |
| uint32 | GetCreateMana () const |
| uint32 | GetCreatePowerValue (Powers power) const |
| float | GetPosStat (Stats stat) const |
| float | GetNegStat (Stats stat) const |
| float | GetCreateStat (Stats stat) const |
| uint32 | GetChannelSpellId () const |
| void | SetChannelSpellId (uint32 channelSpellId) |
| ObjectGuid | GetChannelObjectGuid () const |
| void | SetChannelObjectGuid (ObjectGuid guid) |
| void | SetCurrentCastSpell (Spell *pSpell) |
| void | InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true, SpellCastResult result=SPELL_FAILED_INTERRUPTED, Optional< SpellCastResult > resultOther={}) |
| void | FinishSpell (CurrentSpellTypes spellType, bool ok=true) |
| bool | IsNonMeleeSpellCast (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true) const |
| void | InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true) |
| Spell * | GetCurrentSpell (CurrentSpellTypes spellType) const |
| Spell * | GetCurrentSpell (uint32 spellType) const |
| Spell * | FindCurrentSpellBySpellId (uint32 spell_id) const |
| int32 | GetCurrentSpellCastTime (uint32 spell_id) const |
| virtual bool | HasSpellFocus (Spell const *=nullptr) const |
| virtual bool | IsMovementPreventedByCasting () const |
| SpellHistory * | GetSpellHistory () |
| SpellHistory const * | GetSpellHistory () const |
| ShapeshiftForm | GetShapeshiftForm () const |
| void | SetShapeshiftForm (ShapeshiftForm form) |
| bool | IsInFeralForm () const |
| bool | IsInDisallowedMountForm () const |
| void | HandleStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float amount, bool apply) |
| void | ApplyStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float amount) |
| void | SetStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float val) |
| void | SetStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float val) |
| float | GetFlatModifierValue (UnitMods unitMod, UnitModifierFlatType modifierType) const |
| float | GetPctModifierValue (UnitMods unitMod, UnitModifierPctType modifierType) const |
| void | UpdateUnitMod (UnitMods unitMod) |
| void | HandleAttackPowerModifier (AttackPowerModIndex index, AttackPowerModType modifierType, float amount, bool apply) |
| float | GetAttackPowerModifierValue (AttackPowerModIndex index, AttackPowerModType modifierType) const |
| virtual bool | CheckAttackFitToAuraRequirement (WeaponAttackType, AuraEffect const *) const |
| virtual void | UpdateDamageDoneMods (WeaponAttackType attackType, int32 skipEnchantSlot=-1) |
| void | UpdateAllDamageDoneMods () |
| void | UpdateDamagePctDoneMods (WeaponAttackType attackType) |
| void | UpdateAllDamagePctDoneMods () |
| float | GetTotalStatValue (Stats stat) const |
| float | GetTotalAuraModValue (UnitMods unitMod) const |
| SpellSchools | GetSpellSchoolByAuraGroup (UnitMods unitMod) const |
| Stats | GetStatByAuraGroup (UnitMods unitMod) const |
| Powers | GetPowerTypeByAuraGroup (UnitMods unitMod) const |
| bool | CanModifyStats () const |
| void | SetCanModifyStats (bool modifyStats) |
| virtual bool | UpdateStats (Stats stat)=0 |
| virtual bool | UpdateAllStats ()=0 |
| virtual void | UpdateResistances (uint32 school)=0 |
| virtual void | UpdateAllResistances () |
| virtual void | UpdateArmor ()=0 |
| virtual void | UpdateMaxHealth ()=0 |
| virtual void | UpdateMaxPower (Powers power)=0 |
| virtual void | UpdateAttackPowerAndDamage (bool ranged=false)=0 |
| void | SetAttackPower (int32 attackPower) |
| void | SetAttackPowerModPos (int32 attackPowerMod) |
| void | SetAttackPowerModNeg (int32 attackPowerMod) |
| void | SetAttackPowerMultiplier (float attackPowerMult) |
| void | SetRangedAttackPower (int32 attackPower) |
| void | SetRangedAttackPowerModPos (int32 attackPowerMod) |
| void | SetRangedAttackPowerModNeg (int32 attackPowerMod) |
| void | SetRangedAttackPowerMultiplier (float attackPowerMult) |
| virtual void | UpdateDamagePhysical (WeaponAttackType attType) |
| float | GetTotalAttackPowerValue (WeaponAttackType attType) const |
| float | GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type, uint8 damageIndex=0) const |
| void | SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value, uint8 damageIndex=0) |
| virtual void | CalculateMinMaxDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, float &minDamage, float &maxDamage, uint8 damageIndex) const =0 |
| uint32 | CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, uint8 itemDamagesMask=0) const |
| float | GetAPMultiplier (WeaponAttackType attType, bool normalized) const |
| bool | isInFrontInMap (Unit const *target, float distance, float arc=float(M_PI)) const |
| bool | isInBackInMap (Unit const *target, float distance, float arc=float(M_PI)) const |
| bool | IsVisible () const |
| void | SetVisible (bool x) |
| void | SetPhaseMask (uint32 newPhaseMask, bool update) override |
| void | UpdateObjectVisibility (bool forced=true) override |
| VisibleAuraMap const & | GetVisibleAuras () const |
| AuraApplication * | GetVisibleAura (uint8 slot) const |
| void | SetVisibleAura (uint8 slot, AuraApplication *aurApp) |
| void | RemoveVisibleAura (uint8 slot) |
| bool | HasInterruptFlag (uint32 flags) const |
| void | AddInterruptMask (uint32 flags) |
| void | UpdateInterruptMask () |
| virtual float | GetNativeObjectScale () const |
| virtual void | RecalculateObjectScale () |
| uint32 | GetDisplayId () const |
| virtual void | SetDisplayId (uint32 modelId) |
| uint32 | GetNativeDisplayId () const |
| void | RestoreDisplayId () |
| void | SetNativeDisplayId (uint32 displayId) |
| void | SetTransformSpell (uint32 spellid) |
| uint32 | GetTransformSpell () const |
| void | _RegisterDynObject (DynamicObject *dynObj) |
| void | _UnregisterDynObject (DynamicObject *dynObj) |
| DynamicObject * | GetDynObject (uint32 spellId) const |
| std::vector< DynamicObject * > | GetDynObjects (uint32 spellId) const |
| void | RemoveDynObject (uint32 spellId) |
| void | RemoveAllDynObjects () |
| GameObject * | GetGameObject (uint32 spellId) const |
| std::vector< GameObject * > | GetGameObjects (uint32 spellId) const |
| void | AddGameObject (GameObject *gameObj) |
| void | RemoveGameObject (GameObject *gameObj, bool del) |
| void | RemoveGameObject (uint32 spellid, bool del) |
| void | RemoveAllGameObjects () |
| void | ModifyAuraState (AuraStateType flag, bool apply) |
| uint32 | BuildAuraStateUpdateForTarget (Unit const *target) const |
| bool | HasAuraState (AuraStateType flag, SpellInfo const *spellProto=nullptr, Unit const *Caster=nullptr) const |
| void | UnsummonAllTotems () |
| bool | IsMagnet () const |
| Unit * | GetMeleeHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo=nullptr) |
| int32 | SpellBaseDamageBonusDone (SpellSchoolMask schoolMask) const |
| uint32 | SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, Optional< float > const &donePctTotal, uint32 stack=1) const |
| float | SpellDamagePctDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype) const |
| uint32 | SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype) const |
| int32 | SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const |
| uint32 | SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, Optional< float > const &donePctTotal, uint32 stack=1) const |
| float | SpellHealingPctDone (Unit *victim, SpellInfo const *spellProto) const |
| uint32 | SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype) const |
| uint32 | MeleeDamageBonusDone (Unit *pVictim, uint32 damage, WeaponAttackType attType, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL) |
| uint32 | MeleeDamageBonusTaken (Unit *attacker, uint32 pdamage, WeaponAttackType attType, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL) |
| bool | IsBlockCritical () |
| float | SpellCritChanceDone (SpellInfo const *spellInfo, SpellSchoolMask schoolMask, WeaponAttackType attackType=BASE_ATTACK, bool isPeriodic=false) const |
| float | SpellCritChanceTaken (Unit const *caster, SpellInfo const *spellInfo, SpellSchoolMask schoolMask, float doneChance, WeaponAttackType attackType=BASE_ATTACK, bool isPeriodic=false) const |
| void | SetLastManaUse (uint32 spellCastTime) |
| bool | IsUnderLastManaUseEffect () const |
| uint32 | GetCastingTimeForBonus (SpellInfo const *spellProto, DamageEffectType damagetype, uint32 CastingTime) const |
| float | CalculateDefaultCoefficient (SpellInfo const *spellInfo, DamageEffectType damagetype) const |
| void | ApplySpellImmune (uint32 spellId, uint32 op, uint32 type, bool apply) |
| virtual bool | IsImmunedToSpell (SpellInfo const *spellInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const |
| uint32 | GetSchoolImmunityMask () const |
| uint32 | GetDamageImmunityMask () const |
| uint32 | GetMechanicImmunityMask () const |
| bool | IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const |
| bool | IsImmunedToDamage (SpellInfo const *spellInfo) const |
| virtual bool | IsImmunedToSpellEffect (SpellInfo const *spellInfo, SpellEffectInfo const &spellEffectInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const |
| void | UpdateSpeed (UnitMoveType mtype) |
| float | GetSpeed (UnitMoveType mtype) const |
| float | GetSpeedRate (UnitMoveType mtype) const |
| void | SetSpeed (UnitMoveType mtype, float newValue) |
| void | SetSpeedRate (UnitMoveType mtype, float rate) |
| float | CalculateSpellpowerCoefficientLevelPenalty (SpellInfo const *spellInfo) const |
| void | FollowerAdded (AbstractFollower *f) |
| void | FollowerRemoved (AbstractFollower *f) |
| void | RemoveAllFollowers () |
| MotionMaster * | GetMotionMaster () |
| MotionMaster const * | GetMotionMaster () const |
| virtual MovementGeneratorType | GetDefaultMovementType () const |
| bool | IsStopped () const |
| void | StopMoving (bool force=false) |
| void | PauseMovement (uint32 timer=0, uint8 slot=0, bool forced=true) |
| void | ResumeMovement (uint32 timer=0, uint8 slot=0) |
| void | AddUnitMovementFlag (uint32 f) |
| void | RemoveUnitMovementFlag (uint32 f) |
| bool | HasUnitMovementFlag (uint32 f) const |
| uint32 | GetUnitMovementFlags () const |
| void | SetUnitMovementFlags (uint32 f) |
| void | AddExtraUnitMovementFlag (uint32 f) |
| void | RemoveExtraUnitMovementFlag (uint32 f) |
| bool | HasExtraUnitMovementFlag (uint32 f) const |
| uint32 | GetExtraUnitMovementFlags () const |
| void | SetExtraUnitMovementFlags (uint32 f) |
| bool | IsSplineEnabled () const |
| void | SetControlled (bool apply, UnitState state) |
| void | ApplyControlStatesIfNeeded () |
| uint8 | GetComboPoints (Unit const *who=nullptr) const |
| --------—Combo point system----------------— | |
| uint8 | GetComboPoints (ObjectGuid const &guid) const |
| Unit * | GetComboTarget () const |
| ObjectGuid | GetComboTargetGUID () const |
| void | AddComboPoints (Unit *target, int8 count) |
| void | AddComboPoints (int8 count) |
| void | ClearComboPoints () |
| void | SendComboPoints () |
| void | AddComboPointHolder (Unit *unit) |
| void | RemoveComboPointHolder (Unit *unit) |
| void | ClearComboPointHolders () |
| void | SendPetActionFeedback (PetActionFeedback msg, uint32 spellId) const |
| -------—Pet responses methods--------------— | |
| void | SendPetActionSound (PetAction action) const |
| void | SendPetDismissSound () const |
| void | SendPetAIReaction (ObjectGuid guid) const |
| void | PropagateSpeedChange () |
| -------—End of Pet responses methods-------— | |
| void | ClearAllReactives () |
| void | StartReactiveTimer (ReactiveType reactive) |
| void | UpdateReactives (uint32 p_time) |
| void | UpdateAuraForGroup (uint8 slot) |
| bool | CanProc () const |
| void | SetCantProc (bool apply) |
| uint32 | GetModelForForm (ShapeshiftForm form, uint32 spellId) const |
| bool | CreateVehicleKit (uint32 id, uint32 creatureEntry) |
| void | RemoveVehicleKit () |
| Vehicle * | GetVehicleKit () const |
| Trinity::unique_weak_ptr< Vehicle > | GetVehicleKitWeakPtr () const |
| Vehicle * | GetVehicle () const |
| void | SetVehicle (Vehicle *vehicle) |
| bool | IsOnVehicle (Unit const *vehicle) const |
| Unit * | GetVehicleBase () const |
| Unit * | GetVehicleRoot () const |
| Creature * | GetVehicleCreatureBase () const |
| ObjectGuid | GetTransGUID () const override |
| TransportBase * | GetDirectTransport () const |
| Returns the transport this unit is on directly (if on vehicle and transport, return vehicle) | |
| void | HandleSpellClick (Unit *clicker, int8 seatId=-1) |
| void | EnterVehicle (Unit *base, int8 seatId=-1) |
| virtual void | ExitVehicle (Position const *exitPosition=nullptr) |
| void | ChangeSeat (int8 seatId, bool next=true) |
| void | _ExitVehicle (Position const *exitPosition=nullptr) |
| void | _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=nullptr) |
| void | BuildMovementPacket (ByteBuffer *data) const |
| bool | isMoving () const |
| bool | isTurning () const |
| virtual bool | CanFly () const =0 |
| bool | IsFlying () const |
| bool | IsFalling () const |
| virtual bool | CanEnterWater () const =0 |
| virtual bool | CanSwim () const |
| float | GetHoverOffset () const |
| uint32 | GetMovementCounterAndInc () |
| PlayerMovementPendingChange & | PeakFirstPendingMovementChange () |
| PlayerMovementPendingChange | PopPendingMovementChange () |
| void | PushPendingMovementChange (PlayerMovementPendingChange newChange) |
| bool | HasPendingMovementChange () const |
| bool | HasPendingMovementChange (MovementChangeType changeType) const |
| void | PurgeAndApplyPendingMovementChanges (bool informObservers=true) |
| void | RewardRage (uint32 damage, uint32 weaponSpeedHitFactor, bool attacker) |
| virtual float | GetFollowAngle () const |
| void | OutDebugInfo () const |
| virtual bool | IsLoading () const |
| bool | IsDuringRemoveFromWorld () const |
| Pet * | ToPet () |
| Pet const * | ToPet () const |
| Totem * | ToTotem () |
| Totem const * | ToTotem () const |
| TempSummon * | ToTempSummon () |
| TempSummon const * | ToTempSummon () const |
| ObjectGuid | GetTarget () const |
| virtual void | SetTarget (ObjectGuid const &)=0 |
| void | SetInstantCast (bool set) |
| bool | CanInstantCast () const |
| int32 | GetHighestExclusiveSameEffectSpellGroupValue (AuraEffect const *aurEff, AuraType auraType, bool checkMiscValue=false, int32 miscValue=0) const |
| bool | IsHighestExclusiveAura (Aura const *aura, bool removeOtherAuraApplications=false) |
| bool | IsHighestExclusiveAuraEffect (SpellInfo const *spellInfo, AuraType auraType, int32 effectAmount, uint8 auraEffectMask, bool removeOtherAuraApplications=false) |
| virtual void | Talk (std::string_view text, ChatMsg msgType, Language language, float textRange, WorldObject const *target) |
| virtual void | Say (std::string_view text, Language language, WorldObject const *target=nullptr) |
| virtual void | Yell (std::string_view text, Language language, WorldObject const *target=nullptr) |
| virtual void | TextEmote (std::string_view text, WorldObject const *target=nullptr, bool isBossEmote=false) |
| virtual void | Whisper (std::string_view text, Language language, Player *target, bool isBossWhisper=false) |
| virtual void | Talk (uint32 textId, ChatMsg msgType, float textRange, WorldObject const *target) |
| virtual void | Say (uint32 textId, WorldObject const *target=nullptr) |
| virtual void | Yell (uint32 textId, WorldObject const *target=nullptr) |
| virtual void | TextEmote (uint32 textId, WorldObject const *target=nullptr, bool isBossEmote=false) |
| virtual void | Whisper (uint32 textId, Player *target, bool isBossWhisper=false) |
| float | GetCollisionHeight () const override |
| uint32 | GetVirtualItemId (uint32 slot) const |
| void | SetVirtualItem (uint32 slot, uint32 itemId) |
| bool | IsCombatDisallowed () const |
| void | SetIsCombatDisallowed (bool apply) |
| std::string | GetDebugInfo () const override |
Public Member Functions inherited from WorldObject | |
| virtual | ~WorldObject () |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| void | GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle) const |
| void | GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float distance2d, float absAngle) const |
| void | GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0) const |
| void | MovePosition (Position &pos, float dist, float angle) |
| Position | GetNearPosition (float dist, float angle) |
| void | MovePositionToFirstCollision (Position &pos, float dist, float angle) |
| Position | GetFirstCollisionPosition (float dist, float angle) |
| Position | GetRandomNearPosition (float radius) |
| void | GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
| void | UpdateGroundPositionZ (float x, float y, float &z) const |
| void | UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const |
| void | GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const |
| Position | GetRandomPoint (Position const &srcPos, float distance) const |
| uint32 | GetInstanceId () const |
| uint32 | GetPhaseMask () const |
| bool | InSamePhase (uint32 phasemask) const |
| bool | InSamePhase (WorldObject const *obj) const |
| uint32 | GetZoneId () const |
| uint32 | GetAreaId () const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
| bool | IsInWorldPvpZone () const |
| bool | IsOutdoors () const |
| ZLiquidStatus | GetLiquidStatus () const |
| InstanceScript * | GetInstanceScript () const |
| std::string const & | GetName () const |
| void | SetName (std::string newname) |
| std::string const & | GetNameForLocaleIdx (LocaleConstant) const override |
| float | GetDistance (WorldObject const *obj) const |
| float | GetDistance (Position const &pos) const |
| float | GetDistance (float x, float y, float z) const |
| float | GetDistance2d (WorldObject const *obj) const |
| float | GetDistance2d (float x, float y) const |
| float | GetDistanceZ (WorldObject const *obj) const |
| bool | IsSelfOrInSameMap (WorldObject const *obj) const |
| bool | IsInMap (WorldObject const *obj) const |
| bool | IsWithinDist3d (float x, float y, float z, float dist) const |
| bool | IsWithinDist3d (Position const *pos, float dist) const |
| bool | IsWithinDist2d (float x, float y, float dist) const |
| bool | IsWithinDist2d (Position const *pos, float dist) const |
| bool | IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true) const |
| bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const |
| bool | IsWithinLOS (float x, float y, float z, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const |
| bool | IsWithinLOSInMap (WorldObject const *obj, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const |
| Position | GetHitSpherePointFor (Position const &dest) const |
| void | GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z) const |
| bool | GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const |
| bool | IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const |
| bool | IsInRange2d (float x, float y, float minRange, float maxRange) const |
| bool | IsInRange3d (float x, float y, float z, float minRange, float maxRange) const |
| bool | isInFront (WorldObject const *target, float arc=float(M_PI)) const |
| bool | isInBack (WorldObject const *target, float arc=float(M_PI)) const |
| bool | IsInBetween (Position const &pos1, Position const &pos2, float size=0) const |
| bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
| virtual void | SendMessageToSet (WorldPacket const *data, bool self) const |
| virtual void | SendMessageToSetInRange (WorldPacket const *data, float dist, bool self) const |
| virtual void | SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const |
| void | PlayDistanceSound (uint32 soundId, Player *target=nullptr) |
| void | PlayDirectSound (uint32 soundId, Player *target=nullptr) |
| void | PlayDirectMusic (uint32 musicId, Player *target=nullptr) |
| void | SendObjectDeSpawnAnim (ObjectGuid guid) |
| void | AddObjectToRemoveList () |
| float | GetGridActivationRange () const |
| float | GetVisibilityRange () const |
| float | GetSightRange (WorldObject const *target=nullptr) const |
| bool | CanSeeOrDetect (WorldObject const *obj, bool implicitDetect=false, bool distanceCheck=false, bool checkAlert=false) const |
| virtual void | SetMap (Map *map) |
| virtual void | ResetMap () |
| Map * | GetMap () const |
| Map * | FindMap () const |
| void | SetZoneScript () |
| void | ClearZoneScript () |
| ZoneScript * | GetZoneScript () const |
| TempSummon * | SummonCreature (uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty) |
| TempSummon * | SummonCreature (uint32 entry, float x, float y, float z, float o=0, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, ObjectGuid privateObjectOwner=ObjectGuid::Empty) |
| GameObject * | SummonGameObject (uint32 entry, Position const &pos, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
| GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
| Creature * | SummonTrigger (float x, float y, float z, float ang, Milliseconds despawnTime, CreatureAI *(*GetAI)(Creature *)=nullptr) |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr) |
| Creature * | FindNearestCreature (uint32 entry, float range, bool alive=true) const |
| Creature * | FindNearestCreatureWithOptions (float range, FindCreatureOptions const &options) const |
| GameObject * | FindNearestGameObject (uint32 entry, float range, bool spawnedOnly=true) const |
| GameObject * | FindNearestGameObjectWithOptions (float range, FindGameObjectOptions const &options) const |
| GameObject * | FindNearestUnspawnedGameObject (uint32 entry, float range) const |
| GameObject * | FindNearestGameObjectOfType (GameobjectTypes type, float range) const |
| Player * | SelectNearestPlayer (float distance) const |
| ObjectGuid | GetCharmerOrOwnerOrOwnGUID () const |
| Unit * | GetOwner () const |
| Unit * | GetCharmerOrOwner () const |
| Unit * | GetCharmerOrOwnerOrSelf () const |
| Player * | GetCharmerOrOwnerPlayerOrPlayerItself () const |
| Player * | GetAffectingPlayer () const |
| Player * | GetSpellModOwner () const |
| int32 | CalculateSpellDamage (SpellEffectInfo const &spellEffectInfo, int32 const *basePoints=nullptr) const |
| float | GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| float | GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| float | ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, float value) const |
| int32 | CalcSpellDuration (SpellInfo const *spellInfo) const |
| int32 | ModSpellDuration (SpellInfo const *spellInfo, WorldObject const *target, int32 duration, bool positive, uint32 effectMask) const |
| void | ModSpellCastTime (SpellInfo const *spellInfo, int32 &castTime, Spell *spell=nullptr) const |
| void | ModSpellDurationTime (SpellInfo const *spellInfo, int32 &durationTime, Spell *spell=nullptr) const |
| SpellMissInfo | MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const |
| SpellMissInfo | SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect=false) const |
| void | SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo) |
| FactionTemplateEntry const * | GetFactionTemplateEntry () const |
| ReputationRank | GetReactionTo (WorldObject const *target) const |
| bool | IsHostileTo (WorldObject const *target) const |
| bool | IsHostileToPlayers () const |
| bool | IsFriendlyTo (WorldObject const *target) const |
| bool | IsNeutralToAll () const |
| SpellCastResult | CastSpell (CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ }) |
| bool | IsValidAttackTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
| bool | IsValidAssistTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
| Unit * | GetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo) |
| template<typename Container > | |
| void | GetGameObjectListWithEntryInGrid (Container &gameObjectContainer, uint32 entry, float maxSearchRange=250.0f) const |
| template<typename Container > | |
| void | GetGameObjectListWithOptionsInGrid (Container &gameObjectContainer, float maxSearchRange, FindGameObjectOptions const &options) const |
| template<typename Container > | |
| void | GetCreatureListWithEntryInGrid (Container &creatureContainer, uint32 entry, float maxSearchRange=250.0f) const |
| template<typename Container > | |
| void | GetCreatureListWithOptionsInGrid (Container &creatureContainer, float maxSearchRange, FindCreatureOptions const &options) const |
| template<typename Container > | |
| void | GetPlayerListInGrid (Container &playerContainer, float maxSearchRange, bool alive=true) const |
| void | DestroyForNearbyPlayers () |
| virtual void | UpdateObjectVisibilityOnCreate () |
| void | UpdatePositionData () |
| void | BuildUpdate (UpdateDataMapType &) override |
| bool | AddToObjectUpdate () override |
| void | RemoveFromObjectUpdate () override |
| void | AddToNotify (uint16 f) |
| bool | isNeedNotify (uint16 f) const |
| uint16 | GetNotifyFlags () const |
| void | ResetAllNotifies () |
| bool | isActiveObject () const |
| void | setActive (bool isActiveObject) |
| bool | IsFarVisible () const |
| void | SetFarVisible (bool on) |
| bool | IsVisibilityOverridden () const |
| void | SetVisibilityDistanceOverride (VisibilityDistanceType type) |
| void | SetIsStoredInWorldObjectGridContainer (bool apply) |
| bool | IsAlwaysStoredInWorldObjectGridContainer () const |
| bool | IsStoredInWorldObjectGridContainer () const |
| Transport * | GetTransport () const |
| float | GetTransOffsetX () const |
| float | GetTransOffsetY () const |
| float | GetTransOffsetZ () const |
| float | GetTransOffsetO () const |
| Position const & | GetTransOffset () const |
| uint32 | GetTransTime () const |
| int8 | GetTransSeat () const |
| void | SetTransport (Transport *t) |
| virtual float | GetStationaryX () const |
| virtual float | GetStationaryY () const |
| virtual float | GetStationaryZ () const |
| virtual float | GetStationaryO () const |
| float | GetFloorZ () const |
| float | GetMapWaterOrGroundLevel (float x, float y, float z, float *ground=nullptr) const |
| float | GetMapHeight (float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const |
| std::string | GetDebugInfo () const override |
| bool | IsPrivateObject () const |
| ObjectGuid | GetPrivateObjectOwner () const |
| void | SetPrivateObjectOwner (ObjectGuid const &owner) |
| bool | CheckPrivateObjectOwnerVisibility (WorldObject const *seer) const |
Public Member Functions inherited from Object | |
| virtual | ~Object () |
| bool | IsInWorld () const |
| ObjectGuid | GetGUID () const |
| PackedGuid const & | GetPackGUID () const |
| uint32 | GetEntry () const |
| void | SetEntry (uint32 entry) |
| float | GetObjectScale () const |
| virtual void | SetObjectScale (float scale) |
| bool | HasDynamicFlag (uint32 flag) const |
| virtual void | SetDynamicFlag (uint32 flag) |
| virtual void | RemoveDynamicFlag (uint32 flag) |
| TypeID | GetTypeId () const |
| bool | isType (uint16 mask) const |
| virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | SendUpdateToPlayer (Player *player) |
| void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const |
| void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
| void | BuildMovementUpdateBlock (UpdateData *data, uint32 flags=0) const |
| int32 | GetInt32Value (uint16 index) const |
| uint32 | GetUInt32Value (uint16 index) const |
| uint64 | GetUInt64Value (uint16 index) const |
| float | GetFloatValue (uint16 index) const |
| uint8 | GetByteValue (uint16 index, uint8 offset) const |
| uint16 | GetUInt16Value (uint16 index, uint8 offset) const |
| ObjectGuid | GetGuidValue (uint16 index) const |
| void | SetInt32Value (uint16 index, int32 value) |
| void | SetUInt32Value (uint16 index, uint32 value) |
| void | UpdateUInt32Value (uint16 index, uint32 value) |
| void | SetUInt64Value (uint16 index, uint64 value) |
| void | SetFloatValue (uint16 index, float value) |
| void | SetByteValue (uint16 index, uint8 offset, uint8 value) |
| void | SetUInt16Value (uint16 index, uint8 offset, uint16 value) |
| void | SetInt16Value (uint16 index, uint8 offset, int16 value) |
| void | SetGuidValue (uint16 index, ObjectGuid value) |
| void | SetStatFloatValue (uint16 index, float value) |
| void | SetStatInt32Value (uint16 index, int32 value) |
| bool | AddGuidValue (uint16 index, ObjectGuid value) |
| bool | RemoveGuidValue (uint16 index, ObjectGuid value) |
| void | ApplyModUInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyModInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyModUInt16Value (uint16 index, uint8 offset, int16 val, bool apply) |
| void | ApplyModPositiveFloatValue (uint16 index, float val, bool apply) |
| void | ApplyModSignedFloatValue (uint16 index, float val, bool apply) |
| void | SetFlag (uint16 index, uint32 newFlag) |
| void | RemoveFlag (uint16 index, uint32 oldFlag) |
| void | ToggleFlag (uint16 index, uint32 flag) |
| bool | HasFlag (uint16 index, uint32 flag) const |
| void | ApplyModFlag (uint16 index, uint32 flag, bool apply) |
| void | SetByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | ToggleByteFlag (uint16 index, uint8 offset, uint8 flag) |
| bool | HasByteFlag (uint16 index, uint8 offset, uint8 flag) const |
| void | ApplyModByteFlag (uint16 index, uint8 offset, uint8 flag, bool apply) |
| void | SetFlag64 (uint16 index, uint64 newFlag) |
| void | RemoveFlag64 (uint16 index, uint64 oldFlag) |
| void | ToggleFlag64 (uint16 index, uint64 flag) |
| bool | HasFlag64 (uint16 index, uint64 flag) const |
| void | ApplyModFlag64 (uint16 index, uint64 flag, bool apply) |
| void | ClearUpdateMask (bool remove) |
| uint16 | GetValuesCount () const |
| virtual bool | hasQuest (uint32) const |
| virtual bool | hasInvolvedQuest (uint32) const |
| void | SetIsNewObject (bool enable) |
| void | BuildFieldsUpdate (Player *, UpdateDataMapType &) const |
| void | SetFieldNotifyFlag (uint16 flag) |
| void | RemoveFieldNotifyFlag (uint16 flag) |
| void | ForceValuesUpdateAtIndex (uint32) |
| bool | IsWorldObject () const |
| WorldObject * | ToWorldObject () |
| WorldObject const * | ToWorldObject () const |
| bool | IsItem () const |
| Item * | ToItem () |
| Item const * | ToItem () const |
| bool | IsPlayer () const |
| Player * | ToPlayer () |
| Player const * | ToPlayer () const |
| bool | IsCreature () const |
| Creature * | ToCreature () |
| Creature const * | ToCreature () const |
| bool | IsUnit () const |
| Unit * | ToUnit () |
| Unit const * | ToUnit () const |
| bool | IsGameObject () const |
| GameObject * | ToGameObject () |
| GameObject const * | ToGameObject () const |
| bool | IsCorpse () const |
| Corpse * | ToCorpse () |
| Corpse const * | ToCorpse () const |
| bool | IsDynObject () const |
| DynamicObject * | ToDynObject () |
| DynamicObject const * | ToDynObject () const |
| Trinity::unique_weak_ptr< Object > | GetWeakPtr () const |
Public Member Functions inherited from WorldLocation | |
| WorldLocation () | |
| WorldLocation (uint32 _mapId, float x, float y, float z=0.0f, float o=0.0f) | |
| WorldLocation (uint32 mapId, Position const &position) | |
| void | WorldRelocate (WorldLocation const &loc) |
| void | WorldRelocate (WorldLocation const *loc) |
| void | WorldRelocate (uint32 mapId, Position const &pos) |
| void | WorldRelocate (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f) |
| WorldLocation | GetWorldLocation () const |
| uint32 | GetMapId () const |
| std::string | GetDebugInfo () const |
Public Member Functions inherited from Position | |
| Position () | |
| Position (float x, float y, float z=0.0f, float o=0.0f) | |
| bool | operator== (Position const &a) const |
| void | Relocate (float x, float y) |
| void | Relocate (float x, float y, float z) |
| void | Relocate (float x, float y, float z, float o) |
| void | Relocate (Position const &pos) |
| void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| void | SetOrientation (float orientation) |
| float | GetPositionX () const |
| float | GetPositionY () const |
| float | GetPositionZ () const |
| float | GetOrientation () const |
| void | GetPosition (float &x, float &y) const |
| void | GetPosition (float &x, float &y, float &z) const |
| void | GetPosition (float &x, float &y, float &z, float &o) const |
| Position | GetPosition () const |
| Streamer< XY > | PositionXYStream () |
| ConstStreamer< XY > | PositionXYStream () const |
| Streamer< XYZ > | PositionXYZStream () |
| ConstStreamer< XYZ > | PositionXYZStream () const |
| Streamer< XYZO > | PositionXYZOStream () |
| ConstStreamer< XYZO > | PositionXYZOStream () const |
| Streamer< PackedXYZ > | PositionPackedXYZStream () |
| ConstStreamer< PackedXYZ > | PositionPackedXYZStream () const |
| bool | IsPositionValid () const |
| float | GetExactDist2dSq (const float x, const float y) const |
| float | GetExactDist2dSq (Position const &pos) const |
| float | GetExactDist2dSq (Position const *pos) const |
| float | GetExactDist2d (const float x, const float y) const |
| float | GetExactDist2d (Position const &pos) const |
| float | GetExactDist2d (Position const *pos) const |
| float | GetExactDistSq (float x, float y, float z) const |
| float | GetExactDistSq (Position const &pos) const |
| float | GetExactDistSq (Position const *pos) const |
| float | GetExactDist (float x, float y, float z) const |
| float | GetExactDist (Position const &pos) const |
| float | GetExactDist (Position const *pos) const |
| void | GetPositionOffsetTo (Position const &endPos, Position &retOffset) const |
| Position | GetPositionWithOffset (Position const &offset) const |
| float | GetAbsoluteAngle (float x, float y) const |
| float | GetAbsoluteAngle (Position const &pos) const |
| float | GetAbsoluteAngle (Position const *pos) const |
| float | ToAbsoluteAngle (float relAngle) const |
| float | ToRelativeAngle (float absAngle) const |
| float | GetRelativeAngle (float x, float y) const |
| float | GetRelativeAngle (Position const &pos) const |
| float | GetRelativeAngle (Position const *pos) const |
| void | GetSinCos (float x, float y, float &vsin, float &vcos) const |
| bool | IsInDist2d (float x, float y, float dist) const |
| bool | IsInDist2d (Position const *pos, float dist) const |
| bool | IsInDist (float x, float y, float z, float dist) const |
| bool | IsInDist (Position const &pos, float dist) const |
| bool | IsInDist (Position const *pos, float dist) const |
| bool | IsWithinBox (Position const ¢er, float xradius, float yradius, float zradius) const |
| bool | IsWithinDoubleVerticalCylinder (Position const *center, float radius, float height) const |
| bool | HasInArc (float arcangle, Position const *pos, float border=2.0f) const |
| bool | HasInLine (Position const *pos, float objSize, float width) const |
| std::string | ToString () const |
Static Public Member Functions | |
| static float | CalculateAverageResistReduction (WorldObject const *caster, SpellSchoolMask schoolMask, Unit const *victim, SpellInfo const *spellInfo=nullptr) |
| static void | DealDamageMods (Unit const *victim, uint32 &damage, uint32 *absorb) |
| static uint32 | DealDamage (Unit *attacker, Unit *victim, uint32 damage, CleanDamage const *cleanDamage=nullptr, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=nullptr, bool durabilityLoss=true) |
| static void | Kill (Unit *attacker, Unit *victim, bool durabilityLoss=true) |
| static void | DealHeal (HealInfo &healInfo) |
| static void | ProcSkillsAndAuras (Unit *actor, Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
| static void | ApplyResilience (Unit const *victim, float *crit, int32 *damage, bool isCrit, CombatRating type) |
| static uint32 | SpellCriticalDamageBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| static uint32 | SpellCriticalHealingBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| static bool | IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=nullptr) |
| static uint32 | CalcArmorReducedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=MAX_ATTACK, uint8 attackerLevel=0) |
| static uint32 | CalcSpellResistedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellSchoolMask schoolMask, SpellInfo const *spellInfo) |
| static void | CalcAbsorbResist (DamageInfo &damageInfo, Spell *spell=nullptr) |
| static void | CalcHealAbsorb (HealInfo &healInfo) |
| static void | BuildMovementPacket (Position const &pos, Position const &transportPos, MovementInfo const &movementInfo, ByteBuffer *data) |
Static Public Member Functions inherited from WorldObject | |
| static bool | InSamePhase (WorldObject const *a, WorldObject const *b) |
| static ReputationRank | GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, WorldObject const *target) |
Static Public Member Functions inherited from Object | |
| static ObjectGuid | GetGUID (Object const *o) |
| static WorldObject * | ToWorldObject (Object *o) |
| static WorldObject const * | ToWorldObject (Object const *o) |
| static Item * | ToItem (Object *o) |
| static Item const * | ToItem (Object const *o) |
| static Player * | ToPlayer (Object *o) |
| static Player const * | ToPlayer (Object const *o) |
| static Creature * | ToCreature (Object *o) |
| static Creature const * | ToCreature (Object const *o) |
| static Unit * | ToUnit (Object *o) |
| static Unit const * | ToUnit (Object const *o) |
| static GameObject * | ToGameObject (Object *o) |
| static GameObject const * | ToGameObject (Object const *o) |
| static Corpse * | ToCorpse (Object *o) |
| static Corpse const * | ToCorpse (Object const *o) |
| static DynamicObject * | ToDynObject (Object *o) |
| static DynamicObject const * | ToDynObject (Object const *o) |
Static Public Member Functions inherited from Position | |
| static float | NormalizeOrientation (float o) |
Protected Types | |
| typedef std::list< DynamicObject * > | DynObjectList |
| typedef std::list< GameObject * > | GameObjectList |
Protected Member Functions | |
| void | SetAI (UnitAI *newAI) |
| UnitAI * | GetTopAI () const |
| void | RefreshAI () |
| UnitAI * | GetScheduledChangeAI () |
| bool | HasScheduledAIChange () const |
| Unit (bool isWorldObject) | |
| void | BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player const *target) const override |
| void | DestroyForPlayer (Player *target, bool onDeath) const override |
| void | _UpdateSpells (uint32 time) |
| void | _DeleteRemovedAuras () |
| void | _UpdateAutoRepeatSpell () |
| void | RemoveGameObjectImpl (GameObject *gameObj, bool del) |
| bool | IsAlwaysVisibleFor (WorldObject const *seer) const override |
| bool | IsAlwaysDetectableFor (WorldObject const *seer) const override |
| void | DisableSpline () |
| void | ProcessPositionDataChanged (PositionFullTerrainStatus const &data) override |
| virtual void | ProcessTerrainStatusUpdate (ZLiquidStatus oldLiquidStatus, Optional< LiquidData > const &newLiquidData) |
| virtual void | AtEnterCombat () |
| virtual void | AtExitCombat () |
| virtual void | AtEngage (Unit *target) |
| virtual void | AtDisengage () |
| void | SetFeared (bool apply) |
| void | SetConfused (bool apply) |
| void | SetStunned (bool apply) |
| void | SetRooted (bool apply) |
Protected Member Functions inherited from WorldObject | |
| WorldObject (bool isWorldObject) | |
| void | SetLocationMapId (uint32 _mapId) |
| void | SetLocationInstanceId (uint32 _instanceId) |
| virtual bool | IsNeverVisible (bool allowServersideObjects) const |
| virtual bool | IsInvisibleDueToDespawn () const |
Protected Member Functions inherited from Object | |
| Object () | |
| void | _InitValues () |
| void | _Create (ObjectGuid const &guid) |
| bool | _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count) |
| uint32 | GetUpdateFieldData (Player const *target, uint32 *&flags) const |
| void | BuildMovementUpdate (ByteBuffer *data, uint16 flags) const |
| void | AddToObjectUpdateIfNeeded () |
Private Types | |
| typedef std::stack< std::shared_ptr< UnitAI > > | UnitAIStack |
Private Member Functions | |
| void | SetSpeedRateReal (UnitMoveType mtype, float rate) |
| void | UpdateSplineMovement (uint32 t_diff) |
| void | UpdateSplinePosition () |
| void | SendFlightSplineSyncUpdate () |
| void | InterruptMovementBasedAuras () |
| void | CheckPendingMovementAcks () |
| float | GetCombatRatingReduction (CombatRating cr) const |
| uint32 | GetCombatRatingDamageReduction (CombatRating cr, float rate, float cap, uint32 damage) const |
| void | ProcSkillsAndReactives (bool isVictim, Unit *procTarget, uint32 typeMask, uint32 hitMask, WeaponAttackType attType) |
| void | UpdateCharmAI () |
| void | RestoreDisabledAI () |
Private Attributes | |
| uint32 | m_state |
| uint32 | m_lastManaUse |
| Diminishing | m_Diminishing |
| CombatManager | m_combatManager |
| ThreatManager | m_threatManager |
| UnitAIStack | i_AIs |
| std::shared_ptr< UnitAI > | i_AI |
| bool | m_aiLocked |
| std::unordered_set< AbstractFollower * > | m_followingMe |
| Unit * | m_comboTarget |
| int8 | m_comboPoints |
| std::unordered_set< Unit * > | m_ComboPointHolders |
| uint32 | _lastExtraAttackSpell |
| std::unordered_map< ObjectGuid, uint32 > | extraAttacksTargets |
| ObjectGuid | _lastDamagedTargetGuid |
| bool | m_cleanupDone |
| bool | m_duringRemoveFromWorld |
| bool | _instantCast |
| uint32 | _oldFactionId |
| faction before charm | |
| bool | _isWalkingBeforeCharm |
| Are we walking before we were charmed? | |
| SpellHistory * | _spellHistory |
| PositionUpdateInfo | _positionUpdateInfo |
| bool | _isCombatDisallowed |
| uint32 | m_movementCounter |
| std::deque< PlayerMovementPendingChange > | m_pendingMovementChanges |
Friends | |
| class | WorldSession |
| class | VehicleJoinEvent |
| class | ImmediateMovementGenerator |
| class | CombatManager |
| class | ThreatManager |
| typedef std::set<Unit*> Unit::AttackerSet |
| typedef std::list<AuraApplication*> Unit::AuraApplicationList |
| typedef std::multimap<uint32, AuraApplication*> Unit::AuraApplicationMap |
| typedef std::pair<AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator> Unit::AuraApplicationMapBounds |
| typedef std::pair<AuraApplicationMap::iterator, AuraApplicationMap::iterator> Unit::AuraApplicationMapBoundsNonConst |
| typedef std::vector<std::pair<uint8 , AuraApplication*> > Unit::AuraApplicationProcContainer |
| typedef std::list<AuraEffect*> Unit::AuraEffectList |
| typedef std::list<Aura*> Unit::AuraList |
| typedef std::multimap<uint32, Aura*> Unit::AuraMap |
| typedef std::pair<AuraMap::const_iterator, AuraMap::const_iterator> Unit::AuraMapBounds |
| typedef std::pair<AuraMap::iterator, AuraMap::iterator> Unit::AuraMapBoundsNonConst |
| typedef std::multimap<AuraStateType, AuraApplication*> Unit::AuraStateAurasMap |
| typedef std::pair<AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator> Unit::AuraStateAurasMapBounds |
| typedef std::set<Unit*> Unit::ControlList |
| typedef std::array<DiminishingReturn, DIMINISHING_MAX> Unit::Diminishing |
|
protected |
|
protected |
|
private |
| typedef std::vector<Unit*> Unit::UnitVector |
| typedef std::map<uint8, AuraApplication*> Unit::VisibleAuraMap |
|
virtual |
Definition at line 408 of file Unit.cpp.
References _DeleteRemovedAuras(), _gameClientMovingMe, _spellHistory, ASSERT, CURRENT_MAX_SPELL, GameClient::GetBasePlayer(), i_motionMaster, EventProcessor::KillAllEvents(), m_appliedAuras, m_attackers, m_attacking, m_charmInfo, m_Controlled, m_currentSpells, m_duringRemoveFromWorld, m_dynObj, WorldObject::m_Events, m_gameObj, m_ownedAuras, m_removedAuras, m_sharedVision, movespline, and Spell::SetReferencedFromCurrent().
|
explicitprotected |
Definition at line 303 of file Unit.cpp.
References _gameClientMovingMe, _instantCast, _isCombatDisallowed, _isWalkingBeforeCharm, _lastExtraAttackSpell, _lastLiquid, _oldFactionId, ALIVE, BASE_ATTACK, BASE_MAXDAMAGE, BASE_MINDAMAGE, BASE_PCT, BASE_VALUE, CURRENT_MAX_SPELL, End, FlatNegative, FlatPositive, GHOST_VISIBILITY_ALIVE, m_attacking, m_attackPowerMods, m_attackTimer, m_auraFlatModifiersGroup, m_auraPctModifiersGroup, m_auraUpdateIterator, m_baseSpellCritChance, m_canDualWield, m_canModifyStats, m_charmInfo, m_cleanupDone, m_createStats, m_currentSpells, m_deathState, m_duringRemoveFromWorld, m_interruptMask, m_lastManaUse, m_modAttackSpeedPct, m_modMeleeHitChance, m_modRangedHitChance, m_modSpellHitChance, m_movementCounter, m_ObjectSlot, Object::m_objectType, Object::m_objectTypeId, m_ownedAuras, m_reactiveTimer, WorldObject::m_serverSideVisibility, m_speed_rate, m_state, m_SummonSlot, Object::m_updateFlag, m_weaponDamage, MAX_ATTACK, MAX_GAMEOBJECT_SLOT, MAX_MOVE_TYPE, MAX_REACTIVE, MAX_STATS, MAX_SUMMON_SLOT, MAXDAMAGE, MINDAMAGE, OFF_ATTACK, Pct, RANGED_ATTACK, SERVERSIDE_VISIBILITY_GHOST, FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::SetValue(), TOTAL_PCT, TOTAL_VALUE, TYPEID_UNIT, TYPEMASK_UNIT, UNIT_MOD_DAMAGE_OFFHAND, UNIT_MOD_END, UPDATEFLAG_LIVING, and UPDATEFLAG_STATIONARY_POSITION.
| void Unit::_addAttacker | ( | Unit * | pAttacker | ) |
Definition at line 3298 of file Unit.cpp.
References _RemoveNoStackAurasDueToAura(), ASSERT, Aura::GetCasterGUID(), Object::GetGUID(), Aura::GetId(), GetSingleCastAuras(), Aura::GetSpellInfo(), IsDuringRemoveFromWorld(), Object::IsInWorld(), Aura::IsRemoved(), Aura::IsSingleTarget(), SpellInfo::IsSingleTarget(), Aura::IsSingleTargetWith(), m_cleanupDone, m_ownedAuras, and Aura::SetIsSingleTarget().
Referenced by UnitAura::UnitAura().
| void Unit::_ApplyAllAuraStatMods | ( | ) |
Definition at line 4376 of file Unit.cpp.
References AURA_EFFECT_HANDLE_STAT, and m_appliedAuras.
Referenced by Player::_ApplyAllStatBonuses().
| void Unit::_ApplyAura | ( | AuraApplication * | aurApp, |
| uint8 | effMask | ||
| ) |
Definition at line 3393 of file Unit.cpp.
References AuraApplication::_HandleEffect(), _RemoveNoStackAurasDueToAura(), ACHIEVEMENT_CRITERIA_TYPE_GAIN_AURA, AURA_INTERRUPT_FLAG_NOT_SEATED, SpellInfo::AuraInterruptFlags, Object::ForceValuesUpdateAtIndex(), SpellInfo::GetAuraState(), AuraApplication::GetBase(), Aura::GetCaster(), Aura::GetId(), AuraApplication::GetRemoveMode(), Aura::GetSpellInfo(), GetStandState(), Aura::HandleAuraSpecificMods(), Object::HasFlag(), MAX_SPELL_EFFECTS, ModifyAuraState(), PER_CASTER_AURA_STATE_MASK, sConditionMgr, SetStandState(), Object::ToPlayer(), UNIT_FIELD_AURASTATE, UNIT_STAND_STATE_SIT, and UNIT_STAND_STATE_STAND.
Referenced by _ApplyAuraEffect().
Definition at line 3379 of file Unit.cpp.
References _ApplyAura(), AuraApplication::_HandleEffect(), ASSERT, Aura::GetApplicationOfTarget(), AuraApplication::GetEffectMask(), Object::GetGUID(), and Aura::HasEffect().
| AuraApplication * Unit::_CreateAuraApplication | ( | Aura * | aura, |
| uint8 | effMask | ||
| ) |
Definition at line 3337 of file Unit.cpp.
References Aura::_ApplyForTarget(), AddInterruptMask(), ASSERT, SpellInfo::AuraInterruptFlags, SpellInfo::GetAuraState(), Aura::GetCaster(), Aura::GetDebugInfo(), GetDebugInfo(), Object::GetGUID(), Aura::GetSpellInfo(), Object::GetTypeId(), SpellInfo::Id, IsAlive(), Aura::IsAppliedOnTarget(), SpellInfo::IsDeathPersistent(), Aura::IsRemoved(), m_appliedAuras, m_auraStateAuras, m_cleanupDone, m_interruptableAuras, TC_LOG_ERROR, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Spell::EffectApplyAura().
|
protected |
Definition at line 2854 of file Unit.cpp.
References m_removedAuras, and m_removedAurasCount.
Referenced by _UpdateSpells(), and ~Unit().
| void Unit::_EnterVehicle | ( | Vehicle * | vehicle, |
| int8 | seatId, | ||
| AuraApplication const * | aurApp = nullptr |
||
| ) |
Definition at line 12547 of file Unit.cpp.
References Vehicle::AddPassenger(), ASSERT, ExitVehicle(), VehicleEntry::Flags, Vehicle::GetBase(), AuraApplication::GetBase(), Object::GetEntry(), Object::GetGUID(), AuraApplication::GetRemoveMode(), WorldObject::GetTransSeat(), Object::GetTypeId(), Vehicle::GetVehicleInfo(), GetVehicleKit(), IsAlive(), IsOnVehicle(), m_vehicle, RemoveAura(), RemoveAurasByType(), SetControlled(), sFormationMgr, SPELL_AURA_CONTROL_VEHICLE, TC_LOG_DEBUG, Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, UNIT_STATE_ROOT, and VEHICLE_FLAG_FIXED_POSITION.
Referenced by AuraEffect::HandleAuraControlVehicle().
| void Unit::_ExitVehicle | ( | Position const * | exitPosition = nullptr | ) |
It's possible m_vehicle is NULL, when this function is called indirectly from @VehicleJoinEvent::Abort. In that case it was not possible to add the passenger to the vehicle. The vehicle aura has already been removed from the target in the aforementioned function and we don't need to do anything else at this point.
Definition at line 12651 of file Unit.cpp.
References AddUnitState(), CanFly(), Creature::DespawnOrUnsummon(), Player::duel, DUEL_FLED, Player::DuelComplete(), EVENT_VEHICLE_EXIT, VehicleSeatAddon::ExitParameter, VehicleSeatAddon::ExitParameterO, VehicleSeatAddon::ExitParameterX, VehicleSeatAddon::ExitParameterY, VehicleSeatAddon::ExitParameterZ, Vehicle::GetBase(), GetCollisionHeight(), getDeathState(), GetDebugInfo(), Vehicle::GetDespawnDelay(), WorldObject::GetMap(), GetMotionMaster(), Position::GetOrientation(), Object::GetPackGUID(), WorldObject::GetPhaseMask(), Position::GetPosition(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Vehicle::GetSeatAddonForSeatOfPassenger(), Object::GetTypeId(), Map::GetWaterOrGroundLevel(), HasUnitMovementFlag(), HasUnitTypeMask(), JUST_DIED, MotionMaster::LaunchMoveSpline(), m_vehicle, MOTION_PRIORITY_HIGHEST, MOVEMENTFLAG_ROOT, Position::Relocate(), Position::RelocateOffset(), Vehicle::RemovePassenger(), Player::ResummonPetTemporaryUnSummonedIfAny(), WorldObject::SendMessageToSet(), SetControlled(), setDeathState(), Player::SetFallInformation(), Position::SetOrientation(), SMSG_SPLINE_MOVE_UNROOT, TC_LOG_ERROR, Object::ToCreature(), Object::ToPlayer(), ToTempSummon(), TYPEID_UNIT, UNIT_MASK_ACCESSORY, UNIT_MASK_MINION, UNIT_STATE_MOVE, UNIT_STATE_ROOT, TempSummon::UnSummon(), VehicleExitParamDest, and VehicleExitParamOffset.
Referenced by AuraEffect::HandleAuraControlVehicle(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), and Player::StopCastingCharm().
| void Unit::_RegisterAuraEffect | ( | AuraEffect * | aurEff, |
| bool | apply | ||
| ) |
Definition at line 3575 of file Unit.cpp.
References AuraEffect::GetAuraType(), and m_modAuras.
Referenced by AuraEffect::HandleEffect().
| void Unit::_RegisterDynObject | ( | DynamicObject * | dynObj | ) |
Definition at line 5051 of file Unit.cpp.
References m_dynObj.
Referenced by DynamicObject::BindToCaster().
| void Unit::_RemoveAllAuraStatMods | ( | ) |
Definition at line 4370 of file Unit.cpp.
References AURA_EFFECT_HANDLE_STAT, and m_appliedAuras.
Referenced by Player::_RemoveAllStatBonuses().
| void Unit::_removeAttacker | ( | Unit * | pAttacker | ) |
Definition at line 5449 of file Unit.cpp.
References m_attackers.
Referenced by Attack(), and AttackStop().
| void Unit::_RemoveNoStackAurasDueToAura | ( | Aura * | aura, |
| bool | owned | ||
| ) |
Definition at line 3555 of file Unit.cpp.
References AURA_REMOVE_BY_DEFAULT, Aura::CanStackWith(), AuraApplication::GetBase(), Aura::GetSpellInfo(), IsHighestExclusiveAura(), SpellInfo::IsPassiveStackableWithRanks(), Aura::Remove(), RemoveAppliedAuras(), and RemoveOwnedAuras().
Referenced by _AddAura(), and _ApplyAura().
| Aura * Unit::_TryStackingOrRefreshingExistingAura | ( | AuraCreateInfo & | createInfo | ) |
Definition at line 3236 of file Unit.cpp.
References ASSERT, AURA_REMOVE_BY_DEFAULT, AuraCreateInfo::BaseAmount, AuraCreateInfo::Caster, AuraCreateInfo::CasterGUID, AuraCreateInfo::CastItemGUID, ObjectGuid::Clear(), ObjectGuid::Empty, AuraCreateInfo::GetAuraEffectMask(), SpellInfo::GetEffects(), Object::GetGUID(), GetOwnedAura(), AuraCreateInfo::GetSpellInfo(), SpellInfo::HasAttribute(), SpellInfo::Id, ObjectGuid::IsEmpty(), ObjectGuid::IsGameObject(), SpellInfo::IsMultiSlotAura(), SpellInfo::IsStackableOnOneSlotWithDifferentCasters(), AuraEffect::m_baseAmount, AuraCreateInfo::ResetPeriodicTimer, and SPELL_ATTR0_CU_ENCHANT_PROC.
Referenced by Aura::TryRefreshStackOrCreate().
| void Unit::_UnapplyAura | ( | AuraApplication * | aurApp, |
| AuraRemoveMode | removeMode | ||
| ) |
Definition at line 3534 of file Unit.cpp.
References _UnapplyAura(), ABORT, ASSERT, Aura::GetApplicationOfTarget(), AuraApplication::GetBase(), Object::GetGUID(), Aura::GetId(), and m_appliedAuras.
| void Unit::_UnapplyAura | ( | AuraApplicationMap::iterator & | i, |
| AuraRemoveMode | removeMode | ||
| ) |
Definition at line 3444 of file Unit.cpp.
References AuraApplication::_HandleEffect(), AuraApplication::_Remove(), Aura::_UnapplyForTarget(), ASSERT, AURA_REMOVE_BY_EXPIRE, SpellInfo::AuraInterruptFlags, Object::ForceValuesUpdateAtIndex(), SpellInfo::GetAuraState(), AuraApplication::GetBase(), Aura::GetCaster(), AuraApplication::GetEffectMask(), Aura::GetId(), AuraApplication::GetRemoveMode(), Aura::GetSpellInfo(), AuraApplication::GetTarget(), Object::GetTypeId(), Aura::HandleAuraSpecificMods(), AuraApplication::HasEffect(), IsTotem(), JUST_DIED, m_appliedAuras, m_auraStateAuras, m_interruptableAuras, m_removedAurasCount, MAX_SPELL_EFFECTS, ModifyAuraState(), PER_CASTER_AURA_STATE_MASK, sConditionMgr, Minion::setDeathState(), AuraApplication::SetRemoveMode(), TC_LOG_DEBUG, Object::ToPlayer(), TOTEM_PASSIVE, ToTotem(), TYPEID_UNIT, UNIT_FIELD_AURASTATE, and UpdateInterruptMask().
Referenced by Aura::_Remove(), _UnapplyAura(), RemoveAllAuras(), RemoveAllAurasExceptType(), RemoveAllAurasExceptType(), RemoveAllAurasOnDeath(), RemoveAllAurasRequiringDeadTarget(), RemoveAura(), and AuraApplication::UpdateApplyEffectMask().
| void Unit::_UnregisterDynObject | ( | DynamicObject * | dynObj | ) |
Definition at line 5056 of file Unit.cpp.
References m_dynObj.
Referenced by DynamicObject::UnbindFromCaster().
|
protected |
Definition at line 2925 of file Unit.cpp.
References Spell::CheckCast(), CURRENT_AUTOREPEAT_SPELL, getAttackTimer(), Object::GetTypeId(), SpellInfo::Id, InterruptSpell(), isAttackReady(), isMoving(), IsNonMeleeSpellCast(), m_AutoRepeatFirstCast, m_currentSpells, Spell::m_spellInfo, Spell::prepare(), RANGED_ATTACK, resetAttackTimer(), Spell::SendCastResult(), setAttackTimer(), SPELL_CAST_OK, Object::ToPlayer(), TRIGGERED_FULL_MASK, and TYPEID_PLAYER.
Referenced by _UpdateSpells().
|
protected |
Definition at line 2865 of file Unit.cpp.
References _DeleteRemovedAuras(), _spellHistory, _UpdateAutoRepeatSpell(), AURA_REMOVE_BY_CANCEL, AURA_REMOVE_BY_EXPIRE, CURRENT_AUTOREPEAT_SPELL, CURRENT_MAX_SPELL, ObjectGuid::Empty, Object::GetGUID(), ObjectAccessor::GetWorldObject(), m_auraUpdateIterator, m_currentSpells, m_gameObj, m_ownedAuras, m_visibleAuras, RemoveOwnedAura(), Spell::SetReferencedFromCurrent(), SPELL_STATE_FINISHED, SpellHistory::Update(), and Aura::UpdateOwner().
Referenced by Update().
Definition at line 11947 of file Unit.cpp.
References SpellInfo::GetEffects(), SpellInfo::HasAttribute(), IsAlive(), IsImmunedToSpell(), IsImmunedToSpellEffect(), SpellInfo::IsPassive(), AuraCreateInfo::SetCaster(), SPELL_ATTR2_CAN_TARGET_DEAD, and Aura::TryRefreshStackOrCreate().
Definition at line 11935 of file Unit.cpp.
References AddAura(), MAX_EFFECT_MASK, and sSpellMgr.
Referenced by boss_flame_leviathan::boss_flame_leviathanAI::ActiveTower(), AddAura(), Player::ApplyItemDependentAuras(), boss_twilight_halion::boss_twilight_halion(), boss_veknilash::boss_veknilashAI::CastSpellOnBug(), boss_veklor::boss_veklorAI::CastSpellOnBug(), boss_lady_deathwhisper::DamageTaken(), boss_steelbreaker::boss_steelbreakerAI::DoAction(), boss_runemaster_molgeim::boss_runemaster_molgeimAI::DoAction(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::EnterEvadeMode(), StartLaunchEvent::Execute(), npc_anubisath_sentinel::aqsentinelAI::GainSentinelAbility(), spell_pal_avenging_wrath::HandleApply(), Aura::HandleAuraSpecificMods(), spell_thaddius_magnetic_pull::HandleCast(), deserter_commandscript::HandleDeserterAdd(), misc_commandscript::HandleFreezeCommand(), gm_commandscript::HandleGMVisibleCommand(), Player::HandlePassiveSpellLearn(), spell_thaddius_polarity_charge::HandleTargets(), Guardian::InitStatsForLevel(), boss_twin_baseAI::JustEngagedWith(), boss_drakkari_elemental::JustEngagedWith(), boss_halion::JustEngagedWith(), boss_twilight_halion::JustEngagedWith(), boss_freya::boss_freyaAI::JustEngagedWith(), Creature::LoadCreaturesAddon(), npc_flame_tsunami::npc_flame_tsunami(), BattlefieldWG::OnCreatureCreate(), go_blackfathom_altar::OnGossipHello(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnPlayerEnter(), BattlefieldWG::OnPlayerEnterZone(), AreaTrigger_at_area_52_entrance::OnTrigger(), npc_lake_frog::ReceiveEmote(), spell_putricide_slime_puddle_aura::ReplaceAura(), npc_troll_volunteer::Reset(), npc_acolyte_of_shadron::Reset(), npc_acolyte_of_vesperon::Reset(), npc_twilight_eggs::Reset(), npc_twilight_fissure::Reset(), npc_vengeful_shade::Reset(), boss_magus_telestra::Reset(), SetAuraStack(), spell_pal_immunities::TriggerDebuffs(), boss_gyth::UpdateAI(), boss_netherspite::boss_netherspiteAI::UpdateAI(), npc_tiger_matriarch_credit::UpdateAI(), npc_tiger_matriarch::UpdateAI(), npc_frostwing_ymirjar_vrykul::UpdateAI(), boss_elder_brightleaf::boss_elder_brightleafAI::UpdateAI(), npc_ancient_conservator::npc_ancient_conservatorAI::UpdateAI(), npc_scorch_ground::npc_scorch_groundAI::UpdateAI(), and boss_netherspite::boss_netherspiteAI::UpdatePortals().
|
inline |
Definition at line 1720 of file Unit.h.
Referenced by AddComboPoints().
|
inline |
Definition at line 1716 of file Unit.h.
References AddComboPoints().
Referenced by AddComboPoints().
Definition at line 10437 of file Unit.cpp.
References AddComboPointHolder(), m_comboPoints, m_comboTarget, RemoveComboPointHolder(), and SendComboPoints().
Referenced by AuraEffect::HandleAuraRetainComboPoints(), and ProcSkillsAndReactives().
| void Unit::AddExtraAttacks | ( | uint32 | count | ) |
Definition at line 2150 of file Unit.cpp.
References _lastDamagedTargetGuid, extraAttacksTargets, GetTarget(), and ObjectGuid::IsEmpty().
Referenced by Spell::EffectAddExtraAttacks().
|
inline |
Definition at line 1698 of file Unit.h.
Referenced by Vehicle::InitMovementInfoForBase().
| void Unit::AddGameObject | ( | GameObject * | gameObj | ) |
Definition at line 5116 of file Unit.cpp.
References Object::GetGUID(), GameObject::GetOwnerGUID(), GetSpellHistory(), GameObject::GetSpellId(), SpellInfo::IsCooldownStartedOnEvent(), ObjectGuid::IsEmpty(), m_gameObj, GameObject::SetOwnerGUID(), sSpellMgr, and SpellHistory::StartCooldown().
Referenced by Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectTransmitted(), and WorldObject::SummonGameObject().
|
inline |
| void Unit::AddPlayerToVision | ( | Player * | player | ) |
Definition at line 6298 of file Unit.cpp.
References m_sharedVision, WorldObject::setActive(), and WorldObject::SetIsStoredInWorldObjectGridContainer().
|
overridevirtual |
Reimplemented from Object.
Definition at line 9569 of file Unit.cpp.
References MotionMaster::AddToWorld(), WorldObject::AddToWorld(), i_motionMaster, and Object::IsInWorld().
Referenced by Creature::AddToWorld(), Pet::AddToWorld(), and Player::AddToWorld().
|
inline |
Definition at line 1692 of file Unit.h.
Referenced by Transport::CreateNPCPassenger(), VehicleJoinEvent::Execute(), npc_azure_ring_captain::Reset(), Player::ResurrectPlayer(), SetCanFly(), SetDisableGravity(), SetFall(), SetFeatherFall(), SetHover(), SetRooted(), SetSwim(), SetWalk(), SetWaterWalking(), Transport::SummonPassenger(), Player::TeleportTo(), BattlegroundSA::TeleportToEntrancePosition(), and boss_krick::UpdateAI().
|
inline |
Definition at line 889 of file Unit.h.
Referenced by _ExitVehicle(), MotionMaster::AddBaseUnitState(), Attack(), boss_ichoron::boss_ichoron(), Creature::Create(), Transport::CreateNPCPassenger(), boss_black_knight::boss_black_knightAI::DamageTaken(), boss_thekal::EnterEvadeMode(), boss_blood_queen_lana_thel::EnterEvadeMode(), npc_daegarn::EnterEvadeMode(), CreatureAI::EnterEvadeMode(), SmartAI::EnterEvadeMode(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleFeignDeath(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::InitializeAI(), FormationMovementGenerator::LaunchMovement(), spell_systems_shutdown::spell_systems_shutdown_AuraScript::OnApply(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::Reset(), SplineChainMovementGenerator::SendPathSpline(), boss_twinemperorsAI::SetAfterTeleport(), SetCharmedBy(), Player::SetContestedPvP(), SetControlled(), SetCurrentCastSpell(), RandomMovementGenerator< T >::SetRandomLocation(), Creature::SetSpellFocus(), HomeMovementGenerator< T >::SetTargetLocation(), WaypointMovementGenerator< Creature >::StartMove(), Transport::SummonPassenger(), boss_twinemperorsAI::TryActivateAfterTTelep(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), boss_black_knight::boss_black_knightAI::UpdateAI(), npc_general_arlos::WaypointPathEnded(), and npc_leryssa::WaypointPathEnded().
|
inline |
Definition at line 895 of file Unit.h.
Referenced by Vehicle::InstallAccessory().
| void Unit::AIUpdateTick | ( | uint32 | diff | ) |
Definition at line 9491 of file Unit.cpp.
References GetAI(), and m_aiLocked.
Referenced by Creature::Update(), and Player::Update().
| void Unit::ApplyAttackTimePercentMod | ( | WeaponAttackType | att, |
| float | val, | ||
| bool | apply | ||
| ) |
Definition at line 10598 of file Unit.cpp.
References ApplyPercentModFloatVar(), AsUnderlyingType(), GetAttackTime(), Object::GetFloatValue(), m_attackTimer, m_modAttackSpeedPct, Object::SetFloatValue(), and UNIT_FIELD_BASEATTACKTIME.
Referenced by Player::ApplyRatingMod(), AuraEffect::HandleAuraModRangedHaste(), AuraEffect::HandleModAttackSpeed(), AuraEffect::HandleModCombatSpeedPct(), AuraEffect::HandleModMeleeRangedSpeedPct(), AuraEffect::HandleModMeleeSpeedPct(), and AuraEffect::HandleRangedAmmoHaste().
| void Unit::ApplyCastTimePercentMod | ( | float | val, |
| bool | apply | ||
| ) |
Definition at line 10618 of file Unit.cpp.
References ApplyPercentModFloatVar(), Object::GetFloatValue(), SetModCastingSpeed(), and UNIT_MOD_CAST_SPEED.
Referenced by Player::ApplyRatingMod(), AuraEffect::HandleModCastingSpeed(), and AuraEffect::HandleModCombatSpeedPct().
| void Unit::ApplyControlStatesIfNeeded | ( | ) |
Definition at line 11310 of file Unit.cpp.
References HasAuraType(), HasUnitState(), SetConfused(), SetFeared(), SetRooted(), SetStunned(), SPELL_AURA_MOD_CONFUSE, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_STUN, UNIT_STATE_CONFUSED, UNIT_STATE_FLEEING, UNIT_STATE_ROOT, and UNIT_STATE_STUNNED.
Referenced by RemoveCharmedBy(), and SetControlled().
| void Unit::ApplyDiminishingAura | ( | DiminishingGroup | group, |
| bool | apply | ||
| ) |
Definition at line 8857 of file Unit.cpp.
References GameTime::GetGameTimeMS(), DiminishingReturn::hitTime, m_Diminishing, and DiminishingReturn::stack.
Referenced by UnitAura::_ApplyForTarget(), and UnitAura::_UnapplyForTarget().
| bool Unit::ApplyDiminishingToDuration | ( | SpellInfo const * | auraSpellInfo, |
| bool | triggered, | ||
| int32 & | duration, | ||
| WorldObject * | caster, | ||
| DiminishingLevels | previousLevel | ||
| ) | const |
Definition at line 8798 of file Unit.cpp.
References CREATURE_FLAG_EXTRA_OBEYS_TAUNT_DIMINISHING_RETURNS, DIMINISHING_LEVEL_1, DIMINISHING_LEVEL_2, DIMINISHING_LEVEL_3, DIMINISHING_LEVEL_4, DIMINISHING_LEVEL_IMMUNE, DIMINISHING_LEVEL_TAUNT_IMMUNE, DIMINISHING_NONE, DIMINISHING_TAUNT, DRTYPE_ALL, DRTYPE_PLAYER, WorldObject::GetCharmerOrOwner(), GetCharmerOrOwner(), SpellInfo::GetDiminishingReturnsGroupForSpell(), SpellInfo::GetDiminishingReturnsGroupType(), SpellInfo::GetDiminishingReturnsLimitDuration(), Object::GetTypeId(), IsAffectedByDiminishingReturns(), Object::ToCreature(), TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by HasStrongerAuraWithDR(), and Spell::PreprocessSpellHit().
|
static |
Definition at line 12003 of file Unit.cpp.
References CR_CRIT_TAKEN_MELEE, CR_CRIT_TAKEN_RANGED, CR_CRIT_TAKEN_SPELL, GetMeleeCritChanceReduction(), GetMeleeCritDamageReduction(), GetMeleeDamageReduction(), WorldObject::GetOwner(), GetRangedCritChanceReduction(), GetRangedCritDamageReduction(), GetRangedDamageReduction(), GetSpellCritChanceReduction(), GetSpellCritDamageReduction(), GetSpellDamageReduction(), Object::GetTypeId(), IsVehicle(), and TYPEID_PLAYER.
Referenced by CalculateSpellDamageTaken(), GetUnitCriticalChanceTaken(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), and SpellCritChanceTaken().
Definition at line 8082 of file Unit.cpp.
References m_spellImmune.
Referenced by Vehicle::ApplyAllImmunities(), SpellInfo::ApplyAllSpellImmunitiesTo(), boss_gurtogg_bloodboil::ChangePhase(), boss_supremus::ChangePhase(), Creature::Create(), boss_lady_deathwhisper::DamageTaken(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::DoAction(), spell_sapphiron_icebolt::HandleApply(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), Aura::HandleAuraSpecificMods(), spell_sapphiron_icebolt::HandleRemove(), boss_leotheras_the_blind::JustAppeared(), boss_leotheras_the_blind::JustReachedHome(), Creature::LoadTemplateImmunities(), npc_detonating_lasher::npc_detonating_lasherAI::npc_detonating_lasherAI(), npc_iron_roots::npc_iron_rootsAI::npc_iron_rootsAI(), npc_saronite_vapors::npc_saronite_vaporsAI::npc_saronite_vaporsAI(), spell_krick_pursuit_confusion::OnApply(), spell_krick_pursuit_confusion::OnRemove(), npc_fiendish_imp::npc_fiendish_impAI::Reset(), boss_lady_deathwhisper::Reset(), boss_valithria_dreamwalker::Reset(), npc_faerlina_add::Reset(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::Reset(), boss_gurtogg_bloodboil::Reset(), boss_supremus::Reset(), boss_hydross_the_unstable::Reset(), npc_zombie_chow::SetData(), boss_gurtogg_bloodboil::UpdateAI(), boss_hydross_the_unstable::UpdateAI(), boss_kelidan_the_breaker::UpdateAI(), and Creature::UpdateEntry().
| void Unit::ApplyStatPctModifier | ( | UnitMods | unitMod, |
| UnitModifierPctType | modifierType, | ||
| float | amount | ||
| ) |
Definition at line 8987 of file Unit.cpp.
References AddPct(), BASE_PCT, m_auraPctModifiersGroup, MODIFIER_TYPE_PCT_END, TC_LOG_ERROR, TOTAL_PCT, UNIT_MOD_END, and UpdateUnitMod().
Referenced by AuraEffect::HandleAuraIncreaseBaseHealthPercent(), AuraEffect::HandleAuraModBaseResistancePCT(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleModPercentStat(), boss_arlokk::Reset(), boss_marli::Reset(), boss_thekal::Reset(), boss_arlokk::UpdateAI(), boss_marli::UpdateAI(), and boss_thekal::UpdateAI().
|
inlineprotectedvirtual |
Reimplemented in Creature.
Definition at line 1935 of file Unit.h.
Referenced by Creature::AtDisengage(), and CombatManager::UpdateOwnerCombatState().
|
protectedvirtual |
Reimplemented in Creature.
Definition at line 8725 of file Unit.cpp.
References DISTRACT_MOTION_TYPE, GetMotionMaster(), HasUnitState(), MotionMaster::Remove(), and UNIT_STATE_DISTRACTED.
Referenced by Creature::AtEngage(), and CombatManager::UpdateOwnerCombatState().
|
inlineprotectedvirtual |
Definition at line 1931 of file Unit.h.
Referenced by CombatManager::UpdateOwnerCombatState().
|
protectedvirtual |
Reimplemented in Player.
Definition at line 8720 of file Unit.cpp.
References AURA_INTERRUPT_FLAG_LEAVE_COMBAT, and RemoveAurasWithInterruptFlags().
Referenced by Player::AtExitCombat(), and CombatManager::UpdateOwnerCombatState().
| bool Unit::Attack | ( | Unit * | victim, |
| bool | meleeAttack | ||
| ) |
Definition at line 5477 of file Unit.cpp.
References _addAttacker(), _removeAttacker(), AddUnitState(), AI_REACTION_HOSTILE, BASE_ATTACK, CalculatePct(), Creature::CallAssistance(), ClearUnitState(), CURRENT_MELEE_SPELL, EMOTE_ONESHOT_NONE, EngageWithTarget(), getAttackTimer(), Object::GetFloatValue(), Object::GetGUID(), Object::GetTypeId(), HasAuraType(), HasUnitState(), haveOffhandWeapon(), InterruptSpell(), IsAlive(), IsControlledByPlayer(), Creature::IsEvadingAttacks(), Player::IsGameMaster(), Creature::IsInEvadeMode(), Object::IsInWorld(), IsMounted(), m_attacking, m_Controlled, OFF_ATTACK, RemoveAurasByType(), Creature::SendAIReaction(), SendMeleeAttackStart(), SendMeleeAttackStop(), setAttackTimer(), SetEmoteState(), SetTarget(), SPELL_AURA_MOD_UNATTACKABLE, Object::ToCreature(), Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, UNIT_FIELD_BASEATTACKTIME, and UNIT_STATE_MELEE_ATTACKING.
Referenced by npc_elwynn_forest_wolf::_ScheduleBeforeChasingEvents(), UnitAI::AttackStart(), PossessedAI::AttackStart(), boss_novos::AttackStart(), npc_gunship_gunner::AttackStart(), boss_tyrannus::AttackStart(), boss_lady_deathwhisper::AttackStart(), ArcherAI::AttackStart(), TurretAI::AttackStart(), SmartAI::AttackStart(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::AttackStart(), boss_veklor::boss_veklorAI::AttackStart(), boss_faction_championsAI::AttackStart(), UnitAI::AttackStartCaster(), ScriptedAI::AttackStartNoMove(), npc_ball_of_flame::DoAction(), PetAI::DoAttack(), Spell::EffectCharge(), WorldSession::HandleAttackSwingOpcode(), WorldSession::HandlePetActionHelper(), npc_pet_dk_ebon_gargoyle::InitializeAI(), npc_necromancer::npc_necromancerAI::JustSummoned(), boss_kologarn::boss_kologarnAI::JustSummoned(), dummy_dragonAI::MovementInform(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::OnGossipSelect(), npc_zulian_prowler::SpellHit(), npc_zulian_prowler::UpdateAI(), and npc_gargoyle::npc_gargoyleAI::UpdateAI().
| void Unit::AttackerStateUpdate | ( | Unit * | victim, |
| WeaponAttackType | attType = BASE_ATTACK, |
||
| bool | extra = false |
||
| ) |
Definition at line 2090 of file Unit.cpp.
References _lastDamagedTargetGuid, _lastExtraAttackSpell, CalcDamageInfo::Absorb, CalcDamageInfo::Attacker, AtTargetAttacked(), AURA_INTERRUPT_FLAG_MELEE_ATTACK, BASE_ATTACK, CalculateMeleeDamage(), Spell::cast(), CURRENT_MELEE_SPELL, CalcDamageInfo::Damage, CalcDamageInfo::Damages, DealDamageMods(), DealMeleeDamage(), DamageInfo::GetAbsorb(), DamageInfo::GetBlock(), DamageInfo::GetDamage(), Object::GetGUID(), Object::GetGUID(), DamageInfo::GetHitMask(), GetMeleeHitRedirectTarget(), DamageInfo::GetResist(), HasUnitFlag(), HasUnitState(), IsAlive(), WorldObject::IsWithinLOSInMap(), m_currentSpells, MAX_ITEM_PROTO_DAMAGES, OFF_ATTACK, PROC_SPELL_PHASE_NONE, PROC_SPELL_TYPE_NONE, CalcDamageInfo::ProcAttacker, ProcSkillsAndAuras(), CalcDamageInfo::ProcVictim, RemoveAurasWithInterruptFlags(), SendAttackStateUpdate(), CalcDamageInfo::Target, TC_LOG_DEBUG, ObjectGuid::ToString(), Position::ToString(), UNIT_FLAG_PACIFIED, and UNIT_STATE_CANNOT_AUTOATTACK.
Referenced by UnitAI::DoMeleeAttackIfReady(), boss_malchezaar::boss_malchezaarAI::DoMeleeAttacksIfReady(), HandleProcExtraAttackFor(), npc_guard_generic::JustEngagedWith(), Player::Update(), and npc_scarlet_ghoul::UpdateAI().
| bool Unit::AttackStop | ( | ) |
Definition at line 5587 of file Unit.cpp.
References _removeAttacker(), ClearUnitState(), CURRENT_MELEE_SPELL, ObjectGuid::Empty, InterruptSpell(), m_attacking, SendMeleeAttackStop(), SetTarget(), Object::ToCreature(), and UNIT_STATE_MELEE_ATTACKING.
Referenced by spell_the_lich_king_ice_burst_target_search::CheckTargetCount(), CombatStop(), boss_the_lich_king::DamageTaken(), npc_felblood_kaelthas_phoenix::DamageTaken(), npc_zealot_lorkhan::DamageTaken(), npc_zealot_zath::DamageTaken(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), boss_algalon_the_observer::DamageTaken(), npc_feral_defender::DamageTaken(), boss_ymiron::DamageTaken(), boss_essence_of_suffering::DamageTaken(), boss_essence_of_desire::DamageTaken(), boss_felblood_kaelthas::DamageTaken(), npc_death_knight_initiate::npc_death_knight_initiateAI::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_vx_001::boss_vx_001AI::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), boss_professor_putricide::DoAction(), npc_raging_spirit::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_parasitic_shadowfiend::DoAction(), boss_illidan_stormrage::DoAction(), npc_akama_illidan::DoAction(), npc_maiev::DoAction(), ScriptedAI::DoStopAttack(), Player::DuelComplete(), SmartAI::EnterEvadeMode(), boss_icehowl::ExecuteEvent(), boss_xt002::ExposeHeart(), Spell::finish(), boss_thorim::boss_thorimAI::FinishEncounter(), WorldSession::HandleAttackStopOpcode(), spell_hun_scatter_shot::HandleDummy(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleModUnattackable(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetStopAttack(), npc_enslaved_soul::HandleSoulRelease(), boss_freya::boss_freyaAI::JustDied(), PetAI::KilledUnit(), npc_snobold_vassal::MountOnBoss(), SimpleCharmedPlayerAI::OnCharmed(), RemoveCharmedBy(), SetCharmedBy(), npc_zombie_chow::SetData(), boss_hadronox::SetStep(), boss_attumen::boss_attumenAI::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), boss_ionar::SpellHit(), npc_sif::npc_sifAI::SpellHit(), boss_headless_horseman::StartPhase(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), PetAI::StopAttack(), StopAttackFaction(), boss_jormungarAI::Submerge(), SimpleCharmedPlayerAI::UpdateAI(), boss_felblood_kaelthas::UpdateAI(), boss_kalecgos::UpdateAI(), boss_arlokk::UpdateAI(), boss_onyxia::UpdateAI(), npc_qiraj_war_spawn::npc_qiraj_war_spawnAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_saviana_ragefire::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), boss_garfrost::UpdateAI(), boss_sindragosa::UpdateAI(), npc_rimefang_icc::UpdateAI(), boss_the_lich_king::UpdateAI(), boss_gluth::UpdateAI(), boss_gothik::UpdateAI(), boss_heigan::UpdateAI(), boss_noth::UpdateAI(), boss_sapphiron::UpdateAI(), boss_malygos::UpdateAI(), boss_urom::UpdateAI(), boss_volkhan::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), boss_hodir::UpdateAI(), boss_svala::UpdateAI(), npc_akama_illidan::UpdateAI(), boss_magtheridon::UpdateAI(), boss_kaelthas::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), boss_mr_smite::boss_mr_smiteAI::UpdateAI(), PossessedAI::UpdateAI(), npc_pet_mage_mirror_image::UpdateImageVictim(), npc_pet_dk_rune_weapon::UpdateRuneWeaponVictim(), CreatureAI::UpdateVictim(), and ValidateAttackersAndOwnTarget().
| void Unit::AtTargetAttacked | ( | Unit * | target, |
| bool | canInitialAggro | ||
| ) |
Definition at line 8731 of file Unit.cpp.
References AURA_INTERRUPT_FLAG_ENTER_PVP_COMBAT, Player::duel, EngageWithTarget(), GetCharmerOrOwner(), WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), Object::GetTypeId(), IsEngaged(), RemoveAurasWithInterruptFlags(), Player::SetContestedPvP(), Object::ToCreature(), TYPEID_PLAYER, and Player::UpdatePvP().
Referenced by AttackerStateUpdate().
Definition at line 5746 of file Unit.cpp.
References Object::GetGUID(), Object::GetUInt32Value(), m_auraStateAuras, PER_CASTER_AURA_STATE_MASK, and UNIT_FIELD_AURASTATE.
Referenced by BuildValuesUpdate().
| void Unit::BuildMovementPacket | ( | ByteBuffer * | data | ) | const |
Definition at line 12740 of file Unit.cpp.
References BuildMovementPacket(), WorldObject::m_movementInfo, MovementInfo::TransportInfo::pos, and MovementInfo::transport.
Referenced by BuildMovementPacket(), Object::BuildMovementUpdate(), and SetRooted().
|
static |
Definition at line 12745 of file Unit.cpp.
References MovementInfo::JumpInfo::cosAngle, MovementInfo::fallTime, MovementInfo::GetExtraMovementFlags(), GameTime::GetGameTimeMS(), MovementInfo::GetMovementFlags(), MovementInfo::TransportInfo::guid, MovementInfo::HasExtraMovementFlag(), MovementInfo::HasMovementFlag(), MovementInfo::jump, MOVEMENTFLAG2_ALWAYS_ALLOW_PITCHING, MOVEMENTFLAG2_INTERPOLATED_MOVEMENT, MOVEMENTFLAG_FALLING, MOVEMENTFLAG_FLYING, MOVEMENTFLAG_ONTRANSPORT, MOVEMENTFLAG_SPLINE_ELEVATION, MOVEMENTFLAG_SWIMMING, MovementInfo::pitch, MovementInfo::TransportInfo::seat, MovementInfo::JumpInfo::sinAngle, MovementInfo::splineElevation, MovementInfo::TransportInfo::time, MovementInfo::TransportInfo::time2, MovementInfo::transport, ObjectGuid::WriteAsPacked(), MovementInfo::JumpInfo::xyspeed, and MovementInfo::JumpInfo::zspeed.
|
overrideprotectedvirtual |
Reimplemented from Object.
Definition at line 13545 of file Unit.cpp.
References Object::_changesMask, Object::_fieldNotifyFlags, ByteBuffer::append(), UpdateMaskPacketBuilder::AppendToPacket(), BuildAuraStateUpdateForTarget(), Player::CanSeeSpellClickOn(), CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP, CREATURE_FLAG_EXTRA_TRIGGER, flags, CreatureTemplate::flags_extra, UpdateMask::GetBit(), WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), Creature::GetCreatureTemplate(), GetFaction(), WorldObject::GetFactionTemplateEntry(), CreatureTemplate::GetFirstVisibleModel(), Object::GetGUID(), GetOwnerGUID(), GetTransformSpell(), HasAuraTypeWithCaster(), Object::HasDynamicFlag(), Object::HasFlag(), Creature::hasLootRecipient(), Player::isAllowedToLoot(), IsControlledByPlayer(), FactionTemplateEntry::IsFriendlyTo(), Player::IsGameMaster(), IsInRaidWith(), Player::IsInSameRaidWith(), Creature::isTappedBy(), Object::m_floatValues, Object::m_uint32Values, Object::m_valuesCount, PER_CASTER_AURA_STATE_MASK, UpdateMaskPacketBuilder::SetBit(), sObjectMgr, SPELL_AURA_EMPATHY, SPELL_AURA_MOD_STALKED, SPELL_AURA_TRANSFORM, sSpellMgr, sWorld, Object::ToCreature(), UF_FLAG_OWNER, UF_FLAG_PARTY_MEMBER, UF_FLAG_PRIVATE, UF_FLAG_PUBLIC, UF_FLAG_SPECIAL_INFO, UNIT_BYTE2_FLAG_SANCTUARY, UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE, UNIT_DYNFLAG_SPECIALINFO, UNIT_DYNFLAG_TAPPED, UNIT_DYNFLAG_TAPPED_BY_PLAYER, UNIT_DYNFLAG_TRACK_UNIT, UNIT_FIELD_AURASTATE, UNIT_FIELD_BASEATTACKTIME, UNIT_FIELD_BYTES_2, UNIT_FIELD_DISPLAYID, UNIT_FIELD_FACTIONTEMPLATE, UNIT_FIELD_FLAGS, UNIT_FIELD_NEGSTAT0, UNIT_FIELD_NEGSTAT4, UNIT_FIELD_POSSTAT0, UNIT_FIELD_POSSTAT4, UNIT_FIELD_RANGEDATTACKTIME, UNIT_FIELD_RESISTANCEBUFFMODSNEGATIVE, UNIT_FIELD_RESISTANCEBUFFMODSPOSITIVE, UNIT_NPC_FLAG_SPELLCLICK, UNIT_NPC_FLAGS, UnitUpdateFieldFlags, and UPDATETYPE_VALUES.
|
static |
Definition at line 1780 of file Unit.cpp.
References SpellNonMeleeDamage::absorb, DamageInfo::AbsorbDamage(), AURA_REMOVE_BY_ENEMY_SPELL, BASE_ATTACK, CalcSpellResistedDamage(), CalculatePct(), SpellEffectInfo::CalcValueMultiplier(), Aura::CallScriptEffectAbsorbHandlers(), Aura::CallScriptEffectAfterAbsorbHandlers(), Aura::CallScriptEffectAfterManaShieldHandlers(), Aura::CallScriptEffectManaShieldHandlers(), Spell::CallScriptOnResistAbsorbCalculateHandlers(), SpellNonMeleeDamage::damage, DealDamage(), DealDamageMods(), DIRECT_DAMAGE, DOT, AuraEffect::GetAmount(), Aura::GetApplicationOfTarget(), DamageInfo::GetAttacker(), GetAuraEffectsByType(), AuraEffect::GetBase(), AuraApplication::GetBase(), AuraEffect::GetCaster(), DamageInfo::GetDamage(), DamageInfo::GetDamageType(), Object::GetGUID(), AuraEffect::GetMiscValue(), DamageInfo::GetSchoolMask(), AuraEffect::GetSpellEffectInfo(), DamageInfo::GetSpellInfo(), DamageInfo::GetVictim(), SpellNonMeleeDamage::HitInfo, IsAlive(), IsImmunedToDamage(), Object::IsInWorld(), MELEE_HIT_NORMAL, DamageInfo::ModifyDamage(), ModifyPower(), SpellNonMeleeDamage::periodicLog, POWER_MANA, PROC_FLAG_NONE, PROC_FLAG_TAKEN_SPELL_MAGIC_DMG_CLASS_NEG, PROC_HIT_NONE, PROC_SPELL_PHASE_HIT, PROC_SPELL_TYPE_DAMAGE, ProcSkillsAndAuras(), Aura::Remove(), DamageInfo::ResistDamage(), RoundToInterval(), WorldObject::SendSpellMiss(), SendSpellNonMeleeDamageLog(), AuraEffect::SetAmount(), SPELL_AURA_MANA_SHIELD, SPELL_AURA_MOD_TARGET_ABILITY_ABSORB_SCHOOL, SPELL_AURA_MOD_TARGET_ABSORB_SCHOOL, SPELL_AURA_SCHOOL_ABSORB, SPELL_AURA_SPLIT_DAMAGE_FLAT, SPELL_AURA_SPLIT_DAMAGE_PCT, SPELL_HIT_TYPE_SPLIT, and SPELL_MISS_IMMUNE.
Referenced by CalculateSpellDamageTaken(), Spell::EffectEnvironmentalDMG(), Spell::EffectHealthLeech(), Player::EnvironmentalDamage(), misc_commandscript::HandleDamageCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
|
static |
Definition at line 1596 of file Unit.cpp.
References AddPct(), CalculatePct(), CR_ARMOR_PENETRATION, GetArmor(), GetAuraEffectsByType(), GetLevel(), Player::GetRatingBonusValue(), AuraEffect::GetSpellInfo(), WorldObject::GetSpellModOwner(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), Object::GetTypeId(), Player::GetWeaponForAttack(), SpellInfo::Id, SpellInfo::IsItemFitToSpellRequirements(), RoundToInterval(), SPELL_AURA_MOD_ABILITY_IGNORE_TARGET_RESIST, SPELL_AURA_MOD_ARMOR_PENETRATION_PCT, SPELL_AURA_MOD_IGNORE_TARGET_RESIST, SPELL_AURA_MOD_TARGET_RESISTANCE, SPELL_SCHOOL_MASK_NORMAL, SPELLMOD_IGNORE_ARMOR, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by CalcSpellResistedDamage(), CalculateSpellDamageTaken(), misc_commandscript::HandleDamageCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
|
static |
Definition at line 2027 of file Unit.cpp.
References HealInfo::AbsorbHeal(), AURA_REMOVE_BY_ENEMY_SPELL, AuraEffect::GetAmount(), GetAuraEffectsByType(), AuraEffect::GetBase(), HealInfo::GetHeal(), HealInfo::GetSpellInfo(), HealInfo::GetTarget(), m_removedAurasCount, Aura::Remove(), SpellInfo::SchoolMask, and SPELL_AURA_SCHOOL_HEAL_ABSORB.
Referenced by AuraEffect::HandlePeriodicHealAurasTick(), and HealBySpell().
|
static |
Definition at line 1664 of file Unit.cpp.
References ApplyPct(), CalcArmorReducedDamage(), CalculateAverageResistReduction(), SpellInfo::GetAttackType(), AuraEffect::GetMiscValue(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), Object::GetTypeId(), SpellInfo::HasAttribute(), AuraEffect::IsAffectingSpell(), rand_norm(), SPELL_ATTR0_CU_SCHOOLMASK_NORMAL_WITH_MAGIC, SPELL_ATTR4_IGNORE_RESISTANCES, SPELL_AURA_MOD_ABILITY_IGNORE_TARGET_RESIST, SPELL_AURA_MOD_IGNORE_TARGET_RESIST, SPELL_SCHOOL_MASK_HOLY, SPELL_SCHOOL_MASK_MAGIC, and TYPEID_UNIT.
Referenced by CalcAbsorbResist(), spell_blood_queen_twilight_bloodbolt::HandleResistance(), and spell_abomination_mutated_transformation::HandleResistance().
| int32 Unit::CalculateAOEAvoidance | ( | int32 | damage, |
| uint32 | schoolMask, | ||
| ObjectGuid const & | casterGuid | ||
| ) | const |
Definition at line 12062 of file Unit.cpp.
References GetTotalAuraMultiplierByMiscMask(), ObjectGuid::IsAnyTypeCreature(), SPELL_AURA_MOD_AOE_DAMAGE_AVOIDANCE, and SPELL_AURA_MOD_CREATURE_AOE_DAMAGE_AVOIDANCE.
Referenced by Spell::DoEffectOnLaunchTarget(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
|
static |
Definition at line 1737 of file Unit.cpp.
References GetLevel(), WorldObject::GetLevelForTarget(), GetLevelForTarget(), GetResistance(), WorldObject::GetSpellModOwner(), Object::GetTypeId(), SpellInfo::HasAttribute(), SPELL_ATTR0_CU_BINARY_SPELL, SPELL_AURA_MOD_TARGET_RESISTANCE, SPELL_SCHOOL_MASK_HOLY, SPELLFAMILY_WARLOCK, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, Object::ToUnit(), and TYPEID_GAMEOBJECT.
Referenced by CalcSpellResistedDamage(), and WorldObject::MagicSpellHitResult().
| uint32 Unit::CalculateDamage | ( | WeaponAttackType | attType, |
| bool | normalized, | ||
| bool | addTotalPct, | ||
| uint8 | itemDamagesMask = 0 |
||
| ) | const |
Definition at line 2293 of file Unit.cpp.
References BASE_ATTACK, CalculateMinMaxDamage(), Object::GetFloatValue(), MAX_ITEM_PROTO_DAMAGES, OFF_ATTACK, RANGED_ATTACK, UNIT_FIELD_MAXDAMAGE, UNIT_FIELD_MAXOFFHANDDAMAGE, UNIT_FIELD_MAXRANGEDDAMAGE, UNIT_FIELD_MINDAMAGE, UNIT_FIELD_MINOFFHANDDAMAGE, UNIT_FIELD_MINRANGEDDAMAGE, and urand().
Referenced by spell_dk_rune_weapon_scaling_02::spell_dk_rune_weapon_scaling_02_AuraScript::CalculateDamageDoneAmount(), and Spell::EffectWeaponDmg().
| float Unit::CalculateDefaultCoefficient | ( | SpellInfo const * | spellInfo, |
| DamageEffectType | damagetype | ||
| ) | const |
Definition at line 10760 of file Unit.cpp.
References SpellInfo::CalcCastTime(), DOT, GetCastingTimeForBonus(), SpellInfo::GetDuration(), SpellInfo::GetMaxTicks(), and SpellInfo::IsChanneled().
Referenced by SpellDamageBonusDone(), and SpellHealingBonusDone().
| void Unit::CalculateMeleeDamage | ( | Unit * | victim, |
| CalcDamageInfo * | damageInfo, | ||
| WeaponAttackType | attackType = BASE_ATTACK |
||
| ) |
Definition at line 1145 of file Unit.cpp.
References CalcDamageInfo::Attacker, and CalcDamageInfo::Target.
Referenced by AttackerStateUpdate().
|
pure virtual |
Implemented in Creature, and Player.
Referenced by CalculateDamage(), Spell::EffectSchoolDMG(), and UpdateDamagePhysical().
| void Unit::CalculateSpellDamageTaken | ( | SpellNonMeleeDamage * | damageInfo, |
| int32 | damage, | ||
| SpellInfo const * | spellInfo, | ||
| WeaponAttackType | attackType = BASE_ATTACK, |
||
| bool | crit = false, |
||
| bool | blocked = false, |
||
| Spell * | spell = nullptr |
||
| ) |
Definition at line 1006 of file Unit.cpp.
References SpellNonMeleeDamage::absorb, AddPct(), ApplyResilience(), SpellNonMeleeDamage::attacker, BASE_ATTACK, SpellNonMeleeDamage::blocked, CalcAbsorbResist(), CalcArmorReducedDamage(), CanApplyResilience(), CR_CRIT_TAKEN_MELEE, CR_CRIT_TAKEN_RANGED, CR_CRIT_TAKEN_SPELL, SpellNonMeleeDamage::damage, SpellInfo::DmgClass, SpellNonMeleeDamage::fullBlock, DamageInfo::GetAbsorb(), GetCreatureTypeMask(), DamageInfo::GetDamage(), DamageInfo::GetResist(), SpellInfo::GetSchoolMask(), GetShieldBlockValue(), WorldObject::GetSpellModOwner(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), GetTotalAuraMultiplierByMiscMask(), SpellInfo::HasAttribute(), SpellNonMeleeDamage::HitInfo, HITINFO_FULL_ABSORB, HITINFO_FULL_RESIST, HITINFO_PARTIAL_ABSORB, HITINFO_PARTIAL_RESIST, SpellInfo::Id, IsAlive(), IsBlockCritical(), IsDamageReducedByArmor(), PROC_HIT_NONE, RANGED_ATTACK, SpellNonMeleeDamage::resist, SpellNonMeleeDamage::schoolMask, SPELL_ATTR4_FIXED_DAMAGE, SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_DAMAGE, SPELL_AURA_MOD_ATTACKER_RANGED_CRIT_DAMAGE, SPELL_AURA_MOD_CRIT_DAMAGE_BONUS, SPELL_AURA_MOD_CRIT_PERCENT_VERSUS, SPELL_DAMAGE_CLASS_MAGIC, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_NONE, SPELL_DAMAGE_CLASS_RANGED, SPELL_DIRECT_DAMAGE, SPELL_HIT_TYPE_CRIT, SpellCriticalDamageBonus(), SPELLMOD_CRIT_DAMAGE_BONUS, sScriptMgr, and SpellNonMeleeDamage::target.
Referenced by Spell::TargetInfo::DoDamageAndTriggers(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), and AuraEffect::HandleProcTriggerDamageAuraProc().
| float Unit::CalculateSpellpowerCoefficientLevelPenalty | ( | SpellInfo const * | spellInfo | ) | const |
Definition at line 2345 of file Unit.cpp.
References GetLevel(), and SpellInfo::MaxLevel.
Referenced by spell_warl_life_tap::HandleDummy(), spell_sha_flametongue_weapon::HandleProc(), SpellDamageBonusDone(), and SpellHealingBonusDone().
|
virtual |
Reimplemented in Player.
Definition at line 11998 of file Unit.cpp.
References GetOwnerGUID(), ObjectGuid::IsPlayer(), and IsVehicle().
Referenced by Aura::Aura(), CalculateSpellDamageTaken(), GetUnitCriticalChanceTaken(), and SpellCritChanceTaken().
|
inline |
Definition at line 851 of file Unit.h.
Referenced by Player::AutoUnequipOffhandIfNeed(), Player::CanEquipItem(), Player::FindEquipSlot(), haveOffhandWeapon(), and Player::UpdateAttackPowerAndDamage().
|
pure virtual |
| bool Unit::CanFreeMove | ( | ) | const |
Definition at line 9315 of file Unit.cpp.
References HasUnitState(), UNIT_STATE_CONFUSED, UNIT_STATE_DISTRACTED, UNIT_STATE_FLEEING, UNIT_STATE_IN_FLIGHT, UNIT_STATE_ROOT, and UNIT_STATE_STUNNED.
Referenced by SpellInfo::CheckTarget(), and npc_zombie_chow::UpdateAI().
|
inline |
====================== THREAT & COMBAT ====================
Definition at line 1136 of file Unit.h.
Referenced by Spell::EffectTaunt(), Spell::EffectThreat(), EngageWithTarget(), SmartScript::GetTargets(), AuraEffect::HandleAuraDummy(), spell_omor_the_unscarred_orbital_strike_target::HandleDummy(), AuraEffect::HandleModDetaunt(), AuraEffect::HandleModTaunt(), spell_pet_guard_dog::HandleProc(), Spell::HandleThreatSpells(), CreatureAI::JustEnteredCombat(), SmartScript::ProcessAction(), and Creature::SelectVictim().
|
inline |
Definition at line 1817 of file Unit.h.
Referenced by WorldObject::ModSpellCastTime().
|
inline |
Definition at line 1547 of file Unit.h.
Referenced by Player::_ApplyAmmoBonuses(), Player::_ApplyWeaponDamage(), HandleAttackPowerModifier(), Player::RemoveAmmo(), Player::UpdateBaseModGroup(), Player::UpdateRating(), and UpdateUnitMod().
|
inline |
Definition at line 1742 of file Unit.h.
Referenced by Spell::TargetInfo::DoDamageAndTriggers().
|
virtual |
Reimplemented in Creature.
Definition at line 12789 of file Unit.cpp.
References HasUnitFlag(), HasUnitFlag2(), UNIT_FLAG2_UNUSED_6, UNIT_FLAG_CAN_SWIM, UNIT_FLAG_CANNOT_SWIM, UNIT_FLAG_EVADING_HOME, UNIT_FLAG_PET_IN_COMBAT, and UNIT_FLAG_PLAYER_CONTROLLED.
Referenced by Creature::CanSwim(), Movement::MoveSplineInit::MoveSplineInit(), and WorldObject::UpdateAllowedPositionZ().
| bool Unit::CanUseAttackType | ( | uint8 | attacktype | ) | const |
Definition at line 2405 of file Unit.cpp.
References BASE_ATTACK, HasUnitFlag(), HasUnitFlag2(), OFF_ATTACK, RANGED_ATTACK, UNIT_FLAG2_DISARM_OFFHAND, UNIT_FLAG2_DISARM_RANGED, and UNIT_FLAG_DISARMED.
Referenced by Player::_ApplyAllItemMods(), Player::_ApplyAllLevelScaleItemMods(), Player::_ApplyWeaponDamage(), Player::_RemoveAllItemMods(), Creature::CalculateMinMaxDamage(), Player::CalculateMinMaxDamage(), Player::CastItemCombatSpell(), Player::GetUseableItemByPos(), AuraEffect::HandleAuraModShapeshift(), and Player::UpdateEquipSpellsAtFormChange().
| void Unit::CastStop | ( | uint32 | except_spellid = 0 | ) |
Definition at line 999 of file Unit.cpp.
References CURRENT_FIRST_NON_MELEE_SPELL, CURRENT_MAX_SPELL, InterruptSpell(), and m_currentSpells.
Referenced by boss_prince_taldaram::DamageTaken(), boss_halion::DamageTaken(), boss_twilight_halion::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_vx_001::boss_vx_001AI::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), boss_felmyst::EnterPhase(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), boss_felmyst::HandleFlightSequence(), SimpleCharmedPlayerAI::OnCharmed(), RemoveCharmedBy(), boss_novos::SetBubbled(), SetCharmedBy(), SetControlled(), SetStunned(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), boss_urom::StartAttack(), SimpleCharmedPlayerAI::UpdateAI(), boss_gothik::UpdateAI(), boss_heigan::UpdateAI(), boss_kelthuzad::UpdateAI(), boss_thaddius::UpdateAI(), and violet_hold_trashAI::UpdateEscortAI().
| void Unit::ChangeSeat | ( | int8 | seatId, |
| bool | next = true |
||
| ) |
Definition at line 12600 of file Unit.cpp.
References ASSERT, AuraEffect::ChangeAmount(), GetAuraEffectsByType(), Vehicle::GetBase(), Object::GetGUID(), Vehicle::GetNextEmptySeat(), WorldObject::GetTransSeat(), m_vehicle, Vehicle::Seats, and SPELL_AURA_CONTROL_VEHICLE.
Referenced by WorldSession::HandleChangeSeatsOnControlledVehicle().
|
inlinevirtual |
Reimplemented in Player.
Definition at line 1534 of file Unit.h.
Referenced by UpdateDamageDoneMods(), UpdateDamagePctDoneMods(), and Player::UpdateWeaponDependentCritAuras().
|
private |
Definition at line 12950 of file Unit.cpp.
References CONFIG_PENDING_MOVE_CHANGES_TIMEOUT, GameClient::GetBasePlayer(), GetGameClientMovingMe(), GameTime::GetGameTimeMS(), Object::GetGUID(), GameClient::GetWorldSession(), HasPendingMovementChange(), WorldSession::KickPlayer(), m_pendingMovementChanges, PlayerMovementPendingChange::movementChangeType, sWorld, TC_LOG_INFO, TELEPORT, PlayerMovementPendingChange::time, and ObjectGuid::ToString().
Referenced by Update().
| void Unit::CleanupBeforeRemoveFromMap | ( | bool | finalCleanup | ) |
Definition at line 9627 of file Unit.cpp.
References ASSERT, ClearComboPointHolders(), ClearComboPoints(), CombatStop(), Object::GetGUID(), InterruptNonMeleeSpells(), Object::IsInWorld(), IsVehicle(), m_cleanupDone, RemoveAllAuras(), RemoveAllGameObjects(), RemoveFromWorld(), and RemoveVehicleKit().
Referenced by CleanupsBeforeDelete().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 9656 of file Unit.cpp.
References CleanupBeforeRemoveFromMap(), and WorldObject::CleanupsBeforeDelete().
Referenced by Player::CleanupsBeforeDelete(), npc_commandscript::HandleNpcAddCommand(), and Map::RemoveAllObjectsInRemoveList().
| void Unit::ClearAllReactives | ( | ) |
Definition at line 10510 of file Unit.cpp.
References AURA_STATE_DEFENSE, AURA_STATE_HUNTER_PARRY, CLASS_HUNTER, CLASS_WARRIOR, ClearComboPoints(), GetClass(), Object::GetTypeId(), HasAuraState(), IsHunterPet(), m_reactiveTimer, MAX_REACTIVE, ModifyAuraState(), and TYPEID_PLAYER.
Referenced by Player::ActivateTalentGroup(), boss_scarlet_commander_mograine::DamageTaken(), and setDeathState().
| void Unit::ClearComboPointHolders | ( | ) |
Definition at line 10504 of file Unit.cpp.
References ClearComboPoints(), and m_ComboPointHolders.
Referenced by CreatureAI::_EnterEvadeMode(), CleanupBeforeRemoveFromMap(), boss_scarlet_commander_mograine::DamageTaken(), Player::RemoveFromWorld(), and setDeathState().
| void Unit::ClearComboPoints | ( | ) |
Definition at line 10456 of file Unit.cpp.
References m_comboPoints, m_comboTarget, RemoveAurasByType(), RemoveComboPointHolder(), SendComboPoints(), and SPELL_AURA_RETAIN_COMBO_POINTS.
Referenced by CleanupBeforeRemoveFromMap(), ClearAllReactives(), ClearComboPointHolders(), Player::DuelComplete(), Player::RemoveFromWorld(), Player::setDeathState(), and UpdateReactives().
| void Unit::ClearDiminishings | ( | ) |
|
inline |
Definition at line 1161 of file Unit.h.
Referenced by CombatStop(), Player::LoadFromDB(), and npc_image_of_medivh::npc_image_of_medivhAI::NextStep().
|
inline |
Definition at line 891 of file Unit.h.
Referenced by Creature::AtDisengage(), Attack(), AttackStop(), MotionMaster::ClearBaseUnitState(), MotionMaster::ClearBaseUnitStates(), ChaseMovementGenerator::Deactivate(), FollowMovementGenerator::Deactivate(), SplineChainMovementGenerator::Deactivate(), npc_ball_of_flame::DoAction(), FormationMovementGenerator::DoDeactivate(), WaypointMovementGenerator< Creature >::DoDeactivate(), HomeMovementGenerator< T >::DoDeactivate(), RandomMovementGenerator< T >::DoDeactivate(), FormationMovementGenerator::DoFinalize(), WaypointMovementGenerator< Creature >::DoFinalize(), HomeMovementGenerator< T >::DoFinalize(), ConfusedMovementGenerator< T >::DoFinalize(), RandomMovementGenerator< T >::DoFinalize(), FleeingMovementGenerator< T >::DoFinalize(), FormationMovementGenerator::DoUpdate(), Spell::EffectResurrectPet(), SmartAI::EnterEvadeMode(), ChaseMovementGenerator::Finalize(), FollowMovementGenerator::Finalize(), AssistanceMovementGenerator::Finalize(), SplineChainMovementGenerator::Finalize(), Spell::finish(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleFeignDeath(), npc_commandscript::HandleNpcEvadeCommand(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadInitializeScript(), SmartAI::MovementInform(), WaypointMovementGenerator< Creature >::OnArrived(), Creature::ReleaseSpellFocus(), RemoveCharmedBy(), boss_black_knight::boss_black_knightAI::Reset(), Player::ResetContestedPvP(), npc_valkyr_shadowguard::ScheduleHeroicEvents(), SetCharm(), SetControlled(), Creature::setDeathState(), HomeMovementGenerator< T >::SetTargetLocation(), spell_putricide_ooze_channel::StartAttack(), StopMoving(), boss_twinemperorsAI::TryActivateAfterTTelep(), boss_twinemperorsAI::TwinReset(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), SplineChainMovementGenerator::Update(), boss_the_lich_king::UpdateAI(), boss_loken::UpdateAI(), npc_living_constellation::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), and boss_black_knight::boss_black_knightAI::UpdateAI().
| void Unit::CombatStop | ( | bool | includingCast = false, |
| bool | mutualPvP = true |
||
| ) |
Definition at line 5633 of file Unit.cpp.
References AttackStop(), ClearInCombat(), CombatManager::EndAllPvECombat(), Object::GetTypeId(), InterruptNonMeleeSpells(), IsNonMeleeSpellCast(), m_combatManager, RemoveAllAttackers(), Player::SendAttackSwingCancelAttack(), CombatManager::SuppressPvPCombat(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by CreatureAI::_EnterEvadeMode(), Player::ActivateTaxiPathTo(), CleanupBeforeRemoveFromMap(), CombatStopWithPets(), Map::CreatureRespawnRelocation(), npc_calvin_montague::npc_calvin_montagueAI::DamageTaken(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), npc_kelthuzad_guardian::DoAction(), npc_akama_shade::DoAction(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DoNice(), Spell::EffectSanctuary(), Battleground::EndBattleground(), GuardAI::EnterEvadeMode(), gunship_npc_AI::EnterEvadeMode(), npc_high_overlord_saurfang_igb::EnterEvadeMode(), npc_muradin_bronzebeard_igb::EnterEvadeMode(), npc_terenas_menethil::EnterEvadeMode(), boss_hodir::EnterEvadeMode(), npc_pet_dk_rune_weapon::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), npc_pet_pri_lightwell::EnterEvadeMode(), EscortAI::EnterEvadeMode(), hyjalAI::EnterEvadeMode(), ScriptedAI::ForceCombatStop(), misc_commandscript::HandleCombatStopCommand(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleModUnattackable(), Battlefield::HideNpc(), npc_gunship::npc_gunshipAI::JustDied(), boss_freya::boss_freyaAI::JustDied(), boss_mimiron::boss_mimironAI::JustDied(), boss_eregos::JustSummoned(), boss_urom::LeaveCombat(), WorldSession::LogoutPlayer(), SmartScript::ProcessAction(), Player::RemovePet(), Map::RemovePlayerFromMap(), setDeathState(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_venture_co_straggler::SpellHit(), PetAI::StopAttack(), Player::TeleportTo(), Totem::UnSummon(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::UpdateAI(), boss_algalon_the_observer::UpdateAI(), and npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::UpdateAI().
| void Unit::CombatStopWithPets | ( | bool | includingCast = false | ) |
Definition at line 5652 of file Unit.cpp.
References CombatStop(), and m_Controlled.
Referenced by DealDamage(), FlightPathMovementGenerator::DoReset(), Battleground::EndBattleground(), WorldSession::HandleDuelCancelled(), Player::SetGameMaster(), and Player::UpdateArea().
Definition at line 937 of file Unit.h.
References CalculatePct().
Referenced by spell_illidari_council_empyreal_balance::HandleDummy().
Definition at line 936 of file Unit.h.
References CalculatePct().
Referenced by spell_pri_guardian_spirit::Absorb(), spell_rog_cheat_death::Absorb(), spell_pal_ardent_defender::Absorb(), spell_dru_survival_instincts_aura::AfterApply(), spell_dk_anti_magic_shell_self::CalculateAmount(), spell_dk_vampiric_blood::CalculateAmount(), npc_immortal_guardian::npc_immortal_guardianAI::DamageTaken(), boss_lady_vashj::DoAction(), boss_ichoron::DoAction(), Spell::EffectHeal(), Spell::EffectHealPct(), Spell::EffectResurrect(), Spell::EffectResurrectPet(), Spell::EffectSelfResurrect(), Spell::EffectSummonType(), AuraEffect::HandleAuraModIncreaseMaxHealth(), spell_dk_death_strike::HandleDummy(), spell_hun_last_stand_pet::HandleDummy(), spell_warr_last_stand::HandleDummy(), AuraEffect::HandlePeriodicHealAurasTick(), spell_dk_vendetta::HandleProc(), spell_dru_leader_of_the_pack::HandleProc(), spell_item_swift_hand_justice_dummy::HandleProc(), spell_pal_judgement_of_light_heal::HandleProc(), spell_pri_glyph_of_dispel_magic::HandleProc(), spell_pri_lightwell_renew::InitializeAmount(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), boss_vaelastrasz::JustEngagedWith(), npc_phoenix_the_eye::OnSpellCast(), spell_gen_restoration::PeriodicTick(), spell_dk_hysteria::PeriodicTick(), npc_draenei_survivor::npc_draenei_survivorAI::Reset(), npc_injured_draenei::npc_injured_draeneiAI::Reset(), boss_murmur::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), and npc_crok_scourgebane::UpdateEscortAI().
Definition at line 952 of file Unit.h.
References CalculatePct().
Definition at line 10827 of file Unit.cpp.
References Pet::CreateBaseAtCreature(), GetLevel(), Object::GetTypeId(), HUNTER_PET, InitTamedPet(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Spell::EffectCreateTamedPet(), Spell::EffectTameCreature(), npc_commandscript::HandleNpcTameCommand(), and pet_commandscript::HandlePetCreateCommand().
Definition at line 10851 of file Unit.cpp.
References Pet::CreateBaseAtCreatureInfo(), GetLevel(), Object::GetTypeId(), HUNTER_PET, InitTamedPet(), sObjectMgr, Object::ToPlayer(), and TYPEID_PLAYER.
Definition at line 11767 of file Unit.cpp.
References m_unitTypeMask, Object::m_updateFlag, m_vehicleKit, sVehicleStore, UNIT_MASK_VEHICLE, and UPDATEFLAG_VEHICLE.
Referenced by Creature::CreateFromProto(), AuraEffect::HandleAuraSetVehicle(), Mount(), and instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::OnPlayerEnter().
|
static |
Definition at line 724 of file Unit.cpp.
References CleanDamage::absorbed_damage, ACHIEVEMENT_CRITERIA_TYPE_DAMAGE_DONE, ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HIT_DEALT, ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HIT_RECEIVED, ACHIEVEMENT_CRITERIA_TYPE_TOTAL_DAMAGE_RECEIVED, ThreatManager::AddThreat(), ASSERT_NODEBUGINFO, CleanDamage::attackType, AURA_INTERRUPT_FLAG_DIRECT_DAMAGE, AURA_INTERRUPT_FLAG_TAKE_DAMAGE, BASE_ATTACK, CalculatePct(), WorldObject::CastSpell(), CHEAT_GOD, CombatStopWithPets(), CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, DealDamage(), DealDamageMods(), DIRECT_DAMAGE, DOT, Player::duel, DUEL_WON, Player::DuelComplete(), Player::DurabilityPointLossForEquipSlot(), EQUIPMENT_SLOT_END, GetAI(), GetAttackTime(), GetAuraEffectsByType(), GetCharmer(), GetControllingPlayer(), GameTime::GetGameTime(), Object::GetGUID(), GetHealth(), GetOwnerGUID(), GetPowerType(), SpellInfo::GetSchoolMask(), GetStandState(), TempSummon::GetSummonerUnit(), GetThreatManager(), Object::GetTypeId(), SpellInfo::HasAttribute(), SpellInfo::HasAura(), Creature::hasLootRecipient(), CleanDamage::hitOutCome, SpellInfo::Id, InterruptNonMeleeSpells(), IsControlledByPlayer(), Object::IsPlayer(), ObjectGuid::IsPlayer(), IsVehicle(), Kill(), Creature::LowerPlayerDamageReq(), m_Controlled, m_currentSpells, MAX_AGGRO_RESET_TIME, MELEE_HIT_CRIT, ModifyHealth(), NODAMAGE, OFF_ATTACK, POWER_RAGE, RANGED_ATTACK, RATE_DURABILITY_LOSS_DAMAGE, RemoveAurasWithInterruptFlags(), RewardRage(), roll_chance_f(), SCORE_DAMAGE_DONE, SetHealth(), Creature::SetLastDamagedTime(), Creature::SetLootRecipient(), SetStandState(), SPELL_ATTR3_TREAT_AS_PERIODIC, SPELL_ATTR4_DAMAGE_DOESNT_BREAK_AURAS, SPELL_ATTR7_NO_PUSHBACK_ON_DAMAGE, SPELL_AURA_DAMAGE_SHIELD, SPELL_AURA_SHARE_DAMAGE_PCT, SPELL_DIRECT_DAMAGE, SPELL_INTERRUPT_FLAG_ABORT_ON_DMG, SPELL_STATE_CASTING, SPELL_STATE_PREPARING, sScriptMgr, sWorld, Object::ToCreature(), Object::ToPlayer(), ToTempSummon(), TYPEID_PLAYER, UNIT_STAND_STATE_STAND, Player::UpdateAchievementCriteria(), and urand().
Referenced by CalcAbsorbResist(), DealDamage(), DealMeleeDamage(), DealSpellDamage(), Spell::EffectInstaKill(), Player::EnvironmentalDamage(), misc_commandscript::HandleDamageCommand(), misc_commandscript::HandleDieCommand(), spell_algalon_collapse::HandlePeriodic(), AuraEffect::HandlePeriodicDamageAurasTick(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), npc_phoenix_the_eye::OnSpellCast(), spell_dk_hysteria::PeriodicTick(), and boss_felmyst::SpellHit().
Definition at line 714 of file Unit.cpp.
References Object::GetTypeId(), HasUnitState(), IsAlive(), Creature::IsEvadingAttacks(), Object::ToCreature(), TYPEID_UNIT, and UNIT_STATE_IN_FLIGHT.
Referenced by AttackerStateUpdate(), CalcAbsorbResist(), DealDamage(), DealMeleeDamage(), Spell::TargetInfo::DoDamageAndTriggers(), Player::EnvironmentalDamage(), misc_commandscript::HandleDamageCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), and AuraEffect::HandleProcTriggerDamageAuraProc().
|
static |
Definition at line 6104 of file Unit.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_HEALING_DONE, ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HEAL_CAST, ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HEALING_RECEIVED, ACHIEVEMENT_CRITERIA_TYPE_TOTAL_HEALING_RECEIVED, GetAI(), HealInfo::GetHeal(), HealInfo::GetHealer(), WorldObject::GetOwner(), HealInfo::GetTarget(), Object::GetTypeId(), IsTotem(), ModifyHealth(), SCORE_HEALING_DONE, HealInfo::SetEffectiveHeal(), sScriptMgr, Object::ToPlayer(), and TYPEID_UNIT.
Referenced by AuraEffect::HandlePeriodicHealAurasTick(), and HealBySpell().
| void Unit::DealMeleeDamage | ( | CalcDamageInfo * | damageInfo, |
| bool | durabilityLoss | ||
| ) |
Definition at line 1444 of file Unit.cpp.
References CalcDamageInfo::Absorb, CalcDamageInfo::AttackType, BASE_ATTACK, Player::CastItemCombatSpell(), WorldObject::CastSpell(), CalcDamageInfo::CleanDamage, CREATURE_FLAG_EXTRA_NO_PARRY_HASTEN, CalcDamageInfo::Damage, CalcDamageInfo::Damages, CalcDamageInfo::DamageSchoolMask, DealDamage(), DealDamageMods(), DIRECT_DAMAGE, CreatureTemplate::flags_extra, GetAttackTime(), getAttackTimer(), GetAuraEffectsByType(), Creature::GetCreatureTemplate(), GetDefenseSkillValue(), Object::GetGUID(), Object::GetGUID(), GetHealth(), GetLevel(), GetMaxSkillValueForLevel(), SpellInfo::GetSchoolMask(), Object::GetTypeId(), Position::HasInArc(), HasUnitState(), haveOffhandWeapon(), CalcDamageInfo::HitOutCome, SpellInfo::Id, IsAlive(), IsControlledByPlayer(), Creature::IsEvadingAttacks(), IsImmunedToDamage(), IsVehicle(), Creature::isWorldBoss(), M_PI, MAX_ITEM_PROTO_DAMAGES, MELEE_HIT_CRIT, MELEE_HIT_CRUSHING, MELEE_HIT_GLANCING, MELEE_HIT_NORMAL, OFF_ATTACK, CalcDamageInfo::Resist, roll_chance_f(), RoundToInterval(), SpellInfo::SchoolMask, WorldObject::SendMessageToSet(), SendSpellDamageImmune(), WorldObject::SendSpellMiss(), setAttackTimer(), SMSG_SPELLDAMAGESHIELD, SPELL_AURA_DAMAGE_SHIELD, SPELL_DIRECT_DAMAGE, SPELL_MISS_NONE, SpellDamageBonusTaken(), WorldObject::SpellHitResult(), CalcDamageInfo::Target, CalcDamageInfo::TargetState, Object::ToCreature(), Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_STATE_IN_FLIGHT, and VICTIMSTATE_PARRY.
Referenced by AttackerStateUpdate().
| void Unit::DealSpellDamage | ( | SpellNonMeleeDamage const * | damageInfo, |
| bool | durabilityLoss | ||
| ) |
Definition at line 1120 of file Unit.cpp.
References SpellNonMeleeDamage::absorb, BASE_ATTACK, SpellNonMeleeDamage::cleanDamage, SpellNonMeleeDamage::damage, DealDamage(), Object::GetTypeId(), HasUnitState(), IsAlive(), Creature::IsEvadingAttacks(), MELEE_HIT_NORMAL, SpellNonMeleeDamage::schoolMask, SPELL_DIRECT_DAMAGE, SpellNonMeleeDamage::SpellID, sSpellMgr, SpellNonMeleeDamage::target, TC_LOG_DEBUG, Object::ToCreature(), TYPEID_UNIT, and UNIT_STATE_IN_FLIGHT.
Referenced by Spell::TargetInfo::DoDamageAndTriggers(), misc_commandscript::HandleDamageCommand(), spell_sindragosa_s_fury::HandleDummy(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), and AuraEffect::HandleProcTriggerDamageAuraProc().
| void Unit::DelayOwnedAuras | ( | uint32 | spellId, |
| ObjectGuid | caster, | ||
| int32 | delaytime | ||
| ) |
Definition at line 4351 of file Unit.cpp.
References Aura::GetCasterGUID(), Aura::GetDuration(), m_ownedAuras, Aura::SetDuration(), and Aura::SetNeedClientUpdateForTargets().
| void Unit::DeleteCharmInfo | ( | ) |
Definition at line 9715 of file Unit.cpp.
References m_charmInfo, and CharmInfo::RestoreState().
Referenced by RemoveCharmedBy().
| void Unit::DeMorph | ( | ) |
Definition at line 3231 of file Unit.cpp.
References GetNativeDisplayId(), and SetDisplayId().
Referenced by modify_commandscript::HandleDeMorphCommand().
|
overrideprotectedvirtual |
Reimplemented from Object.
Definition at line 13709 of file Unit.cpp.
References Object::DestroyForPlayer(), Player::GetBattleground(), Object::GetGUID(), Player::GetSession(), WorldPackets::Battleground::DestroyArenaUnit::Guid, WorldSession::SendPacket(), and WorldPackets::Battleground::DestroyArenaUnit::Write().
Referenced by Player::DestroyForPlayer().
|
protected |
Definition at line 600 of file Unit.cpp.
References Movement::MoveSpline::_Interrupt(), WorldObject::m_movementInfo, MOVEMENTFLAG_FORWARD, MOVEMENTFLAG_SPLINE_ENABLED, movespline, and MovementInfo::RemoveMovementFlag().
Referenced by NearTeleportTo(), setDeathState(), Player::TeleportTo(), and UpdateSplineMovement().
| void Unit::Dismount | ( | ) |
Definition at line 8174 of file Unit.cpp.
References AURA_INTERRUPT_FLAG_NOT_MOUNTED, GetCharmed(), Object::GetPackGUID(), Object::GetTypeId(), GetVehicleKit(), WorldPacket::Initialize(), IsMounted(), RemoveAurasWithInterruptFlags(), RemoveUnitFlag(), RemoveVehicleKit(), WorldObject::SendMessageToSet(), Player::SendMessageToSet(), SetMountDisplayId(), SMSG_DISMOUNT, SMSG_PLAYER_VEHICLE_DATA, Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_FLAG_MOUNT, UNIT_FLAG_STUNNED, and UNIT_STATE_STUNNED.
Referenced by Creature::AtEngage(), Player::CleanupAfterTaxiFlight(), FlightPathMovementGenerator::DoFinalize(), npc_thrall_old_hillsbrad::DoUnmount(), AuraEffect::HandleAuraMounted(), misc_commandscript::HandleDismountCommand(), spell_mount_check::HandleEffectPeriodic(), spell_gen_pony_mount_check::HandleEffectPeriodic(), npc_scarlet_courier::npc_scarlet_courierAI::JustEngagedWith(), boss_mandokir::JustEngagedWith(), npc_drakkari_invader::MovementInform(), npc_troll_volunteer::SpellHit(), npc_magister_aledis::npc_magister_aledisAI::StartFight(), and npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached().
| void Unit::EnergizeBySpell | ( | Unit * | victim, |
| SpellInfo const * | spellInfo, | ||
| int32 | damage, | ||
| Powers | powerType | ||
| ) |
Definition at line 6386 of file Unit.cpp.
References ThreatManager::ForwardThreatForAssistingMe(), GetThreatManager(), SpellInfo::Id, ModifyPower(), and SendEnergizeSpellLog().
Definition at line 6380 of file Unit.cpp.
References EnergizeBySpell(), and sSpellMgr.
Referenced by Spell::EffectEnergize(), Spell::EffectEnergizePct(), Spell::EffectPowerDrain(), EnergizeBySpell(), and spell_gen_restoration::PeriodicTick().
| void Unit::EngageWithTarget | ( | Unit * | who | ) |
Definition at line 8232 of file Unit.cpp.
References ThreatManager::AddThreat(), CanHaveThreatList(), m_threatManager, and SetInCombatWith().
Referenced by spell_stable_master_repo::AfterApply(), AggroAllPlayers(), EscortAI::AssistPlayerInCombatAgainst(), SmartAI::AssistPlayerInCombatAgainst(), Attack(), AtTargetAttacked(), CoolestFriendBaseAI::DoAction(), Spell::TargetInfo::DoDamageAndTriggers(), CreatureAI::DoZoneInCombat(), npc_arthas_stratholme::npc_arthas_stratholmeAI::EngageInfinites(), AssistDelayEvent::Execute(), npc_suppresser::IsSummonedBy(), npc_blessed_banner::JustSummoned(), boss_anubarak_trial::JustSummoned(), CreatureGroup::MemberEngagingTarget(), CreatureAI::MoveInLineOfSight(), CreatureAI::OnCharmed(), SmartAI::OnCharmed(), CreatureAI::OnOwnerCombatInteraction(), Trinity::CallOfHelpCreatureInRangeDo::operator()(), FollowerAI::OwnerAttackedBy(), Creature::Update(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), npc_magister_aledis::npc_magister_aledisAI::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), and npc_air_force_bots::npc_air_force_botsAI::UpdateAI().
|
inline |
Definition at line 875 of file Unit.h.
References ASSERT.
Referenced by EscortAI::AssistPlayerInCombatAgainst(), SmartAI::AssistPlayerInCombatAgainst(), PetAI::AttackStart(), Creature::CallAssistance(), boss_lady_deathwhisper::DamageTaken(), ConfusedMovementGenerator< T >::DoFinalize(), PetAI::OwnerAttacked(), PetAI::OwnerAttackedBy(), SmartScript::ProcessEvent(), SetConfused(), SetFeared(), SetStunned(), CasterAI::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), npc_sinster_reflection::npc_sinster_reflectionAI::UpdateAI(), boss_mandokir::UpdateAI(), npc_gargoyle::npc_gargoyleAI::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), npc_darnavan::UpdateAI(), boss_noth::UpdateAI(), npc_nagrand_banner::npc_kil_sorrow_spellbinderAI::UpdateAI(), npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI(), PetAI::UpdateAI(), and npc_scarlet_ghoul::UpdateAI().
Definition at line 12540 of file Unit.cpp.
References CastSpellExtraArgs::AddSpellBP0(), WorldObject::CastSpell(), TRIGGERED_IGNORE_CASTER_MOUNTED_OR_ON_VEHICLE, and VEHICLE_SPELL_RIDE_HARDCODED.
Referenced by debug_commandscript::HandleDebugEnterVehicleCommand(), WorldSession::HandleEnterPlayerVehicle(), spell_vehicle_throw_passenger::spell_vehicle_throw_passenger_SpellScript::HandleScript(), spell_putricide_mutated_transformation::HandleSummon(), npc_snobold_vassal::MountOnBoss(), and npc_ros_dark_rider::npc_ros_dark_riderAI::Reset().
|
virtual |
This function can be called at upper level code to initialize an exit from the passenger's side.
The following call would not even be executed successfully as the SPELL_AURA_CONTROL_VEHICLE unapply handler already calls _ExitVehicle without specifying an exitposition. The subsequent call below would return on if (!m_vehicle).
To do: We need to allow SPELL_AURA_CONTROL_VEHICLE unapply handlers in spellscripts to specify exit coordinates and either store those per passenger, or we need to init spline movement based on those coordinates in unapply handlers, and relocate exiting passengers based on Unit::moveSpline data. Either way, Coming Soon(TM)
Reimplemented in Creature.
Definition at line 12632 of file Unit.cpp.
References Object::GetGUID(), GetVehicleBase(), m_vehicle, RemoveAurasByType(), and SPELL_AURA_CONTROL_VEHICLE.
Referenced by _EnterVehicle(), Player::ActivateTalentGroup(), Player::ActivateTaxiPathTo(), Vehicle::AddPassenger(), VehicleJoinEvent::Execute(), StartLaunchEvent::Execute(), Creature::ExitVehicle(), WorldSession::HandleDismissControlledVehicle(), spell_warhead_detonate::HandleDummy(), WorldSession::HandleEjectPassenger(), spell_ulduar_squeezed_lifeless::spell_ulduar_squeezed_lifeless_SpellScript::HandleInstaKill(), WorldSession::HandleRequestVehicleExit(), spell_grizzly_hills_hand_over_reins::HandleScript(), RemoveFromWorld(), setDeathState(), Player::StopCastingCharm(), and Player::TeleportTo().
Definition at line 3131 of file Unit.cpp.
References CURRENT_MAX_SPELL, and m_currentSpells.
Referenced by Player::CastItemCombatSpell(), GetCurrentSpellCastTime(), WorldSession::HandleUpdateProjectilePosition(), npc_alchemist_adrianna::OnGossipHello(), SpellCritChanceTaken(), boss_thaddius::UpdateAI(), Aura::UpdateOwner(), and boss_hexlord_malacrass::UpdateSpecialEvents().
| void Unit::FinishSpell | ( | CurrentSpellTypes | spellType, |
| bool | ok = true |
||
| ) |
Definition at line 3074 of file Unit.cpp.
References CURRENT_CHANNELED_SPELL, Spell::finish(), m_currentSpells, and Spell::SendChannelUpdate().
Referenced by AuraEffect::HandleFeignDeath(), boss_lord_marrowgar::UpdateAI(), and GameObject::Use().
|
inline |
Definition at line 1679 of file Unit.h.
Referenced by AbstractFollower::SetTarget().
|
inline |
Definition at line 1680 of file Unit.h.
Referenced by AbstractFollower::SetTarget().
|
inline |
Definition at line 814 of file Unit.h.
Referenced by Creature::AI(), Player::AI(), AIUpdateTick(), spell_marrowgar_bone_spike_graveyard::CheckCast(), spell_algalon_big_bang::CheckTargets(), spell_marrowgar_bone_slice::ClearSpikeImmunities(), DealDamage(), DealHeal(), spell_grip::DummyTick(), spell_yogg_saron_brain_link::spell_yogg_saron_brain_link_AuraScript::DummyTick(), CombatReference::EndCombat(), CombatStartEvent::Execute(), spell_send_mug_target_picker::FilterTargets(), spell_blood_queen_bloodbolt::FilterTargets(), BattlegroundIC::HandleCapturedNodes(), spell_thaddius_magnetic_pull::HandleCast(), spell_grip::HandleDrop(), spell_send_mug_target_picker::HandleDummy(), spell_fatal_strike::HandleDummy(), spell_omrogg_beatdown::HandleDummy(), spell_mount_check::HandleEffectPeriodic(), spell_ulduar_random_aggro_periodic::HandleEffectPeriodic(), spell_maiev_down::HandleEffectRemove(), spell_gluth_decimate::HandleEvent(), spell_krick_pursuit_AuraScript::HandleExtraEffect(), spell_headless_horseman_head_periodic::HandleHPCheck(), spell_sapphiron_change_blizzard_target::HandlePeriodic(), spell_ahnkahet_shadow_sickle::HandlePeriodic(), spell_intense_cold::HandlePeriodicTick(), spell_mimiron_self_repair::spell_mimiron_self_repair_SpellScript::HandleScript(), spell_frostwarden_handler_focus_fire::HandleScript(), spell_mimiron_fire_search::spell_mimiron_fire_search_SpellScript::HandleScript(), spell_headless_horseman_send_head::HandleScriptEffect(), spell_headless_horseman_command_head_request_body::HandleScriptEffect(), spell_headless_horseman_return_head::HandleScriptEffect(), spell_headless_horseman_sprouting::HandleScriptEffect(), spell_dreamwalker_summon_suppresser::HandleSummon(), HasScheduledAIChange(), npc_coldflame::IsSummonedBy(), npc_marzon_silent_blade::npc_marzon_silent_bladeAI::MovementInform(), CombatManager::NotifyAICombat(), spell_claw_swipe_check::OnApply(), achievement_respect_your_elders::OnCheck(), achievement_twilight_assist::OnCheck(), achievement_twilight_duo::OnCheck(), achievement_twilight_zone::OnCheck(), achievement_bronjahm_soul_power::OnCheck(), achievement_im_on_a_boat::OnCheck(), achievement_all_you_can_eat::OnCheck(), achievement_been_waiting_long_time::OnCheck(), achievement_neck_deep_in_vile::OnCheck(), achievement_portal_jockey::OnCheck(), achievement_momma_said_knock_you_out::OnCheck(), achievement_spore_loser::OnCheck(), achievement_the_hundred_club::OnCheck(), achievement_thaddius_shocking::OnCheck(), achievement_gen_eregos_void::OnCheck(), achievement_he_feeds_on_your_tears::OnCheck(), achievement_assembly_i_choose_you::OnCheck(), achievement_getting_back_to_nature::OnCheck(), achievement_knock_on_wood::OnCheck(), achievement_knock_knock_on_wood::OnCheck(), achievement_knock_knock_knock_on_wood::OnCheck(), achievement_cheese_the_freeze::OnCheck(), achievement_getting_cold_in_here::OnCheck(), achievement_this_cache_was_rare::OnCheck(), achievement_i_have_the_coolest_friends::OnCheck(), achievement_ignis_shattered::OnCheck(), achievement_setup_boom::OnCheck(), achievement_setup_mine::OnCheck(), achievement_setup_rocket::OnCheck(), achievement_firefighter::OnCheck(), achievement_iron_dwarf_medium_rare::OnCheck(), achievement_dont_stand_in_the_lightning::OnCheck(), achievement_lose_your_illusion::OnCheck(), achievement_nerf_engineering::OnCheck(), achievement_heartbreaker::OnCheck(), achievement_nerf_gravity_bombs::OnCheck(), achievement_on_the_rocks::OnCheck(), achievement_incredible_hulk::OnCheck(), achievement_snakes_whyd_it_have_to_be_snakes::OnCheck(), achievement_once_bitten_twice_shy_n::OnCheck(), achievement_once_bitten_twice_shy_v::OnCheck(), spell_xt002_gravity_bomb_aura::OnPeriodic(), spell_gormok_jump_to_hand::OnRemove(), spell_icc_siphon_essence::OnRemove(), spell_yogg_saron_brain_link::spell_yogg_saron_brain_link_AuraScript::OnRemove(), spell_claw_swipe_check::OnRemove(), RemoveCharmedBy(), RemoveFromWorld(), spell_marrowgar_coldflame::SelectTarget(), spell_the_lich_king_valkyr_target_search::SelectTarget(), spell_algalon_trigger_3_adds::SelectTarget(), SetCharmedBy(), spell_marrowgar_bone_slice::SplitDamage(), CombatReference::SuppressFor(), CombatManager::SuppressPvPCombat(), and UpdateCharmAI().
| void Unit::GetAllMinionsByEntry | ( | std::list< TempSummon * > & | Minions, |
| uint32 | entry | ||
| ) |
Definition at line 6004 of file Unit.cpp.
References Object::GetEntry(), IsSummon(), m_Controlled, and ToTempSummon().
Referenced by spell_item_gift_of_the_harvester::CheckRequirement(), npc_scarlet_ghoul::FindMinions(), spell_pet_gen_lich_pet_aura::HandleProc(), spell_ethereal_pet_aura::HandleProc(), and spell_dk_dancing_rune_weapon::HandleTarget().
|
inline |
Definition at line 1024 of file Unit.h.
References UNIT_BYTES_1_OFFSET_ANIM_TIER, and UNIT_FIELD_BYTES_1.
Referenced by boss_blood_queen_lana_thel::UpdateAI().
| float Unit::GetAPMultiplier | ( | WeaponAttackType | attType, |
| bool | normalized | ||
| ) | const |
Definition at line 10782 of file Unit.cpp.
References BASE_ATTACK_TIME, GetAttackTime(), ItemTemplate::GetDelay(), ItemTemplate::GetSubClass(), Item::GetTemplate(), Object::GetTypeId(), Player::GetWeaponForAttack(), IsInFeralForm(), ITEM_SUBCLASS_WEAPON_AXE, ITEM_SUBCLASS_WEAPON_AXE2, ITEM_SUBCLASS_WEAPON_BOW, ITEM_SUBCLASS_WEAPON_CROSSBOW, ITEM_SUBCLASS_WEAPON_DAGGER, ITEM_SUBCLASS_WEAPON_EXOTIC, ITEM_SUBCLASS_WEAPON_EXOTIC2, ITEM_SUBCLASS_WEAPON_FISHING_POLE, ITEM_SUBCLASS_WEAPON_FIST_WEAPON, ITEM_SUBCLASS_WEAPON_GUN, ITEM_SUBCLASS_WEAPON_MACE, ITEM_SUBCLASS_WEAPON_MACE2, ITEM_SUBCLASS_WEAPON_POLEARM, ITEM_SUBCLASS_WEAPON_STAFF, ITEM_SUBCLASS_WEAPON_SWORD, ITEM_SUBCLASS_WEAPON_SWORD2, ITEM_SUBCLASS_WEAPON_THROWN, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Creature::CalculateMinMaxDamage(), Player::CalculateMinMaxDamage(), and MeleeDamageBonusDone().
|
inline |
Definition at line 1351 of file Unit.h.
Referenced by Player::ApplyEquipSpell(), AuraEffect::ApplySpellMod(), spell_thorim_blizzard_effect::spell_thorim_blizzard_effect_AuraScript::CheckAreaTarget(), Player::DuelComplete(), Spell::EffectWeaponDmg(), GetProcAurasTriggeredOnEvent(), spell_gen_break_shield::HandleScriptEffect(), spell_gen_mounted_charge::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), list_commandscript::ListAurasCommand(), ModifyAuraState(), spell_item_mad_alchemists_potion::SecondaryEffect(), SpellDamagePctDone(), SpellHealingPctDone(), and Map::Update().
|
inline |
|
inline |
Definition at line 919 of file Unit.h.
References SPELL_SCHOOL_NORMAL.
Referenced by CalcArmorReducedDamage(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArmorAmount(), AuraEffect::HandleModAttackPowerOfArmorAuraTick(), npc_commandscript::HandleNpcInfoCommand(), Guardian::InitStatsForLevel(), Player::outDebugValues(), and Guardian::UpdateArmor().
| Unit * Unit::getAttackerForHelper | ( | ) | const |
Definition at line 5454 of file Unit.cpp.
References GetCharmerOrOwner(), GetCombatManager(), CombatManager::GetPvECombatRefs(), CombatManager::GetPvPCombatRefs(), GetVictim(), CombatManager::HasPvECombat(), CombatManager::HasPvPCombat(), IsCharmerOrSelfPlayer(), IsEngaged(), IsInCombatWith(), and IsPet().
Referenced by npc_clintar_spirit::npc_clintar_spiritAI::EnterEvadeMode(), npc_skittering_swarmer::InitializeAI(), npc_skittering_infector::InitializeAI(), PetAI::SelectNextTarget(), Creature::SelectVictim(), SetFeared(), npc_clintar_spirit::npc_clintar_spiritAI::UpdateAI(), PetAI::UpdateAI(), and npc_scarlet_ghoul::UpdateAI().
|
inline |
Definition at line 871 of file Unit.h.
Referenced by spell_pal_righteous_defense::CheckCast(), Spell::EffectForceDeselect(), StopAttackFaction(), and ValidateAttackersAndOwnTarget().
| float Unit::GetAttackPowerModifierValue | ( | AttackPowerModIndex | index, |
| AttackPowerModType | modifierType | ||
| ) | const |
Definition at line 9115 of file Unit.cpp.
References End, m_attackPowerMods, and TC_LOG_ERROR.
Referenced by Creature::UpdateAttackPowerAndDamage(), Guardian::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
| uint32 Unit::GetAttackTime | ( | WeaponAttackType | att | ) | const |
Definition at line 8411 of file Unit.cpp.
References AsUnderlyingType(), Object::GetFloatValue(), m_modAttackSpeedPct, and UNIT_FIELD_BASEATTACKTIME.
Referenced by ApplyAttackTimePercentMod(), SpellInfo::CalcPowerCost(), Player::CastItemCombatSpell(), DealDamage(), DealMeleeDamage(), Spell::EffectSchoolDMG(), GetAPMultiplier(), GetWeaponProcChance(), spell_pal_seal_of_righteousness::HandleProc(), spell_sha_flametongue_weapon::HandleProc(), spell_sha_windfury_weapon::HandleProc(), npc_pet_hunter_snake_trap::JustAppeared(), Player::outDebugValues(), resetAttackTimer(), SpellHistory::StartCooldown(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), and Guardian::UpdateDamagePhysical().
|
inline |
Definition at line 848 of file Unit.h.
Referenced by _UpdateAutoRepeatSpell(), Attack(), DealMeleeDamage(), Player::Update(), and Update().
| Aura * Unit::GetAura | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0 |
||
| ) | const |
Definition at line 4462 of file Unit.cpp.
References GetAuraApplication(), and AuraApplication::GetBase().
Referenced by Player::ApplyEquipCooldown(), spell_marrowgar_coldflame_damage::CanBeAppliedOn(), spell_freezing_cloud_damage::CanBeAppliedOn(), boss_deathbringer_saurfang::DoAction(), Spell::DoTriggersOnSpellHit(), Spell::EffectWeaponDmg(), getOrphanGUID(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraLinked(), Aura::HandleAuraSpecificMods(), spell_pet_charge::HandleDummy(), spell_pilgrims_bounty_feast_on::HandleDummy(), spell_borean_tundra_nerubar_web_random_unit_not_on_quest_dummy::HandleDummy(), spell_borean_tundra_nerubar_web_random_unit_on_quest_dummy::HandleDummy(), spell_item_pygmy_oil::HandleDummy(), spell_warl_seduction::HandleDummy(), spell_sindragosa_frost_breath::HandleInfusion(), spell_mage_glyph_of_polymorph::HandleProc(), spell_item_anger_capacitor< StackAmount >::spell_item_anger_capacitor_AuraScript< Stacks >::HandleProc(), spell_item_trinket_stack::spell_item_trinket_stack_AuraScript::HandleProc(), AuraEffect::HandleRaidProcFromChargeWithValueAuraProc(), spell_pilgrims_bounty_well_fed::HandleScript(), spell_pilgrims_bounty_turkey_tracker::HandleScript(), spell_festergut_gastric_bloat::HandleScript(), spell_putricide_eat_ooze::HandleScript(), spell_rotface_large_ooze_combine::HandleScript(), spell_rotface_large_ooze_buff_combine::HandleScript(), spell_pri_lightwell::HandleScriptEffect(), spell_marrowgar_bone_spike_graveyard::HandleSpikes(), spell_borean_tundra_neural_needle::HandleWhisper(), spell_borean_tundra_prototype_neural_needle::HandleWhisper(), spell_dragonblight_high_executor_branding_iron::HandleWhisper(), npc_underbog_mushroom::InitializeAI(), npc_slad_ran_constrictor::JustEngagedWith(), spell_dk_pestilence::OnHit(), spell_brewfest_ram::OnPeriodic(), spell_midsummer_test_ribbon_pole_channel::PeriodicTick(), BattlefieldWG::PromotePlayer(), Player::ResurrectPlayer(), SimpleCharmedPlayerAI::SelectAppropriateCastForSpec(), SetAuraStack(), boss_deathbringer_saurfang::SpellHit(), boss_garfrost::SpellHitTarget(), boss_sindragosa::SpellHitTarget(), boss_trollgore::UpdateAI(), boss_lord_marrowgar::UpdateAI(), boss_faerlina::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), boss_elder_brightleaf::boss_elder_brightleafAI::UpdateAI(), npc_tempest_minion::UpdateAI(), npc_tournament_training_dummy::UpdateAI(), and npc_iron_construct::npc_iron_constructAI::UpdateAI().
| AuraApplication * Unit::GetAuraApplication | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0, |
||
| AuraApplication * | except = nullptr |
||
| ) | const |
Definition at line 4443 of file Unit.cpp.
References AuraApplication::GetBase(), Aura::GetCasterGUID(), Aura::GetCastItemGUID(), Aura::GetEffectMask(), and m_appliedAuras.
Referenced by AuraApplication::_Remove(), GetAura(), GetAuraApplicationOfRankedSpell(), HasAura(), and Spell::UpdateChanneledTargetList().
| AuraApplication * Unit::GetAuraApplicationOfRankedSpell | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0, |
||
| AuraApplication * | except = nullptr |
||
| ) | const |
Definition at line 4468 of file Unit.cpp.
References GetAuraApplication(), and sSpellMgr.
Referenced by spell_warl_drain_soul::CheckProc(), GetAuraOfRankedSpell(), and SimpleCharmedPlayerAI::SelectAppropriateCastForSpec().
Definition at line 4542 of file Unit.cpp.
References m_appliedAuras.
Referenced by spell_magtheridon_shadow_grasp_visual::AfterApply(), spell_hallow_end_tricky_treat::HandleScript(), spell_midsummer_fling_torch_catch::HandleScriptEffect(), SmartScript::ProcessEvent(), and boss_pyroguard_emberseer::SpellHit().
| AuraEffect * Unit::GetAuraEffect | ( | AuraType | type, |
| SpellFamilyNames | family, | ||
| uint32 | familyFlag1, | ||
| uint32 | familyFlag2, | ||
| uint32 | familyFlag3, | ||
| ObjectGuid | casterGUID = ObjectGuid::Empty |
||
| ) | const |
Definition at line 4422 of file Unit.cpp.
References GetAuraEffectsByType(), ObjectGuid::IsEmpty(), SpellInfo::SpellFamilyFlags, and SpellInfo::SpellFamilyName.
| AuraEffect * Unit::GetAuraEffect | ( | AuraType | type, |
| SpellFamilyNames | name, | ||
| uint32 | iconId, | ||
| uint8 | effIndex | ||
| ) | const |
Definition at line 4408 of file Unit.cpp.
References GetAuraEffectsByType(), SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, and SpellInfo::SpellIconID.
| AuraEffect * Unit::GetAuraEffect | ( | uint32 | spellId, |
| uint8 | effIndex, | ||
| ObjectGuid | casterGUID = ObjectGuid::Empty |
||
| ) | const |
Definition at line 4382 of file Unit.cpp.
References AuraEffect::GetBase(), Aura::GetEffect(), and m_appliedAuras.
Referenced by spell_dk_pet_scaling_01::spell_dk_pet_scaling_01_AuraScript::CalculateStrengthAmount(), spell_mage_gen_extra_effects::CheckProc(), spell_mage_missile_barrage_proc::CheckProc(), Spell::EffectHeal(), Spell::EffectSchoolDMG(), Spell::EffectWeaponDmg(), GetAuraEffectOfRankedSpell(), GetDummyAuraEffect(), AuraEffect::HandleAuraModShapeshift(), Aura::HandleAuraSpecificMods(), spell_sha_maelstrom_weapon::HandleBonus(), AuraEffect::HandleChannelDeathItem(), spell_warl_life_tap::HandleDummy(), spell_dk_death_coil::HandleDummy(), spell_dk_death_strike::HandleDummy(), spell_dk_scourge_strike::HandleDummy(), spell_warr_execute::HandleEffect(), spell_dru_nourish::HandleHeal(), spell_rog_cut_to_the_chase::HandleProc(), spell_warr_extra_proc::HandleProc(), spell_dk_unholy_blight::HandleProc(), spell_dru_glyph_of_shred::HandleProc(), spell_hun_thrill_of_the_hunt::HandleProc(), spell_item_blessing_of_ancient_kings::HandleProc(), spell_item_persistent_shield::HandleProc(), spell_pal_infusion_of_light::HandleProc(), spell_pal_sacred_shield_dummy::HandleProc(), spell_pri_divine_aegis::HandleProc(), spell_sha_glyph_of_earth_shield::HandleProc(), spell_sha_imp_water_shield::HandleProc(), spell_sha_static_shock::HandleProc(), spell_sha_t10_elemental_4p_bonus::HandleProc(), spell_sartura_whirlwind::HandleScript(), spell_leotheras_the_blind_whirlwind_effect::HandleScript(), spell_dk_glyph_of_scourge_strike_script::HandleScriptEffect(), spell_sha_stoneclaw_totem::HandleScriptEffect(), spell_pal_seal_of_vengeance< DoTSpellId, DamageSpellId >::spell_pal_seal_of_vengeance_AuraScript< DoTSpell, DamageSpell >::HandleSeal(), AuraEffect::HandleShapeshiftBoosts(), spell_warl_drain_soul::HandleTick(), Kill(), MeleeDamageBonusDone(), WorldObject::ModSpellDuration(), SpellCritChanceTaken(), SpellDamagePctDone(), SpellHealingBonusTaken(), SpellHealingPctDone(), Guardian::UpdateAttackPowerAndDamage(), Player::UpdateAttackPowerAndDamage(), and Guardian::UpdateStats().
| AuraEffect * Unit::GetAuraEffectOfRankedSpell | ( | uint32 | spellId, |
| uint8 | effIndex, | ||
| ObjectGuid | casterGUID = ObjectGuid::Empty |
||
| ) | const |
Definition at line 4396 of file Unit.cpp.
References GetAuraEffect(), and sSpellMgr.
Referenced by spell_mage_fire_frost_ward::Absorb(), spell_sha_earthbind_totem::Apply(), spell_sha_earthliving_weapon::CheckProc(), spell_dk_scourge_strike::HandleAfterHit(), spell_dru_enrage::HandleApply(), spell_pal_avenging_wrath::HandleApply(), Aura::HandleAuraSpecificMods(), spell_dk_presence::HandleImprovedBloodPresence(), spell_dk_presence::HandleImprovedFrostPresence(), spell_dk_presence::HandleImprovedUnholyPresence(), spell_dru_leader_of_the_pack::HandleProc(), spell_warl_soul_leech::HandleProc(), spell_pri_power_word_shield_aura::ReflectDamage(), SpellDamagePctDone(), spell_mage_incanters_absorbtion_base_AuraScript::Trigger(), and Guardian::UpdateAttackPowerAndDamage().
|
inline |
|
inline |
Definition at line 1397 of file Unit.h.
Referenced by Player::ActivateTalentGroup(), CalcAbsorbResist(), CalcArmorReducedDamage(), CalcHealAbsorb(), SpellInfo::CalcPowerCost(), AuraEffect::CalculateAmount(), Spell::CanAutoCast(), PlayerAI::CancelAllShapeshifts(), ChangeSeat(), Spell::CheckCasterAuras(), Spell::CheckSpellCancelsAuraEffect(), DealDamage(), DealMeleeDamage(), Spell::EffectHeal(), Spell::EffectSchoolDMG(), VehicleJoinEvent::Execute(), Spell::finish(), GetAuraEffect(), GetAuraEffect(), GetDoTsByCaster(), GetHighestExclusiveSameEffectSpellGroupValue(), WorldObject::GetMagicHitRedirectTarget(), GetMaxNegativeAuraModifier(), GetMaxPositiveAuraModifier(), GetMeleeHitRedirectTarget(), Player::GetPhaseMaskForSpawn(), Player::GetQuestXPReward(), npc_thorim_trashAI::AIHelper::GetRemainingHealOn(), Player::GetResurrectionSpellId(), Player::GetRuneTypeBaseCooldown(), GetTotalAuraModifier(), GetTotalAuraMultiplier(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleAuraModSchoolImmunity(), Aura::HandleAuraSpecificMods(), AuraEffect::HandleAuraTransform(), WorldSession::HandleCancelAuraOpcode(), WorldSession::HandleChatMessage(), AuraEffect::HandleDetectAmore(), spell_dru_nourish::HandleHeal(), WorldSession::HandleMirrorImageDataRequest(), AuraEffect::HandleModCastingSpeed(), AuraEffect::HandleNoReagentUseAura(), AuraEffect::HandlePhase(), spell_dk_glyph_of_scourge_strike_script::HandleScriptEffect(), spell_pal_judgement::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), HasAuraTypeWithAffectMask(), HasAuraTypeWithCaster(), HasAuraTypeWithFamilyFlags(), HasAuraTypeWithMiscvalue(), HasAuraTypeWithTriggerSpell(), HasAuraTypeWithValue(), HasBreakableByDamageAuraType(), IsHighestExclusiveAuraEffect(), IsImmunedToSpellEffect(), IsScriptOverriden(), Player::isTotalImmune(), list_commandscript::ListAurasCommand(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), MeleeSpellHitResult(), Spell::PrepareTriggersExecutedOnHit(), spell_dru_enrage::RecalculateBaseArmor(), Player::RegenerateAll(), RestoreDisplayId(), Creature::SelectVictim(), Player::SetBattlegroundEntryPoint(), SetFeared(), Player::SetGameMaster(), Player::SetSkill(), SpellBaseDamageBonusDone(), SpellBaseHealingBonusDone(), SpellCritChanceTaken(), SpellDamageBonusTaken(), SpellDamagePctDone(), SpellHealingBonusDone(), SpellHealingPctDone(), Player::SummonPet(), ThreatManager::TauntUpdate(), SimpleCharmedPlayerAI::UpdateAI(), Player::UpdateArmor(), Player::UpdateAttackPowerAndDamage(), Guardian::UpdateDamagePhysical(), ThreatManager::UpdateMyTempModifiers(), Player::UpdatePowerRegen(), Player::UpdateRating(), Player::UpdateSpellDamageAndHealingBonus(), and Player::UpdateStats().
| Aura * Unit::GetAuraOfRankedSpell | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0 |
||
| ) | const |
Definition at line 4480 of file Unit.cpp.
References GetAuraApplicationOfRankedSpell(), and AuraApplication::GetBase().
Referenced by spell_sha_clearcasting::CalculateAmount(), Aura::HandleAuraSpecificMods(), spell_warl_drain_soul::HandleProc(), and spell_mage_missile_barrage_proc::OnRemove().
|
inline |
Definition at line 855 of file Unit.h.
References UNIT_FIELD_BOUNDINGRADIUS.
| uint32 Unit::GetCastingTimeForBonus | ( | SpellInfo const * | spellProto, |
| DamageEffectType | damagetype, | ||
| uint32 | CastingTime | ||
| ) | const |
Definition at line 10630 of file Unit.cpp.
References SpellInfo::CalcCastTime(), DOT, SpellInfo::GetDuration(), SpellInfo::GetEffects(), Object::GetTypeId(), SpellInfo::IsChanneled(), IsPet(), SPELL_AURA_PERIODIC_DAMAGE, SPELL_AURA_PERIODIC_HEAL, SPELL_AURA_PERIODIC_LEECH, SPELL_EFFECT_APPLY_AURA, SPELL_EFFECT_ENVIRONMENTAL_DAMAGE, SPELL_EFFECT_HEAL, SPELL_EFFECT_HEALTH_LEECH, SPELL_EFFECT_POWER_BURN, SPELL_EFFECT_POWER_DRAIN, SPELL_EFFECT_SCHOOL_DAMAGE, and TYPEID_UNIT.
Referenced by CalculateDefaultCoefficient().
|
inline |
Definition at line 1473 of file Unit.h.
References UNIT_FIELD_CHANNEL_OBJECT.
Referenced by AuraEffect::PeriodicTick(), spell_halion_twilight_cutter::RemoveNotBetween(), Spell::SelectImplicitChannelTargets(), and boss_vx_001::boss_vx_001AI::UpdateAI().
|
inline |
Definition at line 1471 of file Unit.h.
References UNIT_CHANNEL_SPELL.
Referenced by Spell::IsChannelActive().
|
inline |
Definition at line 1269 of file Unit.h.
Referenced by WorldObject::CanDetect(), Dismount(), Spell::finish(), GetFirstControlled(), WorldSession::HandlePetCastSpellOpcode(), WorldSession::HandlePetSpellAutocastOpcode(), WorldSession::HandleRequestPetInfo(), isPossessing(), Mount(), Player::PossessSpellInitialize(), and Player::StopCastingCharm().
|
inline |
Definition at line 1268 of file Unit.h.
References UNIT_FIELD_CHARM.
Referenced by spell_hun_tame_beast::CheckCast(), Spell::CheckCast(), GetDebugInfo(), Guardian::InitSummon(), isPossessing(), OutDebugInfo(), RemoveAllControlled(), RemoveFromWorld(), SetCharm(), SetMinion(), Player::StopCastingCharm(), and lfg::LFGMgr::TeleportPlayer().
|
inline |
Definition at line 1310 of file Unit.h.
Referenced by Player::CanAlwaysSee().
|
inline |
Definition at line 1266 of file Unit.h.
Referenced by SimpleCharmedPlayerAI::CanAIAttack(), DealDamage(), GetCharmerOrSelf(), spell_gen_break_shield::HandleScriptEffect(), spell_gen_mounted_charge::HandleScriptEffect(), npc_salanar_the_horseman::npc_salanar_the_horsemanAI::MoveInLineOfSight(), PetAI::NeedToStop(), PetAI::OnCharmed(), SmartAI::OnCharmed(), RemoveCharmedBy(), SimpleCharmedPlayerAI::SelectAppropriateCastForSpec(), PlayerAI::SelectAttackTarget(), SimpleCharmedPlayerAI::SelectAttackTarget(), UpdateCharmAI(), UpdateSpeed(), and PlayerAI::VerifySpellCast().
|
inline |
Definition at line 1265 of file Unit.h.
References UNIT_FIELD_CHARMEDBY.
Referenced by Spell::CheckCast(), Spell::CheckEffectTarget(), WorldObject::DestroyForNearbyPlayers(), spell_hun_masters_call::DoCheckCast(), PlayerAI::GetCharmer(), GetDebugInfo(), Player::GetNPCIfCanInteractWith(), WorldSession::HandlePetActionHelper(), isPossessedByPlayer(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), OutDebugInfo(), RemoveAllControlled(), RemoveFromWorld(), SetCharm(), SetCharmedBy(), Player::SetClientControl(), Player::StopCastingCharm(), Update(), and UpdateCharmAI().
|
inline |
Definition at line 1278 of file Unit.h.
Referenced by ApplyDiminishingToDuration(), AtTargetAttacked(), PetAI::CanAttack(), Creature::CanCreatureAttack(), WorldObject::CanDetect(), npc_daegarn::EnterEvadeMode(), CreatureAI::EnterEvadeMode(), SmartAI::EnterEvadeMode(), npc_pet_dk_rune_weapon::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), UnitAura::FillTargetMap(), getAttackerForHelper(), WorldObject::GetCharmerOrOwner(), WorldSession::HandlePetActionHelper(), PetAI::HandleReturnMovement(), CreatureAI::JustAppeared(), PetAI::MovementInform(), MotionMaster::MoveTargetedHome(), PetAI::NeedToStop(), npc_eye_of_acherus::OnCharmed(), PetAI::SelectNextTarget(), SetStunned(), npc_wyrmrest_defender::SpellHit(), npc_eye_of_acherus::UpdateAI(), npc_pet_gen_pandaren_monk::UpdateAI(), PetAI::UpdateAI(), PetAI::UpdateAllies(), and CombatManager::UpdateOwnerCombatState().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 1273 of file Unit.h.
Referenced by Creature::CanAssistTo(), Creature::CanCreatureAttack(), Map::CreatureCellRelocation(), GetControllingPlayer(), SmartScript::GetTargets(), IsAlwaysVisibleFor(), KillRewarder::KillRewarder(), Spell::PreprocessSpellHit(), Creature::Regenerate(), Creature::RegenerateHealth(), and SendComboPoints().
| Unit * Unit::GetCharmerOrSelf | ( | ) | const |
Definition at line 6238 of file Unit.cpp.
References GetCharmer(), and IsCharmed().
|
inline |
Definition at line 1309 of file Unit.h.
Referenced by SendComboPoints(), SetConfused(), and SetFeared().
|
inline |
Definition at line 1300 of file Unit.h.
Referenced by PetAI::_AttackStart(), Pet::AddToWorld(), PetAI::CanAttack(), CanHaveGlobalCooldown(), Player::CharmSpellInitialize(), Spell::CheckPetCast(), PetAI::ClearCharmInfoFlags(), PetAI::DoAttack(), Spell::EffectResurrectPet(), AuraEffect::HandleModPossessPet(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetRename(), WorldSession::HandlePetSetAction(), PetAI::HandleReturnMovement(), InitTamedPet(), PetAI::MovementInform(), PetAI::PetAI(), Player::PetSpellInitialize(), Player::PossessSpellInitialize(), RemoveCharmedBy(), Player::RemovePet(), Player::ResetPetTalents(), Pet::resetTalentsForAllPetsOf(), PetAI::SelectNextTarget(), SetCharmedBy(), SpellHistory::PersistenceHelper< Pet >::SetIdentifier(), PetAI::StopAttack(), Player::SummonPet(), Player::UnsummonPetTemporaryIfAny(), and PetAI::UpdateAI().
|
inline |
Definition at line 909 of file Unit.h.
References UNIT_BYTES_0_OFFSET_CLASS, and UNIT_FIELD_BYTES_0.
Referenced by Player::_ApplyItemBonuses(), Player::_LoadHomeBind(), Player::_LoadSkills(), Player::ActivateTaxiPathTo(), ArenaTeam::AddMember(), spell_item_dire_brew::AfterApply(), Player::AtExitCombat(), Player::BuildPlayerTalentsInfoData(), Player::CalculateTalentsPoints(), Player::CanRollForItemInLFG(), Player::CanUseItem(), spell_dk_death_rune::CheckProc(), Spell::CheckRuneCost(), ClearAllReactives(), Player::Create(), WorldSession::DoLootRelease(), Player::DuelComplete(), Spell::EffectActivateRune(), Spell::EffectCreateTamedPet(), Spell::EffectLearnSkill(), Spell::EffectTameCreature(), Player::EquipItem(), spell_sindragosa_unchained_magic::FilterTargets(), Player::FindEquipSlot(), GetDebugInfo(), Player::GetDodgeFromAgility(), SocialMgr::GetFriendInfo(), Player::GetMeleeCritFromAgility(), Player::GetMissPercentageFromDefense(), npc_tournament_mount::npc_tournament_mountAI::GetPennantSpellId(), Trinity::Helpers::Entity::GetPlayerSpecialization(), Player::GetRatingMultiplier(), Player::GetSpellCritFromIntellect(), Player::GetStartPosition(), Player::GiveLevel(), WorldSession::HandleAlterAppearance(), spell_dk_blood_tap::spell_dk_blood_tap_AuraScript::HandleApply(), AuraEffect::HandleAuraConvertRune(), AuraEffect::HandleAuraModShapeshift(), Aura::HandleAuraSpecificMods(), WorldSession::HandleAutostoreLootItemOpcode(), spell_malacrass_siphon_soul::HandleDummy(), spell_item_flask_of_the_north::HandleDummy(), spell_item_refocus::HandleDummy(), spell_dk_blood_tap::spell_dk_blood_tap_SpellScript::HandleEffect(), learn_commandscript::HandleLearnMySpellsCommand(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMirrorImageDataRequest(), modify_commandscript::HandleModifyGenderCommand(), WorldSession::HandleOpeningCinematic(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), spell_item_aura_of_madness::HandleProc(), spell_item_deathbringers_will< StrengthSpellId, AgilitySpellId, APSpellId, CriticalSpellId, HasteSpellId >::spell_item_deathbringers_will_AuraScript< Strength, Agility, AttackPower, Critical, Haste >::HandleProc(), spell_item_soul_preserver::HandleProc(), spell_pal_t3_6p_bonus::HandleProc(), spell_sha_t3_6p_bonus::HandleProc(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsOrLevelHelper(), spell_gen_pet_summoned::HandleScript(), Player::InitDisplayIds(), npc_stolen_soul::InitializeAI(), Player::InitRunes(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), Player::InitTaxiNodesForLevel(), Pet::IsPermanentPetFor(), Trinity::Helpers::Entity::IsPlayerHealer(), Trinity::Helpers::Entity::IsPlayerRangedAttacker(), Player::IsSpellFitByClassAndRace(), Trainer::Trainer::IsTrainerValidForPlayer(), boss_archimonde::KilledUnit(), Player::LearnCustomSpells(), Player::LearnDefaultSkill(), Player::LearnDefaultSkills(), spell_dk_blood_boil::Load(), spell_dk_death_rune::Load(), Player::LoadFromDB(), AchievementCriteriaData::Meets(), Player::OCTRegenHPPerSpirit(), Player::OCTRegenMPPerSpirit(), DuelResetScript::OnDuelEnd(), Trinity::WorldObjectSpellTargetCheck::operator()(), Player::PrepareGossipMenu(), ProcSkillsAndReactives(), Player::RegenerateAll(), RemoveCharmedBy(), Player::ResetSpells(), Player::ResyncRunes(), Player::RewardHonor(), Player::SaveToDB(), SimpleCharmedPlayerAI::SelectAppropriateCastForSpec(), Spell::SendSpellGo(), SetCharmedBy(), Guild::Member::SetStats(), boss_volazj::SpellHitTarget(), Player::StoreNewItemInBestSlots(), Spell::TakeRunePower(), Player::TeleportTo(), Player::Update(), npc_sinster_reflection::npc_sinster_reflectionAI::UpdateAI(), Player::UpdateAttackPowerAndDamage(), Player::UpdateCombatSkills(), Player::UpdateDamageDoneMods(), UpdateDisplayPower(), Player::UpdateDodgePercentage(), Creature::UpdateLevelDependantStats(), Player::UpdateParryPercentage(), UpdateReactives(), Player::UpdateSkillsForLevel(), and Guardian::UpdateStats().
|
inline |
Definition at line 911 of file Unit.h.
Referenced by Player::ActivateTalentGroup(), Player::BuyItemFromVendorSlot(), Player::CanRollForItemInLFG(), Player::CanUseItem(), lfg::LFGMgr::FilterClassRoles(), ReputationMgr::GetFactionDataIndexForRaceAndClass(), AuraEffect::HandleAuraModRangedAttackPower(), AuraEffect::HandleAuraModRangedAttackPowerOfStatPercent(), AuraEffect::HandleAuraModRangedAttackPowerPercent(), learn_commandscript::HandleLearnAllTalentsCommand(), learn_commandscript::HandleLearnSkillRecipesHelper(), Player::IsSpellFitByClassAndRace(), Player::LearnSkillRewardedSpells(), Player::LearnTalent(), Player::ResetTalents(), Player::SatisfyQuestClass(), WorldSession::SendListInventory(), and Player::UpdateAttackPowerAndDamage().
|
overridevirtual |
Dismounting case - use basic default model data
Reimplemented from WorldObject.
Definition at line 13895 of file Unit.cpp.
References CreatureModelDataEntry::CollisionHeight, CreatureDisplayInfoEntry::CreatureModelScale, DEFAULT_COLLISION_HEIGHT, GetMountDisplayId(), GetNativeDisplayId(), Object::GetObjectScale(), IsMounted(), CreatureDisplayInfoEntry::ModelID, CreatureModelDataEntry::ModelScale, sCreatureDisplayInfoStore, and sCreatureModelDataStore.
Referenced by _ExitVehicle(), spell_spawn_blood_pool::SetDest(), and boss_jormungarAI::Submerge().
|
inline |
Definition at line 1144 of file Unit.h.
Referenced by ThreatManager::AddThreat(), Creature::CallForHelp(), CombatReference::EndCombat(), getAttackerForHelper(), debug_commandscript::HandleDebugCombatListCommand(), CombatManager::InheritCombatStatesFrom(), boss_hadronox::IsInCombatWithPlayer(), npc_the_lich_king_controller::JustSummoned(), Spell::PreprocessSpellHit(), CombatReference::Refresh(), boss_faction_championsAI::SelectEnemyCaster(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::SelectVictim(), CombatManager::SetInCombatWith(), CombatReference::SuppressFor(), BossAI::TeleportCheaters(), Player::Update(), Map::Update(), boss_yazzai::UpdateAI(), boss_warlord_salaris::UpdateAI(), boss_azuregos::UpdateAI(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), Player::UpdateArea(), npc_pet_mage_mirror_image::UpdateImageVictim(), and npc_pet_dk_rune_weapon::UpdateRuneWeaponVictim().
|
inline |
|
private |
Definition at line 12204 of file Unit.cpp.
References CalculatePct(), and GetCombatRatingReduction().
|
private |
Definition at line 12192 of file Unit.cpp.
References WorldObject::GetOwner(), IsPet(), and Object::ToPlayer().
Referenced by GetCombatRatingDamageReduction().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 853 of file Unit.h.
References UNIT_FIELD_COMBATREACH.
Referenced by Creature::CanCreatureAttack(), WorldObject::CanDetectStealthOf(), Spell::CheckCast(), Spell::EffectCharge(), Spell::EffectCreateTamedPet(), Spell::EffectResurrectPet(), Spell::EffectSummonPet(), Creature::GetAttackDistance(), GetMeleeRange(), Spell::GetMinMaxRange(), Player::GetNPCIfCanInteractWith(), misc_commandscript::HandleAppearCommand(), debug_commandscript::HandleDebugSpawnVehicleCommand(), group_commandscript::HandleGroupSummonCommand(), npc_commandscript::HandleNpcTameCommand(), misc_commandscript::HandleSummonCommand(), npc_coldflame::IsSummonedBy(), IsWithinCombatRange(), boss_bronjahm::JustSummoned(), Pet::LoadPetFromDB(), Trinity::AnyFriendlyUnitInObjectRangeCheck::operator()(), Trinity::AnyGroupedUnitInObjectRangeCheck::operator()(), Trinity::AnyAoETargetUnitInObjectRangeCheck::operator()(), SpellTargetSelector::operator()(), npc_released_offspring_harkoa::Reset(), boss_selin_fireheart::SelectNearestCrystal(), boss_king_dred::SpellHit(), ChaseMovementGenerator::Update(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), and boss_gurtogg_bloodboil::UpdateAI().
|
inline |
--------—Combo point system----------------—
Definition at line 1711 of file Unit.h.
Referenced by WorldObject::CalcSpellDuration(), SpellEffectInfo::CalcValue(), Spell::EffectSchoolDMG(), and SimpleCharmedPlayerAI::SelectAppropriateCastForSpec().
|
inline |
Definition at line 1713 of file Unit.h.
Referenced by Player::DuelComplete().
|
inline |
Definition at line 1714 of file Unit.h.
References ObjectGuid::Empty.
| Player * Unit::GetControllingPlayer | ( | ) | const |
Definition at line 5807 of file Unit.cpp.
References GetCharmerOrOwnerGUID(), ObjectAccessor::GetUnit(), ObjectGuid::IsEmpty(), and Object::ToPlayer().
Referenced by DealDamage(), and Player::DuelComplete().
|
inline |
Definition at line 1463 of file Unit.h.
References UNIT_FIELD_BASE_HEALTH.
Referenced by SpellInfo::CalcPowerCost(), Player::GiveLevel(), npc_commandscript::HandleNpcInfoCommand(), Guardian::UpdateMaxHealth(), and Player::UpdateMaxHealth().
|
inline |
Definition at line 1465 of file Unit.h.
References UNIT_FIELD_BASE_MANA.
Referenced by SpellInfo::CalcPowerCost(), Spell::EffectDestroyAllTotems(), Spell::EffectEnergize(), GetCreatePowerValue(), Player::GiveLevel(), Aura::HandleAuraSpecificMods(), spell_mage_empowered_fire::HandleProc(), spell_hun_thrill_of_the_hunt::HandleProc(), and spell_pal_judgement_of_wisdom_mana::HandleProc().
Definition at line 9464 of file Unit.cpp.
References GetCreateMana(), Object::GetTypeId(), HUNTER_PET, IsPet(), POWER_ENERGY, POWER_FOCUS, POWER_HAPPINESS, POWER_HEALTH, POWER_MANA, POWER_RAGE, POWER_RUNE, POWER_RUNIC_POWER, Object::ToCreature(), ToPet(), and TYPEID_UNIT.
Referenced by Pet::CreateBaseAtTamed(), spell_dru_glyph_of_innervate::HandleProc(), Player::InitStatsForLevel(), Pet::LoadPetFromDB(), Creature::UpdateMaxPower(), Guardian::UpdateMaxPower(), and Player::UpdateMaxPower().
|
inline |
Definition at line 1469 of file Unit.h.
Referenced by Player::GetDodgeFromAgility(), GetTotalStatValue(), Player::GiveLevel(), Guardian::UpdateMaxHealth(), and Guardian::UpdateMaxPower().
|
inline |
Definition at line 1256 of file Unit.h.
References UNIT_FIELD_CREATEDBY.
Referenced by SmartScript::GetTargets(), Condition::Meets(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), npc_ruby_emerald_amber_drake::SpellHit(), and npc_ruby_emerald_amber_drake::UpdateAI().
| uint32 Unit::GetCreatureType | ( | ) | const |
Definition at line 8880 of file Unit.cpp.
References ChrRacesEntry::CreatureType, SpellShapeshiftFormEntry::CreatureType, Creature::GetCreatureTemplate(), GetRace(), GetShapeshiftForm(), Object::GetTypeId(), sChrRacesStore, sSpellShapeshiftFormStore, Object::ToCreature(), CreatureTemplate::type, and TYPEID_PLAYER.
Referenced by Creature::CanStartAttack(), spell_utgarde_pinnacle_beast_mark::CheckProc(), spell_dk_death_pact::FilterTargets(), GetCreatureTypeMask(), AuraEffect::HandleAuraEmpathy(), spell_dru_starfall_dummy::HandleDummy(), and Trinity::NearestAttackableNoTotemUnitInObjectRangeCheck::operator()().
| uint32 Unit::GetCreatureTypeMask | ( | ) | const |
Definition at line 8898 of file Unit.cpp.
References GetCreatureType().
Referenced by CalculateSpellDamageTaken(), SpellInfo::CheckTarget(), SpellInfo::CheckTargetCreatureType(), Spell::EffectPickPocket(), MeleeDamageBonusDone(), SpellCritChanceTaken(), SpellCriticalDamageBonus(), SpellCriticalHealingBonus(), SpellDamageBonusDone(), and SpellDamagePctDone().
|
inline |
Definition at line 1262 of file Unit.h.
References UNIT_FIELD_CRITTER.
Referenced by SpellInfo::CheckExplicitTarget(), WorldSession::HandleDismissCritter(), and SetMinion().
|
inline |
Definition at line 1489 of file Unit.h.
Referenced by Player::ActivateTaxiPathTo(), Spell::CancelGlobalCooldown(), Spell::EffectInterruptCast(), AuraEffect::HandleAuraModSilence(), WorldSession::HandleCancelAuraOpcode(), WorldSession::HandleCancelChanneling(), WorldSession::HandleCastSpellOpcode(), AuraEffect::HandleFeignDeath(), WorldSession::HandleSetSelectionOpcode(), WorldSession::HandleUpdateMissileTrajectory(), HasBreakableByDamageCrowdControlAura(), SmartScript::ProcessEvent(), Player::RemoveItemDependentAurasAndCasts(), Spell::SelectImplicitChannelTargets(), npc_risen_archmage::UpdateAI(), PetAI::UpdateAI(), and GameObject::Use().
Definition at line 3139 of file Unit.cpp.
References FindCurrentSpellBySpellId(), and Spell::GetCastTime().
Referenced by CasterAI::JustEngagedWith(), and CasterAI::UpdateAI().
| uint32 Unit::GetDamageImmunityMask | ( | ) | const |
Definition at line 7731 of file Unit.cpp.
References IMMUNITY_DAMAGE, and m_spellImmune.
Referenced by IsImmunedToDamage(), and IsImmunedToDamage().
|
inline |
Definition at line 1251 of file Unit.h.
Referenced by _ExitVehicle(), Spell::finish(), GetDebugInfo(), AuraEffect::HandleModTotalPercentStat(), WorldSession::HandlePlayerLogin(), spell_gen_pet_summoned::HandleScript(), Trinity::NearestCreatureEntryWithLiveStateInObjectRangeCheck::operator()(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), Creature::RemoveCorpse(), Creature::Respawn(), Pet::setDeathState(), and SetHealth().
|
overridevirtual |
Reimplemented from Object.
Definition at line 13921 of file Unit.cpp.
References GetCharmedGUID(), GetCharmerGUID(), GetClass(), getDeathState(), Vehicle::GetDebugInfo(), GameClient::GetDebugInfo(), WorldObject::GetDebugInfo(), GetExtraUnitMovementFlags(), GetGameClientMovingMe(), GetUnitMovementFlags(), GetVehicleKit(), IsAIEnabled(), m_Controlled, movespline, ObjectGuid::ToString(), and Movement::MoveSpline::ToString().
Referenced by _CreateAuraApplication(), _ExitVehicle(), UnitAI::GetDebugInfo(), AuraApplication::GetDebugInfo(), Creature::GetDebugInfo(), Player::GetDebugInfo(), RemoveAllAuras(), SetMinion(), and Player::StopCastingCharm().
|
virtual |
Reimplemented in Creature.
Definition at line 10284 of file Unit.cpp.
References IDLE_MOTION_TYPE.
Referenced by FactorySelector::SelectMovementGenerator().
Definition at line 2580 of file Unit.cpp.
References CR_DEFENSE_SKILL, Player::GetMaxSkillValue(), GetMaxSkillValueForLevel(), Player::GetSkillValue(), Object::GetTypeId(), SKILL_DEFENSE, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by spell_pal_ardent_defender::Absorb(), DealMeleeDamage(), GetUnitCriticalChanceTaken(), RollMeleeOutcomeAgainst(), and Player::UpdateBlockPercentage().
| DiminishingLevels Unit::GetDiminishing | ( | DiminishingGroup | group | ) | const |
Definition at line 8774 of file Unit.cpp.
References DIMINISHING_LEVEL_1, GetMSTimeDiffToNow(), DiminishingReturn::hitCount, DiminishingReturn::hitTime, m_Diminishing, and DiminishingReturn::stack.
Referenced by HasStrongerAuraWithDR(), IncrDiminishing(), and Spell::PreprocessSpellHit().
| TransportBase * Unit::GetDirectTransport | ( | ) | const |
Returns the transport this unit is on directly (if on vehicle and transport, return vehicle)
Definition at line 11837 of file Unit.cpp.
References WorldObject::GetTransport(), and GetVehicle().
Referenced by Movement::TransportPathTransform::operator()(), SmartScript::ProcessAction(), Creature::RemoveCorpse(), CharmInfo::SaveStayPosition(), SendTeleportPacket(), and UpdateSplinePosition().
| uint32 Unit::GetDiseasesByCaster | ( | ObjectGuid | casterGUID, |
| bool | remove = false |
||
| ) |
Definition at line 4674 of file Unit.cpp.
References DISPEL_DISEASE, m_modAuras, RemoveAura(), SPELL_AURA_LINKED, and SPELL_AURA_PERIODIC_DAMAGE.
Referenced by Spell::EffectWeaponDmg(), MeleeDamageBonusDone(), and SpellDamagePctDone().
| void Unit::GetDispellableAuraList | ( | WorldObject const * | caster, |
| uint32 | dispelMask, | ||
| DispelChargesList & | dispelList, | ||
| bool | isReflect = false |
||
| ) | const |
Definition at line 4486 of file Unit.cpp.
References Aura::CalcDispelChance(), DISPEL_DISEASE, Aura::GetApplicationOfTarget(), Aura::GetCharges(), SpellInfo::GetDispelMask(), Object::GetGUID(), GetOwnedAuras(), Aura::GetSpellInfo(), Aura::GetStackAmount(), SpellInfo::HasAttribute(), HasAura(), WorldObject::IsFriendlyTo(), Aura::IsPassive(), AuraApplication::IsPositive(), and SPELL_ATTR7_DISPEL_CHARGES.
Referenced by Spell::CheckCast(), Spell::EffectDispel(), and HighInquisitorFairbanksDispelMagicTargetSelector::operator()().
|
inline |
Definition at line 1598 of file Unit.h.
References UNIT_FIELD_DISPLAYID.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket(), Pet::CreateBaseAtCreature(), Player::CreateCorpse(), AuraEffect::HandleAuraCloneCaster(), WorldSession::HandleMirrorImageDataRequest(), npc_commandscript::HandleNpcInfoCommand(), WorldSession::HandleRequestPartyMemberStatsOpcode(), spell_death_knight_initiate_visual::HandleScriptEffect(), wp_commandscript::HandleWpShowCommand(), Guardian::InitStatsForLevel(), IsInDisallowedMountForm(), boss_devourer_of_souls::KilledUnit(), spell_illidan_demon_transform2::OnPeriodic(), and Creature::SetObjectScale().
| uint32 Unit::GetDoTsByCaster | ( | ObjectGuid | casterGUID | ) | const |
Definition at line 4706 of file Unit.cpp.
References GetAuraEffectsByType(), SPELL_AURA_NONE, SPELL_AURA_PERIODIC_DAMAGE, and SPELL_AURA_PERIODIC_DAMAGE_PERCENT.
Referenced by SpellDamagePctDone().
| AuraEffect * Unit::GetDummyAuraEffect | ( | SpellFamilyNames | name, |
| uint32 | iconId, | ||
| uint8 | effIndex | ||
| ) | const |
Definition at line 4438 of file Unit.cpp.
References GetAuraEffect(), and SPELL_AURA_DUMMY.
Referenced by Spell::EffectSchoolDMG(), Spell::EffectWeaponDmg(), spell_pri_renew::HandleApplyEffect(), AuraEffect::HandleAuraModShapeshift(), Aura::HandleAuraSpecificMods(), spell_warl_life_tap::HandleDummy(), AuraEffect::HandleShapeshiftBoosts(), MeleeDamageBonusDone(), SpellCritChanceTaken(), and SpellDamagePctDone().
|
inlineoverridevirtual |
Reimplemented from Object.
Definition at line 832 of file Unit.h.
References UNIT_DYNAMIC_FLAGS.
Referenced by modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcInfoCommand(), and Creature::SaveToDB().
| DynamicObject * Unit::GetDynObject | ( | uint32 | spellId | ) | const |
Definition at line 5061 of file Unit.cpp.
References GetDynObjects().
Referenced by Spell::CheckCast(), and Spell::DelayedChannel().
| std::vector< DynamicObject * > Unit::GetDynObjects | ( | uint32 | spellId | ) | const |
|
inline |
Definition at line 980 of file Unit.h.
References UNIT_NPC_EMOTESTATE.
Referenced by WorldSession::HandleMovementOpcode().
|
inline |
Definition at line 1701 of file Unit.h.
Referenced by GetDebugInfo(), and debug_commandscript::HandleDebugMoveflagsCommand().
|
inlineoverridevirtual |
Implements WorldObject.
Definition at line 987 of file Unit.h.
References UNIT_FIELD_FACTIONTEMPLATE.
Referenced by Player::ActivateTaxiPathTo(), BuildValuesUpdate(), Creature::CanAssistTo(), Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectSummonType(), DynamicObject::GetFaction(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionListItems(), WorldSession::HandleAuctionListOwnerItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleGossipHelloOpcode(), npc_commandscript::HandleNpcInfoCommand(), EscortAI::InitializeAI(), Minion::InitStats(), TempSummon::InitStats(), InitTamedPet(), go_wg_vehicle_teleporter::IsFriendly(), IsInPartyWith(), IsInRaidWith(), boss_balinda::JustSummoned(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::JustSummoned(), npc_felfire_portal::npc_felfire_portalAI::JustSummoned(), Pet::LoadPetFromDB(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::npc_engineer_spark_overgrindAI(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::npc_taskmaster_fizzuleAI(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::OnGossipSelect(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::ReceiveEmote(), WorldSession::SendAuctionHello(), SetCharmedBy(), Player::SetGameMaster(), Spell::SummonGuardian(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), Player::SummonPet(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_toc_shaman::UpdateAI(), npc_toc_enh_shaman::UpdateAI(), npc_akama_shade::UpdateAI(), and npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::WaypointReached().
| Unit * Unit::GetFirstControlled | ( | ) | const |
Definition at line 6179 of file Unit.cpp.
References GetCharmed(), GetMinionGUID(), ObjectAccessor::GetUnit(), and ObjectGuid::IsEmpty().
Referenced by Player::CharmSpellInitialize(), WorldSession::HandlePetSetAction(), and RemoveCharmedBy().
| Minion * Unit::GetFirstMinion | ( | ) | const |
Definition at line 5820 of file Unit.cpp.
References ObjectGuid::Empty, ObjectAccessor::GetCreatureOrPetOrVehicle(), GetMinionGUID(), ObjectGuid::IsEmpty(), SetMinionGUID(), TC_LOG_ERROR, ObjectGuid::ToString(), and UNIT_MASK_MINION.
| float Unit::GetFlatModifierValue | ( | UnitMods | unitMod, |
| UnitModifierFlatType | modifierType | ||
| ) | const |
Definition at line 9029 of file Unit.cpp.
References m_auraFlatModifiersGroup, MODIFIER_TYPE_FLAT_END, TC_LOG_ERROR, and UNIT_MOD_END.
Referenced by Creature::CalculateMinMaxDamage(), Player::CalculateMinMaxDamage(), GetTotalAuraModValue(), GetTotalStatValue(), Guardian::UpdateArmor(), Player::UpdateArmor(), Guardian::UpdateDamagePhysical(), Guardian::UpdateMaxHealth(), Player::UpdateMaxHealth(), Creature::UpdateMaxPower(), Guardian::UpdateMaxPower(), Player::UpdateMaxPower(), and UpdateStatBuffMod().
|
inlinevirtual |
Reimplemented in Minion.
Definition at line 1798 of file Unit.h.
References M_PI.
Referenced by npc_daegarn::EnterEvadeMode(), CreatureAI::EnterEvadeMode(), npc_pet_dk_rune_weapon::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), npc_commandscript::HandleNpcFollowCommand(), WorldSession::HandlePetActionHelper(), PetAI::HandleReturnMovement(), PetAI::OnCharmed(), SmartAI::OnCharmed(), and npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit().
|
inline |
Definition at line 1315 of file Unit.h.
Referenced by GameClient::AddAllowedMover(), CheckPendingMovementAcks(), GetDebugInfo(), KnockbackFrom(), GameClient::RemoveAllowedMover(), MovementPacketSender::SendSpeedChangeToAll(), MovementPacketSender::SendSpeedChangeToMover(), MovementPacketSender::SendSpeedChangeToObservers(), SendTeleportPacket(), SetCanFly(), SetDisableGravity(), SetFeatherFall(), SetHover(), SetRooted(), and SetWaterWalking().
| GameObject * Unit::GetGameObject | ( | uint32 | spellId | ) | const |
Definition at line 5100 of file Unit.cpp.
References GetGameObjects().
Referenced by Spell::cancel(), Player::TeleportTo(), and boss_garaxxas::UpdateAI().
| std::vector< GameObject * > Unit::GetGameObjects | ( | uint32 | spellId | ) | const |
|
inline |
Definition at line 912 of file Unit.h.
References UNIT_BYTES_0_OFFSET_GENDER, and UNIT_FIELD_BYTES_0.
Referenced by spell_item_dire_brew::AfterApply(), AuraEffect::HandleAuraDummy(), lookup_commandscript::HandleLookupTitleCommand(), WorldSession::HandleMirrorImageDataRequest(), modify_commandscript::HandleModifyGenderCommand(), AchievementCriteriaData::Meets(), Player::PrepareGossipMenu(), SmartScript::ProcessAction(), CreatureTextMgr::SendChat(), Talk(), Whisper(), and Player::Whisper().
| Guardian * Unit::GetGuardianPet | ( | ) | const |
Definition at line 5836 of file Unit.cpp.
References ObjectGuid::Empty, ObjectAccessor::GetCreatureOrPetOrVehicle(), GetPetGUID(), ObjectGuid::IsEmpty(), SetPetGUID(), TC_LOG_FATAL, ObjectGuid::ToString(), and UNIT_MASK_GUARDIAN.
Referenced by Spell::CheckCast(), spell_warl_fel_synergy::CheckProc(), spell_hun_masters_call::DoCheckCast(), GetNextRandomRaidMemberOrPet(), GetPartyMembers(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleModDamageDone(), AuraEffect::HandlePeriodicManaLeechAuraTick(), WorldSession::HandlePetCastSpellOpcode(), WorldSession::HandlePetSpellAutocastOpcode(), SetMinion(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 927 of file Unit.h.
References UNIT_FIELD_HEALTH.
Referenced by spell_pri_guardian_spirit::Absorb(), spell_rog_cheat_death::Absorb(), spell_pal_ardent_defender::Absorb(), boss_twilight_halion::boss_twilight_halion(), boss_valithria_dreamwalker::boss_valithria_dreamwalker(), WorldSession::BuildPartyMemberStatsChangedPacket(), SpellInfo::CalcPowerCost(), boss_supremus::CalculateHatefulStrikeTarget(), spell_razorscale_flame_breath::CheckDamage(), Spell::CheckPower(), boss_mother_smolderweb::DamageTaken(), boss_attumen::boss_attumenAI::DamageTaken(), boss_midnight::boss_midnightAI::DamageTaken(), boss_nightbane::boss_nightbaneAI::DamageTaken(), npc_felblood_kaelthas_phoenix::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), boss_apothecary_hummel::DamageTaken(), npc_madrigosa::DamageTaken(), boss_felmyst::DamageTaken(), npc_volatile_felfire_fiend::npc_volatile_felfire_fiendAI::DamageTaken(), boss_muru::DamageTaken(), npc_dark_fiend::DamageTaken(), npc_calvin_montague::npc_calvin_montagueAI::DamageTaken(), boss_halazzi::DamageTaken(), npc_spirit_of_the_lynx::DamageTaken(), boss_thekal::DamageTaken(), npc_zealot_lorkhan::DamageTaken(), npc_zealot_zath::DamageTaken(), boss_mal_ganis::boss_mal_ganisAI::DamageTaken(), boss_cthun::cthunAI::DamageTaken(), boss_twinemperorsAI::DamageTaken(), boss_baltharus_the_warborn::DamageTaken(), npc_baltharus_the_warborn_clone::DamageTaken(), boss_eadric::boss_eadricAI::DamageTaken(), boss_paletress::boss_paletressAI::DamageTaken(), npc_frost_sphere::DamageTaken(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::DamageTaken(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::DamageTaken(), npc_uther_quel_delar::npc_uther_quel_delarAI::DamageTaken(), boss_drakkari_colossus::DamageTaken(), boss_deathbringer_saurfang::DamageTaken(), npc_gunship::npc_gunshipAI::DamageTaken(), npc_high_overlord_saurfang_igb::DamageTaken(), npc_muradin_bronzebeard_igb::DamageTaken(), npc_crok_scourgebane::DamageTaken(), npc_terenas_menethil::DamageTaken(), boss_valithria_dreamwalker::DamageTaken(), boss_sapphiron::DamageTaken(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), boss_malygos::DamageTaken(), boss_magus_telestra::DamageTaken(), boss_urom::DamageTaken(), boss_volkhan::DamageTaken(), boss_algalon_the_observer::DamageTaken(), npc_collapsing_star::DamageTaken(), npc_feral_defender::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), boss_hodir::DamageTaken(), npc_flash_freeze_init::DamageTaken(), npc_flash_freeze_combat::DamageTaken(), npc_boombot::DamageTaken(), boss_sara::boss_saraAI::DamageTaken(), npc_immortal_guardian::npc_immortal_guardianAI::DamageTaken(), boss_ingvar_the_plunderer::DamageTaken(), npc_frost_tomb::DamageTaken(), boss_ymiron::DamageTaken(), npc_ichor_globule::DamageTaken(), npc_wild_wyrm::DamageTaken(), npc_akama_illidan::DamageTaken(), npc_maiev::DamageTaken(), boss_essence_of_suffering::DamageTaken(), boss_essence_of_desire::DamageTaken(), npc_enslaved_soul::DamageTaken(), boss_vazruden_the_herald::DamageTaken(), boss_alar::DamageTaken(), AdvisorBaseAI::DamageTaken(), npc_phoenix_the_eye::DamageTaken(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), npc_nagrand_banner::npc_kil_sorrow_spellbinderAI::DamageTaken(), npc_nagrand_banner::npc_kil_sorrow_deathswornAI::DamageTaken(), npc_nagrand_banner::npc_giselda_the_croneAI::DamageTaken(), npc_nagrand_banner::npc_warmaul_shamanAI::DamageTaken(), boss_black_knight::boss_black_knightAI::DamageTaken(), boss_majordomo::DamageTaken(), boss_felblood_kaelthas::DamageTaken(), boss_halion::DamageTaken(), boss_twilight_halion::DamageTaken(), npc_volkhan_molten_golem::DamageTaken(), npc_vrykul_skeleton::DamageTaken(), npc_scourge_hulk::DamageTaken(), SmartAI::DamageTaken(), npc_death_knight_initiate::npc_death_knight_initiateAI::DamageTaken(), npc_argent_valiant::DamageTaken(), boss_julianne::DamageTaken(), boss_romulo::DamageTaken(), boss_headless_horseman::DamageTaken(), boss_sacrolash::DamageTaken(), boss_alythess::DamageTaken(), boss_kalecgos::DamageTaken(), boss_sathrovarr::DamageTaken(), boss_archimonde::DamageTaken(), boss_freya::boss_freyaAI::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_vx_001::boss_vx_001AI::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), ControllerBaseAI::DamageTaken(), boss_illidan_stormrage::DamageTaken(), IllidariCouncilBossAI::DamageTaken(), npc_warden_mellichar::DamageTaken(), DealDamage(), DealMeleeDamage(), boss_lady_vashj::DoAction(), boss_ichoron::DoAction(), Spell::EffectHeal(), Spell::EffectHealMaxHealth(), Spell::EffectInstaKill(), Pet::FillPetInfo(), npc_thorim_trashAI::AIHelper::GetHealTarget(), GetHealthGain(), boss_volazj::GetHealthPct(), AuraEffect::HandleAuraModIncreaseHealth(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModIncreaseMaxHealth(), spell_rajaxx_thundercrash::HandleDamageCalc(), misc_commandscript::HandleDieCommand(), Player::HandleFall(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcInfoCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), WorldSession::HandleRequestPartyMemberStatsOpcode(), boss_attumen::boss_attumenAI::JustSummoned(), boss_baltharus_the_warborn::JustSummoned(), Kill(), ModifyHealth(), spell_xt002_gravity_bomb_aura::OnPeriodic(), LorKhanSelectTargetToHeal::operator()(), Trinity::MostHPMissingInRange::operator()(), Trinity::MostHPMissingGroupInRange::operator()(), npc_thorim_trashAI::AIHelper::MostHPMissingInRange::operator()(), Trinity::HealthPctOrderPred::operator()(), Trinity::HealthPctOrderPred::operator()(), Creature::RegenerateHealth(), Player::RegenerateHealth(), Creature::ResetPlayerDamageReq(), Player::SaveHealthBeforeDuel(), Pet::SavePetToDB(), Player::SaveToDB(), Creature::SaveToDB(), SendAttackStateUpdate(), SendSpellNonMeleeDamageLog(), boss_xt002::SetData(), SetMaxHealth(), boss_felmyst::SpellHit(), boss_twinemperorsAI::SpellHit(), Aura::Update(), boss_priestess_delrissa::UpdateAI(), boss_blood_council_controller::UpdateAI(), boss_patchwerk::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), and Creature::UpdateEntry().
Definition at line 8353 of file Unit.cpp.
References GetHealth(), and GetMaxHealth().
Referenced by Spell::EffectHealthLeech().
|
inline |
Definition at line 935 of file Unit.h.
Referenced by boss_eregos::DamageTaken(), boss_viscidus::boss_viscidusAI::DamageTaken(), boss_hadronox::DamageTaken(), npc_thorim_trashAI::AIHelper::GetHealTarget(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModIncreaseMaxHealth(), spell_buru_egg_explosion::HandleDummy(), spell_rog_prey_on_the_weak::HandleEffectPeriodic(), AuraEffect::HandleModTotalPercentStat(), spell_moorabi_mojo_frenzy::HandlePeriodic(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), boss_skeram::boss_skeramAI::JustSummoned(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), Trinity::MostHPPercentMissingInRange::operator()(), SmartScript::ProcessEvent(), boss_viscidus::boss_viscidusAI::SpellHit(), boss_skeram::boss_skeramAI::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), boss_grobbulus::UpdateAI(), boss_malygos::UpdateAI(), npc_ruby_emerald_amber_drake::UpdateAI(), npc_wyrmrest_defender::UpdateAI(), and npc_phase_hunter::npc_phase_hunterAI::UpdateAI().
| int32 Unit::GetHighestExclusiveSameEffectSpellGroupValue | ( | AuraEffect const * | aurEff, |
| AuraType | auraType, | ||
| bool | checkMiscValue = false, |
||
| int32 | miscValue = 0 |
||
| ) | const |
Definition at line 13724 of file Unit.cpp.
References GetAuraEffectsByType(), SpellInfo::GetFirstRankSpell(), AuraEffect::GetSpellInfo(), SpellInfo::Id, SPELL_GROUP_STACK_RULE_EXCLUSIVE_SAME_EFFECT, and sSpellMgr.
Referenced by AuraEffect::HandleAuraModStat(), AuraEffect::HandleModCastingSpeed(), AuraEffect::HandleModCombatSpeedPct(), and AuraEffect::HandleModMeleeSpeedPct().
|
inline |
Definition at line 1783 of file Unit.h.
References MOVEMENTFLAG_HOVER, and UNIT_FIELD_HOVERHEIGHT.
Referenced by WorldObject::GetNearPoint2D(), WorldSession::HandleMoveWorldportAck(), MotionMaster::MoveCirclePath(), MotionMaster::MoveFall(), WorldObject::MovePositionToFirstCollision(), WorldObject::UpdateAllowedPositionZ(), and WorldObject::UpdateGroundPositionZ().
|
inline |
|
inline |
Definition at line 1058 of file Unit.h.
Referenced by AuraEffect::CheckEffectProc().
|
inline |
Definition at line 903 of file Unit.h.
References UNIT_FIELD_LEVEL.
Referenced by KillRewarder::_InitGroupData(), KillRewarder::_RewardPlayer(), KillRewarder::_RewardXP(), Player::_SaveStats(), Pet::addSpell(), Spell::AddUnitTarget(), Player::ApplyEnchantment(), Aura::Aura(), WorldSession::BuildPartyMemberStatsChangedPacket(), CalcArmorReducedDamage(), SpellInfo::CalcPowerCost(), Aura::CalcProcChance(), spell_item_arcane_shroud::CalculateAmount(), spell_item_the_eye_of_diminution::CalculateAmount(), CalculateAverageResistReduction(), Player::CalculateMinMaxDamage(), Player::CalculateReputationGain(), CalculateSpellpowerCoefficientLevelPenalty(), Player::CalculateTalentsPoints(), SpellEffectInfo::CalcValue(), Player::CanEquipItem(), Group::CanJoinBattlegroundQueue(), Creature::CanResetTalents(), Player::CanRollForItemInLFG(), Player::CanSeeStartQuest(), Player::CanUseItem(), Player::CastItemCombatSpell(), Player::CheckAreaExplore(), spell_hun_tame_beast::CheckCast(), Spell::CheckCast(), Spell::CheckEffectTarget(), spell_ethereal_pet_aura::CheckProc(), Pet::CreateBaseAtTamed(), CreateTamedPetFrom(), CreateTamedPetFrom(), DealMeleeDamage(), DoLowUnlearnCost(), DoMedUnlearnCost(), Spell::EffectAddHonor(), Spell::EffectApplyGlyph(), Spell::EffectDuel(), Spell::EffectEnergize(), Spell::EffectSchoolDMG(), Spell::EffectSkinning(), Spell::EffectSummonObject(), Spell::EffectTameCreature(), Pet::FillPetInfo(), lfg::LFGMgr::FinishDungeon(), Trinity::XP::Gain(), Creature::GetAttackDistance(), Player::GetBarberShopCost(), Player::GetBGAccessByLevel(), Pet::GetCurrentFoodBenefitLevel(), Player::GetDodgeFromAgility(), SocialMgr::GetFriendInfo(), Creature::GetLevelForTarget(), lfg::LFGMgr::GetLockedDungeons(), Player::GetMeleeCritFromAgility(), Pet::GetNativeObjectScale(), Player::GetQuestDialogStatus(), Player::GetQuestLevel(), Player::GetRatingMultiplier(), Player::GetScalingStatValuesFor(), Creature::GetShieldBlockValue(), Player::GetSpellCritFromIntellect(), Trainer::Trainer::GetSpellState(), Player::GetsRecruitAFriendBonus(), Quest::GetXPReward(), Player::GiveLevel(), Pet::GivePetLevel(), Pet::GivePetXP(), Player::GiveXP(), WorldSession::HandleAcceptGrantLevel(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleChatMessage(), Player::HandleDrowning(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupInviteOpcode(), group_commandscript::HandleGroupLevelCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), pet_commandscript::HandlePetLevelCommand(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), spell_pri_divine_aegis::HandleProc(), WorldSession::HandleRequestBattlefieldStatusOpcode(), WorldSession::HandleRequestPartyMemberStatsOpcode(), reset_commandscript::HandleResetLevelCommand(), spell_item_scroll_of_recall::HandleScript(), WorldSession::HandleSendMail(), Player::InitGlyphsForLevel(), Pet::InitLevelupSpellsForLevel(), Guardian::InitStats(), Puppet::InitStats(), Totem::InitStats(), TempSummon::InitStats(), Player::InitStatsForLevel(), Pet::InitTalentForLevel(), Player::InitTalentForLevel(), Player::InitTaxiNodesForLevel(), Battlefield::InvitePlayerToWar(), Player::isHonorOrXPTarget(), Player::IsMaxLevel(), npc_pet_hunter_snake_trap::JustAppeared(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::JustSummoned(), npc_felfire_portal::npc_felfire_portalAI::JustSummoned(), Player::LearnDefaultSkill(), Pet::LoadPetFromDB(), WorldSession::LogoutPlayer(), AchievementCriteriaData::Meets(), Player::OCTRegenHPPerSpirit(), Player::OCTRegenMPPerSpirit(), item_generic_limit_chance_above_60::OnCastItemCombatSpell(), npc_prof_blacksmith::npc_prof_blacksmithAI::OnGossipHello(), npc_prof_leather::npc_prof_leatherAI::OnGossipHello(), npc_prof_tailor::npc_prof_tailorAI::OnGossipHello(), npc_prof_alchemy::npc_prof_alchemyAI::OnGossipHello(), Player::OnGossipSelect(), at_nearby_scarshield_infiltrator::OnTrigger(), Player::PrepareGossipMenu(), Spell::PreprocessSpellHit(), Player::RegenerateHealth(), Player::RemovedInsignia(), Pet::removeSpell(), Pet::resetTalents(), Player::ResurrectPlayer(), Player::RewardHonor(), Player::RewardQuest(), RewardRage(), Player::RewardReputation(), RollMeleeOutcomeAgainst(), ArenaTeam::Roster(), Player::Satisfy(), Player::SatisfyQuestLevel(), Pet::SavePetToDB(), Player::SaveToDB(), BattlegroundMgr::SendBattlegroundList(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInvite(), WorldSession::SendLfgPlayerLockInfo(), WorldSession::SendLfgRoleCheckUpdate(), Player::SendLoot(), Guild::Member::SetStats(), SpellCritChanceTaken(), SpellDamagePctDone(), Spell::SummonGuardian(), Player::SummonPet(), Pet::SynchronizeLevelWithOwner(), Aura::Update(), Player::UpdateAttackPowerAndDamage(), Player::UpdateCombatSkills(), Creature::UpdateLevelDependantStats(), Player::UpdatePowerRegen(), and GameObject::Use().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 904 of file Unit.h.
Referenced by CalculateAverageResistReduction(), Creature::CanStartAttack(), Creature::GetAggroRange(), Creature::GetLevelForTarget(), WorldObject::MagicSpellHitResult(), MeleeSpellMissChance(), RollMeleeOutcomeAgainst(), SpellCritChanceTaken(), and Player::UpdateCombatSkills().
|
inline |
Definition at line 928 of file Unit.h.
References UNIT_FIELD_MAXHEALTH.
Referenced by Player::_SaveStats(), WorldSession::BuildPartyMemberStatsChangedPacket(), boss_twinemperorsAI::DamageTaken(), boss_algalon_the_observer::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), npc_boombot::DamageTaken(), npc_terenas_menethil::DoAction(), Spell::EffectHeal(), Spell::EffectHealMaxHealth(), Spell::EffectSummonPet(), Trinity::XP::Gain(), npc_thorim_trashAI::AIHelper::GetHealTarget(), GetHealthGain(), boss_volazj::GetHealthPct(), AuraEffect::HandleAuraModIncreaseHealthPercent(), spell_ahnkahet_shadow_blast::HandleDamageCalc(), Player::HandleDrowning(), spell_buru_egg_explosion::HandleDummy(), Player::HandleFall(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcInfoCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), spell_sha_nature_guardian::HandleProc(), spell_warr_item_t10_prot_4p_bonus::HandleProc(), WorldSession::HandleRequestPartyMemberStatsOpcode(), spell_stinky_precious_decimate::HandleScript(), boss_skeram::boss_skeramAI::JustSummoned(), boss_drakkari_colossus::JustSummoned(), Pet::LoadPetFromDB(), ModifyHealth(), spell_pal_eye_for_an_eye::OnProc(), LorKhanSelectTargetToHeal::operator()(), Trinity::MostHPMissingInRange::operator()(), Trinity::MostHPMissingGroupInRange::operator()(), npc_thorim_trashAI::AIHelper::MostHPMissingInRange::operator()(), Trinity::HealthPctOrderPred::operator()(), Trinity::HealthPctOrderPred::operator()(), Player::outDebugValues(), SmartScript::ProcessEvent(), Creature::RegenerateHealth(), Player::RegenerateHealth(), boss_baltharus_the_warborn::Reset(), Player::ResurrectPlayer(), SetHealth(), Creature::SetSpawnHealth(), boss_felmyst::SpellHit(), boss_twinemperorsAI::SpellHit(), npc_simon_bunny::npc_simon_bunnyAI::SpellHitTarget(), and npc_phase_hunter::npc_phase_hunterAI::UpdateAI().
Definition at line 4830 of file Unit.cpp.
References GetMaxNegativeAuraModifier().
Referenced by GetMaxNegativeAuraModifier(), GetMaxNegativeAuraModifierByAffectMask(), GetMaxNegativeAuraModifierByMiscMask(), GetMaxNegativeAuraModifierByMiscValue(), WorldObject::ModSpellDuration(), SpellHealingBonusTaken(), and UpdateSpeed().
| int32 Unit::GetMaxNegativeAuraModifier | ( | AuraType | auraType, |
| std::function< bool(AuraEffect const *)> const & | predicate | ||
| ) | const |
Definition at line 4799 of file Unit.cpp.
References GetAuraEffectsByType().
| int32 Unit::GetMaxNegativeAuraModifierByAffectMask | ( | AuraType | auraType, |
| SpellInfo const * | affectedSpell | ||
| ) | const |
Definition at line 4945 of file Unit.cpp.
References GetMaxNegativeAuraModifier(), and AuraEffect::IsAffectingSpell().
Definition at line 4865 of file Unit.cpp.
References GetMaxNegativeAuraModifier(), and AuraEffect::GetMiscValue().
Definition at line 4905 of file Unit.cpp.
References GetMaxNegativeAuraModifier(), and AuraEffect::GetMiscValue().
Referenced by WorldObject::ModSpellDuration().
Definition at line 4825 of file Unit.cpp.
References GetMaxPositiveAuraModifier().
Referenced by GetMaxPositiveAuraModifier(), GetMaxPositiveAuraModifierByAffectMask(), GetMaxPositiveAuraModifierByMiscMask(), GetMaxPositiveAuraModifierByMiscValue(), Player::RewardHonor(), SpellHealingBonusTaken(), and UpdateSpeed().
| int32 Unit::GetMaxPositiveAuraModifier | ( | AuraType | auraType, |
| std::function< bool(AuraEffect const *)> const & | predicate | ||
| ) | const |
Definition at line 4783 of file Unit.cpp.
References GetAuraEffectsByType().
| int32 Unit::GetMaxPositiveAuraModifierByAffectMask | ( | AuraType | auraType, |
| SpellInfo const * | affectedSpell | ||
| ) | const |
Definition at line 4935 of file Unit.cpp.
References GetMaxPositiveAuraModifier(), and AuraEffect::IsAffectingSpell().
| int32 Unit::GetMaxPositiveAuraModifierByMiscMask | ( | AuraType | auraType, |
| uint32 | misc_mask, | ||
| AuraEffect const * | except = nullptr |
||
| ) | const |
Definition at line 4855 of file Unit.cpp.
References GetMaxPositiveAuraModifier(), and AuraEffect::GetMiscValue().
Referenced by AuraEffect::HandleAuraModResistanceExclusive(), and UpdateResistanceBuffModsMod().
Definition at line 4895 of file Unit.cpp.
References GetMaxPositiveAuraModifier(), and AuraEffect::GetMiscValue().
Definition at line 950 of file Unit.h.
References UNIT_FIELD_MAXPOWER1.
Referenced by Player::_SaveStats(), WorldSession::BuildPartyMemberStatsChangedPacket(), SpellInfo::CalcPowerCost(), spell_gen_replenishment_aura::CalculateAmount(), Spell::CheckItems(), Spell::EffectEnergize(), Spell::EffectEnergizePct(), Spell::EffectPowerBurn(), Spell::EffectResurrect(), Spell::EffectSelfResurrect(), Spell::EffectSummonPet(), boss_curator::boss_curatorAI::ExecuteEvent(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), Aura::HandleAuraSpecificMods(), AuraEffect::HandleObsModPowerAuraTick(), spell_hun_rapid_recuperation::HandlePeriodic(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), spell_hun_ascpect_of_the_viper::HandleProc(), spell_dru_leader_of_the_pack::HandleProc(), spell_mage_magic_absorption::HandleProc(), spell_warl_drain_soul::HandleProc(), WorldSession::HandleRequestPartyMemberStatsOpcode(), spell_kelthuzad_detonate_mana::HandleScript(), spell_gen_pet_summoned::HandleScript(), spell_hun_chimera_shot::HandleScriptEffect(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), Pet::LoadPetFromDB(), ModifyPower(), Player::outDebugValues(), spell_gen_restoration::PeriodicTick(), SmartScript::ProcessEvent(), spell_bronjahm_magic_bane::RecalculateDamage(), Creature::Regenerate(), Player::Regenerate(), boss_lady_deathwhisper::Reset(), Player::ResurrectPlayer(), SetPower(), Creature::SetSpawnHealth(), boss_deathbringer_saurfang::SpellHitTarget(), Player::SummonPet(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_moam::UpdateAI(), and boss_faction_championsAI::UpdatePower().
Definition at line 1033 of file Unit.h.
Referenced by Player::_LoadSkills(), spell_pal_ardent_defender::Absorb(), Player::AddSpell(), DealMeleeDamage(), GetDefenseSkillValue(), Player::GetMissPercentageFromDefense(), GetUnitBlockChance(), GetUnitDodgeChance(), GetUnitParryChance(), GetWeaponSkillValue(), Player::LearnDefaultSkill(), MeleeSpellHitResult(), Player::RemoveSpell(), RollMeleeOutcomeAgainst(), Player::UpdateBlockPercentage(), Player::UpdateCritPercentage(), Player::UpdateDodgePercentage(), Player::UpdateParryPercentage(), and Player::UpdateSkillsForLevel().
| uint32 Unit::GetMechanicImmunityMask | ( | ) | const |
Definition at line 7741 of file Unit.cpp.
References IMMUNITY_MECHANIC, and m_spellImmune.
Referenced by SpellInfo::GetMechanicImmunityMask().
Definition at line 2382 of file Unit.cpp.
References SpellInfo::GetEffectMechanic(), SpellInfo::GetEffects(), GetTotalAuraModifierByMiscValue(), and SPELL_AURA_MOD_MECHANIC_RESISTANCE.
Referenced by WorldObject::MagicSpellHitResult(), and MeleeSpellHitResult().
|
inline |
Definition at line 1067 of file Unit.h.
References CR_CRIT_TAKEN_MELEE.
Referenced by ApplyResilience().
Definition at line 1072 of file Unit.h.
References CR_CRIT_TAKEN_MELEE.
Referenced by ApplyResilience(), MeleeDamageBonusTaken(), and SpellDamageBonusTaken().
Definition at line 1077 of file Unit.h.
References CR_CRIT_TAKEN_MELEE.
Referenced by ApplyResilience().
|
pure virtual |
Implemented in Player, and Creature.
Referenced by MeleeDamageBonusTaken().
Definition at line 6161 of file Unit.cpp.
References AURA_REMOVE_BY_EXPIRE, SpellInfo::CheckExplicitTarget(), SpellInfo::CheckTarget(), GetAuraEffectsByType(), WorldObject::IsValidAttackTarget(), roll_chance_i(), SPELL_AURA_ADD_CASTER_HIT_TRIGGER, and SPELL_CAST_OK.
Referenced by AttackerStateUpdate(), and Spell::SelectExplicitTargets().
| float Unit::GetMeleeRange | ( | Unit const * | target | ) | const |
Definition at line 642 of file Unit.cpp.
References GetCombatReach(), and NOMINAL_MELEE_RANGE.
Referenced by Spell::GetMinMaxRange(), IsWithinMeleeRangeAt(), and ChaseMovementGenerator::Update().
|
inline |
Definition at line 1258 of file Unit.h.
References UNIT_FIELD_SUMMON.
Referenced by GetFirstControlled(), GetFirstMinion(), Guardian::InitSummon(), OutDebugInfo(), RemoveAllControlled(), and Minion::setDeathState().
Definition at line 949 of file Unit.h.
Referenced by ModifyPower().
| uint32 Unit::GetModelForForm | ( | ShapeshiftForm | form, |
| uint32 | spellId | ||
| ) | const |
Definition at line 12210 of file Unit.cpp.
References ALLIANCE, SpellShapeshiftFormEntry::CreatureDisplayID, FORM_BEAR, FORM_CAT, FORM_DIREBEAR, FORM_FLIGHT, FORM_FLIGHT_EPIC, GENDER_MALE, GetNativeGender(), GetRace(), Object::GetTypeId(), HORDE, RACE_NIGHTELF, RACE_TAUREN, sSpellShapeshiftFormStore, Player::TeamForRace(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by AuraEffect::HandleAuraModShapeshift(), and RestoreDisplayId().
|
inline |
Definition at line 1683 of file Unit.h.
Referenced by _ExitVehicle(), npc_elwynn_forest_wolf::_ScheduleAfterChasingEvents(), npc_elwynn_forest_wolf::_ScheduleBeforeChasingEvents(), BattlegroundAV::AddAVCreature(), npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), AtEngage(), Creature::AtEngage(), UnitAI::AttackStart(), boss_tyrannus::AttackStart(), boss_lady_deathwhisper::AttackStart(), ArcherAI::AttackStart(), SmartAI::AttackStart(), boss_veklor::boss_veklorAI::AttackStart(), UnitAI::AttackStartCaster(), boss_ionar::CallBackSparks(), spell_the_lich_king_valkyr_charge::ChargeDest(), Map::CreatureRespawnRelocation(), boss_the_lich_king::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), boss_ayamiss::DamageTaken(), npc_frost_sphere::DamageTaken(), boss_drakkari_colossus::DamageTaken(), boss_drakkari_elemental::DamageTaken(), boss_ymiron::DamageTaken(), npc_wild_wyrm::DamageTaken(), boss_essence_of_suffering::DamageTaken(), boss_essence_of_desire::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::DestroyDoor(), boss_nightbane::boss_nightbaneAI::DoAction(), boss_selin_fireheart::DoAction(), npc_apothecary_genericAI::DoAction(), boss_infinite_corruptor::boss_infinite_corruptorAI::DoAction(), npc_twilight_volunteer::DoAction(), npc_hadronox_crusherPackAI::DoAction(), npc_xerestrasza::DoAction(), npc_ball_of_flame::DoAction(), npc_kinetic_bomb::DoAction(), boss_blood_queen_lana_thel::DoAction(), boss_deathbringer_saurfang::DoAction(), npc_high_overlord_saurfang_icc::DoAction(), npc_muradin_bronzebeard_icc::DoAction(), npc_saurfang_event::DoAction(), npc_high_overlord_saurfang_igb::DoAction(), npc_muradin_bronzebeard_igb::DoAction(), boss_professor_putricide::DoAction(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), npc_argent_captainAI::DoAction(), npc_icc_nerubar_broodkeeper::DoAction(), boss_four_horsemen_baseAI::DoAction(), npc_kelthuzad_guardian::DoAction(), boss_malygos::DoAction(), npc_caster_hover_disk::DoAction(), npc_azure_ring_captain::DoAction(), boss_algalon_the_observer::DoAction(), npc_brann_bronzebeard_algalon::DoAction(), boss_flame_leviathan::boss_flame_leviathanAI::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_ominous_cloud::npc_ominous_cloudAI::DoAction(), npc_turned_champion::npc_turned_championAI::DoAction(), boss_leotheras_the_blind::DoAction(), npc_earthen_ring_flamecaller::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), npc_barada::npc_baradaAI::DoAction(), npc_thrall_herald_of_war::npc_thrall_herald_of_warAI::DoAction(), boss_krick::DoAction(), boss_razorscale::DoAction(), npc_expedition_defender::DoAction(), npc_expedition_trapper::DoAction(), boss_illidan_stormrage::DoAction(), npc_akama_shade::DoAction(), boss_headless_horseman::DoAction(), npc_martha_goslin::npc_martha_goslinAI::DoAction(), PetAI::DoAttack(), Creature::DoFleeToGetAssistance(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), boss_alar::DoMoveToCenter(), boss_alar::DoMoveToPlatform(), npc_announcer_toc5::npc_announcer_toc5AI::DoStartArgentChampionEncounter(), ScriptedAI::DoStartMovement(), ScriptedAI::DoStartNoMovement(), Spell::EffectCharge(), Spell::EffectChargeDest(), Spell::EffectDistract(), Spell::EffectJump(), Spell::EffectJumpDest(), boss_jormungarAI::Emerge(), boss_thekal::EnterEvadeMode(), boss_blood_queen_lana_thel::EnterEvadeMode(), npc_argent_captainAI::EnterEvadeMode(), boss_urom::EnterEvadeMode(), npc_daegarn::EnterEvadeMode(), CreatureAI::EnterEvadeMode(), SmartAI::EnterEvadeMode(), GuardAI::EnterEvadeMode(), gunship_npc_AI::EnterEvadeMode(), npc_high_overlord_saurfang_igb::EnterEvadeMode(), npc_muradin_bronzebeard_igb::EnterEvadeMode(), npc_pet_dk_rune_weapon::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), EscortAI::EnterEvadeMode(), hyjalAI::EnterEvadeMode(), VehicleJoinEvent::Execute(), DelayedMovementEvent::Execute(), DaranavanMoveEvent::Execute(), FrostwyrmLandEvent::Execute(), StartLaunchEvent::Execute(), OrbAirPositionEvent::Execute(), OrbFlyEvent::Execute(), boss_nightbane::boss_nightbaneAI::ExecuteEvent(), boss_icehowl::ExecuteEvent(), boss_twin_baseAI::ExecuteEvent(), AssistanceMovementGenerator::Finalize(), npc_rocket_propelled_warhead::FinishQuest(), Player::FinishTaxiFlight(), ScriptedAI::ForceCombatStop(), SplineChainMovementGenerator::GetResumeInfo(), spell_apothecary_lingering_fumes::HandleAfterCast(), spell_mimiron_fire_search::spell_mimiron_fire_search_SpellScript::HandleAftercast(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), npc_expedition_engineer::HandleBaseMovement(), misc_commandscript::HandleComeToMeCommand(), spell_malygos_random_portal::HandleDummy(), spell_sholazar_shoot_rjr::HandleDummy(), spell_swamplord_muselek_move_away_primer::HandleDummy(), boss_felmyst::HandleFlightSequence(), npc_expedition_engineer::HandleFourthHarpoonMovement(), npc_expedition_engineer::HandleHarpoonMovement(), boss_northrend_beastsAI::HandleInitialMovement(), boss_razorscale::HandleInitialMovement(), AuraEffect::HandleModPossessPet(), misc_commandscript::HandleMovegensCommand(), WorldSession::HandleMoveWorldportAck(), npc_commandscript::HandleNpcFollowCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetWanderDistanceCommand(), npc_commandscript::HandleNpcUnFollowCommand(), spell_sapphiron_change_blizzard_target::HandlePeriodic(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePlayerLogin(), PetAI::HandleReturnMovement(), spell_saviana_conflagration_throwback::HandleScript(), spell_nexus_lord_align_disk_aggro::HandleScript(), spell_mimiron_fire_search::spell_mimiron_fire_search_SpellScript::HandleScript(), spell_gen_pet_wait::HandleScript(), npc_expedition_engineer::HandleSecondHarpoonMovement(), npc_enslaved_soul::HandleSoulRelease(), npc_headless_horseman_head::HandleStartPhase(), npc_expedition_engineer::HandleThirdHarpoonMovement(), wp_commandscript::HandleWpLoadCommand(), wp_commandscript::HandleWpUnLoadCommand(), npc_troll_volunteer::InitializeAI(), npc_jena_anderson::npc_jena_andersonAI::InitializeAI(), npc_malcolm_moore::npc_malcolm_mooreAI::InitializeAI(), npc_anubarak_anub_ar_assassin::InitializeAI(), npc_molten_flame::InitializeAI(), IsMutualChase(), Creature::IsReturningHome(), boss_gizrul_the_slavener::IsSummonedBy(), boss_darkmaster_gandling::IsSummonedBy(), npc_spirit_bomb::IsSummonedBy(), npc_rizzle_sprysprocket::IsSummonedBy(), npc_ruby_emerald_amber_drake::IsSummonedBy(), npc_frostbrood_skytalon::IsSummonedBy(), npc_spirit_shade::npc_spirit_shadeAI::IsSummonedBy(), JumpTo(), JumpTo(), npc_kalecgos::JustAppeared(), ShadowswordBaseAI::JustAppeared(), npc_amanishi_hatcher::JustAppeared(), boss_anetheron::JustAppeared(), npc_doomfire::JustAppeared(), boss_azgalor::JustAppeared(), boss_kazrogal::JustAppeared(), boss_rage_winterchill::JustAppeared(), boss_aeonus::JustAppeared(), npc_hive_zara_larva::JustAppeared(), npc_hive_zara_swarmer::JustAppeared(), npc_malformed_ooze::JustAppeared(), npc_ingvar_throw_dummy::JustAppeared(), npc_brood_of_anzu::JustAppeared(), npc_void_traveler::JustAppeared(), npc_enchanted_elemental::JustAppeared(), npc_toxic_sporebat::JustAppeared(), npc_coilfang_ambusher::JustAppeared(), npc_coilfang_guardian::JustAppeared(), npc_steamrigger_mechanic::JustAppeared(), npc_nether_vapor::JustAppeared(), npc_frost_wyrm::npc_frost_wyrmAI::JustDied(), boss_the_lich_king::JustDied(), boss_flame_leviathan_safety_container::boss_flame_leviathan_safety_containerAI::JustDied(), npc_mechanolift::npc_mechanoliftAI::JustDied(), boss_kologarn::boss_kologarnAI::JustDied(), boss_mimiron::boss_mimironAI::JustDied(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), npc_gargoyle::npc_gargoyleAI::JustDied(), boss_high_inquisitor_whitemane::JustEngagedWith(), npc_zulian_prowler::JustEngagedWith(), boss_scarlet_commander_mograine::JustEngagedWith(), boss_ayamiss::JustEngagedWith(), boss_alar::JustEngagedWith(), FollowerAI::JustReachedHome(), SmartAI::JustReachedHome(), npc_headless_horseman_head::JustReachedHome(), npc_arthas_stratholme::npc_arthas_stratholmeAI::JustReachedHome(), boss_aeonus::JustReachedHome(), boss_razuvious::JustReachedHome(), npc_rocket_propelled_warhead::JustReachedHome(), boss_felblood_kaelthas::JustSummoned(), npc_crystal_channel_target::JustSummoned(), boss_trollgore::JustSummoned(), boss_bronjahm::JustSummoned(), boss_slad_ran::JustSummoned(), boss_prince_valanar_icc::JustSummoned(), boss_the_lich_king::JustSummoned(), boss_eregos::JustSummoned(), boss_algalon_the_observer::JustSummoned(), boss_kologarn::boss_kologarnAI::JustSummoned(), boss_thorim::boss_thorimAI::JustSummoned(), boss_massive_jormungar::JustSummoned(), boss_skadi::JustSummoned(), boss_xevozz::JustSummoned(), npc_daegarn::JustSummoned(), boss_warchief_kargath_bladefist::JustSummoned(), npc_colonel_jules::npc_colonel_julesAI::JustSummoned(), boss_vexallus::JustSummoned(), npc_restless_soul::npc_restless_soulAI::JustSummoned(), npc_rinji::npc_rinjiAI::JustSummoned(), boss_ionar::JustSummoned(), npc_maghar_captive::npc_maghar_captiveAI::JustSummoned(), npc_kurenai_captive::npc_kurenai_captiveAI::JustSummoned(), Player::KillPlayer(), KnockbackFrom(), spell_svalna_revive_champion::Land(), npc_frogger_trigger_naxx::LaunchSpline(), CreatureGroup::LeaderStartedMoving(), boss_high_inquisitor_whitemane::MograineResurrected(), MonsterMoveWithSpeed(), Creature::Motion_Initialize(), npc_snobold_vassal::MountOnBoss(), instance_deadmines::instance_deadmines_InstanceMapScript::MoveCreatureInside(), npc_arthas_stratholme::npc_arthas_stratholmeAI::MoveInfiniteOnSpawn(), npc_anubarak_spike::MoveInLineOfSight(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::MoveInLineOfSight(), npc_ashtongue_sorcerer::MoveInLineOfSight(), npc_spectator::MovementInform(), PetAI::MovementInform(), npc_amanishi_hatcher::MovementInform(), boss_mandokir::MovementInform(), npc_malcolm_moore::npc_malcolm_mooreAI::MovementInform(), boss_onyxia::MovementInform(), boss_blood_queen_lana_thel::MovementInform(), boss_professor_putricide::MovementInform(), boss_malygos::MovementInform(), npc_azure_ring_captain::MovementInform(), npc_malformed_ooze::MovementInform(), npc_wild_wyrm::MovementInform(), npc_barada::npc_baradaAI::MovementInform(), npc_thrall_herald_of_war::npc_thrall_herald_of_warAI::MovementInform(), dummy_dragonAI::MovementInform(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::MovementInform(), boss_razorscale::MovementInform(), npc_grauf::MovementInform(), npc_skadi_trashAI::MovementInform(), boss_gluth::MovementInform(), npc_cameron::MoveTheChildren(), npc_onyx_flamecaller::MoveToGeneral(), npc_power_spark::MoveToMalygos(), npc_unleashed_ballAI::MoveToNextPoint(), NearTeleportTo(), npc_geezle::npc_geezleAI::NextStep(), npc_argent_valiant::npc_argent_valiant(), npc_freya_ward_summon::npc_freya_ward_summonAI::npc_freya_ward_summonAI(), npc_omen::npc_omen(), PetAI::OnCharmed(), SimpleCharmedPlayerAI::OnCharmed(), SmartAI::OnCharmed(), npc_tirion_fordring_tft::OnGossipSelect(), npc_barrett_toc::OnGossipSelect(), npc_thassarian::OnGossipSelect(), npc_akama_illidan::OnGossipSelect(), npc_belnistrasz::npc_belnistraszAI::OnQuestAccept(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), npc_wyrmrest_skytalon::PassengerBoarded(), npc_wild_wyrm::PassengerBoarded(), npc_bone_spike::PassengerBoarded(), npc_bountiful_table::npc_bountiful_tableAI::PassengerBoarded(), npc_grauf::PassengerBoarded(), PauseMovement(), SmartAI::PausePath(), Spell::prepare(), npc_jungle_punch_target::proceedCwEvent(), SmartScript::ProcessAction(), PropagateSpeedChange(), npc_lake_frog::ReceiveEmote(), RemoveCharmedBy(), boss_prince_taldaram::RemovePrison(), boss_the_beast::Reset(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::Reset(), boss_arlokk::Reset(), npc_zulian_prowler::Reset(), npc_overlord_runthak_orgrimmar::npc_overlord_runthak_orgrimmarAI::Reset(), npc_thrall_herald_of_war::npc_thrall_herald_of_warAI::Reset(), npc_frost_sphere::Reset(), npc_mechanolift::npc_mechanoliftAI::Reset(), npc_scrapbot::Reset(), npc_boombot::Reset(), npc_garona::npc_garonaAI::Reset(), npc_released_offspring_harkoa::Reset(), npc_ashtongue_sorcerer::Reset(), npc_doom_blossom::Reset(), npc_infernal_attacker::npc_infernal_attackerAI::Reset(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ResetBossEncounter(), Creature::Respawn(), ResumeMovement(), SmartAI::ReturnToLastOOCPos(), EscortAI::ReturnToLastPoint(), npc_sinclari_vh::ScheduleIntro(), boss_selin_fireheart::SelectNearestCrystal(), npc_barrett_toc::SendActionToTirion(), WorldSession::SendDoFlight(), SetCharmedBy(), SmartAI::SetCombatMove(), SetConfused(), npc_zombie_chow::SetData(), instance_razorfen_downs::instance_razorfen_downs_InstanceMapScript::SetData(), gunship_npc_AI::SetData(), npc_enslaved_proto_drake::SetData(), boss_the_beast::SetData(), npc_announcer_toc5::npc_announcer_toc5AI::SetData(), setDeathState(), Creature::setDeathState(), EscortAI::SetEscortPaused(), SetFacingTo(), SetFacingToObject(), SetFeared(), SmartAI::SetFollow(), FollowerAI::SetFollowComplete(), FollowerAI::SetFollowPaused(), npc_arthas_stratholme::npc_arthas_stratholmeAI::SetGUID(), npc_shadow_demon::SetGUID(), boss_hadronox::SetStep(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::SpawnPyramidWave(), boss_attumen::boss_attumenAI::SpellHit(), boss_onyxia::SpellHit(), npc_hive_zara_swarmer::SpellHit(), npc_high_overlord_saurfang_icc::SpellHit(), npc_muradin_bronzebeard_icc::SpellHit(), npc_saurfang_event::SpellHit(), boss_ionar::SpellHit(), boss_vazruden_the_herald::SpellHit(), npc_troll_volunteer::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_ichor_globule::SpellHit(), npc_wounded_skirmisher::SpellHit(), npc_wild_wyrm::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), npc_malformed_ooze::SpellHitTarget(), EscortAI::Start(), npc_image_of_medivh::npc_image_of_medivhAI::StartEvent(), FollowerAI::StartFollow(), SmartAI::StartPath(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), npc_azure_saboteur::StartSmoothPath(), PetAI::StopAttack(), SmartAI::StopFollow(), SmartAI::StopPath(), boss_jormungarAI::Submerge(), Player::TeleportTo(), CreatureAI::TriggerAlert(), SimpleCharmedPlayerAI::UpdateAI(), EscortAI::UpdateAI(), boss_gyth::UpdateAI(), boss_rend_blackhand::UpdateAI(), boss_victor_nefarius::UpdateAI(), boss_felblood_kaelthas::UpdateAI(), boss_selin_fireheart::UpdateAI(), npc_unworthy_initiate::npc_unworthy_initiateAI::UpdateAI(), npc_eye_of_acherus::UpdateAI(), npc_dark_rider_of_acherus::UpdateAI(), npc_koltira_deathweaver::UpdateAI(), npc_scarlet_courier::npc_scarlet_courierAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), npc_headless_horseman_head::UpdateAI(), npc_madrigosa::UpdateAI(), boss_kalecgos::UpdateAI(), npc_shield_orb::npc_shield_orbAI::UpdateAI(), boss_ironaya::UpdateAI(), npc_cameron::UpdateAI(), npc_partygoer_pather::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), boss_zuljin::UpdateAI(), npc_harrison_jones::npc_harrison_jonesAI::UpdateAI(), boss_arlokk::UpdateAI(), boss_mandokir::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_elder_kekek::npc_elder_kekekAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), boss_archimonde::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), npc_frost_wyrm::npc_frost_wyrmAI::UpdateAI(), npc_gargoyle::npc_gargoyleAI::UpdateAI(), npc_martha_goslin::npc_martha_goslinAI::UpdateAI(), npc_jena_anderson::npc_jena_andersonAI::UpdateAI(), npc_bartleby_battson::npc_bartleby_battsonAI::UpdateAI(), npc_malcolm_moore::npc_malcolm_mooreAI::UpdateAI(), npc_sergeant_morigan::npc_sergeant_moriganAI::UpdateAI(), npc_roger_owens::npc_roger_owensAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), boss_lieutenant_drake::UpdateAI(), boss_onyxia::UpdateAI(), npc_andorov::UpdateAI(), boss_veklor::boss_veklorAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_draenei_survivor::npc_draenei_survivorAI::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), npc_overlord_runthak_orgrimmar::npc_overlord_runthak_orgrimmarAI::UpdateAI(), npc_thrall_herald_of_war::npc_thrall_herald_of_warAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), npc_prince_taldaram_flame_sphere::UpdateAI(), boss_hadronox::UpdateAI(), npc_hadronox_foeAI::UpdateAI(), dummy_dragonAI::UpdateAI(), boss_saviana_ragefire::UpdateAI(), boss_jaraxxus::UpdateAI(), npc_unleashed_dark::UpdateAI(), npc_unleashed_light::UpdateAI(), boss_lich_king_toc::UpdateAI(), npc_fizzlebang_toc::UpdateAI(), boss_devourer_of_souls::UpdateAI(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), npc_uther_quel_delar::npc_uther_quel_delarAI::UpdateAI(), npc_quel_delar_sword::npc_quel_delar_swordAI::UpdateAI(), boss_garfrost::UpdateAI(), boss_krick::UpdateAI(), boss_tyrannus::UpdateAI(), boss_rimefang::UpdateAI(), npc_blood_queen_lana_thel::UpdateAI(), npc_kinetic_bomb::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), npc_high_overlord_saurfang_icc::UpdateAI(), npc_muradin_bronzebeard_icc::UpdateAI(), boss_lord_marrowgar::UpdateAI(), boss_professor_putricide::UpdateAI(), boss_sindragosa::UpdateAI(), npc_rimefang_icc::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), npc_valkyr_shadowguard::UpdateAI(), npc_strangulate_vehicle::UpdateAI(), npc_dream_cloud::UpdateAI(), boss_four_horsemen_baseAI::UpdateAI(), boss_gluth::UpdateAI(), npc_zombie_chow::UpdateAI(), boss_noth::UpdateAI(), boss_razuvious::UpdateAI(), boss_sapphiron::UpdateAI(), boss_malygos::UpdateAI(), npc_melee_hover_disk::UpdateAI(), npc_ruby_emerald_amber_drake::UpdateAI(), boss_volkhan::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_brann_bronzebeard_algalon::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_mechanolift::npc_mechanoliftAI::UpdateAI(), npc_saronite_vapors::npc_saronite_vaporsAI::UpdateAI(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::UpdateAI(), boss_razorscale::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), npc_annhylde_the_caller::UpdateAI(), boss_svala::UpdateAI(), npc_thassarian::UpdateAI(), npc_minigob_manabonk::UpdateAI(), npc_commander_eligor_dawnbringer::UpdateAI(), npc_venture_co_straggler::UpdateAI(), npc_frostbrood_skytalon::UpdateAI(), npc_freed_protodrake::UpdateAI(), npc_brann_bronzebeard_keystone::UpdateAI(), npc_crusade_recruit::UpdateAI(), boss_illidan_stormrage::UpdateAI(), npc_akama_illidan::UpdateAI(), npc_akama_shade::UpdateAI(), boss_lady_vashj::UpdateAI(), boss_warlord_kalithresh::UpdateAI(), npc_claw::UpdateAI(), boss_wrath_scryer_soccothrates::UpdateAI(), boss_alar::UpdateAI(), boss_kaelthas::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), npc_colonel_jules::npc_colonel_julesAI::UpdateAI(), npc_barada::npc_baradaAI::UpdateAI(), npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), npc_pet_gen_pandaren_monk::UpdateAI(), npc_elwynn_forest_wolf::UpdateAI(), npc_dream_fog::npc_dream_fogAI::UpdateAI(), boss_mr_smite::boss_mr_smiteAI::UpdateAI(), boss_eadric::boss_eadricAI::UpdateAI(), boss_paletress::boss_paletressAI::UpdateAI(), boss_ionar::UpdateAI(), npc_spark_of_ionar::UpdateAI(), npc_power_spark::UpdateAI(), npc_tooga::npc_toogaAI::UpdateFollowerAI(), boss_kirtonos_the_herald::UpdateIntroEvents(), npc_millhouse_manastorm::UpdateIntroEvents(), boss_nalorakk::UpdateOutOfCombatEvents(), boss_broggok::UpdateOutOfCombatEvents(), npc_kelthuzad_minionAI::UpdateRandomMovement(), boss_majordomo::UpdateSpecialEvents(), boss_vazruden_the_herald::UpdateSpecialEvents(), UpdateSpeed(), boss_anetheron::WaypointPathEnded(), boss_rage_winterchill::WaypointPathEnded(), npc_toxic_sporebat::WaypointPathEnded(), SmartAI::WaypointReached(), npc_cameron::WaypointReached(), npc_emily::WaypointReached(), and npc_rizzle_sprysprocket::WaypointStarted().
|
inline |
|
inline |
Definition at line 1028 of file Unit.h.
References UNIT_FIELD_MOUNTDISPLAYID.
Referenced by GetCollisionHeight(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), and AuraEffect::HandleAuraTransform().
|
inline |
Definition at line 1788 of file Unit.h.
Referenced by Player::SendInitialPacketsAfterAddToMap(), Player::SendMovementSetCollisionHeight(), MovementPacketSender::SendSpeedChangeToMover(), SendTeleportPacket(), SetCanFly(), SetDisableGravity(), SetFeatherFall(), SetHover(), SetRooted(), and SetWaterWalking().
|
inline |
Definition at line 1600 of file Unit.h.
References UNIT_FIELD_NATIVEDISPLAYID.
Referenced by Player::CreateCorpse(), DeMorph(), Pet::FillPetInfo(), GetCollisionHeight(), AuraEffect::HandleAuraCloneCaster(), npc_commandscript::HandleNpcInfoCommand(), IsInDisallowedMountForm(), boss_alar::JustDied(), spell_illidan_demon_transform2::OnPeriodic(), boss_black_knight::boss_black_knightAI::Reset(), Creature::Respawn(), RestoreDisplayId(), Pet::SavePetToDB(), Creature::SaveToDB(), SendPetDismissSound(), and boss_alar::UpdateAI().
|
inlinevirtual |
Reimplemented in Player.
Definition at line 914 of file Unit.h.
Referenced by spell_love_is_in_the_air_service_uniform::AfterApply(), GetModelForForm(), spell_hallow_end_candy_pirate::HandleApply(), AuraEffect::HandleAuraTransform(), spell_item_savory_deviate_delight::HandleDummy(), spell_hallow_end_candy_pirate::HandleRemove(), spell_hallow_end_wand::HandleScriptEffect(), and npc_stolen_soul::InitializeAI().
|
inlinevirtual |
Reimplemented in Creature, and Pet.
Definition at line 1596 of file Unit.h.
Referenced by RecalculateObjectScale().
|
inline |
Definition at line 1468 of file Unit.h.
References UNIT_FIELD_NEGSTAT0.
| Unit * Unit::GetNextRandomRaidMemberOrPet | ( | float | radius | ) |
Definition at line 6246 of file Unit.cpp.
References Group::GetFirstMember(), Player::GetGroup(), GetGuardianPet(), Group::GetMembersCount(), WorldObject::GetOwner(), Object::GetTypeId(), WorldObject::IsHostileTo(), IsPet(), WorldObject::IsWithinDistInMap(), Object::ToPlayer(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, and urand().
Referenced by AuraEffect::HandleRaidProcFromChargeAuraProc().
|
inline |
Definition at line 1109 of file Unit.h.
References UNIT_NPC_FLAGS.
Referenced by modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::npc_engineer_spark_overgrindAI(), Creature::SaveToDB(), and SmartAI::StartPath().
| Aura * Unit::GetOwnedAura | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0, |
||
| Aura * | except = nullptr |
||
| ) | const |
Definition at line 3645 of file Unit.cpp.
References m_ownedAuras.
Referenced by _TryStackingOrRefreshingExistingAura().
|
inline |
Definition at line 1341 of file Unit.h.
Referenced by Spell::EffectDispelMechanic(), Spell::EffectStealBeneficialBuff(), and GetDispellableAuraList().
|
inlineoverridevirtual |
Implements WorldObject.
Definition at line 1254 of file Unit.h.
References UNIT_FIELD_SUMMONEDBY.
Referenced by BuildValuesUpdate(), CanApplyResilience(), npc_death_knight_initiate::npc_death_knight_initiateAI::DamageTaken(), DealDamage(), spell_dk_death_pact::FilterTargets(), npc_scarlet_ghoul::FindMinions(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetRename(), HandleSpellClick(), npc_pet_dk_ebon_gargoyle::InitializeAI(), Kill(), Creature::LoadTemplateImmunities(), Condition::Meets(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), Trinity::MostHPMissingGroupInRange::operator()(), OutDebugInfo(), PetAI::ReceiveEmote(), RemoveAllControlled(), Pet::SavePetToDB(), SetCharm(), SetMinion(), SetOwnerGUID(), SpellDamagePctDone(), FollowMovementGenerator::UpdatePetSpeed(), and UpdateSpeed().
| void Unit::GetPartyMembers | ( | std::list< Unit * > & | units | ) |
Definition at line 11882 of file Unit.cpp.
References WorldObject::GetCharmerOrOwnerOrSelf(), Group::GetFirstMember(), Player::GetGroup(), GetGuardianPet(), Player::GetSubGroup(), Object::GetTypeId(), IsAlive(), WorldObject::IsHostileTo(), WorldObject::IsInMap(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Aura::HandleAuraSpecificMods().
| float Unit::GetPctModifierValue | ( | UnitMods | unitMod, |
| UnitModifierPctType | modifierType | ||
| ) | const |
Definition at line 9040 of file Unit.cpp.
References m_auraPctModifiersGroup, MODIFIER_TYPE_PCT_END, TC_LOG_ERROR, and UNIT_MOD_END.
Referenced by Creature::CalculateMinMaxDamage(), Player::CalculateMinMaxDamage(), Spell::EffectWeaponDmg(), Player::GetDodgeFromAgility(), GetTotalAuraModValue(), GetTotalStatValue(), AuraEffect::HandleModResistancePercent(), AuraEffect::HandleModTotalPercentStat(), Guardian::UpdateArmor(), Player::UpdateArmor(), Guardian::UpdateDamagePhysical(), Guardian::UpdateMaxHealth(), Player::UpdateMaxHealth(), Creature::UpdateMaxPower(), Guardian::UpdateMaxPower(), and Player::UpdateMaxPower().
|
inline |
Definition at line 1006 of file Unit.h.
References UNIT_BYTES_2_OFFSET_PET_FLAGS, and UNIT_FIELD_BYTES_2.
|
inline |
Definition at line 1260 of file Unit.h.
References SUMMON_SLOT_PET.
Referenced by BeforeVisibilityDestroy< Creature >(), Spell::CheckCast(), Spell::EffectCreateTamedPet(), Spell::EffectTameCreature(), GetGuardianPet(), Player::GetPet(), npc_commandscript::HandleNpcTameCommand(), WorldSession::HandlePetAbandon(), pet_commandscript::HandlePetCreateCommand(), RemoveAllControlled(), Player::ResummonPetTemporaryUnSummonedIfAny(), SetMinion(), and Pet::Update().
|
inline |
Definition at line 1467 of file Unit.h.
References UNIT_FIELD_POSSTAT0.
Definition at line 948 of file Unit.h.
References UNIT_FIELD_POWER1.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket(), SpellInfo::CalcPowerCost(), Spell::CheckItems(), Spell::CheckPower(), boss_lady_deathwhisper::DamageTaken(), Spell::EffectCastButtons(), Spell::EffectWeaponDmg(), boss_curator::boss_curatorAI::ExecuteEvent(), Pet::FillPetInfo(), Pet::GetHappinessState(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), AuraEffect::HandleAuraModShapeshift(), spell_warr_execute::HandleEffect(), AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), WorldSession::HandlePetAbandon(), WorldSession::HandleRequestPartyMemberStatsOpcode(), Player::InitStatsForLevel(), Pet::LoseHappiness(), ModifyPower(), spell_mark_of_kazrogal_aura::OnPeriodic(), spell_dru_frenzied_regeneration::PeriodicTick(), Creature::Regenerate(), Player::Regenerate(), Creature::RegenerateHealth(), Player::SaveManaBeforeDuel(), Pet::SavePetToDB(), Player::SaveToDB(), Creature::SaveToDB(), ScriptedAI::SelectSpell(), SetMaxPower(), SetPower(), boss_deathbringer_saurfang::SpellHitTarget(), spell_igb_incinerating_blast::StoreEnergy(), Aura::Update(), and boss_moam::UpdateAI().
|
inline |
Definition at line 951 of file Unit.h.
Referenced by spell_doom_lord_kazzak_mark_of_kazzak::OnPeriodic(), Trinity::PowerPctOrderPred::operator()(), Trinity::PowerPctOrderPred::operator()(), SmartScript::ProcessEvent(), boss_shade_of_aran::boss_aranAI::UpdateAI(), and boss_selin_fireheart::UpdateAI().
|
inline |
Definition at line 945 of file Unit.h.
References UNIT_BYTES_0_OFFSET_POWER_TYPE, and UNIT_FIELD_BYTES_0.
Referenced by Player::ActivateTalentGroup(), WorldSession::BuildPartyMemberStatsChangedPacket(), Spell::CheckCast(), spell_pal_blessing_of_sanctuary::CheckProc(), spell_pal_judgement_of_wisdom_mana::CheckProc(), DealDamage(), Spell::EffectEnergize(), Spell::EffectEnergizePct(), Spell::EffectPowerBurn(), Spell::EffectPowerDrain(), Spell::EffectSummonPet(), spell_moam_drain_mana::FilterTargets(), spell_mistress_kiss_area::FilterTargets(), AuraEffect::HandleAuraModShapeshift(), Aura::HandleAuraSpecificMods(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), spell_dru_revitalize::HandleProc(), spell_dru_t3_2p_bonus::HandleProc(), spell_item_heartpierce< EnergySpellId, ManaSpellId, RageSpellId, RPSpellId >::spell_item_heartpierce_AuraScript< Energy, Mana, Rage, RunicPower >::HandleProc(), WorldSession::HandleRequestPartyMemberStatsOpcode(), spell_gen_pet_summoned::HandleScript(), spell_gen_replenishment_aura::Load(), DuelResetScript::OnDuelEnd(), ValithriaManaVoidSelector::operator()(), PowerUsersSelector::operator()(), ManaUserTargetSelector::operator()(), Player::ResetAllPowers(), spell_item_mad_alchemists_potion::SecondaryEffect(), spell_item_crazy_alchemists_potion::SecondaryEffect(), SimpleCharmedPlayerAI::SelectAppropriateCastForSpec(), setDeathState(), SetPowerType(), Pet::Update(), Creature::Update(), boss_vaelastrasz::UpdateAI(), boss_maleki_the_pallid::UpdateAI(), boss_marli::UpdateAI(), boss_anzu::UpdateAI(), boss_doom_lord_kazzak::UpdateAI(), boss_harbinger_skyriss::UpdateAI(), boss_pathaleon_the_calculator::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), and boss_faction_championsAI::UpdatePower().
Definition at line 9274 of file Unit.cpp.
References POWER_ENERGY, POWER_FOCUS, POWER_HAPPINESS, POWER_MANA, POWER_RAGE, POWER_RUNE, POWER_RUNIC_POWER, UNIT_MOD_ENERGY, UNIT_MOD_FOCUS, UNIT_MOD_HAPPINESS, UNIT_MOD_MANA, UNIT_MOD_RAGE, UNIT_MOD_RUNE, and UNIT_MOD_RUNIC_POWER.
Referenced by UpdateUnitMod().
Definition at line 8110 of file Unit.cpp.
References WorldObject::GetSpellModOwner(), SpellInfo::Id, and SPELLMOD_PROC_PER_MINUTE.
Referenced by Player::CastItemCombatSpell().
| void Unit::GetProcAurasTriggeredOnEvent | ( | AuraApplicationProcContainer & | aurasTriggeringProc, |
| AuraApplicationList * | procAuras, | ||
| ProcEventInfo & | eventInfo | ||
| ) |
Definition at line 10135 of file Unit.cpp.
References ASSERT, GetAppliedAuras(), and GameTime::Now().
Referenced by TriggerAurasProcOnEvent().
|
inline |
Definition at line 995 of file Unit.h.
References UNIT_BYTES_2_OFFSET_PVP_FLAG, and UNIT_FIELD_BYTES_2.
Referenced by SetCharm(), and SetMinion().
|
inline |
Definition at line 906 of file Unit.h.
References UNIT_BYTES_0_OFFSET_RACE, and UNIT_FIELD_BYTES_0.
Referenced by Player::_LoadAuras(), Player::_LoadHomeBind(), Player::_LoadSkills(), Player::BuildPlayerRepop(), Player::CreateCorpse(), Spell::EffectLearnSkill(), GetCreatureType(), GetModelForForm(), Player::GetStartPosition(), Player::GiveLevel(), WorldSession::HandleAlterAppearance(), AuraEffect::HandleAuraTransform(), WorldSession::HandleMirrorImageDataRequest(), modify_commandscript::HandleModifyGenderCommand(), WorldSession::HandleOpeningCinematic(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), reset_commandscript::HandleResetStatsOrLevelHelper(), spell_quest_uther_grom_tribute::HandleScript(), Player::InitDisplayIds(), npc_stolen_soul::InitializeAI(), Player::InitStatsForLevel(), Player::InitTaxiNodesForLevel(), Player::IsSpellFitByClassAndRace(), Trainer::Trainer::IsTrainerValidForPlayer(), Player::LearnCustomSpells(), Player::LearnDefaultSkill(), Player::LearnDefaultSkills(), Player::LoadFromDB(), AchievementCriteriaData::Meets(), RestoreFaction(), Player::ResurrectPlayer(), Player::RewardHonor(), Player::SaveToDB(), Player::SetGameMaster(), Player::StoreNewItemInBestSlots(), and Player::UpdateSkillsForLevel().
|
inline |
Definition at line 908 of file Unit.h.
Referenced by Player::CanRollForItemInLFG(), Player::CanUseItem(), ReputationMgr::GetFactionDataIndexForRaceAndClass(), Player::GiveLevel(), SpellArea::IsFitToRequirements(), Player::IsSpellFitByClassAndRace(), Player::LearnSkillRewardedSpells(), Player::SatisfyQuestRace(), and ReputationMgr::SetVisible().
|
inline |
Definition at line 1068 of file Unit.h.
References CR_CRIT_TAKEN_RANGED.
Referenced by ApplyResilience().
Definition at line 1073 of file Unit.h.
References CR_CRIT_TAKEN_RANGED.
Referenced by ApplyResilience().
Definition at line 1078 of file Unit.h.
References CR_CRIT_TAKEN_RANGED.
Referenced by ApplyResilience().
| int32 Unit::GetResistance | ( | SpellSchoolMask | mask | ) | const |
Definition at line 13138 of file Unit.cpp.
References GetResistance(), MAX_SPELL_SCHOOL, and SPELL_SCHOOL_NORMAL.
|
inline |
Definition at line 922 of file Unit.h.
References UNIT_FIELD_RESISTANCES.
Referenced by Player::_SaveStats(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArcaneResistanceAmount(), CalculateAverageResistReduction(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateFireResistanceAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateFrostResistanceAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateNatureResistanceAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateShadowResistanceAmount(), GetResistance(), Player::outDebugValues(), boss_sapphiron::SpellHitTarget(), and Guardian::UpdateResistances().
|
protected |
Definition at line 9553 of file Unit.cpp.
References Object::ToCreature().
Referenced by ScheduleAIChange().
| uint32 Unit::GetSchoolImmunityMask | ( | ) | const |
Definition at line 7721 of file Unit.cpp.
References IMMUNITY_SCHOOL, and m_spellImmune.
Referenced by IsImmunedToDamage().
|
inline |
Definition at line 1503 of file Unit.h.
References UNIT_BYTES_2_OFFSET_SHAPESHIFT_FORM, and UNIT_FIELD_BYTES_2.
Referenced by Player::ApplyEquipSpell(), SpellInfo::CalcPowerCost(), spell_dru_savage_roar::CheckCast(), spell_dru_forms_trinket::CheckProc(), spell_dru_t9_feral_relic::CheckProc(), Spell::EffectSchoolDMG(), Battleground::GetAlivePlayersCountByTeam(), GetCreatureType(), AuraEffect::HandleAuraModShapeshift(), Player::HandlePassiveSpellLearn(), spell_dru_forms_trinket::HandleProc(), spell_dru_t9_feral_relic::HandleProc(), reset_commandscript::HandleResetStatsOrLevelHelper(), Player::InitDataForForm(), IsInDisallowedMountForm(), IsInFeralForm(), RestoreDisplayId(), Player::UpdateAttackPowerAndDamage(), UpdateDisplayPower(), and Player::UpdateWeaponSkill().
|
inline |
Definition at line 1318 of file Unit.h.
Referenced by WorldObjectChangeAccumulator::Visit(), Trinity::MessageDistDeliverer::Visit(), Trinity::MessageDistDelivererToHostile::Visit(), WorldObjectChangeAccumulator::Visit(), Trinity::MessageDistDeliverer::Visit(), and Trinity::MessageDistDelivererToHostile::Visit().
|
inline |
Definition at line 983 of file Unit.h.
References UNIT_BYTES_2_OFFSET_SHEATH_STATE, and UNIT_FIELD_BYTES_2.
|
pure virtual |
Implemented in Creature, and Player.
Referenced by CalculateSpellDamageTaken(), Spell::EffectSchoolDMG(), GetShieldBlockValue(), and spell_warr_damage_shield::OnProc().
Definition at line 2565 of file Unit.cpp.
References GetShieldBlockValue().
|
inline |
Definition at line 1399 of file Unit.h.
Referenced by _AddAura(), Player::ActivateTalentGroup(), RemoveAurasDueToSpellBySteal(), RemoveNotOwnSingleTargetAuras(), and Aura::UnregisterSingleTarget().
| float Unit::GetSpeed | ( | UnitMoveType | mtype | ) | const |
Definition at line 8608 of file Unit.cpp.
References baseMoveSpeed, IsControlledByPlayer(), m_speed_rate, and playerBaseMoveSpeed.
Referenced by boss_malygos::boss_malygos(), Object::BuildMovementUpdate(), Spell::CalculateJumpSpeeds(), npc_kinetic_bomb::DoAction(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), Movement::MoveSplineInit::Launch(), FormationMovementGenerator::LaunchMovement(), npc_kinetic_bomb::UpdateAI(), and npc_rimefang_icc::UpdateAI().
|
inline |
Definition at line 1670 of file Unit.h.
Referenced by boss_lord_marrowgar::boss_lord_marrowgar(), spell_brewfest_mount_transformation::HandleDummy(), spell_winter_veil_reindeer_transformation::HandleDummy(), spell_mount_check::HandleEffectPeriodic(), spell_gen_pony_mount_check::HandleEffectPeriodic(), and UpdateSpeed().
|
inline |
Definition at line 1069 of file Unit.h.
References CR_CRIT_TAKEN_SPELL.
Referenced by ApplyResilience().
Definition at line 1074 of file Unit.h.
References CR_CRIT_TAKEN_SPELL.
Referenced by ApplyResilience(), Spell::EffectPowerBurn(), Spell::EffectPowerDrain(), AuraEffect::HandlePeriodicManaLeechAuraTick(), and AuraEffect::HandlePeriodicPowerBurnAuraTick().
Definition at line 1079 of file Unit.h.
References CR_CRIT_TAKEN_SPELL.
Referenced by ApplyResilience().
|
inline |
Definition at line 1497 of file Unit.h.
Referenced by Aura::_ApplyForTarget(), Spell::_cast(), CreatureAI::_EnterEvadeMode(), Aura::_UnapplyForTarget(), spell_rog_cheat_death::Absorb(), spell_pal_ardent_defender::Absorb(), AddGameObject(), Player::ApplyEquipCooldown(), spell_rog_vanish::ApplyStealth(), Spell::cancel(), Spell::CancelGlobalCooldown(), Spell::CheckCast(), Spell::CheckPetCast(), Spell::EffectCastButtons(), Spell::EffectInterruptCast(), Spell::EffectStuck(), Spell::EffectSummonPet(), Player::EquipItem(), Player::GetResurrectionSpellId(), Aura::HandleAuraSpecificMods(), spell_gen_charmed_unit_spell_cooldown::HandleCast(), misc_commandscript::HandleCooldownCommand(), spell_hun_readiness::HandleDummy(), spell_item_rocket_boots::HandleDummy(), spell_item_refocus::HandleDummy(), spell_mage_cold_snap::HandleDummy(), spell_rog_preparation::HandleDummy(), spell_dru_berserk::HandleEffectApply(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), spell_dk_rime::HandleProc(), spell_warr_sword_and_board::HandleProc(), spell_dk_glyph_of_death_grip::HandleProc(), spell_mage_glyph_of_ice_block::HandleProc(), spell_dru_leader_of_the_pack::HandleProc(), spell_gen_divine_storm_cd_reset::HandleScript(), Spell::HasGlobalCooldown(), Player::LoadFromDB(), npc_gunship_boarding_addAI::MovementInform(), DuelResetScript::OnDuelEnd(), DuelResetScript::OnDuelStart(), spell_dk_raise_dead::OverrideCooldown(), Player::PetSpellInitialize(), Player::RemoveArenaSpellCooldowns(), RemoveGameObjectImpl(), DuelResetScript::ResetSpellCooldowns(), Pet::SavePetToDB(), Player::SaveToDB(), Player::SendInitialSpells(), Spell::SendSpellCooldown(), SetMinion(), gunship_npc_AI::TriggerBurningPitch(), Spell::TriggerGlobalCooldown(), Totem::UnSummon(), boss_general_bjarngrim::UpdateAI(), PetAI::UpdateAI(), npc_gunship_rocketeer::UpdateAI(), Player::UpdatePotionCooldown(), Player::VehicleSpellInitialize(), and PlayerAI::VerifySpellCast().
|
inline |
| SpellSchools Unit::GetSpellSchoolByAuraGroup | ( | UnitMods | unitMod | ) | const |
Definition at line 9235 of file Unit.cpp.
References SPELL_SCHOOL_ARCANE, SPELL_SCHOOL_FIRE, SPELL_SCHOOL_FROST, SPELL_SCHOOL_HOLY, SPELL_SCHOOL_NATURE, SPELL_SCHOOL_NORMAL, SPELL_SCHOOL_SHADOW, UNIT_MOD_RESISTANCE_ARCANE, UNIT_MOD_RESISTANCE_FIRE, UNIT_MOD_RESISTANCE_FROST, UNIT_MOD_RESISTANCE_HOLY, UNIT_MOD_RESISTANCE_NATURE, and UNIT_MOD_RESISTANCE_SHADOW.
Referenced by UpdateUnitMod().
|
inline |
Definition at line 1015 of file Unit.h.
References UNIT_BYTES_1_OFFSET_STAND_STATE, and UNIT_FIELD_BYTES_1.
Referenced by _ApplyAura(), DealDamage(), WorldSession::HandleAlterAppearance(), IsEncounterFinished(), IsSitState(), IsStandState(), and spell_love_is_in_the_air_romantic_picnic::OnPeriodic().
|
inline |
Definition at line 917 of file Unit.h.
References UNIT_FIELD_STAT0.
Referenced by Player::_SaveStats(), spell_dk_pet_scaling_01::spell_dk_pet_scaling_01_AuraScript::CalculateStrengthAmount(), Pet::CastPetAura(), Player::GetDodgeFromAgility(), Player::GetHealthBonusFromStamina(), Player::GetManaBonusFromIntellect(), Player::GetMeleeCritFromAgility(), Creature::GetShieldBlockValue(), Player::GetShieldBlockValue(), Player::GetSpellCritFromIntellect(), spell_item_death_choice::HandleProc(), spell_item_darkmoon_card_greatness::HandleProc(), Guardian::InitStatsForLevel(), Player::OCTRegenHPPerSpirit(), Player::OCTRegenMPPerSpirit(), Player::outDebugValues(), Creature::Regenerate(), Creature::RegenerateHealth(), SpellBaseDamageBonusDone(), SpellBaseHealingBonusDone(), Guardian::UpdateArmor(), Player::UpdateArmor(), Guardian::UpdateAttackPowerAndDamage(), Player::UpdateAttackPowerAndDamage(), Player::UpdateCombatSkills(), Guardian::UpdateMaxHealth(), Guardian::UpdateMaxPower(), Player::UpdatePowerRegen(), Player::UpdateRating(), and Guardian::UpdateStats().
Definition at line 9255 of file Unit.cpp.
References STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, UNIT_MOD_STAT_AGILITY, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_STAT_STAMINA, and UNIT_MOD_STAT_STRENGTH.
Referenced by UpdateUnitMod().
|
inline |
Definition at line 1813 of file Unit.h.
References UNIT_FIELD_TARGET.
Referenced by AddExtraAttacks(), Spell::CheckCast(), spell_item_crystal_spire_of_karabor::CheckProc(), spell_pri_t5_heal_2p_bonus::CheckProc(), Spell::EffectTaunt(), MotionMaster::GetMovementGeneratorsInformation(), ChatHandler::getSelectedCreature(), ChatHandler::getSelectedObject(), ChatHandler::getSelectedPlayer(), Player::GetSelectedPlayer(), ChatHandler::getSelectedPlayerOrSelf(), Player::GetSelectedUnit(), misc_commandscript::HandleDamageCommand(), debug_commandscript::HandleDebugPlaySoundCommand(), misc_commandscript::HandleDieCommand(), misc_commandscript::HandleGUIDCommand(), misc_commandscript::HandleRespawnCommand(), IsMutualChase(), LogCommandUsage(), Spell::SelectEffectTypeImplicitTargets(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), UpdateSpeed(), and GameObject::Use().
|
inline |
Definition at line 1169 of file Unit.h.
Referenced by boss_four_horsemen_lady::_UpdateAI(), boss_four_horsemen_sir::_UpdateAI(), ThreatManager::AddThreat(), ScriptedAI::AddThreat(), spell_opera_picnic_basket_smell::AfterRemove(), boss_four_horsemen_baron::BeginFighting(), boss_four_horsemen_thane::BeginFighting(), boss_supremus::CalculateHatefulStrikeTarget(), ThreatManager::CalculateModifiedThreat(), Creature::CallForHelp(), boss_veknilash::boss_veknilashAI::CastSpellOnBug(), Creature::Create(), Pet::Create(), Player::Create(), npc_dark_nucleus::DamageTaken(), DealDamage(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::DeleteAllFromThreatList(), boss_zuljin::DoAction(), boss_professor_putricide::DoAction(), boss_gothik::DoAction(), boss_ick::DoAction(), Spell::TargetInfo::DoDamageAndTriggers(), Spell::EffectModifyThreatPercent(), Spell::EffectRedirectThreat(), Spell::EffectSanctuary(), Spell::EffectTaunt(), Spell::EffectThreat(), CombatManager::EndAllPvECombat(), CombatReference::EndCombat(), boss_faction_championsAI::EnemiesInRange(), EnergizeBySpell(), boss_malchezaar::boss_malchezaarAI::EnfeebleHealthEffect(), VehicleJoinEvent::Execute(), boss_the_maker::ExecuteEvent(), spell_gruul_hurtful_strike_primer::FilterTargets(), boss_shade_of_aran::boss_aranAI::FlameWreathEffect(), ThreatManager::ForwardThreatForAssistingMe(), SmartScript::GetTargets(), ScriptedAI::GetThreat(), spell_rajaxx_thundercrash::HandleAfterCast(), spell_leotheras_the_blind_whirlwind_init::HandleAfterCast(), spell_nethermancer_sepethrea_arcane_blast::HandleAfterHit(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModDmgImmunity(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleAuraModStun(), AuraEffect::HandleAuraModTotalThreat(), spell_thaddius_magnetic_pull::HandleCast(), debug_commandscript::HandleDebugThreatInfoCommand(), debug_commandscript::HandleDebugThreatListCommand(), spell_omor_the_unscarred_orbital_strike_target::HandleDummy(), spell_omrogg_beatdown::HandleDummy(), spell_gen_hate_to_zero::HandleDummy(), spell_gen_hate_to_50::HandleDummy(), spell_gen_hate_to_75::HandleDummy(), spell_auriaya_agro_creator::HandleDummyEffect(), spell_ulduar_random_aggro_periodic::HandleEffectPeriodic(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleModConfuse(), AuraEffect::HandleModDetaunt(), AuraEffect::HandleModTaunt(), AuraEffect::HandleModThreat(), AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), spell_pet_guard_dog::HandleProc(), spell_rog_tricks_of_the_trade_proc::HandleRemove(), spell_warr_vigilance::HandleRemove(), spell_frostwarden_handler_focus_fire::HandleScript(), spell_the_lich_king_vile_spirit_move_target_search::HandleScript(), spell_sartura_whirlwind::HandleScript(), spell_toravon_random_aggro::HandleScript(), spell_leotheras_the_blind_whirlwind_effect::HandleScript(), spell_gen_knock_away_threat_reduction::HandleScript(), Spell::HandleThreatSpells(), AdvisorBaseAI::IsEnemyInRange(), npc_suppresser::IsSummonedBy(), boss_attumen::boss_attumenAI::IsSummonedBy(), ScriptedAI::ModifyThreatByPercent(), spell_hun_misdirection::OnRemove(), spell_hun_misdirection_proc::OnRemove(), spell_rog_tricks_of_the_trade_aura::OnRemove(), NonTankTargetSelector::operator()(), StoneGripTargetSelector::operator()(), UnitAI::PrepareTargetListSelection(), Spell::PreprocessSpellHit(), SmartScript::ProcessAction(), ScriptedAI::ResetThreat(), ScriptedAI::ResetThreatList(), boss_blood_queen_lana_thel::SelectRandomTarget(), Creature::SelectVictim(), gunship_npc_AI::SelectVictim(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::SpellHit(), boss_zuljin::SpellHitTarget(), spell_putricide_ooze_channel::StartAttack(), npc_anubarak_spike::StartChase(), ThreatReference::UnregisterAndFree(), Creature::Update(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), boss_prince_taldaram::UpdateAI(), boss_patchwerk::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_mimiron_assault_bot::npc_mimiron_assault_botAI::UpdateAI(), boss_blackheart_the_inciter::UpdateAI(), boss_murmur::UpdateAI(), boss_fathomlord_karathress::UpdateAI(), boss_void_reaver::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), Creature::UpdateEntry(), npc_pet_mage_mirror_image::UpdateImageVictim(), npc_pet_dk_rune_weapon::UpdateRuneWeaponVictim(), and boss_faction_championsAI::UpdateThreat().
|
inline |
|
inlineprotected |
Definition at line 820 of file Unit.h.
Referenced by RestoreDisabledAI().
| float Unit::GetTotalAttackPowerValue | ( | WeaponAttackType | attType | ) | const |
Definition at line 9289 of file Unit.cpp.
References Object::GetFloatValue(), Object::GetInt32Value(), Object::GetUInt16Value(), RANGED_ATTACK, UNIT_FIELD_ATTACK_POWER, UNIT_FIELD_ATTACK_POWER_MODS, UNIT_FIELD_ATTACK_POWER_MULTIPLIER, UNIT_FIELD_RANGED_ATTACK_POWER, UNIT_FIELD_RANGED_ATTACK_POWER_MODS, and UNIT_FIELD_RANGED_ATTACK_POWER_MULTIPLIER.
Referenced by spell_dk_ghoul_thrash::CalcDamage(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateAttackPowerAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateDamageDoneAmount(), spell_dk_rune_weapon_scaling_02::spell_dk_rune_weapon_scaling_02_AuraScript::CalculateDamageDoneAmount(), Creature::CalculateMinMaxDamage(), Player::CalculateMinMaxDamage(), Spell::EffectSchoolDMG(), Spell::EffectWeaponDmg(), spell_warr_bloodthirst::HandleDamage(), spell_warr_execute::HandleEffect(), spell_sha_shamanistic_rage::HandleProc(), spell_dru_savage_defense::HandleProc(), spell_pal_seal_of_righteousness::HandleProc(), Spell::HandleThreatSpells(), Guardian::InitStatsForLevel(), SpellBaseDamageBonusDone(), SpellBaseHealingBonusDone(), SpellDamageBonusDone(), SpellHealingBonusDone(), Guardian::UpdateAttackPowerAndDamage(), and Guardian::UpdateDamagePhysical().
Definition at line 4815 of file Unit.cpp.
References GetTotalAuraModifier().
Referenced by CalcArmorReducedDamage(), Aura::CalcDispelChance(), CalcSpellResistedDamage(), Player::CalculateReputationGain(), CalculateSpellDamageTaken(), Spell::Delayed(), Spell::DelayedChannel(), Creature::GetAggroRange(), Creature::GetAttackDistance(), Pet::GetMaxTalentPointsForLevel(), GetTotalAuraModifier(), GetTotalAuraModifierByAffectMask(), GetTotalAuraModifierByMiscMask(), GetTotalAuraModifierByMiscValue(), GetUnitBlockChance(), GetUnitCriticalChanceDone(), GetUnitCriticalChanceTaken(), GetUnitDodgeChance(), GetUnitParryChance(), Player::HandleFall(), spell_pal_seal_of_righteousness::HandleProc(), IsBlockCritical(), WorldObject::MagicSpellHitResult(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), MeleeSpellHitResult(), MeleeSpellMissChance(), WorldObject::ModSpellDuration(), RecalculateObjectScale(), Creature::RegenerateHealth(), Player::RegenerateHealth(), DuelResetScript::ResetSpellCooldowns(), RewardRage(), Battleground::RewardReputationToTeam(), SpellBaseHealingBonusDone(), SpellCritChanceTaken(), SpellDamageBonusDone(), SpellHealingBonusDone(), WorldObject::SpellHitResult(), SpellHistory::StartCooldown(), Player::UpdateAttackPowerAndDamage(), Player::UpdateBlockPercentage(), UpdateDamageDoneMods(), Player::UpdateDodgePercentage(), Player::UpdateExpertise(), Player::UpdateParryPercentage(), Player::UpdatePowerRegen(), UpdateResistanceBuffModsMod(), UpdateSpeed(), Player::UpdateSpellCritChance(), Player::UpdateSpellHitChances(), UpdateStatBuffMod(), and Player::UpdateWeaponDependentCritAuras().
| int32 Unit::GetTotalAuraModifier | ( | AuraType | auraType, |
| std::function< bool(AuraEffect const *)> const & | predicate | ||
| ) | const |
Definition at line 4729 of file Unit.cpp.
References GetAuraEffectsByType(), and sSpellMgr.
| int32 Unit::GetTotalAuraModifierByAffectMask | ( | AuraType | auraType, |
| SpellInfo const * | affectedSpell | ||
| ) | const |
Definition at line 4915 of file Unit.cpp.
References GetTotalAuraModifier(), and AuraEffect::IsAffectingSpell().
Definition at line 4835 of file Unit.cpp.
References AuraEffect::GetMiscValue(), and GetTotalAuraModifier().
Referenced by CalcArmorReducedDamage(), CalcSpellResistedDamage(), CalculateSpellDamageTaken(), spell_pal_seal_of_righteousness::HandleProc(), spell_sha_flametongue_weapon::HandleProc(), WorldObject::MagicSpellHitResult(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), SpellBaseDamageBonusDone(), SpellCritChanceDone(), SpellCritChanceTaken(), SpellCriticalDamageBonus(), SpellDamageBonusDone(), SpellHealingBonusDone(), WorldObject::SpellHitResult(), and Player::UpdateSpellCritChance().
Definition at line 4875 of file Unit.cpp.
References AuraEffect::GetMiscValue(), and GetTotalAuraModifier().
Referenced by Player::CalculateReputationGain(), GetMechanicResistChance(), GetUnitDodgeChance(), WorldObject::MagicSpellHitResult(), MeleeDamageBonusDone(), WorldObject::ModSpellDuration(), Creature::Regenerate(), Battleground::RewardReputationToTeam(), SpellDamagePctDone(), and Player::UpdatePowerRegen().
| float Unit::GetTotalAuraModValue | ( | UnitMods | unitMod | ) | const |
Definition at line 9219 of file Unit.cpp.
References BASE_PCT, BASE_VALUE, GetFlatModifierValue(), GetPctModifierValue(), TC_LOG_ERROR, TOTAL_PCT, TOTAL_VALUE, and UNIT_MOD_END.
Referenced by Creature::UpdateArmor(), Creature::UpdateMaxHealth(), Creature::UpdateResistances(), Guardian::UpdateResistances(), and Player::UpdateResistances().
| float Unit::GetTotalAuraMultiplier | ( | AuraType | auraType | ) | const |
Definition at line 4820 of file Unit.cpp.
References GetTotalAuraMultiplier().
Referenced by KillRewarder::_RewardXP(), Player::getMaxTimer(), GetTotalAuraMultiplier(), GetTotalAuraMultiplierByAffectMask(), GetTotalAuraMultiplierByMiscMask(), GetTotalAuraMultiplierByMiscValue(), AuraEffect::HandleAuraIncreaseBaseHealthPercent(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleModPercentStat(), AuraEffect::HandleModTotalPercentStat(), AuraEffect::HandleShieldBlockValuePercent(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), Creature::RegenerateHealth(), Player::RegenerateHealth(), SpellCriticalHealingBonus(), SpellDamageBonusTaken(), SpellDamagePctDone(), SpellHealingBonusTaken(), SpellHealingPctDone(), UpdateDamagePctDoneMods(), UpdateSpeed(), and UpdateStatBuffMod().
| float Unit::GetTotalAuraMultiplier | ( | AuraType | auraType, |
| std::function< bool(AuraEffect const *)> const & | predicate | ||
| ) | const |
Definition at line 4756 of file Unit.cpp.
References AddPct(), GetAuraEffectsByType(), and sSpellMgr.
| float Unit::GetTotalAuraMultiplierByAffectMask | ( | AuraType | auraType, |
| SpellInfo const * | affectedSpell | ||
| ) | const |
Definition at line 4925 of file Unit.cpp.
References GetTotalAuraMultiplier(), and AuraEffect::IsAffectingSpell().
Definition at line 4845 of file Unit.cpp.
References AuraEffect::GetMiscValue(), and GetTotalAuraMultiplier().
Referenced by CalculateAOEAvoidance(), ThreatManager::CalculateModifiedThreat(), CalculateSpellDamageTaken(), AuraEffect::HandleAuraModBaseResistancePCT(), AuraEffect::HandleModDamagePercentDone(), AuraEffect::HandleModResistancePercent(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), SpellCriticalDamageBonus(), SpellCriticalHealingBonus(), SpellDamageBonusTaken(), SpellDamagePctDone(), ThreatManager::UpdateMySpellSchoolModifiers(), and UpdateResistanceBuffModsMod().
Definition at line 4885 of file Unit.cpp.
References AuraEffect::GetMiscValue(), and GetTotalAuraMultiplier().
Referenced by AuraEffect::HandleAuraModIncreaseEnergyPercent(), Creature::Regenerate(), and Player::UpdatePowerRegen().
| float Unit::GetTotalStatValue | ( | Stats | stat | ) | const |
Definition at line 9206 of file Unit.cpp.
References AsUnderlyingType(), BASE_PCT, BASE_VALUE, GetCreateStat(), GetFlatModifierValue(), GetPctModifierValue(), TOTAL_PCT, TOTAL_VALUE, and UNIT_MOD_STAT_START.
Referenced by Player::UpdateAllStats(), Guardian::UpdateStats(), and Player::UpdateStats().
|
inline |
Definition at line 1604 of file Unit.h.
Referenced by BuildValuesUpdate(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraTransform(), IsInDisallowedMountForm(), and IsPolymorphed().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 11827 of file Unit.cpp.
References ObjectGuid::Empty, Object::GetGUID(), WorldObject::GetTransport(), GetVehicle(), and GetVehicleBase().
Referenced by WaypointMovementGenerator< Creature >::DoUpdate(), DistractMovementGenerator::Initialize(), Movement::MoveSplineInit::Launch(), Movement::MoveSplineInit::MoveSplineInit(), SmartScript::ProcessAction(), SpellCastTargets::Read(), WaypointMovementGenerator< Creature >::StartMove(), Movement::MoveSplineInit::Stop(), and RotateMovementGenerator::Update().
| float Unit::GetUnitBlockChance | ( | WeaponAttackType | attType, |
| Unit const * | victim | ||
| ) | const |
Definition at line 2694 of file Unit.cpp.
References CREATURE_FLAG_EXTRA_NO_BLOCK, EQUIPMENT_SLOT_OFFHAND, CreatureTemplate::flags_extra, ItemTemplate::GetBlock(), Creature::GetCreatureTemplate(), Object::GetFloatValue(), GetMaxSkillValueForLevel(), Item::GetTemplate(), GetTotalAuraModifier(), GetWeaponSkillValue(), INVENTORY_SLOT_BAG_0, Item::IsBroken(), IsTotem(), PLAYER_BLOCK_PERCENTAGE, SPELL_AURA_MOD_BLOCK_PERCENT, Object::ToCreature(), and Object::ToPlayer().
Referenced by MeleeSpellHitResult(), and RollMeleeOutcomeAgainst().
| float Unit::GetUnitCriticalChanceAgainst | ( | WeaponAttackType | attackType, |
| Unit const * | victim | ||
| ) | const |
Definition at line 2803 of file Unit.cpp.
References GetUnitCriticalChanceDone(), and GetUnitCriticalChanceTaken().
Referenced by spell_dk_wandering_plague::CheckProc(), and RollMeleeOutcomeAgainst().
| float Unit::GetUnitCriticalChanceDone | ( | WeaponAttackType | attackType | ) | const |
Definition at line 2732 of file Unit.cpp.
References BASE_ATTACK, CREATURE_FLAG_EXTRA_NO_CRIT, Object::GetFloatValue(), GetTotalAuraModifier(), Object::GetTypeId(), OFF_ATTACK, PLAYER_CRIT_PERCENTAGE, PLAYER_OFFHAND_CRIT_PERCENTAGE, PLAYER_RANGED_CRIT_PERCENTAGE, RANGED_ATTACK, SPELL_AURA_MOD_CRIT_PCT, SPELL_AURA_MOD_WEAPON_CRIT_PERCENT, Object::ToCreature(), and TYPEID_PLAYER.
Referenced by GetUnitCriticalChanceAgainst(), and SpellCritChanceDone().
| float Unit::GetUnitCriticalChanceTaken | ( | Unit const * | attacker, |
| WeaponAttackType | attackType, | ||
| float | critDone | ||
| ) | const |
Definition at line 2767 of file Unit.cpp.
References ApplyResilience(), CanApplyResilience(), CR_CRIT_TAKEN_MELEE, CR_CRIT_TAKEN_RANGED, GetDefenseSkillValue(), GetTotalAuraModifier(), Object::GetTypeId(), GetWeaponSkillValue(), RANGED_ATTACK, SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_CHANCE, SPELL_AURA_MOD_ATTACKER_RANGED_CRIT_CHANCE, SPELL_AURA_MOD_ATTACKER_SPELL_AND_WEAPON_CRIT_CHANCE, and TYPEID_PLAYER.
Referenced by GetUnitCriticalChanceAgainst(), and SpellCritChanceTaken().
| float Unit::GetUnitDodgeChance | ( | WeaponAttackType | attType, |
| Unit const * | victim | ||
| ) | const |
Definition at line 2595 of file Unit.cpp.
References Player::GetExpertiseDodgeOrParryReduction(), Object::GetFloatValue(), GetMaxSkillValueForLevel(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscValue(), Object::GetTypeId(), GetWeaponSkillValue(), IsTotem(), PLAYER_DODGE_PERCENTAGE, SPELL_AURA_MOD_COMBAT_RESULT_CHANCE, SPELL_AURA_MOD_DODGE_PERCENT, SPELL_AURA_MOD_ENEMY_DODGE, SPELL_AURA_MOD_EXPERTISE, Object::ToPlayer(), TYPEID_PLAYER, and VICTIMSTATE_DODGE.
Referenced by MeleeSpellHitResult(), and RollMeleeOutcomeAgainst().
|
inline |
Definition at line 966 of file Unit.h.
References UNIT_FIELD_FLAGS.
Referenced by Spell::CheckCasterAuras(), spell_hun_masters_call::DoCheckCast(), modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcInfoCommand(), and Creature::SaveToDB().
|
inline |
Definition at line 972 of file Unit.h.
References UNIT_FIELD_FLAGS_2.
Referenced by npc_commandscript::HandleNpcInfoCommand().
| float Unit::GetUnitMissChance | ( | ) | const |
Definition at line 2684 of file Unit.cpp.
References Object::ToPlayer().
Referenced by MeleeSpellMissChance().
|
inline |
Definition at line 1695 of file Unit.h.
Referenced by GetDebugInfo(), debug_commandscript::HandleDebugMoveflagsCommand(), and Player::TeleportTo().
| float Unit::GetUnitParryChance | ( | WeaponAttackType | attType, |
| Unit const * | victim | ||
| ) | const |
Definition at line 2638 of file Unit.cpp.
References BASE_ATTACK, CREATURE_FLAG_EXTRA_NO_PARRY, CreatureTemplate::flags_extra, Creature::GetCreatureTemplate(), Player::GetExpertiseDodgeOrParryReduction(), Object::GetFloatValue(), GetMaxSkillValueForLevel(), GetTotalAuraModifier(), Object::GetTypeId(), GetWeaponSkillValue(), IsTotem(), OFF_ATTACK, PLAYER_PARRY_PERCENTAGE, SPELL_AURA_MOD_EXPERTISE, SPELL_AURA_MOD_PARRY_PERCENT, Object::ToCreature(), Object::ToPlayer(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by MeleeSpellHitResult(), and RollMeleeOutcomeAgainst().
|
inline |
Definition at line 1753 of file Unit.h.
Referenced by KillRewarder::_InitXP(), WorldSession::BuildPartyMemberStatsChangedPacket(), boss_flame_leviathan_defense_cannon::boss_flame_leviathan_defense_cannonAI::CanAIAttack(), boss_flame_leviathan_defense_turret::boss_flame_leviathan_defense_turretAI::CanAIAttack(), SpellInfo::CheckVehicle(), npc_argent_captainAI::EnterEvadeMode(), npc_daegarn::EnterEvadeMode(), CreatureAI::EnterEvadeMode(), VehicleJoinEvent::Execute(), StartLaunchEvent::Execute(), Creature::ExitVehicle(), spell_putricide_choking_gas_filter::FilterTargets(), GetDirectTransport(), spell_pilgrims_bounty_on_plate::GetTable(), SmartScript::GetTargets(), GetTransGUID(), WorldSession::HandleAttackSwingOpcode(), WorldSession::HandleChangeSeatsOnControlledVehicle(), WorldSession::HandleMovementOpcode(), spell_pilgrims_bounty_a_serving_of::HandlePlate(), WorldSession::HandleRequestPartyMemberStatsOpcode(), spell_ulduar_cancel_stone_grip::spell_ulduar_cancel_stone_gripSpellScript::HandleScript(), InterruptMovementBasedAuras(), npc_tiger_matriarch::IsSummonedBy(), WorldObject::IsValidAssistTarget(), achievement_wg_didnt_stand_a_chance::OnCheck(), boss_flame_leviathan_overload_device::boss_flame_leviathan_overload_deviceAI::OnSpellClick(), OutDebugInfo(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), Vehicle::RemovePassenger(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), Creature::SelectVictim(), SetControlled(), setDeathState(), lfg::LFGMgr::TeleportPlayer(), npc_impaling_spear::UpdateAI(), npc_mechanolift::npc_mechanoliftAI::UpdateAI(), npc_brunnhildar_prisoner::UpdateAI(), UpdateSpeed(), GameObject::Use(), Trinity::MessageDistDeliverer::Visit(), and Trinity::MessageDistDelivererToHostile::Visit().
| Unit * Unit::GetVehicleBase | ( | ) | const |
Definition at line 11797 of file Unit.cpp.
References Vehicle::GetBase(), and m_vehicle.
Referenced by ThreatManager::AddThreat(), boss_flame_leviathan_defense_cannon::boss_flame_leviathan_defense_cannonAI::CanAIAttack(), boss_flame_leviathan_defense_turret::boss_flame_leviathan_defense_turretAI::CanAIAttack(), WorldObject::CanSeeOrDetect(), CreatureAI::DoZoneInCombat(), Spell::EffectScriptEffect(), ExitVehicle(), spell_mimiron_magnetic_core::spell_mimiron_magnetic_core_SpellScript::FilterTargets(), spell_pilgrims_bounty_on_plate::GetTable(), GetTransGUID(), GetVehicleCreatureBase(), GetVehicleRoot(), WorldSession::HandleChangeSeatsOnControlledVehicle(), WorldSession::HandleDismissControlledVehicle(), spell_pilgrims_bounty_on_plate::HandleDummy(), spell_svalna_remove_spear::HandleScript(), spell_mimiron_weld::spell_mimiron_weld_AuraScript::HandleTick(), WorldObject::IsValidAssistTarget(), boss_mimiron::boss_mimironAI::JustEngagedWith(), achievement_denyin_the_scion::OnCheck(), boss_flame_leviathan_overload_device::boss_flame_leviathan_overload_deviceAI::OnSpellClick(), OutDebugInfo(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), Movement::MoveSplineInit::SetFacing(), Player::SetViewpoint(), npc_tournament_training_dummy::SpellHit(), Transport::TeleportTransport(), npc_snobold_vassal::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), and UpdateSpeed().
| Creature * Unit::GetVehicleCreatureBase | ( | ) | const |
Definition at line 11818 of file Unit.cpp.
References GetVehicleBase(), and Object::ToCreature().
Referenced by spell_xt002_energy_orb::HandleSummons(), achievement_three_car_garage_demolisher::OnCheck(), achievement_three_car_garage_chopper::OnCheck(), achievement_three_car_garage_siege::OnCheck(), achievement_bg_ic_glaive_grave::OnCheck(), achievement_bg_ic_mowed_down::OnCheck(), achievement_bg_sa_artillery::OnCheck(), BattlefieldWG::OnPlayerLeaveWar(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), boss_mimiron::boss_mimironAI::UpdateAI(), and Player::VehicleSpellInitialize().
|
inline |
Definition at line 1751 of file Unit.h.
Referenced by _EnterVehicle(), Creature::AddToWorld(), spell_stable_master_repo::AfterApply(), Creature::AIM_Initialize(), Creature::AtEngage(), boss_deathbringer_saurfang::boss_deathbringer_saurfang(), Aura::CanStackWith(), VehicleAI::CheckConditions(), SmartAI::CheckConditions(), Spell::CheckEffectTarget(), Map::CreatureRelocation(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), instance_ulduar::instance_ulduar_InstanceMapScript::DespawnLeviatanVehicle(), Dismount(), npc_orb_carrier::DoAction(), npc_melee_hover_disk::DoAction(), HomeMovementGenerator< T >::DoFinalize(), npc_daegarn::EnterEvadeMode(), boss_gormok::ExecuteEvent(), GetDebugInfo(), SmartScript::GetTargets(), go_wg_vehicle_teleporter::GetValidVehicle(), AuraEffect::HandleAuraControlVehicle(), AuraEffect::HandleAuraSetVehicle(), spell_icecrown_jump_jets::HandleCast(), spell_pilgrims_bounty_feast_on::HandleDummy(), spell_pilgrims_bounty_on_plate::HandleDummy(), spell_icecrown_illidan_kill_credit_master::HandleDummy(), spell_icecrown_plant_battle_standard::HandleDummy(), WorldSession::HandleEjectPassenger(), spell_auto_repair::spell_auto_repair_SpellScript::HandleScript(), spell_zuldrak_gymers_throw::HandleScript(), HandleSpellClick(), IsOnVehicle(), boss_ick::JustDied(), npc_iceborn_protodrake::JustEngagedWith(), boss_kologarn::boss_kologarnAI::JustEngagedWith(), boss_rimefang::JustReachedHome(), spell_gal_darah_impaling_charge::Load(), spell_mimiron_plasma_blast::spell_mimiron_plasma_blast_SpellScript::Load(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadResetScript(), Mount(), npc_snobold_vassal::MountOnBoss(), Map::MoveAllCreaturesInMoveList(), npc_melee_hover_disk::MovementInform(), npc_bone_spike::npc_bone_spike(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfang_icc(), npc_mechanolift::npc_mechanoliftAI::npc_mechanoliftAI(), npc_orb_carrier::npc_orb_carrier(), VehicleAI::OnCharmed(), spell_blood_queen_frenzied_bloodthirst::OnRemove(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), spell_skadi_ride_vehicle::OnRemoveVehicle(), FlameLeviathanPursuedTargetSelector::operator()(), OutDebugInfo(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), npc_bountiful_table::npc_bountiful_tableAI::PassengerBoarded(), Map::PlayerRelocation(), SmartScript::ProcessAction(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), boss_ignis::boss_ignis_AI::Reset(), spell_malygos_surge_of_power_warning_selector_25::SendThreeTargets(), SetCharmedBy(), Creature::SetPhaseMask(), boss_flame_leviathan::boss_flame_leviathanAI::SpellHit(), npc_brunnhildar_prisoner::SpellHit(), npc_storm_cloud::SpellHit(), boss_flame_leviathan::boss_flame_leviathanAI::SpellHitTarget(), npc_mechanolift::npc_mechanoliftAI::UpdateAI(), boss_kologarn::boss_kologarnAI::UpdateAI(), boss_vx_001::boss_vx_001AI::UpdateAI(), npc_freed_protodrake::UpdateAI(), npc_hyldsmeet_protodrake::UpdateAI(), generic_vehicleAI_toc5::generic_vehicleAI_toc5AI::UpdateAI(), UpdateDisplayPower(), UpdateHeight(), and UpdateOrientation().
|
inline |
Definition at line 1752 of file Unit.h.
Referenced by Vehicle::GetWeakPtr().
| Unit * Unit::GetVehicleRoot | ( | ) | const |
Definition at line 11802 of file Unit.cpp.
References GetVehicleBase().
Referenced by Player::SetPhaseMask().
|
inline |
Definition at line 873 of file Unit.h.
Referenced by EscortAI::AssistPlayerInCombatAgainst(), SmartAI::AssistPlayerInCombatAgainst(), PetAI::AttackStart(), Object::BuildMovementUpdate(), boss_supremus::CalculateHatefulStrikeTarget(), Creature::CallAssistance(), PetAI::CanAttack(), player_overlord_brandAI::DamageDealt(), boss_lady_deathwhisper::DamageTaken(), boss_selin_fireheart::DoAction(), boss_professor_putricide::DoAction(), boss_leotheras_the_blind::DoAction(), boss_ick::DoAction(), UnitAI::DoCast(), UnitAI::DoCastVictim(), ConfusedMovementGenerator< T >::DoFinalize(), Creature::DoFleeToGetAssistance(), UnitAI::DoMeleeAttackIfReady(), boss_malchezaar::boss_malchezaarAI::DoMeleeAttacksIfReady(), PlayerAI::DoRangedAttackIfReady(), UnitAI::DoSpellAttackIfReady(), ScriptedAI::DoStopAttack(), boss_jormungarAI::Emerge(), boss_malchezaar::boss_malchezaarAI::EnfeebleHealthEffect(), boss_epoch::boss_epochAI::ExecuteEvent(), boss_nexusprince_shaffar::ExecuteEvent(), boss_shade_of_aran::boss_aranAI::FlameWreathEffect(), ThreatManager::GetAnyTarget(), getAttackerForHelper(), SmartScript::GetTargets(), boss_moroes::GuestsAttack(), cast_commandscript::HandleCastTargetCommad(), debug_commandscript::HandleDebugThreatListCommand(), spell_rog_prey_on_the_weak::HandleEffectPeriodic(), AuraEffect::HandleModPossessPet(), WorldSession::HandlePetActionHelper(), spell_dk_dancing_rune_weapon::HandleProc(), spell_nexus_lord_align_disk_aggro::HandleScript(), HasLostTarget(), Spell::InitExplicitTargets(), boss_attumen::boss_attumenAI::IsSummonedBy(), npc_dark_fiend::JustAppeared(), npc_water_globule::JustAppeared(), npc_shadow_image::JustEngagedWith(), npc_ancient_wisp::JustEngagedWith(), npc_anubarak_anub_ar_assassin::JustEngagedWith(), npc_slad_ran_constrictor::JustEngagedWith(), npc_stolen_soul::JustEngagedWith(), npc_angered_soul_fragment::JustEngagedWith(), npc_dark_nucleus::JustEngagedWith(), boss_emalon::JustEngagedWith(), npc_guard_generic::JustEngagedWith(), npc_pet_dk_rune_weapon::JustEnteredCombat(), boss_midnight::boss_midnightAI::JustSummoned(), boss_black_knight::boss_black_knightAI::JustSummoned(), boss_ignis::boss_ignis_AI::JustSummoned(), boss_warp_splinter::JustSummoned(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::JustSummoned(), boss_emalon::JustSummoned(), npc_emily::JustSummoned(), PetAI::KilledUnit(), boss_high_inquisitor_whitemane::MograineResurrected(), alliance_rifleman::alliance_riflemanAI::MoveInLineOfSight(), boss_twinemperorsAI::MoveInLineOfSight(), npc_kerlonian::npc_kerlonianAI::MoveInLineOfSight(), npc_tooga::npc_toogaAI::MoveInLineOfSight(), boss_nefarian::MovementInform(), PetAI::NeedToStop(), spell_zuljin_claw_rage_periodic::OnPeriodic(), spell_leotheras_the_blind_demon_link::OnPeriodic(), spell_omor_the_unscarred_orbital_strike_whip::OnPeriodic(), spell_malygos_vortex_visual::OnRemove(), DeathPlagueTargetSelector::operator()(), NonTankTargetSelector::operator()(), WebTargetSelector::operator()(), SindragosaIcyGripTargetFilter::operator()(), PetAI::OwnerAttacked(), PetAI::OwnerAttackedBy(), UnitAI::PrepareTargetListSelection(), SmartScript::ProcessEvent(), npc_darkfallen_noble::ScheduleSpells(), npc_guard_shattrath_faction::ScheduleVanish(), SimpleCharmedPlayerAI::SelectAppropriateCastForSpec(), PlayerAI::SelectAttackTarget(), SimpleCharmedPlayerAI::SelectAttackTarget(), SelectNearbyTarget(), PetAI::SelectNextTarget(), boss_blood_queen_lana_thel::SelectRandomTarget(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::SelectVictim(), gunship_npc_AI::SelectVictim(), Player::SendInitialVisiblePackets(), SmartAI::SetCombatMove(), SetConfused(), npc_twisted_visage::SetData(), SetFeared(), SetStunned(), FollowerAI::ShouldAssistPlayerInCombatAgainst(), npc_zuljin_vortex::SpellHitTarget(), StopAttackFaction(), Player::Update(), CasterAI::UpdateAI(), ArcherAI::UpdateAI(), SimpleCharmedPlayerAI::UpdateAI(), boss_ambassador_flamelash::boss_ambassador_flamelashAI::UpdateAI(), boss_general_angerforge::boss_general_angerforgeAI::UpdateAI(), boss_broodlord::UpdateAI(), boss_firemaw::UpdateAI(), boss_flamegor::UpdateAI(), boss_victor_nefarius::UpdateAI(), boss_vaelastrasz::UpdateAI(), boss_ragnaros::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_garaxxas::UpdateAI(), boss_selin_fireheart::UpdateAI(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), boss_maleki_the_pallid::UpdateAI(), npc_volatile_felfire_fiend::npc_volatile_felfire_fiendAI::UpdateAI(), npc_sinster_reflection::npc_sinster_reflectionAI::UpdateAI(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::UpdateAI(), boss_arlokk::UpdateAI(), boss_grilek::UpdateAI(), boss_jindo::UpdateAI(), boss_mandokir::UpdateAI(), boss_marli::UpdateAI(), boss_renataki::UpdateAI(), npc_zealot_zath::UpdateAI(), boss_archimonde::UpdateAI(), npc_frost_wyrm::npc_frost_wyrmAI::UpdateAI(), npc_gargoyle::npc_gargoyleAI::UpdateAI(), alliance_rifleman::alliance_riflemanAI::UpdateAI(), hyjalAI::UpdateAI(), boss_onyxia::UpdateAI(), boss_kurinnaxx::UpdateAI(), boss_ossirian::boss_ossirianAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), boss_fankriss::UpdateAI(), boss_skeram::boss_skeramAI::UpdateAI(), boss_veklor::boss_veklorAI::UpdateAI(), npc_muglash::npc_muglashAI::UpdateAI(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::UpdateAI(), boss_prince_taldaram::UpdateAI(), boss_hadronox::UpdateAI(), npc_anub_ar_skirmisher::UpdateAI(), npc_toc_hunter::UpdateAI(), npc_toc_warrior::UpdateAI(), npc_toc_dk::UpdateAI(), npc_toc_rogue::UpdateAI(), boss_bronjahm::UpdateAI(), boss_devourer_of_souls::UpdateAI(), npc_raging_ghoul::npc_raging_ghoulAI::UpdateAI(), boss_garfrost::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), npc_high_overlord_saurfang_igb::UpdateAI(), npc_muradin_bronzebeard_igb::UpdateAI(), npc_darnavan::UpdateAI(), boss_lord_marrowgar::UpdateAI(), boss_professor_putricide::UpdateAI(), npc_blazing_skeleton::UpdateAI(), boss_gothik::UpdateAI(), npc_gothik_minion_baseAI::UpdateAI(), boss_noth::UpdateAI(), boss_razuvious::UpdateAI(), boss_thaddius::UpdateAI(), boss_malygos::UpdateAI(), boss_steelbreaker::boss_steelbreakerAI::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_feral_defender::UpdateAI(), npc_detonating_lasher::npc_detonating_lasherAI::UpdateAI(), boss_ignis::boss_ignis_AI::UpdateAI(), boss_kologarn::boss_kologarnAI::UpdateAI(), boss_razorscale::UpdateAI(), npc_scourge_hulk::UpdateAI(), boss_murmur::UpdateAI(), boss_gurtogg_bloodboil::UpdateAI(), npc_maiev::UpdateAI(), boss_essence_of_anger::UpdateAI(), boss_doom_lord_kazzak::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_omor_the_unscarred::UpdateAI(), boss_alar::UpdateAI(), boss_void_reaver::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), npc_nagrand_banner::npc_kil_sorrow_spellbinderAI::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), boss_mr_smite::boss_mr_smiteAI::UpdateAI(), npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI(), boss_mage_toc5::boss_mage_toc5AI::UpdateAI(), boss_ionar::UpdateAI(), PossessedAI::UpdateAI(), PetAI::UpdateAI(), npc_scarlet_ghoul::UpdateAI(), npc_felmyst_vapor::UpdateAI(), npc_pet_mage_mirror_image::UpdateImageVictim(), InstanceScript::UpdateMinionState(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), npc_pet_dk_rune_weapon::UpdateRuneWeaponVictim(), boss_faction_championsAI::UpdateThreat(), CreatureAI::UpdateVictim(), npc_thorim_trashAI::UseAbility(), ValidateAttackersAndOwnTarget(), PlayerAI::VerifySpellCast(), and instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::VortexHandling().
Definition at line 13831 of file Unit.cpp.
References Object::GetUInt32Value(), MAX_EQUIPMENT_ITEMS, and UNIT_VIRTUAL_ITEM_SLOT_ID.
Referenced by SpellInfo::CheckTarget(), and spell_gen_clone_weapon_aura::OnApply().
| AuraApplication * Unit::GetVisibleAura | ( | uint8 | slot | ) | const |
Definition at line 648 of file Unit.cpp.
References m_visibleAuras.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket(), AuraApplication::BuildUpdatePacket(), and WorldSession::HandleRequestPartyMemberStatsOpcode().
|
inline |
Definition at line 1587 of file Unit.h.
Referenced by AuraApplication::AuraApplication(), Spell::CheckCast(), and Player::SendAurasForTarget().
| float Unit::GetWeaponDamageRange | ( | WeaponAttackType | attType, |
| WeaponDamageRange | type, | ||
| uint8 | damageIndex = 0 |
||
| ) | const |
Definition at line 9307 of file Unit.cpp.
References haveOffhandWeapon(), m_weaponDamage, and OFF_ATTACK.
Referenced by Player::_ApplyWeaponDamage(), Creature::CalculateMinMaxDamage(), Player::CalculateMinMaxDamage(), and Guardian::UpdateDamagePhysical().
| float Unit::GetWeaponProcChance | ( | ) | const |
Definition at line 8099 of file Unit.cpp.
References BASE_ATTACK, GetAttackTime(), haveOffhandWeapon(), isAttackReady(), and OFF_ATTACK.
Referenced by Player::CastItemCombatSpell().
| uint32 Unit::GetWeaponSkillValue | ( | WeaponAttackType | attType, |
| Unit const * | target = nullptr |
||
| ) | const |
Definition at line 2809 of file Unit.cpp.
References BASE_ATTACK, CR_WEAPON_SKILL, CR_WEAPON_SKILL_MAINHAND, CR_WEAPON_SKILL_OFFHAND, CR_WEAPON_SKILL_RANGED, GetMaxSkillValueForLevel(), Item::GetSkill(), IsControlledByPlayer(), IsInFeralForm(), OFF_ATTACK, RANGED_ATTACK, SKILL_UNARMED, and Object::ToPlayer().
Referenced by GetUnitBlockChance(), GetUnitCriticalChanceTaken(), GetUnitDodgeChance(), GetUnitParryChance(), MeleeSpellHitResult(), RollMeleeOutcomeAgainst(), and Player::UpdateCritPercentage().
| void Unit::HandleAttackPowerModifier | ( | AttackPowerModIndex | index, |
| AttackPowerModType | modifierType, | ||
| float | amount, | ||
| bool | apply | ||
| ) |
Definition at line 9091 of file Unit.cpp.
References ApplyPercentModFloatVar(), CanModifyStats(), End, m_attackPowerMods, Pct, Ranged, TC_LOG_ERROR, and UpdateAttackPowerAndDamage().
Referenced by Player::_ApplyItemBonuses(), Player::ApplyEnchantment(), AuraEffect::HandleAuraModAttackPower(), AuraEffect::HandleAuraModAttackPowerPercent(), AuraEffect::HandleAuraModRangedAttackPower(), and AuraEffect::HandleAuraModRangedAttackPowerPercent().
| void Unit::HandleEmoteCommand | ( | Emote | emoteId | ) |
Definition at line 1579 of file Unit.cpp.
References WorldPackets::Chat::Emote::EmoteID, Object::GetGUID(), WorldPackets::Chat::Emote::Guid, WorldObject::SendMessageToSet(), and WorldPackets::Chat::Emote::Write().
Referenced by npc_elwynn_forest_wolf::_ScheduleBeforeChasingEvents(), spell_ahune_summoning_rhyme_aura::AfterApply(), spell_pet_gen_lich_pet_emote::AfterApply(), npc_frost_sphere::DamageTaken(), CoolestFriendBaseAI::DoAction(), boss_illidan_stormrage::DoAction(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), npc_guard_generic::DoReplyToTextEmote(), StandUpEvent::Execute(), PartyTimeEmoteEvent::Execute(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), spell_icecrown_plant_battle_standard::HandleDummy(), spell_gen_spectator_cheer_trigger::HandleDummy(), WorldSession::HandleEmoteOpcode(), boss_felmyst::HandleFlightSequence(), npc_commandscript::HandleNpcSayCommand(), npc_commandscript::HandleNpcYellCommand(), spell_operation_gnomeregan_basic_orders_emote::HandlePeriodic(), spell_wintergrasp_activate_robotic_arms::HandleScript(), spell_gen_stand::HandleScript(), WorldSession::HandleTextEmoteOpcode(), npc_raging_ghoul::npc_raging_ghoulAI::IsSummonedBy(), npc_risen_witch_doctor::npc_risen_witch_doctorAI::IsSummonedBy(), boss_svala::JustDied(), boss_the_lich_king::JustSummoned(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::JustSummoned(), npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::MovementInform(), boss_nightbane::boss_nightbaneAI::MovementInform(), npc_kalecgos::MovementInform(), npc_turned_champion::npc_turned_championAI::MovementInform(), npc_spectral_ghostly_citizen::npc_spectral_ghostly_citizenAI::ReceiveEmote(), npc_dancing_flames::ReceiveEmote(), PetAI::ReceiveEmote(), DarkFallenAI::Reset(), boss_sapphiron::Reset(), npc_sinclari_vh::ScheduleIntro(), CreatureTextMgr::SendEmote(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), boss_jormungarAI::Submerge(), boss_rend_blackhand::UpdateAI(), boss_vaelastrasz::UpdateAI(), boss_felblood_kaelthas::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), npc_madrigosa::UpdateAI(), boss_kalecgos::UpdateAI(), npc_partygoer_pather::UpdateAI(), npc_partygoer::UpdateAI(), npc_calvin_montague::npc_calvin_montagueAI::UpdateAI(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_bartleby_battson::npc_bartleby_battsonAI::UpdateAI(), npc_roger_owens::npc_roger_owensAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), boss_mordresh_fire_eye::UpdateAI(), boss_ouro::boss_ouroAI::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), npc_shenthul::npc_shenthulAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), boss_lich_king_toc::UpdateAI(), npc_tirion_toc::UpdateAI(), npc_fizzlebang_toc::UpdateAI(), npc_uther_quel_delar::npc_uther_quel_delarAI::UpdateAI(), boss_professor_putricide::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), npc_highlord_tirion_fordring_lh::UpdateAI(), boss_sapphiron::UpdateAI(), npc_valiance_keep_cannoneer::UpdateAI(), npc_minigob_manabonk::UpdateAI(), boss_illidan_stormrage::UpdateAI(), npc_akama_illidan::UpdateAI(), npc_maiev::UpdateAI(), npc_akama_shade::UpdateAI(), npc_warden_mellichar::UpdateAI(), npc_barada::npc_baradaAI::UpdateAI(), npc_watch_commander_leonus::UpdateAI(), npc_pet_gen_pandaren_monk::UpdateAI(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::UpdateEscortAI(), boss_kirtonos_the_herald::UpdateIntroEvents(), npc_millhouse_manastorm::UpdateIntroEvents(), boss_vazruden_the_herald::UpdateSpecialEvents(), npc_rocknot::npc_rocknotAI::WaypointReached(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), npc_thrall_old_hillsbrad::WaypointReached(), and npc_taretha::WaypointReached().
Definition at line 2141 of file Unit.cpp.
References AttackerStateUpdate(), and BASE_ATTACK.
Referenced by Update().
First check simple relations from clicker to clickee
Check database conditions
Definition at line 12449 of file Unit.cpp.
References CastSpellExtraArgs::AddSpellMod(), Creature::AI(), WorldObject::CastSpell(), flags, Vehicle::GetCreatureEntry(), SpellInfo::GetEffects(), Object::GetEntry(), Object::GetGUID(), GetOwnerGUID(), GetVehicleKit(), SpellInfo::Id, IsAIEnabled(), WorldObject::IsInMap(), MAX_EFFECT_MASK, MAX_SPELL_EFFECTS, NPC_CLICK_CAST_CASTER_CLICKER, NPC_CLICK_CAST_ORIG_CASTER_OWNER, NPC_CLICK_CAST_TARGET_CLICKER, CreatureAI::OnSpellClick(), CastSpellExtraArgs::OriginalCaster, sConditionMgr, AuraCreateInfo::SetBaseAmount(), AuraCreateInfo::SetCaster(), AuraCreateInfo::SetCasterGUID(), sObjectMgr, SPELL_AURA_CONTROL_VEHICLE, SPELLVALUE_BASE_POINT0, sSpellMgr, TC_LOG_ERROR, Object::ToCreature(), TRIGGERED_IGNORE_CASTER_MOUNTED_OR_ON_VEHICLE, TRIGGERED_NONE, and Aura::TryRefreshStackOrCreate().
Referenced by WorldSession::HandleSpellClick(), and Vehicle::InstallAccessory().
| void Unit::HandleStatFlatModifier | ( | UnitMods | unitMod, |
| UnitModifierFlatType | modifierType, | ||
| float | amount, | ||
| bool | apply | ||
| ) |
Definition at line 8963 of file Unit.cpp.
References BASE_VALUE, m_auraFlatModifiersGroup, MODIFIER_TYPE_FLAT_END, TC_LOG_ERROR, TOTAL_VALUE, UNIT_MOD_END, and UpdateUnitMod().
Referenced by Player::_ApplyItemBonuses(), Player::ApplyEnchantment(), AuraEffect::HandleAuraModIncreaseEnergy(), AuraEffect::HandleAuraModIncreaseHealth(), AuraEffect::HandleAuraModIncreaseMaxHealth(), AuraEffect::HandleAuraModResistance(), AuraEffect::HandleAuraModResistanceExclusive(), AuraEffect::HandleAuraModStat(), AuraEffect::HandleModBaseResistance(), and Player::UpdateDamageDoneMods().
| bool Unit::HasAura | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0 |
||
| ) | const |
Definition at line 4558 of file Unit.cpp.
References GetAuraApplication().
Referenced by spell_magus_telestra_clone_dies::AfterApply(), spell_alar_ashtongue_ruse_master::AfterApply(), spell_warl_health_funnel::ApplyEffect(), Player::ApplyItemDependentAuras(), Player::ApplyItemObtainSpells(), spell_rog_vanish::ApplyStealth(), boss_leotheras_the_blind::AttackStart(), gunship_npc_AI::CanAIAttack(), npc_high_overlord_saurfang_igb::CanAIAttack(), npc_muradin_bronzebeard_igb::CanAIAttack(), npc_gunship_boarding_addAI::CanAIAttack(), boss_the_lich_king::CanAIAttack(), boss_gurtogg_bloodboil::CanAIAttack(), spell_marrowgar_coldflame_damage::CanBeAppliedOn(), Group::CanJoinBattlegroundQueue(), boss_veras_darkshadow::CanSeeAlways(), Player::CanUseAmmo(), Player::CanUseBattlegroundObject(), spell_pal_aura_mastery_immune::CheckAreaTarget(), spell_pal_immunities::CheckCast(), Spell::CheckCast(), Spell::CheckCasterAuras(), Spell::CheckItems(), spell_rog_honor_among_thieves::CheckProc(), spell_eredar_twins_dark_flame_aura_shadow::CheckProc(), spell_eredar_twins_dark_flame_aura_fire::CheckProc(), spell_illidan_parasitic_shadowfiend_proc::CheckProc(), spell_dru_eclipse::CheckProc(), spell_hun_lock_and_load::CheckProc(), spell_item_shadowmourne::CheckProc(), SpellInfo::CheckTarget(), Player::CheckTitanGripPenalty(), boss_anub_arak::DamageTaken(), npc_high_overlord_saurfang_igb::DamageTaken(), npc_muradin_bronzebeard_igb::DamageTaken(), npc_terenas_menethil::DamageTaken(), npc_feral_defender::DamageTaken(), npc_iron_construct::npc_iron_constructAI::DamageTaken(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), boss_elder_stonebark::boss_elder_stonebarkAI::DamageTaken(), npc_kinetic_bomb::DoAction(), npc_nerubian_burrower::DoAction(), boss_ambassador_hellmaw::DoAction(), boss_ambassador_hellmaw::DoIntro(), Spell::EffectHeal(), Spell::EffectSchoolDMG(), Spell::EffectScriptEffect(), Spell::EffectTriggerSpell(), Spell::EffectWeaponDmg(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::EnterEvadeMode(), npc_phantom_mage::npc_phantom_mageAI::EnterEvadeMode(), npc_phantom_hallucination::npc_phantom_hallucinationAI::EnterEvadeMode(), PartyTimeEmoteEvent::Execute(), spell_frost_giant_death_plague::FilterTargets(), spell_pri_circle_of_healing::FilterTargets(), GetDispellableAuraList(), instance_sunwell_plateau::instance_sunwell_plateau_InstanceMapScript::GetPlayerInMap(), go_wind_stone::go_wind_stoneAI::GetPlayerTwilightSetRank(), Player::GetResurrectionSpellId(), go_wg_vehicle_teleporter::GetValidVehicle(), spell_dru_enrage::HandleApply(), OutdoorPvPSI::HandleAreaTrigger(), AuraEffect::HandleAuraMounted(), Aura::HandleAuraSpecificMods(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleChatMessage(), spell_impale::HandleDamageCalc(), spell_borean_tundra_signal_alliance::HandleDummy(), spell_mage_summon_water_elemental::HandleDummy(), spell_rog_preparation::HandleDummy(), spell_warl_seduction::HandleDummy(), spell_warr_charge::HandleDummy(), spell_midsummer_braziers_hit::HandleEffectApply(), spell_storm_peaks_flaming_arrow_triggered_effect::HandleEffectApply(), spell_dk_improved_blood_presence::HandleEffectApply(), spell_dk_improved_frost_presence::HandleEffectApply(), spell_dk_improved_unholy_presence::HandleEffectApply(), spell_rog_prey_on_the_weak::HandleEffectPeriodic(), spell_dk_improved_blood_presence::HandleEffectRemove(), spell_dk_improved_frost_presence::HandleEffectRemove(), spell_dk_improved_unholy_presence::HandleEffectRemove(), spell_putricide_gaseous_bloat::HandleExtraEffect(), Player::HandleFall(), gm_commandscript::HandleGMVisibleCommand(), spell_dk_presence::HandleImprovedBloodPresence(), spell_dk_presence::HandleImprovedFrostPresence(), spell_dk_presence::HandleImprovedUnholyPresence(), spell_sindragosa_frost_breath::HandleInfusion(), lookup_commandscript::HandleLookupSpellCommand(), lookup_commandscript::HandleLookupSpellIdCommand(), OPvPCapturePointZM_Graveyard::HandleOpenGo(), Player::HandlePassiveSpellLearn(), spell_eredar_twins_dark_flame_aura_shadow::HandleProc(), spell_eredar_twins_dark_flame_aura_fire::HandleProc(), spell_dru_omen_of_clarity::HandleProc(), spell_dru_glyph_of_shred::HandleProc(), spell_pal_infusion_of_light::HandleProc(), spell_pal_light_s_beacon::HandleProc(), spell_mage_gen_extra_effects::HandleProc(), spell_warr_vigilance::HandleRemove(), spell_festergut_blighted_spores::HandleResidue(), spell_rotface_slime_spray::HandleResidue(), spell_brutallus_burn_primer::HandleScript(), spell_brutallus_burn_ally::HandleScript(), spell_hallow_end_tricky_treat::HandleScript(), spell_pilgrims_bounty_turkey_tracker::HandleScript(), spell_winter_veil_px_238_winter_wondervolt::HandleScript(), spell_freya_attuned_to_nature_dose_reduction::spell_freya_attuned_to_nature_dose_reduction_SpellScript::HandleScript(), spell_borean_tundra_magnataur_on_death_1::HandleScript(), spell_sholazar_deathbolt::HandleScript(), spell_illidari_council_judgement::HandleScript(), spell_magtheridon_shadow_grasp_cube::HandleScript(), spell_shadowmoon_quest_credit_crazed_colossus::HandleScript(), spell_hun_pet_heart_of_the_phoenix::HandleScript(), spell_warl_ritual_of_souls::HandleScript(), spell_dru_glyph_of_starfire::HandleScriptEffect(), Guardian::InitStatsForLevel(), Player::IsDeserter(), SpellArea::IsFitToRequirements(), IsGhouled(), npc_coldflame::IsSummonedBy(), npc_pet_pri_shadowfiend::IsSummonedBy(), IsVampire(), lfg::LFGMgr::JoinLfg(), npc_pet_hunter_snake_trap::JustAppeared(), boss_blood_queen_lana_thel::JustDied(), boss_professor_putricide::JustDied(), boss_sindragosa::JustDied(), boss_elder_brightleaf::boss_elder_brightleafAI::JustEngagedWith(), boss_elder_stonebark::boss_elder_stonebarkAI::JustEngagedWith(), boss_elder_ironbranch::boss_elder_ironbranchAI::JustEngagedWith(), npc_arthas_stratholme::npc_arthas_stratholmeAI::JustReachedHome(), boss_leotheras_the_blind::KilledUnit(), Creature::LoadCreaturesAddon(), MeleeDamageBonusDone(), WorldObject::ModSpellCastTime(), WorldObject::ModSpellDuration(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::MoveInLineOfSight(), npc_scorch_ground::npc_scorch_groundAI::MoveInLineOfSight(), npc_mageguard_dalaran::MoveInLineOfSight(), npc_guardian_pavilion::MoveInLineOfSight(), boss_ambassador_hellmaw::MoveInLineOfSight(), boss_doomwalker::MoveInLineOfSight(), spell_amanitar_potent_fungus::OnApply(), spell_brewfest_giddyup::OnChange(), achievement_staying_buffed_all_winter::OnCheck(), achievement_staying_buffed_all_winter_25::OnCheck(), achievement_flirt_with_disaster_perf_check::OnCheck(), achievement_bg_ic_resource_glut::OnCheck(), go_gauntlet_gate::go_gauntlet_gateAI::OnGossipHello(), go_kalecgos_spectral_rift::go_kalecgos_spectral_riftAI::OnGossipHello(), go_blackfathom_altar::OnGossipHello(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::OnGossipHello(), npc_alchemist_adrianna::OnGossipHello(), npc_wg_demolisher_engineer::OnGossipHello(), npc_innkeeper::npc_innkeeperAI::OnGossipHello(), npc_innkeeper::npc_innkeeperAI::OnGossipSelect(), npc_argent_squire_gruntling::npc_argent_squire_gruntlingAI::OnGossipSelect(), spell_dk_pestilence::OnHit(), spell_love_is_in_the_air_romantic_picnic::OnPeriodic(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), spell_brewfest_ram::OnPeriodic(), spell_hodir_flash_freeze::OnPeriodic(), spell_hodir_biting_cold_area_aura::OnPeriodic(), spell_fetch_ingredient_aura::OnRemove(), spell_gen_damage_reduction_aura::OnRemove(), spell_mage_missile_barrage_proc::OnRemove(), spell_mage_arcane_missiles::OnRemove(), boss_mechano_lord_capacitus::OnSpellCast(), at_hor_intro_start::OnTrigger(), at_commander_dawnforge::OnTrigger(), AreaTrigger_at_nats_landing::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), LorKhanSelectTargetToHeal::operator()(), npc_thorim_trashAI::AIHelper::MostHPMissingInRange::operator()(), Trinity::FriendlyMissingBuffInRange::operator()(), CorruptingPlagueSearcher::operator()(), StasisFieldSearcher::operator()(), Trinity::UnitAuraCheck::operator()(), SnobolledTargetSelector::operator()(), BoneSpikeTargetSelector::operator()(), NecroticPlagueTargetCheck::operator()(), DeathPlagueTargetSelector::operator()(), DefaultTargetSelector::operator()(), KelThuzadCharmedPlayerAI::CharmedPlayerTargetSelectPred::operator()(), WebTargetSelector::operator()(), SindragosaIcyGripTargetFilter::operator()(), spell_midsummer_test_ribbon_pole_channel::PeriodicTick(), spell_midsummer_ribbon_pole_periodic_visual::PeriodicTick(), SmartScript::ProcessAction(), npc_lake_frog::ReceiveEmote(), npc_dancing_flames::ReceiveEmote(), boss_najentus::RemoveImpalingSpine(), boss_keristrasza::RemovePrison(), Player::ReportedAfkBy(), npc_belnistrasz::npc_belnistraszAI::Reset(), npc_tomb_creature::npc_tomb_creatureAI::Reset(), boss_sartharion::Reset(), npc_shadron::Reset(), boss_magus_telestra::Reset(), boss_elder_brightleaf::boss_elder_brightleafAI::Reset(), boss_elder_stonebark::boss_elder_stonebarkAI::Reset(), boss_elder_ironbranch::boss_elder_ironbranchAI::Reset(), Player::RewardHonor(), RewardRage(), SimpleCharmedPlayerAI::SelectAppropriateCastForSpec(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::SelectVictim(), Player::SendQuestUpdate(), Player::SendSummonRequestFrom(), SpellCritChanceTaken(), SpellDamagePctDone(), npc_omen::SpellHit(), npc_pool_of_tar::npc_pool_of_tarAI::SpellHit(), boss_najentus::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), boss_sister_svalna::SpellHit(), npc_tournament_training_dummy::SpellHit(), npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::SpellHit(), boss_apothecary_hummel::SummonedCreatureDies(), lfg::LFGMgr::TeleportPlayer(), boss_vaelastrasz::UpdateAI(), boss_majordomo::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), boss_kirtonos_the_herald::UpdateAI(), boss_boss_ras_frostwhisper::UpdateAI(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::UpdateAI(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::UpdateAI(), boss_zuljin::UpdateAI(), boss_hakkar::UpdateAI(), npc_abomination::npc_abominationAI::UpdateAI(), boss_ossirian::boss_ossirianAI::UpdateAI(), npc_eye_tentacle::eye_tentacleAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), npc_giant_eye_tentacle::giant_eye_tentacleAI::UpdateAI(), boss_elder_nadox::UpdateAI(), boss_prince_taldaram::UpdateAI(), npc_shadron::UpdateAI(), boss_anubarak_trial::UpdateAI(), npc_nerubian_burrower::UpdateAI(), npc_toc_shaman::UpdateAI(), npc_toc_paladin::UpdateAI(), npc_toc_enh_shaman::UpdateAI(), npc_toc_retro_paladin::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), npc_gunship_boarding_leader::UpdateAI(), boss_lady_deathwhisper::UpdateAI(), npc_cult_fanatic::UpdateAI(), npc_cult_adherent::UpdateAI(), boss_lord_marrowgar::UpdateAI(), npc_putricide_oozeAI::UpdateAI(), npc_ice_tomb::UpdateAI(), boss_faerlina::UpdateAI(), boss_maexxna::UpdateAI(), boss_anomalus::UpdateAI(), npc_chaotic_rift::UpdateAI(), boss_sjonnir::UpdateAI(), npc_mimirons_inferno::npc_mimirons_infernoAI::UpdateAI(), npc_freyas_ward::npc_freyas_wardAI::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), boss_elder_brightleaf::boss_elder_brightleafAI::UpdateAI(), boss_elder_stonebark::boss_elder_stonebarkAI::UpdateAI(), boss_elder_ironbranch::boss_elder_ironbranchAI::UpdateAI(), CoolestFriendBaseAI::UpdateAI(), npc_mimiron_proximity_mine::npc_mimiron_proximity_mineAI::UpdateAI(), boss_sara::boss_saraAI::UpdateAI(), npc_corruptor_tentacle::npc_corruptor_tentacleAI::UpdateAI(), npc_crusher_tentacle::npc_crusher_tentacleAI::UpdateAI(), boss_ichoron::UpdateAI(), npc_lake_frog::UpdateAI(), npc_tournament_training_dummy::UpdateAI(), boss_doom_lord_kazzak::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI(), boss_paletress::boss_paletressAI::UpdateAI(), generic_vehicleAI_toc5::generic_vehicleAI_toc5AI::UpdateAI(), npc_scorch_ground::npc_scorch_groundAI::UpdateAI(), npc_portal_eoe::UpdateAI(), npc_thorims_hammer::npc_thorims_hammerAI::UpdateAI(), npc_hodirs_fury::npc_hodirs_furyAI::UpdateAI(), npc_snaplasher::npc_snaplasherAI::UpdateAI(), npc_iron_construct::npc_iron_constructAI::UpdateAI(), Player::UpdateAreaDependentAuras(), boss_ambassador_hellmaw::UpdateEscortAI(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), Spell::UpdateSpellCastDataAmmo(), Player::UpdateZoneDependentAuras(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), and violet_hold_trashAI::WaypointReached().
| bool Unit::HasAuraEffect | ( | uint32 | spellId, |
| uint8 | effIndex, | ||
| ObjectGuid | caster = ObjectGuid::Empty |
||
| ) | const |
Definition at line 4528 of file Unit.cpp.
References m_appliedAuras.
Referenced by AuraEffect::HandleAuraModIncreaseFlightSpeed(), and AchievementCriteriaData::Meets().
| bool Unit::HasAuraState | ( | AuraStateType | flag, |
| SpellInfo const * | spellProto = nullptr, |
||
| Unit const * | Caster = nullptr |
||
| ) | const |
Definition at line 5757 of file Unit.cpp.
References Object::GetGUID(), HasAuraTypeWithAffectMask(), Object::HasFlag(), m_auraStateAuras, PER_CASTER_AURA_STATE_MASK, SPELL_AURA_ABILITY_IGNORE_AURASTATE, and UNIT_FIELD_AURASTATE.
Referenced by Pet::addSpell(), spell_sha_earthliving_weapon::CheckProc(), spell_warl_decimation::CheckProc(), SpellInfo::CheckTarget(), ClearAllReactives(), Spell::EffectHeal(), Spell::EffectSchoolDMG(), Spell::EffectWeaponDmg(), Player::HandlePassiveSpellLearn(), spell_warr_sweeping_strikes::HandleProc(), MeleeDamageBonusDone(), SimpleCharmedPlayerAI::SelectAppropriateCastForSpec(), SpellCritChanceTaken(), SpellDamagePctDone(), and UpdateReactives().
| bool Unit::HasAuraType | ( | AuraType | auraType | ) | const |
Definition at line 4565 of file Unit.cpp.
References m_modAuras.
Referenced by ApplyControlStatesIfNeeded(), Attack(), Creature::CanCreatureAttack(), Player::CanTameExoticPets(), boss_erekem::CheckGuardAuras(), spell_bem_check_fly_mount::CheckRequirement(), SpellInfo::CheckTarget(), npc_valkyr_shadowguard::DamageTaken(), Creature::DoFleeToGetAssistance(), Player::DurabilityPointsLoss(), Spell::EffectStuck(), Spell::EffectWeaponDmg(), Battleground::EndBattleground(), WorldObject::GetMapWaterOrGroundLevel(), Player::getMaxTimer(), Player::GetPowerRegen(), AuraEffect::HandleArenaPreparation(), AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraAllowOnlyAbility(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraEmpathy(), AuraEffect::HandleAuraFeatherFall(), AuraEffect::HandleAuraGhost(), AuraEffect::HandleAuraHover(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleAuraModDmgImmunity(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), AuraEffect::HandleAuraModPacify(), AuraEffect::HandleAuraModPacifyAndSilence(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraModSilence(), AuraEffect::HandleAuraModStalked(), AuraEffect::HandleAuraTrackStealthed(), AuraEffect::HandleAuraUntrackable(), AuraEffect::HandleAuraWaterWalk(), AuraEffect::HandleComprehendLanguage(), AuraEffect::HandleDetectAmore(), spell_brewfest_mount_transformation::HandleDummy(), spell_winter_veil_reindeer_transformation::HandleDummy(), Player::HandleFall(), AuraEffect::HandleForceMoveForward(), WorldSession::HandleMirrorImageDataRequest(), AuraEffect::HandleModInvisibilityDetect(), AuraEffect::HandleModStealthDetect(), AuraEffect::HandleModUnattackable(), AuraEffect::HandlePreventFleeing(), reset_commandscript::HandleResetStatsOrLevelHelper(), WorldSession::HandleSelfResOpcode(), HasAuraTypeWithFamilyFlags(), SpellArea::IsFitToRequirements(), Player::KillPlayer(), KnockbackFrom(), WorldSession::LogoutPlayer(), WorldObject::MagicSpellHitResult(), MeleeSpellHitResult(), Trinity::AnyDeadUnitObjectInRangeCheck::operator()(), Player::RegenerateAll(), Player::RegenerateHealth(), Battleground::RemovePlayerAtLeave(), Player::RewardHonor(), RollMeleeOutcomeAgainst(), Player::SendInitialPacketsAfterAddToMap(), SetControlled(), Creature::SetSpellFocus(), ThreatReference::ShouldBeSuppressed(), Player::Update(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), Creature::UpdateMovementFlags(), Player::UpdateTriggerVisibility(), and WorldSession::ValidateMovementInfo().
Definition at line 4587 of file Unit.cpp.
References GetAuraEffectsByType().
Referenced by AuraEffect::CalculatePeriodic(), Aura::CanPeriodicTickCrit(), Spell::DoSpellEffectHit(), HasAuraState(), and Aura::RefreshDuration().
| bool Unit::HasAuraTypeWithCaster | ( | AuraType | auraType, |
| ObjectGuid | caster | ||
| ) | const |
Definition at line 4570 of file Unit.cpp.
References GetAuraEffectsByType().
Referenced by BuildValuesUpdate(), AuraEffect::HandleAuraControlVehicle(), IsAlwaysDetectableFor(), and Player::StopCastingCharm().
| bool Unit::HasAuraTypeWithFamilyFlags | ( | AuraType | auraType, |
| uint32 | familyName, | ||
| flag96 | familyFlags | ||
| ) | const |
Definition at line 679 of file Unit.cpp.
References GetAuraEffectsByType(), and HasAuraType().
Definition at line 4578 of file Unit.cpp.
References GetAuraEffectsByType().
Referenced by WorldObject::CanDetectStealthOf(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleModStealth(), and Player::UpdateStats().
Definition at line 4605 of file Unit.cpp.
References GetAuraEffectsByType().
Referenced by WorldSession::HandleCastSpellOpcode(), and WorldSession::HandlePetCastSpellOpcode().
Definition at line 4596 of file Unit.cpp.
References GetAuraEffectsByType().
Referenced by Player::UpdatePowerRegen().
| bool Unit::HasAuraWithMechanic | ( | uint32 | mechanicMask | ) | const |
Definition at line 4625 of file Unit.cpp.
References SpellInfo::GetEffects(), m_appliedAuras, and SpellInfo::Mechanic.
Referenced by Spell::CheckCasterAuras(), boss_erekem::CheckGuardAuras(), EarthenPowerTargetSelector::operator()(), SpellCritChanceTaken(), and SpellDamagePctDone().
Definition at line 691 of file Unit.cpp.
References AURA_INTERRUPT_FLAG_TAKE_DAMAGE, and GetAuraEffectsByType().
Referenced by HasBreakableByDamageCrowdControlAura(), and ThreatReference::ShouldBeSuppressed().
| bool Unit::HasBreakableByDamageCrowdControlAura | ( | Unit * | excludeCasterChannel = nullptr | ) | const |
Definition at line 701 of file Unit.cpp.
References CURRENT_CHANNELED_SPELL, GetCurrentSpell(), HasBreakableByDamageAuraType(), SPELL_AURA_MOD_CONFUSE, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_STUN, and SPELL_AURA_TRANSFORM.
Referenced by SimpleCharmedPlayerAI::CanAIAttack(), npc_pet_dk_rune_weapon::CanAIAttack(), npc_pet_mage_mirror_image::CanAIAttack(), PetAI::CanAttack(), spell_dk_wandering_plague_damage::FilterTargets(), KelThuzadCharmedPlayerAI::CharmedPlayerTargetSelectPred::operator()(), CasterAI::UpdateAI(), boss_faction_championsAI::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), and PetAI::UpdateAI().
|
inline |
|
inline |
|
inline |
Definition at line 1180 of file Unit.h.
References SPELL_AURA_MOD_INVISIBILITY.
Referenced by Player::CanCaptureTowerPoint(), Player::GetNextRandomRaidMember(), and Player::IsOutdoorPvPActive().
| bool Unit::HasNegativeAuraWithInterruptFlag | ( | uint32 | flag, |
| ObjectGuid | guid = ObjectGuid::Empty |
||
| ) | const |
Definition at line 4613 of file Unit.cpp.
References m_interruptableAuras, and m_interruptMask.
|
inline |
Definition at line 1110 of file Unit.h.
References flags, and UNIT_NPC_FLAGS.
Referenced by Player::CanSeeSpellClickOn(), Player::GetNPCIfCanInteractWith(), IsServiceProvider(), npc_zulaman_hostage::npc_zulaman_hostageAI::OnGossipSelect(), NullCreatureAI::Permissible(), Player::SendPreparedGossip(), Player::SendQuestGiverStatusMultiple(), Player::SendTaxiNodeStatusMultiple(), WorldSession::SendTaxiStatus(), npc_chicken_cluck::npc_chicken_cluckAI::UpdateAI(), and Player::UpdateVisibleGameobjectsOrSpellClicks().
|
inline |
Definition at line 1792 of file Unit.h.
Referenced by CheckPendingMovementAcks(), WorldSession::HandleForceSpeedChangeAck(), and SetSpeedRate().
| bool Unit::HasPendingMovementChange | ( | MovementChangeType | changeType | ) | const |
Definition at line 12941 of file Unit.cpp.
References m_pendingMovementChanges.
|
inline |
Definition at line 1007 of file Unit.h.
References flags, UNIT_BYTES_2_OFFSET_PET_FLAGS, and UNIT_FIELD_BYTES_2.
Referenced by Pet::FillPetInfo(), WorldSession::HandlePetRename(), and Pet::SavePetToDB().
|
inline |
Definition at line 996 of file Unit.h.
References flags, UNIT_BYTES_2_OFFSET_PVP_FLAG, and UNIT_FIELD_BYTES_2.
Referenced by WorldObject::IsValidAttackTarget().
|
protected |
|
inline |
Definition at line 1321 of file Unit.h.
Referenced by Trinity::MessageDistDeliverer::Visit(), Trinity::MessageDistDelivererToHostile::Visit(), Trinity::MessageDistDeliverer::Visit(), and Trinity::MessageDistDelivererToHostile::Visit().
|
inlinevirtual |
Reimplemented in Pet, Player, and Creature.
Definition at line 1175 of file Unit.h.
Referenced by WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), spell_dk_sudden_doom::HandleProc(), and WorldObject::ModSpellDuration().
|
inlinevirtual |
Reimplemented in Creature.
Definition at line 1494 of file Unit.h.
Referenced by WorldSession::HandlePetActionHelper().
|
inline |
Definition at line 1179 of file Unit.h.
References SPELL_AURA_MOD_STEALTH.
Referenced by Player::CanCaptureTowerPoint(), CreatureUnitRelocationWorker(), and Player::IsOutdoorPvPActive().
| bool Unit::HasStrongerAuraWithDR | ( | SpellInfo const * | auraSpellInfo, |
| Unit * | caster, | ||
| bool | triggered | ||
| ) | const |
Definition at line 4642 of file Unit.cpp.
References ApplyDiminishingToDuration(), GetDiminishing(), SpellInfo::GetDiminishingReturnsGroupForSpell(), SpellInfo::GetDuration(), SpellInfo::GetMaxDuration(), and m_appliedAuras.
|
inline |
Definition at line 967 of file Unit.h.
References flags, and UNIT_FIELD_FLAGS.
Referenced by Player::ActivateTaxiPathTo(), AttackerStateUpdate(), boss_tyrannus::AttackStart(), boss_lady_deathwhisper::AttackStart(), Creature::CanAssistTo(), Player::CanNoReagentCast(), Creature::CanStartAttack(), CanSwim(), CanUseAttackType(), Spell::CheckCast(), Spell::CheckEffectTarget(), SpellInfo::CheckTarget(), boss_volazj::DamageTaken(), npc_vrykul_skeleton::DamageTaken(), Spell::EffectOpenLock(), VehicleJoinEvent::Execute(), spell_mimiron_magnetic_core::spell_mimiron_magnetic_core_SpellScript::FilterTargets(), ThreatReference::FlagsAllowFighting(), WorldObject::GetReactionTo(), npc_commandscript::HandleNpcInfoCommand(), CombatManager::InheritCombatStatesFrom(), isTargetableForAttack(), Player::IsUseEquipedWeapon(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), npc_nether_drake::npc_nether_drakeAI::MoveInLineOfSight(), Spell::prepare(), Spell::PreprocessSpellHit(), Creature::RefreshCanSwimFlag(), dummy_dragonAI::Reset(), ScriptedAI::SelectSpell(), boss_novos::SetBubbled(), Creature::SetSpellFocus(), and Player::UpdateTriggerVisibility().
|
inline |
Definition at line 973 of file Unit.h.
References flags, and UNIT_FIELD_FLAGS_2.
Referenced by Creature::_IsTargetAcceptable(), CanSwim(), CanUseAttackType(), Spell::CheckCast(), WorldObject::GetFactionReactionTo(), WorldObject::GetReactionTo(), Creature::ReacquireSpellFocusTarget(), Creature::Regenerate(), Creature::ReleaseSpellFocus(), and Creature::SetSpellFocus().
|
inline |
Definition at line 1694 of file Unit.h.
Referenced by _ExitVehicle(), spell_dk_death_grip_initial::CheckCast(), WaypointMovementGenerator< Creature >::DoUpdate(), spell_the_lurker_below_spout_damage::FilterTargets(), GrandChampionsOutVehicle(), debug_commandscript::HandleDebugMoveflagsCommand(), DistractMovementGenerator::Initialize(), Player::IsOutdoorPvPActive(), Movement::MoveSplineInit::Launch(), Movement::MoveSplineInit::MoveSplineInit(), spell_serpent_shrine_frenzy_water::OnPeriodic(), SmartScript::ProcessAction(), SetCanFly(), SetFall(), SetFeatherFall(), SetHover(), SetSwim(), SetWaterWalking(), WaypointMovementGenerator< Creature >::StartMove(), Movement::MoveSplineInit::Stop(), and RotateMovementGenerator::Update().
|
inline |
Definition at line 890 of file Unit.h.
Referenced by Creature::_IsTargetAcceptable(), npc_gothik_minion_livingrider::_UpdateAI(), npc_gothik_minion_spectralrider::_UpdateAI(), boss_four_horsemen_baron::_UpdateAI(), boss_four_horsemen_thane::_UpdateAI(), boss_four_horsemen_lady::_UpdateAI(), boss_four_horsemen_sir::_UpdateAI(), Player::ActivateTaxiPathTo(), ApplyControlStatesIfNeeded(), AtEngage(), Attack(), AttackerStateUpdate(), BossAI::BossAI(), Player::BuildPlayerRepop(), PathGenerator::CalculatePath(), CombatManager::CanBeginCombat(), Player::CanEquipItem(), CanFreeMove(), spell_dk_death_grip_initial::CheckCast(), Spell::CheckCast(), Spell::CheckPetCast(), spell_warr_retaliation::CheckProc(), SpellInfo::CheckTarget(), CreatureUnitRelocationWorker(), boss_professor_putricide::DamageTaken(), boss_drakkari_elemental::DamageTaken(), boss_viscidus::boss_viscidusAI::DamageTaken(), DealDamageMods(), DealMeleeDamage(), DealSpellDamage(), PetAI::DoAttack(), UnitAI::DoCast(), FormationMovementGenerator::DoInitialize(), UnitAI::DoMeleeAttackIfReady(), PlayerAI::DoRangedAttackIfReady(), UnitAI::DoSpellAttackIfReady(), FormationMovementGenerator::DoUpdate(), WaypointMovementGenerator< Creature >::DoUpdate(), RandomMovementGenerator< T >::DoUpdate(), Spell::EffectDistract(), Spell::EffectKnockBack(), CritterAI::EnterEvadeMode(), SmartAI::EnterEvadeMode(), npc_pet_dk_rune_weapon::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), UnitAura::FillTargetMap(), Spell::finish(), ThreatManager::ForwardThreatForAssistingMe(), spell_dru_starfall_dummy::HandleDummy(), spell_mistress_kiss::HandleDummyTick(), WorldSession::HandleEmoteOpcode(), WorldSession::HandleInitiateTradeOpcode(), AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), WorldSession::HandlePlayerLogin(), AuraEffect::HandleProcTriggerDamageAuraProc(), PetAI::HandleReturnMovement(), WorldSession::HandleTextEmoteOpcode(), boss_lady_deathwhisper::Initialize(), boss_skadi::Initialize(), MalacrassCompanionBaseAI::InitializeAI(), CoolestFriendBaseAI::InitializeAI(), AdvisorBaseAI::InitializeAI(), isAttackingPlayer(), Creature::IsInEvadeMode(), IsMovementPreventedByCasting(), isPossessedByPlayer(), isTargetableForAttack(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), ShadowswordBaseAI::JustAppeared(), npc_focus_fire::JustAppeared(), npc_blackheart_the_inciter_dummy::JustAppeared(), npc_tainted_elemental::JustAppeared(), boss_harbinger_skyriss_illusion::JustAppeared(), CritterAI::JustEngagedWith(), npc_coren_direbrew_sisters::JustEngagedWith(), boss_dorothee::JustEngagedWith(), boss_strawman::JustEngagedWith(), boss_tinhead::JustEngagedWith(), boss_roar::JustEngagedWith(), boss_celebras_the_cursed::JustEngagedWith(), boss_landslide::JustEngagedWith(), boss_noxxion::JustEngagedWith(), boss_princess_theradras::JustEngagedWith(), npc_greyheart_spellbinder::JustEngagedWith(), npc_shadowmoon_channeler::JustEngagedWith(), npc_hellfire_channeler::JustEngagedWith(), npc_solarium_priest::JustEngagedWith(), CreatureGroup::LeaderStartedMoving(), WorldObject::MagicSpellHitResult(), MeleeSpellHitResult(), MotionMaster::MoveFall(), npc_erekem_guard::npc_erekem_guard(), npc_guard_generic::npc_guard_generic(), npc_guard_shattrath_faction::npc_guard_shattrath_faction(), npc_nagrand_banner::npc_nagrand_bannerAI::npc_nagrand_bannerAI(), npc_skadi_trashAI::npc_skadi_trashAI(), ICCOrbControllerMinionSearch::operator()(), Trinity::FriendlyCCedInRange::operator()(), Spell::PreprocessSpellHit(), RemoveCharmedBy(), GuestBaseAI::Reset(), npc_twisted_visage::Reset(), npc_fel_infernal::Reset(), npc_cult_fanatic::Reset(), npc_cult_adherent::Reset(), DarkFallenAI::Reset(), OgreBaseAI::Reset(), Player::ResurrectPlayer(), RollMeleeOutcomeAgainst(), SimpleCharmedPlayerAI::SelectAppropriateCastForSpec(), Player::SendInitialPacketsAfterAddToMap(), Player::SendInitialVisiblePackets(), boss_novos::SetBubbled(), Player::SetClientControl(), Player::SetContestedPvP(), SetControlled(), SetDisableGravity(), FollowerAI::SetFollowComplete(), FollowerAI::SetFollowPaused(), SetHover(), SetInFront(), RandomMovementGenerator< T >::SetRandomLocation(), SetStunned(), HomeMovementGenerator< T >::SetTargetLocation(), boss_vx_001::boss_vx_001AI::SpellHit(), WaypointMovementGenerator< Creature >::StartMove(), lfg::LFGMgr::TeleportPlayer(), CreatureAI::TriggerAlert(), gunship_npc_AI::TriggerBurningPitch(), Player::Update(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), boss_high_inquisitor_whitemane::UpdateAI(), npc_thorim_trashAI::UpdateAI(), CombatAI::UpdateAI(), CasterAI::UpdateAI(), SimpleCharmedPlayerAI::UpdateAI(), BossAI::UpdateAI(), WorldBossAI::UpdateAI(), npc_av_marshal_or_warmaster::UpdateAI(), boss_balinda::UpdateAI(), boss_drekthar::UpdateAI(), boss_galvangar::UpdateAI(), boss_coren_direbrew::UpdateAI(), boss_drakkisath::UpdateAI(), boss_gizrul_the_slavener::UpdateAI(), boss_gyth::UpdateAI(), boss_halycon::UpdateAI(), boss_highlord_omokk::UpdateAI(), boss_lord_valthalak::UpdateAI(), boss_mother_smolderweb::UpdateAI(), boss_overlord_wyrmthalak::UpdateAI(), boss_pyroguard_emberseer::UpdateAI(), quartermaster_zigris::UpdateAI(), boss_rend_blackhand::UpdateAI(), boss_shadow_hunter_voshgajin::UpdateAI(), boss_the_beast::UpdateAI(), boss_urok_doomhowl::UpdateAI(), boss_warmaster_voone::UpdateAI(), boss_chromaggus::UpdateAI(), boss_ebonroc::UpdateAI(), boss_firemaw::UpdateAI(), boss_flamegor::UpdateAI(), boss_victor_nefarius::UpdateAI(), boss_nefarian::UpdateAI(), boss_razorgore::UpdateAI(), boss_vaelastrasz::UpdateAI(), boss_baron_geddon::UpdateAI(), boss_garr::UpdateAI(), boss_gehennas::UpdateAI(), boss_golemagg::UpdateAI(), boss_lucifron::UpdateAI(), boss_magmadar::UpdateAI(), boss_majordomo::UpdateAI(), boss_ragnaros::UpdateAI(), boss_shazzrah::UpdateAI(), boss_sulfuron::UpdateAI(), npc_flamewaker_priest::UpdateAI(), boss_maiden_of_virtue::UpdateAI(), boss_moroes::UpdateAI(), boss_nightbane::boss_nightbaneAI::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), boss_felblood_kaelthas::UpdateAI(), npc_felblood_kaelthas_phoenix::UpdateAI(), boss_selin_fireheart::UpdateAI(), boss_vexallus::UpdateAI(), boss_arcanist_doan::UpdateAI(), boss_azshir_the_sleepless::UpdateAI(), npc_headless_horseman_head::UpdateAI(), boss_headless_horseman::UpdateAI(), boss_high_inquisitor_fairbanks::UpdateAI(), boss_scarlet_commander_mograine::UpdateAI(), boss_darkmaster_gandling::UpdateAI(), boss_death_knight_darkreaver::UpdateAI(), boss_doctor_theolen_krastinov::UpdateAI(), boss_illucia_barov::UpdateAI(), boss_instructor_malicia::UpdateAI(), boss_jandice_barov::UpdateAI(), boss_kirtonos_the_herald::UpdateAI(), boss_kormok::UpdateAI(), boss_lord_alexei_barov::UpdateAI(), boss_lorekeeper_polkelt::UpdateAI(), boss_boss_ras_frostwhisper::UpdateAI(), boss_the_ravenian::UpdateAI(), boss_vectus::UpdateAI(), boss_apothecary_hummel::UpdateAI(), npc_apothecary_baxter::UpdateAI(), boss_archmage_arugal::boss_archmage_arugalAI::UpdateAI(), boss_baron_rivendare::UpdateAI(), boss_baroness_anastari::UpdateAI(), boss_cannon_master_willey::UpdateAI(), boss_dathrohan_balnazzar::UpdateAI(), boss_magistrate_barthilas::UpdateAI(), boss_maleki_the_pallid::UpdateAI(), boss_nerubenkan::UpdateAI(), boss_postmaster_malown::UpdateAI(), boss_ramstein_the_gorger::UpdateAI(), boss_timmy_the_cruel::UpdateAI(), boss_brutallus::UpdateAI(), boss_sacrolash::UpdateAI(), boss_alythess::UpdateAI(), boss_kalecgos::UpdateAI(), boss_kalecgos_human::UpdateAI(), boss_muru::UpdateAI(), boss_entropius::UpdateAI(), boss_archaedas::UpdateAI(), boss_ironaya::UpdateAI(), boss_twilight_corrupter::boss_twilight_corrupterAI::UpdateAI(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::UpdateAI(), boss_akilzon::UpdateAI(), boss_halazzi::UpdateAI(), boss_hexlord_malacrass::UpdateAI(), boss_janalai::UpdateAI(), boss_nalorakk::UpdateAI(), boss_zuljin::UpdateAI(), boss_arlokk::UpdateAI(), boss_gahzranka::UpdateAI(), boss_grilek::UpdateAI(), boss_hakkar::UpdateAI(), boss_hazzarah::UpdateAI(), boss_jeklik::UpdateAI(), boss_jindo::UpdateAI(), boss_mandokir::UpdateAI(), boss_marli::UpdateAI(), boss_thekal::UpdateAI(), npc_zealot_lorkhan::UpdateAI(), boss_venoxis::UpdateAI(), boss_wushoolay::UpdateAI(), npc_blackfathom_deeps_event::UpdateAI(), boss_kelris::UpdateAI(), boss_azuregos::UpdateAI(), boss_anetheron::UpdateAI(), boss_archimonde::UpdateAI(), boss_azgalor::UpdateAI(), boss_kazrogal::UpdateAI(), boss_rage_winterchill::UpdateAI(), boss_mal_ganis::boss_mal_ganisAI::UpdateAI(), boss_captain_skarloc::UpdateAI(), boss_epoch_hunter::UpdateAI(), boss_lieutenant_drake::UpdateAI(), boss_aeonus::UpdateAI(), boss_chrono_lord_deja::UpdateAI(), boss_temporus::UpdateAI(), boss_onyxia::UpdateAI(), boss_amnennar_the_coldbringer::UpdateAI(), boss_glutton::UpdateAI(), boss_mordresh_fire_eye::UpdateAI(), boss_tuten_kash::UpdateAI(), npc_belnistrasz::npc_belnistraszAI::UpdateAI(), boss_ayamiss::UpdateAI(), boss_buru::UpdateAI(), boss_kurinnaxx::UpdateAI(), boss_moam::UpdateAI(), boss_rajaxx::UpdateAI(), npc_andorov::UpdateAI(), boss_kri::UpdateAI(), boss_vem::UpdateAI(), boss_yauj::UpdateAI(), boss_fankriss::UpdateAI(), boss_huhuran::UpdateAI(), boss_sartura::UpdateAI(), npc_sartura_royal_guard::UpdateAI(), npc_cairne_bloodhoof::UpdateAI(), boss_amanitar::UpdateAI(), boss_elder_nadox::UpdateAI(), npc_ahnkahar_nerubian::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_prince_taldaram::UpdateAI(), boss_anub_arak::UpdateAI(), boss_hadronox::UpdateAI(), boss_krik_thir::UpdateAI(), npc_watcher_gashra::UpdateAI(), npc_watcher_narjil::UpdateAI(), npc_watcher_silthik::UpdateAI(), npc_anub_ar_warrior::UpdateAI(), npc_anub_ar_skirmisher::UpdateAI(), npc_anub_ar_shadowcaster::UpdateAI(), boss_baltharus_the_warborn::UpdateAI(), npc_baltharus_the_warborn_clone::UpdateAI(), boss_general_zarithrian::UpdateAI(), npc_onyx_flamecaller::UpdateAI(), boss_halion::UpdateAI(), boss_twilight_halion::UpdateAI(), npc_orb_carrier::UpdateAI(), boss_saviana_ragefire::UpdateAI(), boss_anubarak_trial::UpdateAI(), npc_nerubian_burrower::UpdateAI(), npc_toc_druid::UpdateAI(), npc_toc_shaman::UpdateAI(), npc_toc_paladin::UpdateAI(), npc_toc_priest::UpdateAI(), npc_toc_shadow_priest::UpdateAI(), npc_toc_warlock::UpdateAI(), npc_toc_mage::UpdateAI(), npc_toc_hunter::UpdateAI(), npc_toc_boomkin::UpdateAI(), npc_toc_warrior::UpdateAI(), npc_toc_dk::UpdateAI(), npc_toc_rogue::UpdateAI(), npc_toc_enh_shaman::UpdateAI(), npc_toc_retro_paladin::UpdateAI(), npc_toc_pet_warlock::UpdateAI(), boss_jaraxxus::UpdateAI(), npc_mistress_of_pain::UpdateAI(), boss_northrend_beastsAI::UpdateAI(), npc_snobold_vassal::UpdateAI(), boss_jormungarAI::UpdateAI(), boss_twin_baseAI::UpdateAI(), boss_king_dred::UpdateAI(), boss_novos::UpdateAI(), boss_tharon_ja::UpdateAI(), boss_trollgore::UpdateAI(), boss_bronjahm::UpdateAI(), boss_devourer_of_souls::UpdateAI(), boss_falric::boss_falricAI::UpdateAI(), boss_marwyn::boss_marwynAI::UpdateAI(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::UpdateAI(), npc_ghostly_priest::npc_ghostly_priestAI::UpdateAI(), npc_phantom_mage::npc_phantom_mageAI::UpdateAI(), npc_shadowy_mercenary::npc_shadowy_mercenaryAI::UpdateAI(), npc_spectral_footman::npc_spectral_footmanAI::UpdateAI(), npc_tortured_rifleman::npc_tortured_riflemanAI::UpdateAI(), npc_frostsworn_general::npc_frostsworn_generalAI::UpdateAI(), npc_spiritual_reflection::npc_spiritual_reflectionAI::UpdateAI(), npc_raging_ghoul::npc_raging_ghoulAI::UpdateAI(), npc_risen_witch_doctor::npc_risen_witch_doctorAI::UpdateAI(), npc_lumbering_abomination::npc_lumbering_abominationAI::UpdateAI(), npc_quel_delar_sword::npc_quel_delar_swordAI::UpdateAI(), boss_garfrost::UpdateAI(), boss_ick::UpdateAI(), boss_tyrannus::UpdateAI(), npc_ymirjar_flamebearer::UpdateAI(), boss_drakkari_colossus::UpdateAI(), boss_drakkari_elemental::UpdateAI(), boss_moorabi::UpdateAI(), boss_blood_council_controller::UpdateAI(), boss_prince_keleseth_icc::UpdateAI(), boss_prince_taldaram_icc::UpdateAI(), boss_prince_valanar_icc::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), boss_deathbringer_saurfang::UpdateAI(), boss_festergut::UpdateAI(), npc_stinky_icc::UpdateAI(), npc_gunship_boarding_leader::UpdateAI(), npc_darnavan::UpdateAI(), boss_lord_marrowgar::UpdateAI(), boss_professor_putricide::UpdateAI(), boss_rotface::UpdateAI(), npc_precious_icc::UpdateAI(), boss_sindragosa::UpdateAI(), npc_spinestalker::UpdateAI(), npc_rimefang_icc::UpdateAI(), npc_sindragosa_trash::UpdateAI(), boss_sister_svalna::UpdateAI(), npc_captain_arnath::UpdateAI(), npc_captain_brandon::UpdateAI(), npc_captain_grondel::UpdateAI(), npc_captain_rupert::UpdateAI(), npc_frostwing_ymirjar_vrykul::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), npc_shambling_horror_icc::UpdateAI(), npc_raging_spirit::UpdateAI(), npc_valkyr_shadowguard::UpdateAI(), boss_valithria_dreamwalker::UpdateAI(), npc_the_lich_king_controller::UpdateAI(), npc_risen_archmage::UpdateAI(), npc_blazing_skeleton::UpdateAI(), npc_suppresser::UpdateAI(), npc_gluttonous_abomination::UpdateAI(), npc_rotting_frost_giant::UpdateAI(), npc_icc_nerubar_broodkeeper::UpdateAI(), boss_ioc_horde_alliance::UpdateAI(), boss_faerlina::UpdateAI(), boss_gluth::UpdateAI(), boss_kelthuzad::UpdateAI(), boss_noth::UpdateAI(), boss_thaddius::UpdateAI(), boss_malygos::UpdateAI(), boss_keristrasza::UpdateAI(), boss_magus_telestra::UpdateAI(), boss_ormorok::UpdateAI(), boss_drakos::UpdateAI(), boss_eregos::UpdateAI(), boss_urom::UpdateAI(), boss_varos::UpdateAI(), boss_general_bjarngrim::UpdateAI(), npc_bjarngrim_stormforged_lieutenant::UpdateAI(), boss_volkhan::UpdateAI(), npc_volkhan_molten_golem::UpdateAI(), boss_krystallus::UpdateAI(), boss_maiden_of_grief::UpdateAI(), boss_sjonnir::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_steelbreaker::boss_steelbreakerAI::UpdateAI(), boss_runemaster_molgeim::boss_runemaster_molgeimAI::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), boss_auriaya::UpdateAI(), npc_sanctum_sentry::UpdateAI(), npc_feral_defender::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), boss_elder_brightleaf::boss_elder_brightleafAI::UpdateAI(), boss_elder_stonebark::boss_elder_stonebarkAI::UpdateAI(), boss_elder_ironbranch::boss_elder_ironbranchAI::UpdateAI(), boss_general_vezax::boss_general_vezaxAI::UpdateAI(), boss_saronite_animus::boss_saronite_animusAI::UpdateAI(), boss_hodir::UpdateAI(), boss_ignis::boss_ignis_AI::UpdateAI(), boss_kologarn::boss_kologarnAI::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::UpdateAI(), boss_vx_001::boss_vx_001AI::UpdateAI(), boss_aerial_command_unit::boss_aerial_command_unitAI::UpdateAI(), npc_mimiron_assault_bot::npc_mimiron_assault_botAI::UpdateAI(), boss_razorscale::UpdateAI(), npc_darkrune_watcher::UpdateAI(), npc_darkrune_guardian::UpdateAI(), npc_darkrune_sentinel::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), npc_runic_colossus::npc_runic_colossusAI::UpdateAI(), npc_ancient_rune_giant::npc_ancient_rune_giantAI::UpdateAI(), npc_sif::npc_sifAI::UpdateAI(), boss_xt002::UpdateAI(), npc_life_spark::UpdateAI(), boss_sara::boss_saraAI::UpdateAI(), boss_yogg_saron::boss_yogg_saronAI::UpdateAI(), npc_guardian_of_yogg_saron::npc_guardian_of_yogg_saronAI::UpdateAI(), npc_corruptor_tentacle::npc_corruptor_tentacleAI::UpdateAI(), npc_crusher_tentacle::npc_crusher_tentacleAI::UpdateAI(), npc_immortal_guardian::npc_immortal_guardianAI::UpdateAI(), npc_yogg_saron_keeper::npc_yogg_saron_keeperAI::UpdateAI(), boss_ingvar_the_plunderer::UpdateAI(), boss_keleseth::UpdateAI(), npc_vrykul_skeleton::UpdateAI(), npc_enslaved_proto_drake::UpdateAI(), npc_ritual_channeler::UpdateAI(), boss_archavon::UpdateAI(), boss_emalon::UpdateAI(), npc_tempest_minion::UpdateAI(), boss_koralon::UpdateAI(), boss_toravon::UpdateAI(), npc_tournament_training_dummy::UpdateAI(), boss_exarch_maladaar::UpdateAI(), boss_shirrak_the_dead_watcher::UpdateAI(), npc_ethereal_beacon::UpdateAI(), npc_ethereal_apprentice::UpdateAI(), boss_anzu::UpdateAI(), boss_blackheart_the_inciter::UpdateAI(), boss_grandmaster_vorpil::UpdateAI(), boss_murmur::UpdateAI(), npc_angered_soul_fragment::UpdateAI(), boss_gurtogg_bloodboil::UpdateAI(), boss_illidan_stormrage::UpdateAI(), npc_akama_illidan::UpdateAI(), npc_flame_of_azzinoth::UpdateAI(), npc_maiev::UpdateAI(), boss_illidari_council::UpdateAI(), boss_high_nethermancer_zerevor::UpdateAI(), boss_lady_malande::UpdateAI(), boss_reliquary_of_souls::UpdateAI(), boss_essence_of_suffering::UpdateAI(), boss_essence_of_desire::UpdateAI(), boss_essence_of_anger::UpdateAI(), boss_teron_gorefiend::UpdateAI(), npc_doom_blossom::UpdateAI(), npc_shadowy_construct::UpdateAI(), boss_doom_lord_kazzak::UpdateAI(), boss_doomwalker::UpdateAI(), boss_fathomlord_karathress::UpdateAI(), FathomGuardBaseAI::UpdateAI(), boss_hydross_the_unstable::UpdateAI(), boss_lady_vashj::UpdateAI(), boss_leotheras_the_blind::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_morogrim_tidewalker::UpdateAI(), boss_mekgineer_steamrigger::UpdateAI(), boss_mennu_the_betrayer::UpdateAI(), boss_quagmirran::UpdateAI(), boss_rokmar_the_crackler::UpdateAI(), boss_swamplord_muselek::UpdateAI(), npc_claw::UpdateAI(), boss_the_black_stalker::UpdateAI(), boss_broggok::UpdateAI(), boss_kelidan_the_breaker::UpdateAI(), boss_omor_the_unscarred::UpdateAI(), boss_vazruden_the_herald::UpdateAI(), boss_vazruden::UpdateAI(), boss_watchkeeper_gargolmar::UpdateAI(), boss_magtheridon::UpdateAI(), boss_grand_warlock_nethekurse::UpdateAI(), boss_warbringer_omrogg::UpdateAI(), npc_millhouse_manastorm::UpdateAI(), boss_dalliah_the_doomsayer::UpdateAI(), boss_harbinger_skyriss::UpdateAI(), boss_wrath_scryer_soccothrates::UpdateAI(), boss_zereketh_the_unbound::UpdateAI(), boss_commander_sarannis::UpdateAI(), boss_high_botanist_freywinn::UpdateAI(), boss_laj::UpdateAI(), boss_thorngrin_the_tender::UpdateAI(), boss_warp_splinter::UpdateAI(), boss_alar::UpdateAI(), boss_high_astromancer_solarian::UpdateAI(), boss_kaelthas::UpdateAI(), boss_void_reaver::UpdateAI(), boss_gatewatcher_gyrokill::UpdateAI(), boss_gatewatcher_iron_hand::UpdateAI(), boss_mechano_lord_capacitus::UpdateAI(), boss_nethermancer_sepethrea::UpdateAI(), boss_pathaleon_the_calculator::UpdateAI(), npc_maghar_captive::npc_maghar_captiveAI::UpdateAI(), npc_kurenai_captive::npc_kurenai_captiveAI::UpdateAI(), npc_nagrand_banner::npc_kil_sorrow_spellbinderAI::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), npc_pet_mage_mirror_image::UpdateAI(), npc_pet_shaman_fire_elemental::UpdateAI(), emerald_dragonAI::UpdateAI(), boss_black_knight::boss_black_knightAI::UpdateAI(), PetAI::UpdateAI(), npc_gunship_rocketeer::UpdateAI(), npc_faerlina_add::UpdateAI(), npc_wg_spirit_guide::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAICombat(), npc_crok_scourgebane::UpdateEscortAI(), boss_ambassador_hellmaw::UpdateEscortAI(), npc_pet_mage_mirror_image::UpdateImageVictim(), UpdateSplinePosition(), SmartScript::UpdateTimer(), and violet_hold_trashAI::violet_hold_trashAI().
Definition at line 894 of file Unit.h.
Referenced by _ExitVehicle(), VehicleJoinEvent::Abort(), ThreatManager::AddThreat(), ThreatManager::CanHaveThreatList(), Spell::EffectSummonType(), VehicleJoinEvent::Execute(), WorldSession::HandlePetActionHelper(), Guardian::InitStats(), CritterAI::Permissible(), PetAI::Permissible(), RestoreFaction(), SetCharm(), SetMinion(), Player::SetViewpoint(), SpellDamageBonusDone(), SpellHealingBonusDone(), Player::StopCastingCharm(), and Spell::SummonGuardian().
| bool Unit::haveOffhandWeapon | ( | ) | const |
Definition at line 518 of file Unit.cpp.
References CanDualWield(), OFF_ATTACK, and Object::ToPlayer().
Referenced by Attack(), Creature::CalculateMinMaxDamage(), DealMeleeDamage(), UnitAI::DoMeleeAttackIfReady(), Spell::finish(), GetWeaponDamageRange(), GetWeaponProcChance(), spell_dk_threat_of_thassarian::HandleProc(), MeleeSpellMissChance(), Player::Update(), and Player::UpdateAttackPowerAndDamage().
Definition at line 6360 of file Unit.cpp.
References CalcHealAbsorb(), DealHeal(), HealInfo::GetEffectiveHeal(), and SendHealSpellLog().
Referenced by Spell::TargetInfo::DoDamageAndTriggers(), Spell::EffectHealthLeech(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), and spell_gen_restoration::PeriodicTick().
|
inline |
Definition at line 933 of file Unit.h.
Referenced by boss_lady_vashj::DoAction(), ScriptedAI::HealthAbovePct(), AchievementCriteriaData::Meets(), MeleeDamageBonusDone(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), SpellDamagePctDone(), and Update().
Definition at line 934 of file Unit.h.
Referenced by boss_valithria_dreamwalker::HealReceived().
|
inline |
Definition at line 931 of file Unit.h.
Referenced by spell_dru_glyph_of_rejuvenation::CheckProc(), spell_warr_t3_prot_8p_bonus::CheckProc(), npc_akama_shade::DamageTaken(), boss_thekal::DamageTaken(), boss_hadronox::DamageTaken(), boss_illidan_stormrage::DamageTaken(), boss_houndmaster_loksey::ExecuteEvent(), spell_headless_horseman_head_periodic::HandleHPCheck(), ScriptedAI::HealthBelowPct(), npc_guard_generic::JustEngagedWith(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipHello(), Trinity::FriendlyBelowHpPctEntryInRange::operator()(), npc_wild_wyrm::PassengerBoarded(), SpellHealingPctDone(), Update(), boss_mandokir::UpdateAI(), boss_elder_nadox::UpdateAI(), boss_krik_thir::UpdateAI(), boss_xt002::UpdateAI(), npc_akama_illidan::UpdateAI(), npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI(), and boss_black_knight::boss_black_knightAI::UpdateAI().
Definition at line 932 of file Unit.h.
Referenced by spell_gen_proc_below_pct_damaged::CheckProc(), spell_pri_shadowfiend_death::CheckProc(), boss_balinda::DamageTaken(), boss_coren_direbrew::DamageTaken(), boss_general_angerforge::boss_general_angerforgeAI::DamageTaken(), boss_magmus::boss_magmusAI::DamageTaken(), boss_nefarian::DamageTaken(), boss_baron_geddon::DamageTaken(), boss_golemagg::DamageTaken(), npc_core_rager::DamageTaken(), boss_magmadar::DamageTaken(), boss_attumen::boss_attumenAI::DamageTaken(), boss_midnight::boss_midnightAI::DamageTaken(), boss_moroes::DamageTaken(), boss_azshir_the_sleepless::DamageTaken(), boss_bloodmage_thalnos::DamageTaken(), boss_herod::DamageTaken(), boss_high_inquisitor_fairbanks::DamageTaken(), boss_interrogator_vishas::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), boss_doctor_theolen_krastinov::DamageTaken(), boss_kormok::DamageTaken(), boss_dathrohan_balnazzar::DamageTaken(), npc_calvin_montague::npc_calvin_montagueAI::DamageTaken(), boss_halazzi::DamageTaken(), npc_spirit_of_the_lynx::DamageTaken(), boss_hexlord_malacrass::DamageTaken(), boss_janalai::DamageTaken(), boss_zuljin::DamageTaken(), npc_blackfathom_deeps_event::DamageTaken(), boss_aku_mai::DamageTaken(), boss_landslide::DamageTaken(), boss_ayamiss::DamageTaken(), boss_buru::DamageTaken(), boss_kurinnaxx::DamageTaken(), boss_rajaxx::DamageTaken(), boss_huhuran::DamageTaken(), boss_sartura::DamageTaken(), boss_anub_arak::DamageTaken(), npc_anub_ar_crusher::DamageTaken(), boss_baltharus_the_warborn::DamageTaken(), boss_drakkari_colossus::DamageTaken(), boss_drakkari_elemental::DamageTaken(), boss_eck::DamageTaken(), npc_gunship::npc_gunshipAI::DamageTaken(), npc_high_overlord_saurfang_igb::DamageTaken(), npc_muradin_bronzebeard_igb::DamageTaken(), npc_gunship_boarding_addAI::DamageTaken(), npc_shambling_horror_icc::DamageTaken(), npc_valkyr_shadowguard::DamageTaken(), boss_valithria_dreamwalker::DamageTaken(), boss_keristrasza::DamageTaken(), boss_magus_telestra::DamageTaken(), boss_loken::DamageTaken(), boss_volkhan::DamageTaken(), boss_sjonnir::DamageTaken(), boss_algalon_the_observer::DamageTaken(), boss_razorscale::DamageTaken(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), npc_immortal_guardian::npc_immortal_guardianAI::DamageTaken(), boss_ymiron::DamageTaken(), boss_exarch_maladaar::DamageTaken(), boss_mother_shahraz::DamageTaken(), boss_fathomlord_karathress::DamageTaken(), boss_lady_vashj::DamageTaken(), boss_leotheras_the_blind::DamageTaken(), boss_morogrim_tidewalker::DamageTaken(), boss_mekgineer_steamrigger::DamageTaken(), boss_rokmar_the_crackler::DamageTaken(), boss_hungarfen::DamageTaken(), npc_claw::DamageTaken(), boss_high_king_maulgar::DamageTaken(), boss_omor_the_unscarred::DamageTaken(), boss_vazruden_the_herald::DamageTaken(), boss_vazruden::DamageTaken(), boss_watchkeeper_gargolmar::DamageTaken(), boss_magtheridon::DamageTaken(), boss_grand_warlock_nethekurse::DamageTaken(), npc_millhouse_manastorm::DamageTaken(), boss_dalliah_the_doomsayer::DamageTaken(), boss_wrath_scryer_soccothrates::DamageTaken(), boss_commander_sarannis::DamageTaken(), boss_high_astromancer_solarian::DamageTaken(), boss_kaelthas::DamageTaken(), boss_pathaleon_the_calculator::DamageTaken(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), npc_nagrand_banner::npc_kil_sorrow_spellbinderAI::DamageTaken(), npc_nagrand_banner::npc_kil_sorrow_deathswornAI::DamageTaken(), npc_nagrand_banner::npc_giselda_the_croneAI::DamageTaken(), npc_nagrand_banner::npc_warmaul_shamanAI::DamageTaken(), boss_felblood_kaelthas::DamageTaken(), boss_halion::DamageTaken(), boss_twilight_halion::DamageTaken(), boss_thorim::boss_thorimAI::DamageTaken(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), boss_archimonde::DamageTaken(), boss_hadronox::DamageTaken(), and spell_warl_seed_of_corruption_dummy::HandleProc().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 510 of file Unit.cpp.
References WorldObject::Heartbeat(), and SendFlightSplineSyncUpdate().
Referenced by Player::Heartbeat().
| void Unit::IncrDiminishing | ( | SpellInfo const * | auraSpellInfo, |
| bool | triggered | ||
| ) |
Definition at line 8787 of file Unit.cpp.
References GetDiminishing(), SpellInfo::GetDiminishingReturnsGroupForSpell(), SpellInfo::GetDiminishingReturnsMaxLevel(), DiminishingReturn::hitCount, and m_Diminishing.
Referenced by Spell::PreprocessSpellHit().
| CharmInfo * Unit::InitCharmInfo | ( | ) |
Definition at line 9707 of file Unit.cpp.
References m_charmInfo.
Referenced by Guardian::Guardian(), Pet::Pet(), and SetCharmedBy().
| void Unit::InitStatBuffMods | ( | ) |
Definition at line 4984 of file Unit.cpp.
References MAX_STATS, Object::SetFloatValue(), STAT_STRENGTH, UNIT_FIELD_NEGSTAT0, and UNIT_FIELD_POSSTAT0.
Referenced by Player::InitStatsForLevel().
Definition at line 10871 of file Unit.cpp.
References PetStable::CurrentPet, Pet::FillPetInfo(), GetCharmInfo(), Object::GetEntry(), GetFaction(), Object::GetGUID(), Player::GetOrInitPetStable(), Object::GetTypeId(), PetStable::GetUnslottedHunterPet(), Pet::InitPetCreateSpells(), Guardian::InitStatsForLevel(), ReplaceAllUnitFlags(), SetCreatedBySpell(), SetCreatorGUID(), SetFaction(), SetFullHealth(), CharmInfo::SetPetNumber(), sObjectMgr, TC_LOG_ERROR, Object::ToPlayer(), TYPEID_PLAYER, and UNIT_FLAG_PLAYER_CONTROLLED.
Referenced by CreateTamedPetFrom(), and CreateTamedPetFrom().
|
private |
Definition at line 590 of file Unit.cpp.
References _positionUpdateInfo, AURA_INTERRUPT_FLAG_MOVE, AURA_INTERRUPT_FLAG_TURNING, GetVehicle(), PositionUpdateInfo::Relocated, RemoveAurasWithInterruptFlags(), and PositionUpdateInfo::Turned.
Referenced by Update().
| void Unit::InterruptNonMeleeSpells | ( | bool | withDelayed, |
| uint32 | spellid = 0, |
||
| bool | withInstant = true |
||
| ) |
Definition at line 3116 of file Unit.cpp.
References CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, InterruptSpell(), and m_currentSpells.
Referenced by Player::ActivateTalentGroup(), spell_magtheridon_shadow_grasp::AfterRemove(), CleanupBeforeRemoveFromMap(), CombatStop(), boss_the_lich_king::DamageTaken(), boss_taerar::boss_taerarAI::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), boss_volazj::DamageTaken(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), boss_ingvar_the_plunderer::DamageTaken(), boss_ymiron::DamageTaken(), boss_essence_of_suffering::DamageTaken(), boss_essence_of_desire::DamageTaken(), boss_felblood_kaelthas::DamageTaken(), boss_sacrolash::DamageTaken(), boss_alythess::DamageTaken(), boss_illidan_stormrage::DamageTaken(), DealDamage(), npc_zuljin_spirit::DoAction(), npc_raging_spirit::DoAction(), boss_leotheras_the_blind::DoAction(), npc_earthen_ring_flamecaller::DoAction(), boss_razorscale::DoAction(), npc_expedition_trapper::DoAction(), boss_illidan_stormrage::DoAction(), npc_sironas::npc_sironasAI::DoAction(), npc_ranshalla::npc_ranshallaAI::DoContinueEscort(), LightningFieldEvent::Execute(), VehicleJoinEvent::Execute(), boss_curator::boss_curatorAI::ExecuteEvent(), boss_illidan_stormrage::ExecuteSpecialEvents(), boss_thorim::boss_thorimAI::FinishEncounter(), WorldSession::HandleCancelCastOpcode(), AuraEffect::HandleFeignDeath(), boss_felmyst::HandleFlightSequence(), WorldSession::HandleLootOpcode(), WorldSession::HandlePetActionHelper(), boss_freya::boss_freyaAI::JustDied(), npc_greyheart_spellbinder::JustEngagedWith(), npc_shadowmoon_channeler::JustEngagedWith(), npc_hellfire_channeler::JustEngagedWith(), SmartAI::JustEngagedWith(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::JustEngagedWith(), boss_baltharus_the_warborn::JustEngagedWith(), boss_gal_darah::JustEngagedWith(), npc_frostwing_ymirjar_vrykul::JustEngagedWith(), boss_algalon_the_observer::JustEngagedWith(), boss_kelidan_the_breaker::JustEngagedWith(), npc_risen_archmage::JustEnteredCombat(), PetAI::KilledUnit(), boss_hexlord_malacrass::OnSpellCast(), dummy_dragonAI::OpenPortal(), SmartScript::ProcessAction(), RemoveAurasWithInterruptFlags(), boss_twinemperorsAI::SetAfterTeleport(), setDeathState(), boss_shade_of_aran::boss_aranAI::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), PetAI::StopAttack(), StopAttackFaction(), Player::TeleportTo(), CasterAI::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_madrigosa::UpdateAI(), boss_kalecgos::UpdateAI(), hyjalAI::UpdateAI(), boss_onyxia::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_devourer_of_souls::UpdateAI(), boss_malygos::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), boss_svala::UpdateAI(), npc_warden_mellichar::UpdateAI(), boss_kaelthas::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), boss_mr_smite::boss_mr_smiteAI::UpdateAI(), boss_eadric::boss_eadricAI::UpdateAI(), boss_paletress::boss_paletressAI::UpdateAI(), boss_mage_toc5::boss_mage_toc5AI::UpdateAI(), boss_hunter_toc5::boss_hunter_toc5AI::UpdateAI(), boss_ionar::UpdateAI(), PetAI::UpdateAI(), npc_pet_mage_mirror_image::UpdateImageVictim(), npc_pet_dk_rune_weapon::UpdateRuneWeaponVictim(), and boss_vazruden_the_herald::UpdateSpecialEvents().
| void Unit::InterruptSpell | ( | CurrentSpellTypes | spellType, |
| bool | withDelayed = true, |
||
| bool | withInstant = true, |
||
| SpellCastResult | result = SPELL_FAILED_INTERRUPTED, |
||
| Optional< SpellCastResult > | resultOther = {} |
||
| ) |
Definition at line 3044 of file Unit.cpp.
References Creature::AI(), Spell::cancel(), CURRENT_AUTOREPEAT_SPELL, Spell::GetCastTime(), Spell::GetSpellInfo(), Spell::getState(), Object::GetTypeId(), IsAIEnabled(), Spell::IsInterruptable(), m_currentSpells, CreatureAI::OnSpellFailed(), Player::SendAutoRepeatCancel(), Spell::SetReferencedFromCurrent(), SPELL_STATE_CASTING, SPELL_STATE_DELAYED, SPELL_STATE_FINISHED, Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by _UpdateAutoRepeatSpell(), Player::ActivateTaxiPathTo(), Attack(), AttackStop(), CastStop(), Spell::EffectInterruptCast(), AuraEffect::HandleAuraModSilence(), WorldSession::HandleCancelAuraOpcode(), WorldSession::HandleCancelAutoRepeatSpellOpcode(), WorldSession::HandleCancelChanneling(), spell_hun_scatter_shot::HandleDummy(), spell_yogg_saron_diminsh_power::spell_yogg_saron_diminsh_power_AuraScript::HandleProc(), InterruptNonMeleeSpells(), boss_archimonde::JustEngagedWith(), npc_pet_gen_pandaren_monk::ReceiveEmote(), Player::RemoveItemDependentAurasAndCasts(), SetCurrentCastSpell(), boss_flame_leviathan::boss_flame_leviathanAI::SpellHit(), npc_sif::npc_sifAI::SpellHit(), boss_high_botanist_freywinn::SpellHit(), boss_renataki::UpdateAI(), npc_belnistrasz::npc_belnistraszAI::UpdateAI(), and npc_pet_gen_pandaren_monk::UpdateAI().
|
inlinevirtual |
Reimplemented in Creature.
Definition at line 835 of file Unit.h.
Referenced by ApplyDiminishingToDuration(), Creature::IsAffectedByDiminishingReturns(), and Spell::PreprocessSpellHit().
|
inline |
Definition at line 812 of file Unit.h.
Referenced by Creature::AtEngage(), Creature::CanAlwaysSee(), spell_icehowl_trample::CheckTargets(), CreatureUnitRelocationWorker(), SummonList::DoActionImpl(), Spell::TargetInfo::DoDamageAndTriggers(), Spell::GOTargetInfo::DoTargetSpellHit(), SummonList::DoZoneInCombat(), GetDebugInfo(), debug_commandscript::HandleDebugBoundaryCommand(), spell_headless_horseman_head_is_dead::HandleDummy(), spell_auriaya_agro_creator::HandleDummyEffect(), spell_ulduar_random_aggro_periodic::HandleEffectPeriodic(), npc_commandscript::HandleNpcEvadeCommand(), spell_ahnkahet_shadow_sickle::HandlePeriodic(), WorldSession::HandlePetActionHelper(), spell_headless_horseman_send_head::HandleScriptEffect(), spell_headless_horseman_command_head_request_body::HandleScriptEffect(), spell_headless_horseman_return_head::HandleScriptEffect(), spell_headless_horseman_sprouting::HandleScriptEffect(), HandleSpellClick(), spell_dreamwalker_summon_suppresser::HandleSummon(), TempSummon::InitSummon(), InterruptSpell(), Kill(), spell_marrowgar_bone_spike_graveyard::Load(), npc_marzon_silent_blade::npc_marzon_silent_bladeAI::MovementInform(), spell_headless_horseman_yell_timer::OnApply(), SmartScript::ProcessAction(), Vehicle::RemovePassenger(), Creature::Update(), and boss_malygos::UpdateAI().
|
inline |
Definition at line 1247 of file Unit.h.
References ALIVE.
Referenced by _CreateAuraApplication(), CreatureAI::_EnterEvadeMode(), _EnterVehicle(), Player::_LoadItem(), BossAI::_Reset(), WorldBossAI::_Reset(), KillRewarder::_RewardHonor(), KillRewarder::_RewardKillCredit(), KillRewarder::_RewardXP(), AddAura(), Map::AddPlayerToMap(), Spell::AddUnitTarget(), spell_sunken_temple_hex_of_jammalan::AfterRemove(), boss_janalai::AllEggsWereHatched(), npc_amanishi_hatcher::AreEggsHatchedA(), npc_amanishi_hatcher::AreEggsHatchedB(), Creature::AtDisengage(), Attack(), AttackerStateUpdate(), PetAI::AttackStart(), npc_snobold_vassal::AttackStart(), boss_malchezaar::boss_malchezaarAI::AxesCleanup(), boss_four_horsemen_baseAI::boss_four_horsemen_baseAI(), WorldSession::BuildPartyMemberStatsChangedPacket(), Player::BuyItemFromVendorSlot(), CalcAbsorbResist(), CalculateSpellDamageTaken(), boss_ionar::CallBackSparks(), Creature::CallForHelp(), npc_pet_dk_rune_weapon::CanAIAttack(), npc_pet_mage_mirror_image::CanAIAttack(), Creature::CanAssistTo(), PetAI::CanAttack(), CombatManager::CanBeginCombat(), Player::CanCaptureTowerPoint(), Player::CanInteractWithQuestGiver(), CreatureGroup::CanLeaderStartMoving(), boss_thorim::boss_thorimAI::CanStartPhase2(), Player::CanUseAmmo(), Player::CanUseBattlegroundObject(), Player::CanUseItem(), Player::CastItemCombatSpell(), Player::CheckAreaExplore(), spell_dk_raise_ally_initial::CheckCast(), Spell::CheckCast(), spell_razorscale_flame_breath::CheckDamage(), spell_devourer_of_souls_mirrored_soul_proc::CheckProc(), spell_mage_focus_magic::CheckProc(), spell_item_necrotic_touch::CheckProc(), spell_item_shadowmourne::CheckProc(), spell_warl_siphon_life::CheckProc(), spell_putricide_mutation_init::CheckRequirementInternal(), Map::CheckRespawn(), SpellInfo::CheckTarget(), instance_violet_hold::instance_violet_hold_InstanceMapScript::CheckWipe(), netherspite_infernal::netherspite_infernalAI::Cleanup(), CreatureUnitRelocationWorker(), instance_dire_maul::instance_dire_maul_InstanceMapScript::CrystalCreatureCheck(), boss_prince_taldaram::DamageTaken(), DealDamageMods(), DealMeleeDamage(), DealSpellDamage(), npc_brann_hos::DespawnDwarf(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::DestroyDoor(), boss_dorothee::DoAction(), boss_archaedas::DoAction(), npc_vault_warder::DoAction(), boss_ossirian::boss_ossirianAI::DoAction(), boss_rajaxx::DoAction(), npc_andorov::DoAction(), boss_krik_thir::DoAction(), boss_sister_svalna::DoAction(), npc_crok_scourgebane::DoAction(), boss_gluth::DoAction(), boss_teron_gorefiend::DoAction(), boss_lady_vashj::DoAction(), npc_greyheart_spellbinder::DoAction(), boss_high_king_maulgar::DoAction(), boss_grand_warlock_nethekurse::DoAction(), npc_expedition_trapper::DoAction(), npc_expedition_engineer::DoAction(), boss_erekem::DoAction(), boss_ichoron::DoAction(), spell_hun_masters_call::DoCheckCast(), RandomMovementGenerator< T >::DoInitialize(), WorldSession::DoLootRelease(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::DoSpeech(), Spell::TargetInfo::DoTargetSpellHit(), WaypointMovementGenerator< Creature >::DoUpdate(), RandomMovementGenerator< T >::DoUpdate(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomcheck(), Spell::EffectAddExtraAttacks(), Spell::EffectEnergize(), Spell::EffectEnergizePct(), Spell::EffectEnvironmentalDMG(), Spell::EffectFeedPet(), Spell::EffectHeal(), Spell::EffectHealMaxHealth(), Spell::EffectHealMechanical(), Spell::EffectHealPct(), Spell::EffectHealthLeech(), Spell::EffectInstaKill(), Spell::EffectInterruptCast(), Spell::EffectPickPocket(), Spell::EffectPowerBurn(), Spell::EffectPowerDrain(), Spell::EffectResurrect(), Spell::EffectResurrectNew(), Spell::EffectResurrectPet(), Spell::EffectSchoolDMG(), Spell::EffectScriptEffect(), Spell::EffectSelfResurrect(), Spell::EffectSkinPlayerCorpse(), Spell::EffectStuck(), Spell::EffectThreat(), Spell::EffectWeaponDmg(), Battleground::EndBattleground(), Arena::EndBattleground(), boss_malchezaar::boss_malchezaarAI::EnfeebleHealthEffect(), boss_malchezaar::boss_malchezaarAI::EnfeebleResetHealth(), boss_thaddius::EnterEvadeMode(), GuardAI::EnterEvadeMode(), gunship_npc_AI::EnterEvadeMode(), npc_high_overlord_saurfang_igb::EnterEvadeMode(), npc_muradin_bronzebeard_igb::EnterEvadeMode(), npc_terenas_menethil::EnterEvadeMode(), boss_kelthuzad::EnterEvadeMode(), npc_pet_dk_rune_weapon::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), npc_pet_pri_lightwell::EnterEvadeMode(), hyjalAI::EnterEvadeMode(), Player::EnvironmentalDamage(), Player::EquipItem(), npc_wild_wyrm::EvadeCheck(), Battleground::EventPlayerLoggedOut(), BattleExperienceEvent::Execute(), VehicleJoinEvent::Execute(), DelayedMovementEvent::Execute(), Creature::ExitVehicle(), AssistanceMovementGenerator::Finalize(), Creature::ForcedDespawn(), CreatureGroup::FormationReset(), Battleground::GetAlivePlayersCountByTeam(), FollowerAI::GetLeaderForFollower(), Player::getMaxTimer(), Player::GetNPCIfCanInteractWith(), GetPartyMembers(), Pet::GivePetXP(), Player::GiveXP(), boss_moroes::GuestsAttack(), BattlegroundEY::HandleAreaTrigger(), WorldSession::HandleAreaTriggerOpcode(), AuraEffect::HandleAuraModTotalThreat(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBattleFieldPortOpcode(), BattlegroundIC::HandleCapturedNodes(), WorldSession::HandleChatMessage(), misc_commandscript::HandleDamageCommand(), debug_commandscript::HandleDebugThreatListCommand(), misc_commandscript::HandleDieCommand(), Player::HandleDrowning(), WorldSession::HandleEmoteOpcode(), Player::HandleFall(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleLootMoneyOpcode(), AuraEffect::HandleModDetaunt(), AuraEffect::HandleModTaunt(), AuraEffect::HandleModTotalPercentStat(), WorldSession::HandleMovementOpcode(), WorldSession::HandleMoveWorldportAck(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetWanderDistanceCommand(), AuraEffect::HandleObsModPowerAuraTick(), WorldSession::HandleOpenItemOpcode(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), WorldSession::HandlePetAction(), WorldSession::HandlePetCancelAuraOpcode(), WorldSession::HandlePetStopAttack(), misc_commandscript::HandlePInfoCommand(), spell_item_mana_drain::HandleProc(), WorldSession::HandleReclaimCorpse(), WorldSession::HandleRequestPartyMemberStatsOpcode(), spell_rotface_large_ooze_combine::HandleScript(), WorldSession::HandleSetAmmoOpcode(), spell_marrowgar_bone_spike_graveyard::HandleSpikes(), AuraEffect::HandleSpiritOfRedemption(), WorldSession::HandleStablePet(), WorldSession::HandleStableSwapPet(), WorldSession::HandleSummonResponseOpcode(), WorldSession::HandleTextEmoteOpcode(), WorldSession::HandleUnstablePet(), boss_priestess_delrissa::InitializeLackeys(), Player::IsAtGroupRewardDistance(), Player::IsAtRecruitAFriendDistance(), Creature::IsInvisibleDueToDespawn(), Player::IsOutdoorPvPActive(), Player::IsPetNeedBeTemporaryUnsummoned(), isTargetableForAttack(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), Spell::IsValidDeadOrAliveTarget(), boss_priestess_lackey_commonAI::JustDied(), npc_fel_crystal::JustDied(), npc_watcher_gashra::JustDied(), npc_watcher_narjil::JustDied(), npc_watcher_silthik::JustDied(), boss_freya::boss_freyaAI::JustDied(), boss_emalon::JustEngagedWith(), npc_green_dragon_combat_trigger::JustExitedCombat(), Kill(), CreatureGroup::LeaderStartedMoving(), Player::LoadCorpse(), Player::LoadFromDB(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadInitializeScript(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadResetScript(), WorldObject::MagicSpellHitResult(), CreatureGroup::MemberEngagingTarget(), npc_snobold_vassal::MountOnBoss(), npc_twiggy_flathead::npc_twiggy_flatheadAI::MoveInLineOfSight(), boss_selin_fireheart::MovementInform(), npc_guard_generic::npc_guard_generic(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::OnCreatureCreate(), instance_gundrak::instance_gundrak_InstanceMapScript::OnCreatureCreate(), instance_oculus::instance_oculus_InstanceMapScript::OnCreatureCreate(), instance_shadow_labyrinth::instance_shadow_labyrinth_InstanceMapScript::OnCreatureCreate(), go_prince_taldaram_sphere::OnGossipHello(), containment_sphere::OnGossipHello(), CreatureAI::OnOwnerCombatInteraction(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::OnPlayerLeave(), npc_daegarn::OnQuestAccept(), spell_illidari_council_seal::OnRemove(), AreaTrigger_at_sentry_point::OnTrigger(), at_dragonspire_hall::OnTrigger(), at_blackrock_stadium::OnTrigger(), at_nearby_scarshield_infiltrator::OnTrigger(), at_ancient_leaf::OnTrigger(), areatrigger_orgrimmar_herald_of_war::OnTrigger(), at_commander_dawnforge::OnTrigger(), AreaTrigger_at_legion_teleporter::OnTrigger(), AreaTrigger_at_nats_landing::OnTrigger(), SmartTrigger::OnTrigger(), AreaTrigger_at_area_52_entrance::OnTrigger(), ICCOrbControllerMinionSearch::operator()(), Trinity::AnyDeadUnitObjectInRangeCheck::operator()(), Trinity::NearestCreatureEntryWithLiveStateInObjectRangeCheck::operator()(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), Trinity::PlayerAtMinimumRangeAway::operator()(), Trinity::AnyDeadUnitObjectInRangeCheck::operator()(), Trinity::AnyPlayerInPositionRangeCheck::operator()(), Trinity::NearestPlayerInObjectRangeCheck::operator()(), Trinity::AnyPlayerInObjectRangeCheck::operator()(), LorKhanSelectTargetToHeal::operator()(), Trinity::MostHPMissingInRange::operator()(), Trinity::MostHPPercentMissingInRange::operator()(), Trinity::FriendlyBelowHpPctEntryInRange::operator()(), Trinity::MostHPMissingGroupInRange::operator()(), Trinity::NearestAttackableNoTotemUnitInObjectRangeCheck::operator()(), npc_thorim_trashAI::AIHelper::MostHPMissingInRange::operator()(), Trinity::FriendlyCCedInRange::operator()(), Trinity::FriendlyMissingBuffInRange::operator()(), Trinity::AnyUnfriendlyUnitInObjectRangeCheck::operator()(), Trinity::AnyFriendlyUnitInObjectRangeCheck::operator()(), Trinity::AnyGroupedUnitInObjectRangeCheck::operator()(), Trinity::AnyUnitInObjectRangeCheck::operator()(), Trinity::AllFriendlyCreaturesInGrid::operator()(), FrostwingVrykulSearcher::operator()(), PetAI::OwnerAttacked(), PetAI::OwnerAttackedBy(), MapManager::PlayerCannotEnter(), Group::RemoveMember(), Battleground::RemovePlayerAtLeave(), Player::RepopAtGraveyard(), boss_moroes::Reset(), npc_frostwing_ymirjar_vrykul::Reset(), boss_four_horsemen_baseAI::Reset(), boss_kelthuzad::Reset(), npc_dragonflayer_forge_master::Reset(), boss_ambassador_hellmaw::Reset(), Creature::Respawn(), Player::RewardPlayerAndGroupAtEvent(), boss_erekem::ScheduleTasks(), Player::SendInitialVisiblePackets(), Player::SendLoot(), SendMeleeAttackStop(), SetConfused(), Player::setDeathState(), SetFeared(), Creature::SetSpellFocus(), SetStunned(), Battlefield::ShowNpc(), boss_the_beast::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), boss_volazj::SpellHitTarget(), npc_malformed_ooze::SpellHitTarget(), WaypointMovementGenerator< Creature >::StartMove(), PetAI::StopAttack(), PassengerController::SummonCreatures(), Player::SwapItem(), lfg::LFGMgr::TeleportPlayer(), Player::TeleportTo(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadResetScript(), Totem::UnSummon(), Creature::Update(), TempSummon::Update(), Puppet::Update(), Player::Update(), Totem::Update(), Update(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::Update(), ChaseMovementGenerator::Update(), TimedFleeingMovementGenerator::Update(), FollowMovementGenerator::Update(), TotemAI::UpdateAI(), SmartAI::UpdateAI(), npc_grimstone::npc_grimstoneAI::UpdateAI(), boss_selin_fireheart::UpdateAI(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), hyjalAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_hadronox_foeAI::UpdateAI(), npc_risen_archmage::UpdateAI(), boss_gluth::UpdateAI(), boss_emalon::UpdateAI(), boss_void_reaver::UpdateAI(), player_ghoulAI::UpdateAI(), npc_spark_of_ionar::UpdateAI(), PetAI::UpdateAI(), npc_air_force_bots::npc_air_force_botsAI::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), npc_tooga::npc_toogaAI::UpdateFollowerAI(), InstanceScript::UpdateMinionState(), Creature::UpdateMovementFlags(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), CreatureAI::UpdateVictim(), Player::UpdateZone(), Trinity::CreatureRelocationNotifier::Visit(), npc_giant_infernal::npc_giant_infernalAI::WaypointReached(), npc_abomination::npc_abominationAI::WaypointReached(), npc_ghoul::npc_ghoulAI::WaypointReached(), npc_necromancer::npc_necromancerAI::WaypointReached(), npc_banshee::npc_bansheeAI::WaypointReached(), npc_crypt_fiend::npc_crypt_fiendAI::WaypointReached(), npc_fel_stalker::npc_fel_stalkerAI::WaypointReached(), npc_frost_wyrm::npc_frost_wyrmAI::WaypointReached(), npc_gargoyle::npc_gargoyleAI::WaypointReached(), and npc_demolitionist_legoso::npc_demolitionist_legosoAI::WaypointReached().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 8437 of file Unit.cpp.
References Object::GetGUID(), HasAuraTypeWithCaster(), WorldObject::IsAlwaysDetectableFor(), and SPELL_AURA_MOD_STALKED.
Referenced by Player::IsAlwaysDetectableFor().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 8417 of file Unit.cpp.
References GetCharmerOrOwnerGUID(), Object::GetGUID(), WorldObject::GetOwner(), WorldObject::IsAlwaysVisibleFor(), ObjectGuid::IsEmpty(), and Object::ToPlayer().
|
inline |
Definition at line 1128 of file Unit.h.
References UNIT_NPC_FLAG_REPAIR.
| bool Unit::isAttackingPlayer | ( | ) | const |
Definition at line 5660 of file Unit.cpp.
References Map::GetCreature(), WorldObject::GetMap(), HasUnitState(), m_Controlled, m_SummonSlot, MAX_SUMMON_SLOT, and UNIT_STATE_ATTACK_PLAYER.
|
inline |
Definition at line 849 of file Unit.h.
Referenced by _UpdateAutoRepeatSpell(), boss_flame_leviathan::boss_flame_leviathanAI::DoBatteringRamIfReady(), UnitAI::DoMeleeAttackIfReady(), boss_malchezaar::boss_malchezaarAI::DoMeleeAttacksIfReady(), PlayerAI::DoRangedAttackIfReady(), UnitAI::DoSpellAttackIfReady(), GetWeaponProcChance(), npc_guard_generic::JustEngagedWith(), Player::Update(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::UpdateAI(), npc_high_overlord_saurfang_igb::UpdateAI(), npc_muradin_bronzebeard_igb::UpdateAI(), boss_thaddius::UpdateAI(), boss_murmur::UpdateAI(), and npc_scarlet_ghoul::UpdateAI().
|
inline |
Definition at line 1127 of file Unit.h.
References UNIT_NPC_FLAG_AUCTIONEER.
|
inline |
Definition at line 1122 of file Unit.h.
References UNIT_NPC_FLAG_BANKER.
|
inline |
Definition at line 1121 of file Unit.h.
References UNIT_NPC_FLAG_BATTLEMASTER.
Referenced by Creature::isCanInteractWithBattleMaster().
| bool Unit::IsBlockCritical | ( | ) |
Definition at line 2375 of file Unit.cpp.
References GetTotalAuraModifier(), roll_chance_i(), and SPELL_AURA_MOD_BLOCK_CRIT_CHANCE.
Referenced by CalculateSpellDamageTaken().
|
inline |
Definition at line 1293 of file Unit.h.
Referenced by Creature::CallAssistance(), Creature::CallForHelp(), Player::CanEquipItem(), Player::CanUnequipItem(), Spell::CheckCasterAuras(), GetCharmerOrSelf(), WorldSession::HandleCancelCastOpcode(), WorldSession::HandleGameobjectReportUse(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleTotemDestroyed(), PetAI::NeedToStop(), VehicleAI::OnCharmed(), PetAI::OnCharmed(), CreatureAI::OnCharmed(), SimpleCharmedPlayerAI::OnCharmed(), SmartAI::OnCharmed(), npc_dk_understudy::OnCharmed(), Trinity::FriendlyCCedInRange::operator()(), RemoveCharmedBy(), RemoveFromWorld(), ScheduleAIChange(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadResetScript(), Update(), and UpdateCharmAI().
|
inline |
Definition at line 1274 of file Unit.h.
Referenced by spell_gen_mounted_charge::HandleScriptEffect(), instance_azjol_nerub::instance_azjol_nerub_InstanceScript::OnUnitDeath(), Spell::TargetInfo::PreprocessTarget(), and RemoveAurasOnEvade().
|
inline |
Definition at line 1307 of file Unit.h.
Referenced by getAttackerForHelper().
|
inline |
Definition at line 1842 of file Unit.h.
Referenced by CombatManager::CanBeginCombat().
| bool Unit::IsContestedGuard | ( | ) | const |
Definition at line 11919 of file Unit.cpp.
References WorldObject::GetFactionTemplateEntry().
|
inline |
Definition at line 1271 of file Unit.h.
Referenced by Attack(), BuildValuesUpdate(), SpellInfo::CalcPowerCost(), Spell::CalculateJumpSpeeds(), SpellEffectInfo::CalcValue(), boss_hadronox::CanAIAttack(), npc_death_knight_initiate::npc_death_knight_initiateAI::DamageTaken(), boss_hadronox::DamageTaken(), DealDamage(), DealMeleeDamage(), GetSpeed(), GetWeaponSkillValue(), WorldSession::HandleForceSpeedChangeAck(), Spell::prepare(), ProcessTerrainStatusUpdate(), PurgeAndApplyPendingMovementChanges(), RollMeleeOutcomeAgainst(), CombatManager::SetInCombatWith(), SetSpeed(), SetSpeedRate(), BossAI::TeleportCheaters(), and UpdateSpeed().
|
inline |
Definition at line 1131 of file Unit.h.
References CREATURE_TYPE_CRITTER.
Referenced by Creature::CanGiveExperience(), Spell::CheckCast(), spell_item_unsated_craving::CheckProc(), Creature::InitializeReactState(), Kill(), Pet::LoadPetFromDB(), instance_azjol_nerub::instance_azjol_nerub_InstanceScript::OnUnitDeath(), CritterAI::Permissible(), and ProcSkillsAndReactives().
|
static |
Definition at line 1587 of file Unit.cpp.
References SpellInfo::HasAttribute(), SPELL_ATTR0_CU_IGNORE_ARMOR, and SPELL_SCHOOL_MASK_NORMAL.
Referenced by CalculateSpellDamageTaken(), misc_commandscript::HandleDamageCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
|
inline |
Definition at line 1249 of file Unit.h.
Referenced by npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), WorldObject::DestroyForNearbyPlayers(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), boss_flame_leviathan::boss_flame_leviathanAI::DoAction(), Spell::EffectSummonPet(), Player::HandleFall(), npc_commandscript::HandleNpcShowLootCommand(), misc_commandscript::HandleRespawnCommand(), Creature::HasSpellFocus(), UnitAI::InitializeAI(), npc_troll_volunteer::InitializeAI(), BloodPrincesBossAI::InitializeAI(), npc_spinestalker::InitializeAI(), npc_rimefang_icc::InitializeAI(), npc_sindragosa_trash::InitializeAI(), boss_sister_svalna::InitializeAI(), boss_anubrekhan::InitializeAI(), boss_faerlina::InitializeAI(), boss_razuvious::InitializeAI(), boss_flame_leviathan::boss_flame_leviathanAI::InitializeAI(), Player::isAllowedToLoot(), SmartAI::JustAppeared(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), Player::OnGossipSelect(), AreaTrigger_at_scent_larkorwi::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), AreaTrigger_at_sholazar_waygate::OnTrigger(), MapManager::PlayerCannotEnter(), Player::PrepareGossipMenu(), SmartScript::ProcessAction(), Player::RepopAtGraveyard(), npc_anubisath_sentinel::aqsentinelAI::Reset(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ResetBossEncounter(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), npc_grimstone::npc_grimstoneAI::UpdateAI(), npc_ice_tomb::UpdateAI(), and boss_anomalus::UpdateAI().
|
inline |
Definition at line 1802 of file Unit.h.
Referenced by _AddAura(), Aura::CanBeAppliedOn(), and WorldObject::DestroyForNearbyPlayers().
|
inline |
Definition at line 1248 of file Unit.h.
References JUST_DIED.
Referenced by Creature::IsInvisibleDueToDespawn(), and SetHover().
|
inlinevirtual |
Reimplemented in Creature.
Definition at line 1140 of file Unit.h.
Referenced by ThreatManager::AddThreat(), AtTargetAttacked(), Spell::EffectDistract(), getAttackerForHelper(), debug_commandscript::HandleDebugThreatListCommand(), npc_daegarn::OnQuestAccept(), Spell::PreprocessSpellLaunch(), and Spell::TargetInfo::PreprocessTarget().
|
inline |
Definition at line 1141 of file Unit.h.
Referenced by Creature::_IsTargetAcceptable(), GuardAI::CanSeeAlways(), and npc_air_force_bots::npc_air_force_botsAI::UpdateAI().
| bool Unit::IsFalling | ( | ) | const |
Definition at line 12784 of file Unit.cpp.
References MovementInfo::HasMovementFlag(), Movement::MoveSpline::isFalling(), WorldObject::m_movementInfo, MOVEMENTFLAG_FALLING, MOVEMENTFLAG_FALLING_FAR, and movespline.
Referenced by spell_omor_the_unscarred_orbital_strike_whip::OnPeriodic(), Creature::RemoveCorpse(), lfg::LFGMgr::TeleportPlayer(), and Creature::UpdateMovementFlags().
|
inline |
Definition at line 1181 of file Unit.h.
References SPELL_AURA_MOD_FEAR.
Referenced by Trinity::FriendlyCCedInRange::operator()().
|
inline |
Definition at line 1003 of file Unit.h.
References UNIT_BYTE2_FLAG_FFA_PVP.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket(), WorldObject::GetReactionTo(), WorldSession::HandleRequestPartyMemberStatsOpcode(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), Player::RewardHonor(), and Player::UpdatePvPState().
|
inline |
Definition at line 1778 of file Unit.h.
References MOVEMENTFLAG_DISABLE_GRAVITY, and MOVEMENTFLAG_FLYING.
Referenced by ArcherAI::AttackStart(), Creature::CanFly(), Player::KillPlayer(), MotionMaster::MoveCirclePath(), npc_air_force_bots::npc_air_force_botsAI::MoveInLineOfSight(), spell_kaelthas_gravity_lapse_periodic::OnPeriodic(), Vehicle::RemovePassenger(), and Creature::setDeathState().
|
inline |
Definition at line 1184 of file Unit.h.
References AURA_STATE_FROZEN.
|
inline |
Definition at line 930 of file Unit.h.
Referenced by Spell::CheckItems(), AuraEffect::HandlePeriodicHealAurasTick(), and npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipHello().
| bool Unit::IsGhouled | ( | ) | const |
Definition at line 8663 of file Unit.cpp.
References HasAura(), and SPELL_DK_RAISE_ALLY.
Referenced by spell_dk_raise_ally_initial::CheckCast(), Player::StopCastingCharm(), and Player::Update().
|
inline |
Definition at line 1118 of file Unit.h.
References UNIT_NPC_FLAG_GOSSIP.
|
inline |
Definition at line 1231 of file Unit.h.
References MOVEMENTFLAG_DISABLE_GRAVITY.
Referenced by AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), SetDisableGravity(), and SetHover().
|
inline |
Definition at line 897 of file Unit.h.
References UNIT_MASK_GUARDIAN.
Referenced by Creature::AtDisengage(), Creature::AtEngage(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), RemoveCharmedBy(), Creature::UpdateEntry(), and UpdateStatBuffMod().
|
inline |
Definition at line 1120 of file Unit.h.
References UNIT_NPC_FLAG_PETITIONER.
| bool Unit::IsHighestExclusiveAura | ( | Aura const * | aura, |
| bool | removeOtherAuraApplications = false |
||
| ) |
Definition at line 13748 of file Unit.cpp.
References Aura::GetEffect(), Aura::GetEffectMask(), Aura::GetSpellInfo(), IsHighestExclusiveAuraEffect(), and MAX_SPELL_EFFECTS.
Referenced by _RemoveNoStackAurasDueToAura().
| bool Unit::IsHighestExclusiveAuraEffect | ( | SpellInfo const * | spellInfo, |
| AuraType | auraType, | ||
| int32 | effectAmount, | ||
| uint8 | auraEffectMask, | ||
| bool | removeOtherAuraApplications = false |
||
| ) |
Definition at line 13758 of file Unit.cpp.
References AuraEffect::GetAmount(), Aura::GetApplicationOfTarget(), GetAuraEffectsByType(), AuraEffect::GetBase(), Aura::GetEffectMask(), Object::GetGUID(), Aura::GetOwner(), AuraEffect::GetSpellInfo(), Aura::HasMoreThanOneEffectForType(), Aura::IsArea(), m_removedAurasCount, MAX_SPELL_EFFECTS, RemoveAura(), SPELL_GROUP_STACK_RULE_EXCLUSIVE_HIGHEST, and sSpellMgr.
Referenced by IsHighestExclusiveAura().
|
inline |
Definition at line 1233 of file Unit.h.
References MOVEMENTFLAG_HOVER.
Referenced by Creature::CanHover(), boss_sapphiron::Reset(), Creature::setDeathState(), SetDisableGravity(), SetHover(), and ChaseMovementGenerator::Update().
|
inline |
Definition at line 899 of file Unit.h.
References UNIT_MASK_HUNTER_PET.
Referenced by ClearAllReactives(), WorldSession::HandleStableSwapPet(), WorldSession::HandleUnstablePet(), Guardian::InitStatsForLevel(), Creature::LoadTemplateImmunities(), ProcSkillsAndReactives(), Creature::Regenerate(), Guardian::UpdateAttackPowerAndDamage(), Player::UpdateAttackPowerAndDamage(), Guardian::UpdateDamagePhysical(), UpdateReactives(), and UpdateSpeed().
| bool Unit::IsImmunedToDamage | ( | SpellInfo const * | spellInfo | ) | const |
Definition at line 7597 of file Unit.cpp.
References SpellInfo::CanPierceImmuneAura(), GetDamageImmunityMask(), SpellInfo::GetSchoolMask(), SpellInfo::HasAttribute(), IMMUNITY_SCHOOL, m_spellImmune, SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY, SPELL_ATTR1_UNAFFECTED_BY_SCHOOL_IMMUNE, SPELL_ATTR2_UNAFFECTED_BY_AURA_SCHOOL_IMMUNE, SPELL_ATTR3_IGNORE_HIT_RESULT, and sSpellMgr.
| bool Unit::IsImmunedToDamage | ( | SpellSchoolMask | meleeSchoolMask | ) | const |
Definition at line 7579 of file Unit.cpp.
References GetDamageImmunityMask(), GetSchoolImmunityMask(), and SPELL_SCHOOL_MASK_NONE.
Referenced by CalcAbsorbResist(), DealMeleeDamage(), Spell::TargetInfo::DoDamageAndTriggers(), Player::HandleFall(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), AuraEffect::HandleProcTriggerDamageAuraProc(), ThreatReference::ShouldBeSuppressed(), WorldObject::SpellHitResult(), and npc_darnavan::UpdateAI().
|
virtual |
Reimplemented in Creature.
Definition at line 7631 of file Unit.cpp.
References Trinity::IteratorPair< iterator, end_iterator >::begin(), SpellInfo::CanPierceImmuneAura(), SpellInfo::Dispel, Trinity::IteratorPair< iterator, end_iterator >::end(), SpellInfo::GetEffects(), SpellInfo::GetSchoolMask(), SpellInfo::HasAttribute(), SpellInfo::Id, IMMUNITY_DISPEL, IMMUNITY_ID, IMMUNITY_MECHANIC, IMMUNITY_SCHOOL, WorldObject::IsFriendlyTo(), IsImmunedToSpellEffect(), SpellInfo::IsPositive(), m_spellImmune, Trinity::Containers::MapEqualRange(), SpellInfo::Mechanic, SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY, SPELL_ATTR1_DISPEL_AURAS_ON_IMMUNITY, and sSpellMgr.
Referenced by AddAura(), Creature::IsImmunedToSpell(), Spell::PreprocessSpellHit(), and WorldObject::SpellHitResult().
|
virtual |
Reimplemented in Creature, Player, and Totem.
Definition at line 7751 of file Unit.cpp.
References SpellEffectInfo::ApplyAuraName, Trinity::IteratorPair< iterator, end_iterator >::begin(), SpellEffectInfo::Effect, SpellEffectInfo::EffectIndex, Trinity::IteratorPair< iterator, end_iterator >::end(), GetAuraEffectsByType(), SpellInfo::GetSchoolMask(), SpellInfo::HasAttribute(), IMMUNITY_EFFECT, IMMUNITY_MECHANIC, IMMUNITY_STATE, SpellEffectInfo::IsEffect(), WorldObject::IsFriendlyTo(), SpellInfo::IsPositiveEffect(), m_spellImmune, Trinity::Containers::MapEqualRange(), SpellEffectInfo::Mechanic, SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY, SPELL_ATTR2_UNAFFECTED_BY_AURA_SCHOOL_IMMUNE, SPELL_ATTR3_IGNORE_HIT_RESULT, and SPELL_AURA_MOD_IMMUNE_AURA_APPLY_SCHOOL.
Referenced by AddAura(), Spell::AddUnitTarget(), Spell::EffectWeaponDmg(), IsImmunedToSpell(), Creature::IsImmunedToSpellEffect(), and Player::IsImmunedToSpellEffect().
|
inline |
Definition at line 1154 of file Unit.h.
References UNIT_FLAG_IMMUNE_TO_NPC.
Referenced by CombatManager::InheritCombatStatesFrom(), WorldObject::IsValidAssistTarget(), and WorldObject::IsValidAttackTarget().
|
inline |
Definition at line 1151 of file Unit.h.
References UNIT_FLAG_IMMUNE_TO_PC.
Referenced by CombatManager::InheritCombatStatesFrom(), WorldObject::IsValidAssistTarget(), and WorldObject::IsValidAttackTarget().
| bool Unit::isInAccessiblePlaceFor | ( | Creature const * | c | ) | const |
Definition at line 3177 of file Unit.cpp.
References Creature::CanEnterWater(), Creature::CanFly(), Creature::CanWalk(), and IsInWater().
Referenced by EscortAI::AssistPlayerInCombatAgainst(), SmartAI::AssistPlayerInCombatAgainst(), Creature::CanCreatureAttack(), FindEligibleTarget(), FollowerAI::ShouldAssistPlayerInCombatAgainst(), and ChaseMovementGenerator::Update().
Definition at line 3172 of file Unit.cpp.
References Position::HasInArc(), WorldObject::IsWithinDistInMap(), and M_PI.
Referenced by npc_mageguard_dalaran::MoveInLineOfSight(), and npc_guardian_pavilion::MoveInLineOfSight().
|
inline |
Definition at line 1158 of file Unit.h.
References UNIT_FLAG_IN_COMBAT.
Referenced by boss_four_horsemen_lady::_UpdateAI(), boss_four_horsemen_sir::_UpdateAI(), Player::ActivateTaxiPathTo(), npc_anubisath_sentinel::aqsentinelAI::CallBuddiesToAttack(), Player::CanEquipItem(), Player::CanUnequipItem(), spell_hun_disengage::CheckCast(), Spell::CheckCast(), SpellInfo::CheckTarget(), boss_krik_thir::DoAction(), boss_algalon_the_observer::DoAction(), boss_hodir::DoAction(), npc_greyheart_spellbinder::DoAction(), boss_grand_warlock_nethekurse::DoAction(), npc_clintar_spirit::npc_clintar_spiritAI::EnterEvadeMode(), gunship_npc_AI::EnterEvadeMode(), Player::EquipItem(), ScriptedAI::ForceCombatStop(), Player::GetPowerRegen(), spell_apothecary_lingering_fumes::HandleAfterCast(), WorldSession::HandleBattlefieldLeaveOpcode(), WorldSession::HandleChatMessage(), debug_commandscript::HandleDebugCombatListCommand(), WorldSession::HandleEquipmentSetUse(), WorldSession::HandleLogoutRequestOpcode(), spell_dk_dancing_rune_weapon::HandleProc(), WorldSession::HandleSummonResponseOpcode(), tele_commandscript::HandleTeleCommand(), misc_commandscript::HandleUnstuckCommand(), WorldSession::HandleUseItemOpcode(), boss_twinemperorsAI::JustEngagedWith(), boss_prince_valanar_icc::JustSummoned(), boss_professor_putricide::JustSummoned(), boss_anubrekhan::JustSummoned(), boss_gothik::JustSummoned(), Pet::LoseHappiness(), boss_malygos::MoveInLineOfSight(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::MoveInLineOfSight(), CreatureAI::OnCharmed(), SmartAI::OnCharmed(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipHello(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipSelect(), icecrown_citadel_teleport::icecrown_citadel_teleportAI::OnGossipSelect(), at_frozen_throne_teleport::OnTrigger(), AreaTrigger_at_legion_teleporter::OnTrigger(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), LorKhanSelectTargetToHeal::operator()(), Trinity::MostHPMissingInRange::operator()(), Trinity::MostHPPercentMissingInRange::operator()(), Trinity::FriendlyBelowHpPctEntryInRange::operator()(), Trinity::FriendlyCCedInRange::operator()(), Trinity::FriendlyMissingBuffInRange::operator()(), Spell::PreprocessSpellHit(), Spell::TargetInfo::PreprocessTarget(), Creature::Regenerate(), Player::RegenerateAll(), Player::RegenerateHealth(), npc_swarm_scarab::Reset(), npc_nerubian_burrower::Reset(), spell_item_crazy_alchemists_potion::SecondaryEffect(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::SelectVictim(), SetFeared(), Player::SetRuneCooldown(), SetSpeedRateReal(), boss_the_lich_king::SpellHit(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), TempSummon::Update(), Map::Update(), npc_scarlet_courier::npc_scarlet_courierAI::UpdateAI(), npc_scarlet_trainee::UpdateAI(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::UpdateAI(), boss_mal_ganis::boss_mal_ganisAI::UpdateAI(), npc_andorov::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), npc_clintar_spirit::npc_clintar_spiritAI::UpdateAI(), npc_terenas_menethil::UpdateAI(), npc_risen_archmage::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), boss_sara::boss_saraAI::UpdateAI(), npc_yogg_saron_keeper::npc_yogg_saron_keeperAI::UpdateAI(), boss_taerar::boss_taerarAI::UpdateAI(), PassiveAI::UpdateAI(), PetAI::UpdateAI(), npc_scarlet_ghoul::UpdateAI(), Player::UpdateContestedPvP(), Creature::UpdateEntry(), npc_pet_mage_mirror_image::UpdateImageVictim(), InstanceScript::UpdateMinionState(), CombatManager::UpdateOwnerCombatState(), SmartAI::UpdatePath(), Player::UpdatePotionCooldown(), npc_pet_dk_rune_weapon::UpdateRuneWeaponVictim(), UpdateSpeed(), and CreatureAI::UpdateVictim().
|
inline |
Definition at line 1159 of file Unit.h.
References IsInCombatWith().
Referenced by npc_pet_dk_guardian::CanAIAttack(), npc_pet_dk_rune_weapon::CanAIAttack(), npc_pet_mage_mirror_image::CanAIAttack(), getAttackerForHelper(), IsInCombatWith(), and Trinity::NearestAttackableUnitInObjectRangeCheck::operator()().
| bool Unit::IsInDisallowedMountForm | ( | ) | const |
Definition at line 8915 of file Unit.cpp.
References CHRRACES_FLAGS_CAN_MOUNT, CREATURE_MODEL_DATA_FLAGS_CAN_MOUNT, CreatureDisplayInfoExtraEntry::DisplayRaceID, CreatureDisplayInfoEntry::ExtendedDisplayInfoID, SpellShapeshiftFormEntry::Flags, GetDisplayId(), GetNativeDisplayId(), GetShapeshiftForm(), GetTransformSpell(), ChrRacesEntry::HasFlag(), CreatureModelDataEntry::HasFlag(), CreatureDisplayInfoEntry::ModelID, sChrRacesStore, sCreatureDisplayInfoExtraStore, sCreatureDisplayInfoStore, sCreatureModelDataStore, SPELL_ATTR0_CASTABLE_WHILE_MOUNTED, sSpellMgr, and sSpellShapeshiftFormStore.
Referenced by Player::ActivateTaxiPathTo(), spell_dru_flight_form::CheckCast(), and Spell::CheckCast().
| bool Unit::IsInFeralForm | ( | ) | const |
Definition at line 8909 of file Unit.cpp.
References FORM_BEAR, FORM_CAT, FORM_DIREBEAR, and GetShapeshiftForm().
Referenced by Player::_ApplyWeaponDamage(), Player::CalculateMinMaxDamage(), Player::CastItemCombatSpell(), spell_dru_survival_instincts::CheckCast(), GetAPMultiplier(), Aura::GetProcEffectMask(), Player::GetWeaponForAttack(), GetWeaponSkillValue(), AuraEffect::HandleAuraModDisarm(), Player::IsUseEquipedWeapon(), Player::UpdateAttackPowerAndDamage(), and Player::UpdateWeaponSkill().
|
inline |
Definition at line 1133 of file Unit.h.
References UNIT_STATE_IN_FLIGHT.
Referenced by Player::CheckAreaExplore(), Spell::CheckCast(), CreatureUnitRelocationWorker(), go_commandscript::DoTeleport(), Spell::EffectJump(), Spell::EffectJumpDest(), Spell::EffectLeap(), Spell::EffectStuck(), Spell::EffectTeleportUnits(), Spell::EffectTeleUnitsFaceCaster(), Player::FinishTaxiFlight(), Player::GetGameObjectIfCanInteractWith(), Player::GetNPCIfCanInteractWith(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), misc_commandscript::HandleDismountCommand(), go_commandscript::HandleGoBossCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoInstanceCommand(), go_commandscript::HandleGoTicketCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleLogoutRequestOpcode(), WorldSession::HandleMovementOpcode(), WorldSession::HandleMoveWorldportAck(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), misc_commandscript::HandleUnstuckCommand(), WorldSession::HandleWorldTeleportOpcode(), Battlefield::InvitePlayerToWar(), Player::IsOutdoorPvPActive(), item_only_for_flight::OnUse(), and Player::ProcessTerrainStatusUpdate().
Definition at line 3167 of file Unit.cpp.
References Position::HasInArc(), and WorldObject::IsWithinDistInMap().
|
inline |
Definition at line 1123 of file Unit.h.
References UNIT_NPC_FLAG_INNKEEPER.
Referenced by npc_innkeeper::npc_innkeeperAI::OnGossipHello().
| bool Unit::IsInPartyWith | ( | Unit const * | unit | ) | const |
Definition at line 11844 of file Unit.cpp.
References CREATURE_TYPE_FLAG_TREAT_AS_RAID_UNIT, WorldObject::GetCharmerOrOwnerOrSelf(), Creature::GetCreatureTemplate(), GetFaction(), Object::GetTypeId(), Player::IsInSameGroupWith(), Object::ToCreature(), Object::ToPlayer(), CreatureTemplate::type_flags, TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by SpellInfo::CheckExplicitTarget(), SpellClickInfo::IsFitToRequirements(), Condition::Meets(), Trinity::AnyGroupedUnitInObjectRangeCheck::operator()(), and Trinity::WorldObjectSpellTargetCheck::operator()().
| bool Unit::IsInRaidWith | ( | Unit const * | unit | ) | const |
Definition at line 11863 of file Unit.cpp.
References CREATURE_TYPE_FLAG_TREAT_AS_RAID_UNIT, WorldObject::GetCharmerOrOwnerOrSelf(), Creature::GetCreatureTemplate(), GetFaction(), Object::GetTypeId(), Player::IsInSameRaidWith(), Object::ToCreature(), Object::ToPlayer(), CreatureTemplate::type_flags, TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by BuildValuesUpdate(), SpellInfo::CheckExplicitTarget(), spell_dru_t10_restoration_4p_bonus::FilterTargets(), WorldObject::GetReactionTo(), WorldSession::HandleLootMasterGiveOpcode(), SpellClickInfo::IsFitToRequirements(), Condition::Meets(), Trinity::AnyGroupedUnitInObjectRangeCheck::operator()(), RaidCheck::operator()(), and Trinity::WorldObjectSpellTargetCheck::operator()().
|
inline |
Definition at line 1001 of file Unit.h.
References UNIT_BYTE2_FLAG_SANCTUARY.
Referenced by WorldObject::IsValidAssistTarget(), and WorldObject::IsValidAttackTarget().
| bool Unit::IsInWater | ( | ) | const |
Definition at line 3185 of file Unit.cpp.
References WorldObject::GetLiquidStatus(), LIQUID_MAP_IN_WATER, and LIQUID_MAP_UNDER_WATER.
Referenced by Spell::CheckCast(), isInAccessiblePlaceFor(), ProcessTerrainStatusUpdate(), npc_iron_construct::npc_iron_constructAI::UpdateAI(), and Creature::UpdateMovementFlags().
|
inlinevirtual |
| bool Unit::IsMagnet | ( | ) | const |
Definition at line 6152 of file Unit.cpp.
References Object::GetUInt32Value(), and UNIT_CREATED_BY_SPELL.
Referenced by SpellInfo::CheckTargetCreatureType().
|
inline |
Definition at line 1027 of file Unit.h.
References UNIT_FLAG_MOUNT.
Referenced by Player::ActivateTaxiPathTo(), Attack(), Spell::CheckCast(), Spell::CheckEffectTarget(), Dismount(), GetCollisionHeight(), AuraEffect::HandleAuraTransform(), misc_commandscript::HandleDismountCommand(), spell_dru_starfall_dummy::HandleDummy(), spell_mount_check::HandleEffectPeriodic(), spell_gen_gryphon_wyvern_mount_check::HandleEffectPeriodic(), spell_gen_pony_mount_check::HandleEffectPeriodic(), Player::IsPetNeedBeTemporaryUnsummoned(), npc_thrall_old_hillsbrad::JustEngagedWith(), Player::SetBattlegroundEntryPoint(), SetStunned(), and UpdateSpeed().
|
inline |
Definition at line 1313 of file Unit.h.
Referenced by SendTeleportPacket(), SetCanFly(), SetDisableGravity(), SetFeatherFall(), SetHover(), SetRooted(), SetSpeedRate(), SetWaterWalking(), Player::TeleportTo(), and Creature::UpdateMovementFlags().
|
inline |
Definition at line 1314 of file Unit.h.
Referenced by KnockbackFrom().
|
virtual |
Reimplemented in Creature.
Definition at line 3146 of file Unit.cpp.
References CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, HasUnitState(), m_currentSpells, SPELL_INTERRUPT_FLAG_MOVEMENT, SPELL_STATE_FINISHED, and UNIT_STATE_CASTING.
Referenced by Creature::IsMovementPreventedByCasting(), ChaseMovementGenerator::Update(), and FollowMovementGenerator::Update().
|
inline |
Definition at line 1775 of file Unit.h.
References MOVEMENTFLAG_MASK_MOVING.
Referenced by _UpdateAutoRepeatSpell(), PartyTimeEmoteEvent::Execute(), Spell::GetMinMaxRange(), spell_ahune_slippery_floor_periodic::HandleScript(), npc_jena_anderson::npc_jena_andersonAI::InitializeAI(), spell_hodir_biting_cold_area_aura::OnPeriodic(), SpellTargetSelector::operator()(), Spell::prepare(), Spell::update(), and boss_onyxia::UpdateAI().
| bool Unit::IsNonMeleeSpellCast | ( | bool | withDelayed, |
| bool | skipChanneled = false, |
||
| bool | skipAutorepeat = false, |
||
| bool | isAutoshoot = false, |
||
| bool | skipInstant = true |
||
| ) | const |
Definition at line 3086 of file Unit.cpp.
References CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, m_currentSpells, SPELL_ATTR2_NOT_RESET_AUTO_ACTIONS, SPELL_STATE_DELAYED, and SPELL_STATE_FINISHED.
Referenced by _UpdateAutoRepeatSpell(), Player::ActivateTalentGroup(), Player::ActivateTaxiPathTo(), Player::CanEquipItem(), boss_twinemperorsAI::CheckEnrage(), CombatStop(), boss_high_inquisitor_fairbanks::DamageTaken(), ScriptedAI::DoCastSpell(), boss_malchezaar::boss_malchezaarAI::DoMeleeAttacksIfReady(), Spell::finish(), WorldSession::HandleCancelCastOpcode(), MeleeSpellHitResult(), Spell::prepare(), SmartScript::ProcessEvent(), RollMeleeOutcomeAgainst(), setDeathState(), boss_shade_of_aran::boss_aranAI::SpellHit(), StopAttackFaction(), Player::TeleportTo(), TotemAI::UpdateAI(), boss_netherspite::boss_netherspiteAI::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_felmyst::UpdateAI(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), hyjalAI::UpdateAI(), boss_onyxia::UpdateAI(), npc_putricide_oozeAI::UpdateAI(), and boss_ionar::UpdateAI().
| bool Unit::IsOnVehicle | ( | Unit const * | vehicle | ) | const |
Definition at line 11792 of file Unit.cpp.
References GetVehicleKit(), and m_vehicle.
Referenced by _EnterVehicle(), Creature::_IsTargetAcceptable(), WorldSession::HandleEjectPassenger(), WorldObject::IsValidAssistTarget(), Condition::Meets(), RemoveCharmedBy(), and Spell::SelectImplicitTrajTargets().
|
inline |
Definition at line 898 of file Unit.h.
References UNIT_MASK_PET.
Referenced by Creature::AllLootRemovedFromCorpse(), Creature::AtDisengage(), Creature::AtEngage(), BeforeVisibilityDestroy< Creature >(), Creature::CallAssistance(), Creature::CallForHelp(), Creature::CanGiveExperience(), ThreatManager::CanHaveThreatList(), Creature::CanSwim(), spell_warl_demonic_pact::CheckProc(), hyjal_trashAI::DamageTaken(), spell_hun_masters_call::DoCheckCast(), Spell::EffectDismissPet(), Spell::EffectRenamePet(), Spell::EffectSchoolDMG(), Spell::EffectTameCreature(), Creature::GetAggroRange(), getAttackerForHelper(), GetCastingTimeForBonus(), GetCombatRatingReduction(), GetCreatePowerValue(), GetNextRandomRaidMemberOrPet(), WorldObject::GetSpellModOwner(), AuraEffect::HandleAuraModBaseResistancePCT(), AuraEffect::HandleAuraModResistance(), AuraEffect::HandleAuraModResistanceExclusive(), AuraEffect::HandleAuraModStat(), spell_buru_egg_explosion::HandleDummy(), AuraEffect::HandleModBaseResistance(), modify_commandscript::HandleModifyTalentCommand(), AuraEffect::HandleModPossessPet(), AuraEffect::HandleModResistancePercent(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcDeleteCommand(), npc_commandscript::HandleNpcEvadeCommand(), npc_commandscript::HandleNpcSetLevelCommand(), npc_commandscript::HandleNpcSetModelCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetPhaseCommand(), npc_commandscript::HandleNpcShowLootCommand(), npc_commandscript::HandleNpcTameCommand(), WorldSession::HandlePetActionHelper(), pet_commandscript::HandlePetCreateCommand(), WorldSession::HandlePetRename(), reset_commandscript::HandleResetTalentsCommand(), misc_commandscript::HandleRespawnCommand(), Creature::InitEntry(), TempSummon::InitStats(), Guardian::InitStatsForLevel(), DisableMgr::IsDisabledFor(), Creature::isElite(), Minion::IsGuardianPet(), Creature::isWorldBoss(), Kill(), Map::MoveAllCreaturesInMoveList(), Trinity::MostHPMissingGroupInRange::operator()(), ProcSkillsAndReactives(), PetAI::ReceiveEmote(), Creature::ReleaseSpellFocus(), RemoveAllControlled(), RollMeleeOutcomeAgainst(), FactorySelector::SelectAI(), WorldSession::SendQueryPetNameResponse(), Spell::SendSpellGo(), Spell::SendSpellStart(), Creature::setDeathState(), Creature::SetDisplayId(), SetMinion(), Creature::SetObjectScale(), SpellDamagePctDone(), TempSummon::UnSummon(), ChaseMovementGenerator::Update(), boss_vaelastrasz::UpdateAI(), Guardian::UpdateArmor(), Guardian::UpdateAttackPowerAndDamage(), UpdateAuraForGroup(), Creature::UpdateLevelDependantStats(), UpdatePetCombatState(), Guardian::UpdateResistances(), Guardian::UpdateStats(), and ObjectGridEvacuator::Visit().
| bool Unit::IsPolymorphed | ( | ) | const |
Definition at line 10354 of file Unit.cpp.
References SpellInfo::GetSpellSpecific(), GetTransformSpell(), SPELL_SPECIFIC_MAGE_POLYMORPH, and sSpellMgr.
Referenced by AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraTransform(), Player::RegenerateAll(), Creature::RegenerateHealth(), Player::RegenerateHealth(), and Creature::Update().
|
inline |
Definition at line 1295 of file Unit.h.
References UNIT_STATE_POSSESSED.
Referenced by WorldSession::HandlePetActionHelper(), PetAI::HandleReturnMovement(), isPossessing(), SmartAI::OnCharmed(), Pet::Update(), Player::Update(), and UpdateCharmAI().
| bool Unit::isPossessedByPlayer | ( | ) | const |
Definition at line 6220 of file Unit.cpp.
References GetCharmerGUID(), HasUnitState(), ObjectGuid::IsPlayer(), and UNIT_STATE_POSSESSED.
Referenced by PetAI::OnCharmed(), and npc_dk_understudy::UpdateAI().
| bool Unit::isPossessing | ( | ) | const |
Definition at line 6230 of file Unit.cpp.
References GetCharmed().
Referenced by misc_commandscript::HandleUnbindSightCommand().
| bool Unit::isPossessing | ( | Unit * | u | ) | const |
Definition at line 6225 of file Unit.cpp.
References GetCharmedGUID(), Object::GetGUID(), and isPossessed().
|
inline |
Definition at line 1002 of file Unit.h.
References UNIT_BYTE2_FLAG_PVP.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket(), Player::DuelComplete(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleRequestPartyMemberStatsOpcode(), Player::IsOutdoorPvPActive(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), Spell::TargetInfo::PreprocessTarget(), Player::UpdatePvPFlag(), and Player::UpdatePvPState().
|
inline |
Definition at line 1117 of file Unit.h.
References UNIT_NPC_FLAG_QUESTGIVER.
Referenced by npc_lokhtos_darkbargainer::npc_lokhtos_darkbargainerAI::OnGossipHello(), npc_koltira_deathweaver::OnGossipHello(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::OnGossipHello(), npc_chromie_start::npc_chromie_startAI::OnGossipHello(), npc_chromie_middle::npc_chromie_middleAI::OnGossipHello(), npc_erozion::OnGossipHello(), npc_thrall_old_hillsbrad::OnGossipHello(), npc_thrall_warchief::npc_thrall_warchiefAI::OnGossipHello(), npc_brann_hos::OnGossipHello(), npc_wg_demolisher_engineer::OnGossipHello(), npc_wg_spirit_guide::OnGossipHello(), npc_wg_queue::OnGossipHello(), npc_innkeeper::npc_innkeeperAI::OnGossipHello(), npc_prof_blacksmith::npc_prof_blacksmithAI::OnGossipHello(), npc_prof_leather::npc_prof_leatherAI::OnGossipHello(), npc_prof_tailor::npc_prof_tailorAI::OnGossipHello(), and npc_prof_alchemy::npc_prof_alchemyAI::OnGossipHello().
|
inline |
Definition at line 1182 of file Unit.h.
References SPELL_AURA_MOD_ROOT.
Referenced by Creature::LoadTemplateRoot(), Trinity::FriendlyCCedInRange::operator()(), SetControlled(), SetDisableGravity(), and SetHover().
| AuraEffect * Unit::IsScriptOverriden | ( | SpellInfo const * | spell, |
| int32 | script | ||
| ) | const |
Definition at line 4662 of file Unit.cpp.
References GetAuraEffectsByType(), and SPELL_AURA_OVERRIDE_CLASS_SCRIPTS.
Referenced by Spell::CheckCast(), Spell::EffectWeaponDmg(), and AuraEffect::HandleAuraModShapeshift().
| bool Unit::IsServiceProvider | ( | ) | const |
Definition at line 8223 of file Unit.cpp.
References HasNpcFlag(), UNIT_NPC_FLAG_AUCTIONEER, UNIT_NPC_FLAG_BANKER, UNIT_NPC_FLAG_BATTLEMASTER, UNIT_NPC_FLAG_FLIGHTMASTER, UNIT_NPC_FLAG_INNKEEPER, UNIT_NPC_FLAG_PETITIONER, UNIT_NPC_FLAG_SPIRITGUIDE, UNIT_NPC_FLAG_SPIRITHEALER, UNIT_NPC_FLAG_TABARDDESIGNER, UNIT_NPC_FLAG_TRAINER, and UNIT_NPC_FLAG_VENDOR.
| bool Unit::IsSitState | ( | ) | const |
Definition at line 10325 of file Unit.cpp.
References GetStandState(), UNIT_STAND_STATE_SIT, UNIT_STAND_STATE_SIT_CHAIR, UNIT_STAND_STATE_SIT_HIGH_CHAIR, UNIT_STAND_STATE_SIT_LOW_CHAIR, and UNIT_STAND_STATE_SIT_MEDIUM_CHAIR.
Referenced by WorldSession::HandleMovementOpcode(), and IsStandState().
|
inline |
Definition at line 1125 of file Unit.h.
References UNIT_NPC_FLAG_SPIRITGUIDE.
Referenced by Creature::Create(), WorldSession::HandleGossipHelloOpcode(), and Creature::UpdateEntry().
|
inline |
Definition at line 1124 of file Unit.h.
References UNIT_NPC_FLAG_SPIRITHEALER.
Referenced by Creature::Create(), and Spell::SendResurrectRequest().
|
inline |
Definition at line 1130 of file Unit.h.
References UNIT_NPC_FLAG_SPIRITGUIDE, and UNIT_NPC_FLAG_SPIRITHEALER.
Referenced by WorldSession::HandleAreaSpiritHealerQueryOpcode(), WorldSession::HandleAreaSpiritHealerQueueOpcode(), and Creature::InitializeReactState().
| bool Unit::IsSplineEnabled | ( | ) | const |
Definition at line 13540 of file Unit.cpp.
References Movement::MoveSpline::Finalized(), Movement::MoveSpline::Initialized(), and movespline.
| bool Unit::IsStandState | ( | ) | const |
Definition at line 10334 of file Unit.cpp.
References GetStandState(), IsSitState(), UNIT_STAND_STATE_KNEEL, and UNIT_STAND_STATE_SLEEP.
Referenced by Spell::TargetInfo::DoDamageAndTriggers(), WorldSession::HandlePlayerLogin(), AuraEffect::HandleSpiritOfRedemption(), DistractMovementGenerator::Initialize(), Player::RegenerateHealth(), RollMeleeOutcomeAgainst(), and npc_wounded_skirmisher::SpellHit().
|
inline |
Definition at line 1687 of file Unit.h.
References UNIT_STATE_MOVING.
Referenced by SetFacingTo(), SetFacingToObject(), and SimpleCharmedPlayerAI::UpdateAI().
|
inline |
Definition at line 896 of file Unit.h.
References UNIT_MASK_SUMMON.
Referenced by spell_item_unsated_craving::CheckProc(), npc_tiger_matriarch::DamageTaken(), Spell::EffectScriptEffect(), boss_skeram::boss_skeramAI::EnterEvadeMode(), npc_marzon_silent_blade::npc_marzon_silent_bladeAI::EnterEvadeMode(), Spell::finish(), GetAllMinionsByEntry(), WorldSession::HandleDismissCritter(), spell_assembly_rune_of_summoning::spell_assembly_rune_of_summoning_AuraScript::HandlePeriodic(), spell_pri_lightwell::HandleScriptEffect(), npc_steamrigger_mechanic::InitializeAI(), TempSummon::InitStats(), SpellClickInfo::IsFitToRequirements(), boss_grubbis::boss_grubbisAI::JustDied(), npc_blackfathom_deeps_event::JustDied(), boss_skeram::boss_skeramAI::JustDied(), npc_marzon_silent_blade::npc_marzon_silent_bladeAI::JustEngagedWith(), npc_tiger_matriarch::KilledUnit(), npc_marzon_silent_blade::npc_marzon_silent_bladeAI::MovementInform(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), RemoveAllControlled(), RemoveAllMinionsByEntry(), Creature::SaveRespawnTime(), Creature::SearchFormation(), Creature::SelectVictim(), boss_grubbis::boss_grubbisAI::SetDataSummoner(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), boss_skeram::boss_skeramAI::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), and Player::VehicleSpellInitialize().
|
inline |
Definition at line 1126 of file Unit.h.
References UNIT_NPC_FLAG_TABARDDESIGNER.
Referenced by WorldSession::HandlePetitionBuyOpcode(), and WorldSession::SendPetitionShowList().
| bool Unit::isTargetableForAttack | ( | bool | checkFakeDeath = true | ) | const |
Definition at line 8307 of file Unit.cpp.
References Object::GetTypeId(), HasUnitFlag(), HasUnitState(), IsAlive(), Object::ToPlayer(), TYPEID_PLAYER, UNIT_FLAG_NON_ATTACKABLE, UNIT_FLAG_UNINTERACTIBLE, UNIT_STATE_DIED, and UNIT_STATE_UNATTACKABLE.
Referenced by Creature::_IsTargetAcceptable(), boss_veklor::boss_veklorAI::AttackStart(), Player::IsImmuneToEnvironmentalDamage(), Trinity::NearestAttackableNoTotemUnitInObjectRangeCheck::operator()(), Trinity::NearestAttackableUnitInObjectRangeCheck::operator()(), NecroticPlagueTargetCheck::operator()(), and TotemAI::UpdateAI().
|
inline |
Definition at line 1119 of file Unit.h.
References UNIT_NPC_FLAG_FLIGHTMASTER.
| bool Unit::IsThreatened | ( | ) | const |
Definition at line 8302 of file Unit.cpp.
References ThreatManager::IsThreatListEmpty(), and m_threatManager.
Referenced by boss_noth::EnterPhaseGround().
|
inline |
Definition at line 1165 of file Unit.h.
References IsThreatenedBy().
Referenced by IsThreatenedBy().
|
inline |
Definition at line 900 of file Unit.h.
References UNIT_MASK_TOTEM.
Referenced by _UnapplyAura(), Creature::CanGiveExperience(), ThreatManager::CanHaveThreatList(), DealHeal(), Spell::EffectDestroyAllTotems(), Spell::EffectSummonPet(), Spell::EffectSummonType(), Spell::EffectTaunt(), WorldObject::GetSpellModOwner(), GetUnitBlockChance(), GetUnitDodgeChance(), GetUnitParryChance(), npc_commandscript::HandleNpcDeleteCommand(), spell_sha_stoneclaw_totem::HandleScriptEffect(), WorldSession::HandleTotemDestroyed(), Creature::InitializeReactState(), npc_maghar_captive::npc_maghar_captiveAI::JustSummoned(), npc_kurenai_captive::npc_kurenai_captiveAI::JustSummoned(), Kill(), Trinity::NearestAttackableNoTotemUnitInObjectRangeCheck::operator()(), Trinity::AnyAoETargetUnitInObjectRangeCheck::operator()(), Trinity::WorldObjectSpellTargetCheck::operator()(), TotemAI::Permissible(), ProcSkillsAndReactives(), SetMinion(), SpellDamageBonusDone(), SpellDamagePctDone(), SpellHealingBonusDone(), SpellHealingPctDone(), Spell::SummonGuardian(), and TotemAI::TotemAI().
|
inline |
Definition at line 1116 of file Unit.h.
References UNIT_NPC_FLAG_TRAINER.
Referenced by npc_prof_blacksmith::npc_prof_blacksmithAI::OnGossipHello(), npc_prof_leather::npc_prof_leatherAI::OnGossipHello(), npc_prof_tailor::npc_prof_tailorAI::OnGossipHello(), and npc_prof_alchemy::npc_prof_alchemyAI::OnGossipHello().
|
inline |
Definition at line 1776 of file Unit.h.
References MOVEMENTFLAG_MASK_TURNING.
| bool Unit::IsUnderLastManaUseEffect | ( | ) | const |
Definition at line 10822 of file Unit.cpp.
References GameTime::GetGameTimeMS(), getMSTimeDiff(), and m_lastManaUse.
Referenced by Player::GetPowerRegen(), and Creature::Regenerate().
| bool Unit::IsUnderWater | ( | ) | const |
Definition at line 3190 of file Unit.cpp.
References WorldObject::GetLiquidStatus(), and LIQUID_MAP_UNDER_WATER.
Referenced by Creature::setDeathState().
|
inline |
Definition at line 901 of file Unit.h.
References UNIT_MASK_VEHICLE.
Referenced by Creature::AddToWorld(), ApplyResilience(), CanApplyResilience(), CleanupBeforeRemoveFromMap(), Map::CreatureRelocation(), DealDamage(), DealMeleeDamage(), HomeMovementGenerator< T >::DoFinalize(), Spell::EffectSummonType(), npc_daegarn::EnterEvadeMode(), SmartScript::GetTargets(), AuraEffect::HandleAuraControlVehicle(), spell_icecrown_jump_jets::HandleCast(), debug_commandscript::HandleDebugEnterVehicleCommand(), spell_icecrown_illidan_kill_credit_master::HandleDummy(), spell_icecrown_plant_battle_standard::HandleDummy(), BattlegroundIC::HandleKillUnit(), WorldSession::HandlePetActionHelper(), spell_zuldrak_gymers_throw::HandleScript(), spell_putricide_mutated_transformation::HandleSummon(), TempSummon::InitStats(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustDied(), KillRewarder::KillRewarder(), spell_igb_overheat::Load(), Map::MoveAllCreaturesInMoveList(), npc_salanar_the_horseman::npc_salanar_the_horsemanAI::MoveInLineOfSight(), npc_thorims_hammer::npc_thorims_hammerAI::MoveInLineOfSight(), npc_hodirs_fury::npc_hodirs_furyAI::MoveInLineOfSight(), SmartAI::OnCharmed(), BattlefieldWG::OnUnitDeath(), OutDebugInfo(), VehicleAI::Permissible(), Map::PlayerRelocation(), RemoveCharmedBy(), RemoveFromWorld(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), Creature::SetLootRecipient(), GameObject::SetLootRecipient(), boss_ioc_horde_alliance::SpellHit(), Player::StopCastingCharm(), UpdateCharmAI(), Creature::UpdateEntry(), UpdateHeight(), and UpdateOrientation().
|
inline |
Definition at line 1115 of file Unit.h.
References UNIT_NPC_FLAG_VENDOR.
Referenced by npc_commandscript::HandleNpcDeleteVendorItemCommand(), npc_lokhtos_darkbargainer::npc_lokhtos_darkbargainerAI::OnGossipHello(), npc_innkeeper::npc_innkeeperAI::OnGossipHello(), npc_prof_blacksmith::npc_prof_blacksmithAI::OnGossipHello(), npc_prof_leather::npc_prof_leatherAI::OnGossipHello(), npc_prof_tailor::npc_prof_tailorAI::OnGossipHello(), and npc_prof_alchemy::npc_prof_alchemyAI::OnGossipHello().
| bool Unit::IsVisible | ( | ) | const |
Definition at line 8448 of file Unit.cpp.
References FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::GetValue(), WorldObject::m_serverSideVisibility, SEC_PLAYER, and SERVERSIDE_VISIBILITY_GM.
Referenced by SpellInfo::CheckTarget(), boss_ionar::DamageTaken(), AuraEffect::HandlePhase(), Player::IsVisibleGloballyFor(), Trinity::AllFriendlyCreaturesInGrid::operator()(), boss_ionar::Reset(), npc_big_ooze::UpdateAI(), and boss_ionar::UpdateAI().
|
inline |
Definition at line 1232 of file Unit.h.
References MOVEMENTFLAG_WALKING.
Referenced by Spell::GetMinMaxRange(), SpellTargetSelector::operator()(), SetCharm(), RandomMovementGenerator< T >::SetRandomLocation(), SetWalk(), ChaseMovementGenerator::Update(), and FollowMovementGenerator::Update().
| bool Unit::IsWithinCombatRange | ( | Unit const * | obj, |
| float | dist2compare | ||
| ) | const |
Definition at line 611 of file Unit.cpp.
References GetCombatReach(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), WorldObject::InSamePhase(), and WorldObject::IsInMap().
Referenced by ArcherAI::AttackStart(), TurretAI::CanAIAttack(), boss_flame_leviathan::boss_flame_leviathanAI::DoBatteringRamIfReady(), UnitAI::DoSpellAttackIfReady(), SmartScript::GetTargets(), DefaultTargetSelector::operator()(), PowerUsersSelector::operator()(), FarthestTargetSelector::operator()(), npc_twisted_visage::SetData(), and ArcherAI::UpdateAI().
|
inline |
Definition at line 858 of file Unit.h.
Referenced by boss_supremus::CalculateHatefulStrikeTarget(), boss_thaddius::CanAIAttack(), PetAI::CanAttack(), UnitAI::DoMeleeAttackIfReady(), boss_malchezaar::boss_malchezaarAI::DoMeleeAttacksIfReady(), boss_nexusprince_shaffar::ExecuteEvent(), npc_shadow_image::JustEngagedWith(), npc_angered_soul_fragment::JustEngagedWith(), npc_guard_generic::JustEngagedWith(), ThreatManager::ReselectVictim(), npc_scrapbot::Reset(), npc_boombot::Reset(), npc_shadow_demon::Reset(), SimpleCharmedPlayerAI::SelectAppropriateCastForSpec(), Player::Update(), boss_ragnaros::UpdateAI(), npc_sinster_reflection::npc_sinster_reflectionAI::UpdateAI(), boss_venoxis::UpdateAI(), boss_archimonde::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), boss_skeram::boss_skeramAI::UpdateAI(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::UpdateAI(), boss_bronjahm::UpdateAI(), npc_high_overlord_saurfang_igb::UpdateAI(), npc_muradin_bronzebeard_igb::UpdateAI(), npc_darnavan::UpdateAI(), npc_blazing_skeleton::UpdateAI(), boss_noth::UpdateAI(), boss_thaddius::UpdateAI(), boss_steelbreaker::boss_steelbreakerAI::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), boss_kologarn::boss_kologarnAI::UpdateAI(), boss_murmur::UpdateAI(), npc_maiev::UpdateAI(), boss_doom_lord_kazzak::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_omor_the_unscarred::UpdateAI(), boss_alar::UpdateAI(), PetAI::UpdateAI(), and npc_scarlet_ghoul::UpdateAI().
Definition at line 627 of file Unit.cpp.
References GetMeleeRange(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), WorldObject::InSamePhase(), and WorldObject::IsInMap().
| void Unit::JumpTo | ( | float | speedXY, |
| float | speedZ, | ||
| bool | forward = true, |
||
| Optional< Position > | dest = {} |
||
| ) |
Definition at line 12425 of file Unit.cpp.
References GetMotionMaster(), Position::GetOrientation(), Position::GetRelativeAngle(), Object::GetTypeId(), M_PI, MotionMaster::MoveJumpTo(), SendMoveKnockBack(), Object::ToPlayer(), and TYPEID_UNIT.
Referenced by Spell::EffectLeapBack(), Spell::EffectPullTowards(), and Spell::EffectPullTowardsDest().
| void Unit::JumpTo | ( | WorldObject * | obj, |
| float | speedZ, | ||
| bool | withOrientation = false |
||
| ) |
Definition at line 12441 of file Unit.cpp.
References EVENT_JUMP, Position::GetAbsoluteAngle(), WorldObject::GetContactPoint(), Position::GetExactDist2d(), GetMotionMaster(), and MotionMaster::MoveJump().
Definition at line 10901 of file Unit.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_GET_KILLING_BLOWS, ACHIEVEMENT_CRITERIA_TYPE_KILLED_BY_CREATURE, ACHIEVEMENT_CRITERIA_TYPE_KILLED_BY_PLAYER, Creature::AI(), Creature::AllLootRemovedFromCorpse(), ASSERT_NODEBUGINFO, Group::BroadcastPacket(), WorldObject::CastSpell(), Loot::clear(), CONFIG_DURABILITY_LOSS_IN_PVP, CREATURE_FLAG_EXTRA_INSTANCE_BIND, DUEL_INTERRUPTED, Loot::empty(), Loot::FillLoot(), ObjectAccessor::FindPlayer(), CreatureTemplate::flags_extra, Loot::generateMoneyLoot(), GetAuraEffect(), Player::GetBattleground(), WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), Creature::GetCreatureTemplate(), Pet::GetDebugInfo(), Object::GetEntry(), GameTime::GetGameTime(), Player::GetGroup(), Object::GetGUID(), GetHealth(), WorldObject::GetInstanceId(), Group::GetLooterGuid(), Creature::GetLootMode(), Creature::GetLootRecipient(), Creature::GetLootRecipientGroup(), WorldObject::GetMap(), Group::GetMemberGroup(), Player::GetOutdoorPvP(), WorldObject::GetOwner(), GetOwnerGUID(), Player::GetPet(), Player::GetResurrectionSpellId(), Player::GetTeam(), Object::GetTypeId(), Object::GetUInt32Value(), WorldObject::GetZoneId(), HOUR, Player::InBattleground(), IsAIEnabled(), IsAlive(), Pet::isControlled(), IsCritter(), Creature::IsDamageEnoughForLootingAndReward(), Map::IsDungeon(), ObjectGuid::IsEmpty(), WorldObject::IsInMap(), Loot::isLooted(), IsPet(), ObjectGuid::IsPlayer(), Map::IsRaidOrHeroicDungeon(), IsTotem(), JUST_DIED, CreatureAI::KilledUnit(), Creature::loot, CreatureTemplate::lootid, LootTemplates_Creature, CreatureTemplate::maxgold, CreatureTemplate::mingold, InstanceMap::PermBindAllPlayers(), PLAYER_SELF_RES_SPELL, PROC_FLAG_DEATH, PROC_FLAG_KILL, PROC_FLAG_KILLED, PROC_FLAG_NONE, PROC_HIT_NONE, PROC_SPELL_PHASE_NONE, PROC_SPELL_TYPE_MASK_ALL, ProcSkillsAndAuras(), RATE_DURABILITY_LOSS_ON_DEATH, RemoveAllAurasOnDeath(), Player::RewardPlayerAndGroupAtKill(), sBattlefieldMgr, Player::SendDirectMessage(), Group::SendLooter(), Player::SendMessageToSet(), setDeathState(), Object::SetDynamicFlag(), Creature::SetLootRecipient(), Object::SetUInt32Value(), sInstanceSaveMgr, SMSG_LOOT_LIST, SMSG_PARTYKILLLOG, SPELL_AURA_DUMMY, SPELLFAMILY_PRIEST, sScriptMgr, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, Object::ToCreature(), Map::ToInstanceMap(), Object::ToPlayer(), ToTempSummon(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_DYNFLAG_LOOTABLE, Player::UpdateAchievementCriteria(), and Group::UpdateLooterGuid().
Referenced by DealDamage(), AuraEffect::HandleAuraControlVehicle(), misc_commandscript::HandleDieCommand(), spell_stratholme_crusader_strike::HandleDummy(), spell_yogg_saron_titanic_storm::spell_yogg_saron_titanic_storm_SpellScript::HandleScript(), IsEncounterFinished(), npc_glob_of_viscidus::npc_glob_of_viscidusAI::JustDied(), boss_yogg_saron::boss_yogg_saronAI::JustDied(), npc_baltharus_the_warborn_clone::JustDied(), boss_twilight_halion::JustDied(), boss_drakkari_elemental::JustDied(), boss_blood_council_controller::JustDied(), KillSelf(), boss_onyxia::MovementInform(), boss_shattered_executioner::SetData(), boss_valithria_dreamwalker::SpellHit(), boss_ioc_horde_alliance::SpellHit(), boss_sathrovarr::SpellHit(), boss_faerlina::SpellHit(), boss_sister_svalna::SpellHitTarget(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::Update(), and npc_emily::WaypointReached().
|
inline |
Definition at line 1037 of file Unit.h.
References Kill().
Referenced by boss_malchezaar::boss_malchezaarAI::AxesCleanup(), npc_stalagg::DoAction(), npc_feugen::DoAction(), npc_vrykul_skeleton::DoAction(), boss_reliquary_of_souls::DoAction(), npc_reliquary_combat_trigger::DoAction(), npc_raging_flames::EnterEvadeMode(), spell_ooze_zap_channel_end::HandleDummy(), spell_headless_horseman_head_is_dead::HandleDummy(), spell_sholazar_shoot_rjr::HandleDummy(), npc_enslaved_soul::HandleSoulRelease(), npc_shadow_image::JustAppeared(), boss_kalecgos::MovementInform(), npc_wild_wyrm::MovementInform(), spell_yogg_saron_insane::spell_yogg_saron_insane_AuraScript::OnRemove(), spell_teron_gorefiend_spiritual_vengeance::OnRemove(), SmartScript::ProcessAction(), npc_vengeful_shade::Reset(), npc_twilight_eggs::SpawnWhelps(), npc_vengeful_shade::SpellHitTarget(), SimpleCharmedPlayerAI::UpdateAI(), boss_selin_fireheart::UpdateAI(), npc_restless_soul::npc_restless_soulAI::UpdateAI(), npc_spectral_ghostly_citizen::npc_spectral_ghostly_citizenAI::UpdateAI(), npc_volatile_felfire_fiend::npc_volatile_felfire_fiendAI::UpdateAI(), npc_eye_tentacle::eye_tentacleAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), and npc_twilight_fissure::UpdateAI().
| void Unit::KnockbackFrom | ( | float | x, |
| float | y, | ||
| float | speedXY, | ||
| float | speedZ | ||
| ) |
Definition at line 12175 of file Unit.cpp.
References GetGameClientMovingMe(), GetMotionMaster(), Position::GetSinCos(), HasAuraType(), IsMovedByServer(), MotionMaster::MoveKnockbackFrom(), SendMoveKnockBack(), SetCanFly(), SPELL_AURA_FLY, and SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED.
Referenced by Spell::EffectKnockBack(), and spell_warhead_detonate::HandleDummy().
| uint32 Unit::MeleeDamageBonusDone | ( | Unit * | pVictim, |
| uint32 | damage, | ||
| WeaponAttackType | attType, | ||
| SpellInfo const * | spellProto = nullptr, |
||
| SpellSchoolMask | damageSchoolMask = SPELL_SCHOOL_MASK_NORMAL |
||
| ) |
Definition at line 7811 of file Unit.cpp.
References AddPct(), AURA_STATE_HEALTHLESS_35_PERCENT, AuraEffect::GetAmount(), GetAPMultiplier(), GetAuraEffect(), GetAuraEffectsByType(), GetCreatureTypeMask(), GetDiseasesByCaster(), GetDummyAuraEffect(), Object::GetFloatValue(), Object::GetGUID(), AuraEffect::GetMiscValue(), WorldObject::GetOwner(), SpellInfo::GetSchoolMask(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), GetTotalAuraModifierByMiscValue(), GetTotalAuraMultiplier(), GetTotalAuraMultiplierByMiscMask(), Object::GetTypeId(), SpellInfo::HasAttribute(), HasAura(), HasAuraState(), SpellInfo::HasEffect(), HealthAbovePct(), MAX_SPELL_SCHOOL, SpellInfo::Mechanic, PLAYER_FIELD_MOD_DAMAGE_DONE_PCT, RANGED_ATTACK, SPELL_ATTR6_LIMIT_PCT_DAMAGE_MODS, SPELL_AURA_MELEE_ATTACK_POWER_ATTACKER_BONUS, SPELL_AURA_MOD_DAMAGE_DONE_CREATURE, 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_MELEE_ATTACK_POWER_VERSUS, SPELL_AURA_MOD_RANGED_ATTACK_POWER_VERSUS, SPELL_AURA_MOD_STALKED, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_AURA_PERIODIC_DAMAGE, SPELL_AURA_RANGED_ATTACK_POWER_ATTACKER_BONUS, SPELL_EFFECT_NORMALIZED_WEAPON_DMG, SPELL_SCHOOL_HOLY, SPELL_SCHOOL_MASK_NORMAL, SPELLFAMILY_DEATHKNIGHT, SPELLFAMILY_HUNTER, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, and TYPEID_PLAYER.
Referenced by Spell::EffectWeaponDmg().
| uint32 Unit::MeleeDamageBonusTaken | ( | Unit * | attacker, |
| uint32 | pdamage, | ||
| WeaponAttackType | attType, | ||
| SpellInfo const * | spellProto = nullptr, |
||
| SpellSchoolMask | damageSchoolMask = SPELL_SCHOOL_MASK_NORMAL |
||
| ) |
Definition at line 7973 of file Unit.cpp.
References AddPct(), SpellInfo::GetAllEffectsMechanicMask(), GetAuraEffectsByType(), AuraEffect::GetCasterGUID(), Object::GetGUID(), GetMeleeCritDamageReduction(), GetMeleeDamageSchoolMask(), AuraEffect::GetMiscValue(), SpellInfo::GetSchoolMask(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), GetTotalAuraMultiplier(), GetTotalAuraMultiplierByMiscMask(), AuraEffect::IsAffectingSpell(), MECHANIC_BLEED, RANGED_ATTACK, SPELL_AURA_DUMMY, SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN, SPELL_AURA_MOD_DAMAGE_TAKEN, SPELL_AURA_MOD_IGNORE_TARGET_RESIST, SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCENT, SPELL_AURA_MOD_MELEE_DAMAGE_TAKEN, SPELL_AURA_MOD_MELEE_DAMAGE_TAKEN_PCT, SPELL_AURA_MOD_RANGED_DAMAGE_TAKEN, SPELL_AURA_MOD_RANGED_DAMAGE_TAKEN_PCT, SPELL_AURA_MOD_SPELL_DAMAGE_FROM_CASTER, SPELL_SCHOOL_MASK_NORMAL, SPELLFAMILY_DRUID, SpellInfo::SpellFamilyFlags, and SpellInfo::SpellFamilyName.
Referenced by Spell::EffectWeaponDmg().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 2421 of file Unit.cpp.
References BASE_ATTACK, SpellInfo::DmgClass, GetAuraEffectsByType(), GetMaxSkillValueForLevel(), GetMechanicResistChance(), GetTotalAuraModifier(), Object::GetTypeId(), GetUnitBlockChance(), GetUnitDodgeChance(), GetUnitParryChance(), GetWeaponSkillValue(), SpellInfo::HasAttribute(), HasAuraType(), Position::HasInArc(), HasUnitState(), SpellInfo::Id, IsNonMeleeSpellCast(), SpellInfo::IsRangedWeaponSpell(), M_PI, MELEE_HIT_BLOCK, MELEE_HIT_DODGE, MELEE_HIT_PARRY, MeleeSpellMissChance(), RANGED_ATTACK, SPELL_ATTR0_CU_REQ_CASTER_BEHIND_TARGET, SPELL_ATTR0_IMPOSSIBLE_DODGE_PARRY_BLOCK, SPELL_ATTR7_CANT_DODGE, SPELL_ATTR7_CANT_PARRY, SPELL_AURA_DEFLECT_SPELLS, SPELL_AURA_IGNORE_COMBAT_RESULT, SPELL_AURA_IGNORE_HIT_DIRECTION, SPELL_DAMAGE_CLASS_RANGED, SPELL_MISS_BLOCK, SPELL_MISS_DEFLECT, SPELL_MISS_DODGE, SPELL_MISS_MISS, SPELL_MISS_NONE, SPELL_MISS_PARRY, SPELL_MISS_RESIST, TC_LOG_DEBUG, TYPEID_PLAYER, UNIT_STATE_CONTROLLED, and urand().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 12073 of file Unit.cpp.
References CURRENT_MELEE_SPELL, GetLevelForTarget(), WorldObject::GetSpellModOwner(), GetTotalAuraModifier(), Object::GetTypeId(), GetUnitMissChance(), SpellInfo::HasAttribute(), haveOffhandWeapon(), m_currentSpells, m_modMeleeHitChance, m_modRangedHitChance, RANGED_ATTACK, SPELL_ATTR7_CANT_MISS, SPELL_AURA_MOD_ATTACKER_MELEE_HIT_CHANCE, SPELL_AURA_MOD_ATTACKER_RANGED_HIT_CHANCE, SPELL_AURA_MOD_HIT_CHANCE, SPELLMOD_RESIST_MISS_CHANCE, sSpellMgr, and TYPEID_PLAYER.
Referenced by MeleeSpellHitResult(), and RollMeleeOutcomeAgainst().
| void Unit::ModifyAuraState | ( | AuraStateType | flag, |
| bool | apply | ||
| ) |
Definition at line 5691 of file Unit.cpp.
References AURA_STATE_ENRAGE, SpellInfo::CasterAuraState, WorldObject::CastSpell(), GetAppliedAuras(), Object::GetGUID(), Player::GetSpellMap(), Object::GetTypeId(), Object::HasFlag(), SpellInfo::IsPassive(), PETSPELL_REMOVED, PLAYERSPELL_REMOVED, RemoveAura(), Object::RemoveFlag(), Object::SetFlag(), sSpellMgr, Object::ToCreature(), ToPet(), Object::ToPlayer(), TYPEID_PLAYER, and UNIT_FIELD_AURASTATE.
Referenced by _ApplyAura(), _UnapplyAura(), ClearAllReactives(), debug_commandscript::HandleDebugSetAuraStateCommand(), boss_professor_putricide::JustSummoned(), ProcSkillsAndReactives(), boss_twin_baseAI::Reset(), Update(), and UpdateReactives().
Definition at line 8321 of file Unit.cpp.
References GetHealth(), GetMaxHealth(), and SetHealth().
Referenced by DealDamage(), DealHeal(), boss_ichoron::DoAction(), AuraEffect::HandleAuraModIncreaseHealth(), spell_warl_life_tap::HandleDummy(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), spell_gluth_zombiechow_search::HealForEachTargetHit(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), Creature::RegenerateHealth(), boss_xt002::SetData(), Spell::TakePower(), Aura::Update(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), and npc_crok_scourgebane::UpdateEscortAI().
Definition at line 8379 of file Unit.cpp.
References GetMaxPower(), GetMinPower(), GetPower(), and SetPower().
Referenced by CalcAbsorbResist(), Spell::EffectPowerBurn(), Spell::EffectPowerDrain(), Spell::EffectSchoolDMG(), EnergizeBySpell(), boss_curator::boss_curatorAI::ExecuteEvent(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), spell_kelthuzad_detonate_mana::HandleScript(), Pet::LoseHappiness(), spell_gen_nitrous_boost::PeriodicTick(), Creature::Regenerate(), RewardRage(), Pet::setDeathState(), Spell::TakePower(), Spell::TakeRunePower(), Aura::Update(), and boss_faction_championsAI::UpdatePower().
| void Unit::MonsterMoveWithSpeed | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | speed, | ||
| bool | generatePath = false, |
||
| bool | forceDestination = false |
||
| ) |
Definition at line 526 of file Unit.cpp.
References GetMotionMaster(), MotionMaster::LaunchMoveSpline(), MOTION_PRIORITY_NORMAL, and POINT_MOTION_TYPE.
Referenced by ScriptedAI::DoTeleportTo(), Map::ScriptsProcess(), npc_highborne_lamenter::npc_highborne_lamenterAI::UpdateAI(), and CinematicMgr::UpdateCinematicLocation().
Definition at line 8124 of file Unit.cpp.
References AURA_INTERRUPT_FLAG_MOUNT, CreateVehicleKit(), Player::GetBattleground(), GetCharmed(), Object::GetPackGUID(), GetVehicleKit(), Vehicle::InstallAllAccessories(), Battleground::isArena(), RemoveAurasWithInterruptFlags(), WorldObject::SendMessageToSet(), SetMountDisplayId(), SetUnitFlag(), SMSG_PLAYER_VEHICLE_DATA, Object::ToPlayer(), TYPEID_UNIT, UNIT_FLAG_MOUNT, and UNIT_FLAG_STUNNED.
Referenced by npc_thrall_old_hillsbrad::DoMount(), AuraEffect::HandleAuraMounted(), spell_mount_check::HandleEffectPeriodic(), spell_gen_pony_mount_check::HandleEffectPeriodic(), modify_commandscript::HandleModifyMountCommand(), Creature::LoadCreaturesAddon(), npc_koltira_deathweaver::MovementInform(), npc_scarlet_courier::npc_scarlet_courierAI::Reset(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::Reset(), boss_mandokir::Reset(), and WorldSession::SendDoFlight().
|
inline |
Definition at line 1214 of file Unit.h.
References NearTeleportTo().
Referenced by NearTeleportTo().
| void Unit::NearTeleportTo | ( | Position const & | pos, |
| bool | casting = false |
||
| ) |
Definition at line 12803 of file Unit.cpp.
References DisableSpline(), WorldLocation::GetMapId(), GetMotionMaster(), MotionMaster::InterruptOnTeleport(), SendTeleportPacket(), TELE_TO_NOT_LEAVE_COMBAT, TELE_TO_NOT_LEAVE_TRANSPORT, TELE_TO_SPELL, Object::ToPlayer(), UpdateObjectVisibility(), and UpdatePosition().
Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), boss_urom::DamageTaken(), boss_malygos::DoAction(), ScriptedAI::DoTeleportTo(), Spell::EffectLeap(), Spell::EffectResurrectPet(), Spell::EffectStuck(), Spell::EffectSummonPet(), Spell::EffectTeleportUnits(), Spell::EffectTeleUnitsFaceCaster(), boss_gothik::EnterEvadeMode(), boss_urom::EnterEvadeMode(), spell_headless_horseman_head_reposition::HandleScriptEffect(), spell_freya_iron_roots::spell_freya_iron_roots_SpellScript::HandleSummon(), spell_lich_king_teleport_corpse::HandleTeleport(), npc_coldflame::IsSummonedBy(), npc_doomfire_spirit::JustAppeared(), boss_prince_keleseth_icc::JustSummoned(), npc_arthas_stratholme::npc_arthas_stratholmeAI::MovementInform(), Map::ScriptsProcess(), npc_simon_bunny::npc_simon_bunnyAI::SetUpPreGame(), BossAI::TeleportCheaters(), boss_rend_blackhand::UpdateAI(), boss_viscidus::boss_viscidusAI::UpdateAI(), npc_coldflame::UpdateAI(), boss_urom::UpdateAI(), npc_minigob_manabonk::UpdateAI(), boss_alar::UpdateAI(), boss_high_astromancer_solarian::UpdateAI(), and boss_majordomo::UpdateSpecialEvents().
| void Unit::OutDebugInfo | ( | ) | const |
Definition at line 13089 of file Unit.cpp.
References GetCharmedGUID(), GetCharmerGUID(), Object::GetEntry(), Object::GetGUID(), WorldLocation::GetMapId(), GetMinionGUID(), WorldObject::GetName(), GetOwnerGUID(), ObjectAccessor::GetUnit(), GetVehicle(), GetVehicleBase(), GetVehicleKit(), Object::IsInWorld(), IsVehicle(), m_appliedAuras, m_Controlled, m_SummonSlot, m_unitTypeMask, MAX_SUMMON_SLOT, Vehicle::Seats, TC_LOG_DEBUG, TC_LOG_ERROR, and Position::ToString().
Referenced by SetMinion().
Definition at line 10304 of file Unit.cpp.
References GetMotionMaster(), IsInvalidMovementSlot(), and StopMoving().
Referenced by SmartAI::AttackStart(), boss_grand_warlock_nethekurse::DoAction(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), SmartAI::PausePath(), WorldSession::SendListInventory(), SetCharmedBy(), FollowerAI::StartFollow(), and SmartAI::WaypointReached().
| PlayerMovementPendingChange & Unit::PeakFirstPendingMovementChange | ( | ) |
Definition at line 12924 of file Unit.cpp.
References m_pendingMovementChanges.
Referenced by WorldSession::HandleForceSpeedChangeAck().
| bool Unit::PopAI | ( | ) |
Definition at line 9512 of file Unit.cpp.
References i_AIs.
Referenced by Creature::AIM_Destroy(), spell_tyrannus_overlord_brand::OnRemove(), spell_dk_raise_ally::spell_dk_raise_ally_AuraScript::OnRemove(), and RestoreDisabledAI().
| PlayerMovementPendingChange Unit::PopPendingMovementChange | ( | ) |
Definition at line 12929 of file Unit.cpp.
References m_pendingMovementChanges.
Referenced by WorldSession::HandleForceSpeedChangeAck().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 3195 of file Unit.cpp.
References WorldObject::GetLiquidStatus(), PositionFullTerrainStatus::liquidInfo, WorldObject::ProcessPositionDataChanged(), and ProcessTerrainStatusUpdate().
Referenced by Creature::Create().
|
protectedvirtual |
Reimplemented in Player.
Definition at line 3202 of file Unit.cpp.
References _lastLiquid, AURA_INTERRUPT_FLAG_NOT_ABOVEWATER, AURA_INTERRUPT_FLAG_NOT_UNDERWATER, WorldObject::CastSpell(), WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), IsControlledByPlayer(), Player::IsGameMaster(), IsInWater(), RemoveAurasDueToSpell(), RemoveAurasWithInterruptFlags(), sLiquidTypeStore, and LiquidTypeEntry::SpellID.
Referenced by ProcessPositionDataChanged(), and Player::ProcessTerrainStatusUpdate().
|
static |
Definition at line 5218 of file Unit.cpp.
References BASE_ATTACK, DamageInfo::GetAttackType(), ProcSkillsAndReactives(), and TriggerAurasProcOnEvent().
Referenced by Spell::_cast(), Spell::_handle_finish_phase(), AttackerStateUpdate(), CalcAbsorbResist(), Spell::TargetInfo::DoDamageAndTriggers(), Spell::EffectInterruptCast(), ProcReflectDelayed::Execute(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), and Kill().
|
private |
Definition at line 10052 of file Unit.cpp.
References AddComboPoints(), AURA_STATE_DEFENSE, AURA_STATE_HUNTER_PARRY, CLASS_HUNTER, CLASS_ROGUE, CLASS_WARRIOR, GetClass(), Minion::GetOwner(), Object::GetTypeId(), IsCritter(), IsHunterPet(), IsPet(), Object::IsPlayer(), IsTotem(), MELEE_BASED_TRIGGER_MASK, ModifyAuraState(), PROC_HIT_BLOCK, PROC_HIT_CRITICAL, PROC_HIT_DODGE, PROC_HIT_FULL_RESIST, PROC_HIT_MISS, PROC_HIT_NORMAL, PROC_HIT_PARRY, REACTIVE_DEFENSE, REACTIVE_HUNTER_PARRY, REACTIVE_OVERPOWER, REACTIVE_WOLVERINE_BITE, StartReactiveTimer(), Object::ToPlayer(), ToTotem(), TYPEID_PLAYER, and Player::UpdateCombatSkills().
Referenced by ProcSkillsAndAuras().
| void Unit::PropagateSpeedChange | ( | ) |
-------—End of Pet responses methods-------—
Definition at line 10279 of file Unit.cpp.
References GetMotionMaster(), and MotionMaster::PropagateSpeedChange().
Referenced by SetSpeedRateReal().
| void Unit::PurgeAndApplyPendingMovementChanges | ( | bool | informObservers = true | ) |
Definition at line 12981 of file Unit.cpp.
References ASSERT, baseMoveSpeed, IsControlledByPlayer(), m_pendingMovementChanges, MOVE_FLIGHT, MOVE_FLIGHT_BACK, MOVE_PITCH_RATE, MOVE_RUN, MOVE_RUN_BACK, MOVE_SWIM, MOVE_SWIM_BACK, MOVE_TURN_RATE, MOVE_WALK, playerBaseMoveSpeed, RATE_CHANGE_PITCH, RATE_CHANGE_TURN, MovementPacketSender::SendSpeedChangeToObservers(), SetSpeedRateReal(), SPEED_CHANGE_FLIGHT_BACK_SPEED, SPEED_CHANGE_FLIGHT_SPEED, SPEED_CHANGE_RUN, SPEED_CHANGE_RUN_BACK, SPEED_CHANGE_SWIM, SPEED_CHANGE_SWIM_BACK, and SPEED_CHANGE_WALK.
Referenced by GameClient::RemoveAllowedMover(), and Player::TeleportTo().
| void Unit::PushAI | ( | UnitAI * | newAI | ) |
Definition at line 9501 of file Unit.cpp.
References i_AIs.
Referenced by spell_tyrannus_overlord_brand::OnApply(), spell_dk_raise_ally::spell_dk_raise_ally_AuraScript::OnApply(), ScheduleAIChange(), and SetAI().
| void Unit::PushPendingMovementChange | ( | PlayerMovementPendingChange | newChange | ) |
Definition at line 12936 of file Unit.cpp.
References m_pendingMovementChanges.
Referenced by MovementPacketSender::SendSpeedChangeToMover().
|
virtual |
Definition at line 10375 of file Unit.cpp.
References CalculatePct(), GetNativeObjectScale(), GetTotalAuraModifier(), Object::GetTypeId(), Object::SetObjectScale(), SPELL_AURA_MOD_SCALE, SPELL_AURA_MOD_SCALE_2, and TYPEID_PLAYER.
Referenced by AuraEffect::HandleAuraModScale().
|
protected |
Definition at line 9523 of file Unit.cpp.
References ASSERT, i_AI, i_AIs, and m_aiLocked.
Referenced by Creature::AIM_Destroy(), SetAI(), Update(), and UpdateCharmAI().
| void Unit::RemoveAllAttackers | ( | ) |
Definition at line 5678 of file Unit.cpp.
References m_attackers, and TC_LOG_ERROR.
Referenced by CombatStop(), boss_thorim::boss_thorimAI::FinishEncounter(), boss_freya::boss_freyaAI::JustDied(), boss_attumen::boss_attumenAI::SpellHit(), npc_headless_horseman_head::UpdateAI(), boss_kalecgos::UpdateAI(), npc_qiraj_war_spawn::npc_qiraj_war_spawnAI::UpdateAI(), and boss_hodir::UpdateAI().
| void Unit::RemoveAllAuras | ( | ) |
Definition at line 4180 of file Unit.cpp.
References _UnapplyAura(), ABORT_MSG, AURA_REMOVE_BY_DEFAULT, GetDebugInfo(), m_appliedAuras, m_ownedAuras, RemoveOwnedAura(), and TC_LOG_ERROR.
Referenced by CleanupBeforeRemoveFromMap(), npc_felblood_kaelthas_phoenix::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_thekal::DamageTaken(), npc_zealot_lorkhan::DamageTaken(), npc_zealot_zath::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), boss_ingvar_the_plunderer::DamageTaken(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), spell_rotface_unstable_ooze_explosion_suicide::DespawnSelf(), npc_kelthuzad_guardian::DoAction(), boss_razorgore::DoChangePhase(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DoNice(), GuardAI::EnterEvadeMode(), EscortAI::EnterEvadeMode(), hyjalAI::EnterEvadeMode(), npc_rocket_propelled_warhead::FinishQuest(), spell_icecrown_plant_battle_standard::HandleDummy(), misc_commandscript::HandleUnAuraCommand(), boss_venoxis::JustDied(), npc_gunship::npc_gunshipAI::JustDied(), boss_freya::boss_freyaAI::JustDied(), boss_urom::LeaveCombat(), npc_melee_hover_disk::PassengerBoarded(), npc_caster_hover_disk::PassengerBoarded(), spell_pursuing_spikes::PeriodicTick(), Creature::RemoveCorpse(), npc_koltira_deathweaver::Reset(), boss_venoxis::Reset(), npc_twilight_whelp::Reset(), boss_paletress::boss_paletressAI::Reset(), boss_steelbreaker::boss_steelbreakerAI::Reset(), boss_runemaster_molgeim::boss_runemaster_molgeimAI::Reset(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::Reset(), boss_sara::boss_saraAI::Reset(), npc_yogg_saron_keeper::npc_yogg_saron_keeperAI::Reset(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), Pet::SavePetToDB(), npc_twilight_eggs::SpawnWhelps(), npc_harrison_jones::npc_harrison_jonesAI::SpellHit(), npc_felblood_kaelthas_phoenix::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), boss_kalecgos::UpdateAI(), npc_twilight_fissure::UpdateAI(), npc_phantom_mage::npc_phantom_mageAI::UpdateAI(), npc_spirit_bomb::UpdateAI(), boss_noth::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_svala::UpdateAI(), boss_the_lurker_below::UpdateAI(), and boss_alar::UpdateAI().
| void Unit::RemoveAllAurasExceptType | ( | AuraType | type | ) |
Definition at line 4295 of file Unit.cpp.
References _UnapplyAura(), AURA_REMOVE_BY_DEFAULT, Aura::GetSpellInfo(), SpellInfo::HasAura(), m_appliedAuras, m_ownedAuras, and RemoveOwnedAura().
Referenced by boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_vx_001::boss_vx_001AI::DamageTaken(), RemoveAurasOnEvade(), and boss_ragnaros::UpdateAI().
Definition at line 4316 of file Unit.cpp.
References _UnapplyAura(), AURA_REMOVE_BY_DEFAULT, Aura::GetSpellInfo(), SpellInfo::HasAura(), m_appliedAuras, m_ownedAuras, and RemoveOwnedAura().
| void Unit::RemoveAllAurasOnDeath | ( | ) |
Definition at line 4251 of file Unit.cpp.
References _UnapplyAura(), AURA_REMOVE_BY_DEATH, Aura::IsDeathPersistent(), Aura::IsPassive(), m_appliedAuras, m_ownedAuras, and RemoveOwnedAura().
Referenced by Kill(), Player::LoadFromDB(), and setDeathState().
| void Unit::RemoveAllAurasRequiringDeadTarget | ( | ) |
Definition at line 4274 of file Unit.cpp.
References _UnapplyAura(), AURA_REMOVE_BY_DEFAULT, Aura::GetSpellInfo(), Aura::IsPassive(), SpellInfo::IsRequiringDeadTarget(), m_appliedAuras, m_ownedAuras, and RemoveOwnedAura().
Referenced by Player::LoadFromDB().
| void Unit::RemoveAllControlled | ( | ) |
Definition at line 6193 of file Unit.cpp.
References GetCharmedGUID(), GetCharmerGUID(), Object::GetEntry(), Object::GetGUID(), GetMinionGUID(), GetOwnerGUID(), GetPetGUID(), Object::GetTypeId(), IsPet(), IsSummon(), m_Controlled, RemoveCharmAuras(), RemoveUnitFlag(), Player::StopCastingCharm(), TC_LOG_ERROR, TC_LOG_FATAL, Object::ToPlayer(), Position::ToString(), ToTempSummon(), TYPEID_PLAYER, UNIT_FLAG_PET_IN_COMBAT, and TempSummon::UnSummon().
Referenced by Player::ActivateTalentGroup(), RemoveFromWorld(), and setDeathState().
| void Unit::RemoveAllDynObjects | ( | ) |
Definition at line 5094 of file Unit.cpp.
References m_dynObj.
Referenced by RemoveFromWorld(), and Player::TeleportTo().
| void Unit::RemoveAllFollowers | ( | ) |
Definition at line 8657 of file Unit.cpp.
References m_followingMe, and SetTarget().
Referenced by RemoveFromWorld().
| void Unit::RemoveAllGameObjects | ( | ) |
Definition at line 5188 of file Unit.cpp.
References m_gameObj, and RemoveGameObjectImpl().
Referenced by CleanupBeforeRemoveFromMap(), boss_garfrost::JustDied(), npc_ice_tomb::JustDied(), and RemoveFromWorld().
| void Unit::RemoveAllGroupBuffsFromCaster | ( | ObjectGuid | casterGUID | ) |
Definition at line 4337 of file Unit.cpp.
References Aura::GetCasterGUID(), Aura::GetSpellInfo(), SpellInfo::IsGroupBuff(), m_ownedAuras, and RemoveOwnedAura().
Referenced by Group::RemoveMember().
| void Unit::RemoveAllMinionsByEntry | ( | uint32 | entry | ) |
Definition at line 6014 of file Unit.cpp.
References Object::GetEntry(), Object::GetTypeId(), IsSummon(), m_Controlled, ToTempSummon(), TYPEID_UNIT, and TempSummon::UnSummon().
Referenced by SetMinion().
| void Unit::RemoveAppliedAuras | ( | std::function< bool(AuraApplication const *)> const & | check, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3734 of file Unit.cpp.
References m_appliedAuras, and RemoveAura().
Referenced by _RemoveNoStackAurasDueToAura(), SpellInfo::ApplyAllSpellImmunitiesTo(), RemoveArenaAuras(), and RemoveAurasWithMechanic().
| void Unit::RemoveAppliedAuras | ( | uint32 | spellId, |
| std::function< bool(AuraApplication const *)> const & | check, | ||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3760 of file Unit.cpp.
References m_appliedAuras, and RemoveAura().
| void Unit::RemoveAreaAurasDueToLeaveWorld | ( | ) |
Definition at line 4147 of file Unit.cpp.
References Aura::GetApplicationMap(), AuraApplication::GetTarget(), m_appliedAuras, m_ownedAuras, and RemoveAura().
Referenced by RemoveFromWorld().
| void Unit::RemoveArenaAuras | ( | ) |
Definition at line 4227 of file Unit.cpp.
References AuraApplication::GetBase(), Aura::GetSpellInfo(), SpellInfo::HasAttribute(), Aura::IsPassive(), AuraApplication::IsPositive(), RemoveAppliedAuras(), SPELL_ATTR3_DEATH_PERSISTENT, SPELL_ATTR4_DONT_REMOVE_IN_ARENA, and SPELL_ATTR5_REMOVE_ON_ARENA_ENTER.
Referenced by Player::TeleportTo().
| void Unit::RemoveAura | ( | Aura * | aur, |
| AuraRemoveMode | mode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3726 of file Unit.cpp.
References Aura::GetApplicationOfTarget(), Object::GetGUID(), Aura::IsRemoved(), and RemoveAura().
| void Unit::RemoveAura | ( | AuraApplication * | aurApp, |
| AuraRemoveMode | mode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3691 of file Unit.cpp.
References AuraApplication::_HandleEffect(), Aura::GetApplicationOfTarget(), AuraApplication::GetBase(), Object::GetGUID(), Aura::GetId(), AuraApplication::GetRemoveMode(), AuraApplication::HasEffect(), Aura::IsRemoved(), m_appliedAuras, MAX_SPELL_EFFECTS, and RemoveAura().
| void Unit::RemoveAura | ( | AuraApplicationMap::iterator & | i, |
| AuraRemoveMode | mode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3661 of file Unit.cpp.
References _UnapplyAura(), AuraApplication::GetBase(), Aura::GetOwner(), AuraApplication::GetRemoveMode(), and Aura::Remove().
Referenced by _EnterVehicle(), boss_viscidus::boss_viscidusAI::DamageTaken(), boss_drakkari_colossus::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), Player::DuelComplete(), Spell::EffectDispelMechanic(), Spell::EffectForceCast(), Spell::EffectHeal(), Battleground::EndBattleground(), GetDiseasesByCaster(), AuraEffect::HandleAuraLinked(), Aura::HandleAuraSpecificMods(), AuraEffect::HandleBreakableCCAuraProc(), deserter_commandscript::HandleDeserterRemove(), spell_valanar_kinetic_bomb_aura::HandleDummyTick(), spell_warl_demonic_circle_summon::HandleDummyTick(), spell_dk_improved_blood_presence::HandleEffectRemove(), spell_dk_improved_frost_presence::HandleEffectRemove(), spell_dk_improved_unholy_presence::HandleEffectRemove(), spell_dk_presence::HandleEffectRemove(), spell_pal_blessing_of_sanctuary::HandleEffectRemove(), spell_sha_chain_heal::HandleHeal(), spell_sindragosa_frost_breath::HandleInfusion(), spell_gen_blood_reserve::HandleProc(), spell_warl_demonic_circle_summon::HandleRemove(), spell_brewfest_dismount_ram::HandleScript(), spell_putricide_eat_ooze::HandleScript(), spell_ulduar_cancel_stone_grip::spell_ulduar_cancel_stone_gripSpellScript::HandleScript(), spell_midsummer_fling_torch_catch::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), spell_midsummer_fling_torch_triggered::HandleTriggerMissile(), IsHighestExclusiveAuraEffect(), npc_zulian_prowler::JustEngagedWith(), ModifyAuraState(), spell_brewfest_ram_fatigue::OnApply(), spell_brewfest_apple_trap::OnApply(), spell_blood_queen_vampiric_bite::OnCast(), spell_brewfest_giddyup::OnChange(), spell_love_is_in_the_air_romantic_picnic::OnPeriodic(), spell_fetch_ingredient_aura::OnRemove(), spell_dk_raise_ally::spell_dk_raise_ally_AuraScript::OnRemove(), BattlefieldWG::PromotePlayer(), RemoveAppliedAuras(), RemoveAppliedAuras(), RemoveAreaAurasDueToLeaveWorld(), RemoveAura(), RemoveAura(), RemoveAura(), RemoveAurasByShapeShift(), RemoveAurasByType(), RemoveAurasByType(), RemoveAurasDueToItemSpell(), RemoveAurasDueToSpell(), RemoveAurasWithAttribute(), RemoveAurasWithFamily(), RemoveAurasWithInterruptFlags(), spell_zuldrak_scourge_disguise::RemoveEffect(), Player::RemoveGhoul(), BattlegroundIC::RemovePlayer(), boss_pyroguard_emberseer::Reset(), boss_victor_nefarius::Reset(), boss_paletress::boss_paletressAI::SetData(), boss_pyroguard_emberseer::SpellHit(), boss_viscidus::boss_viscidusAI::SpellHit(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), boss_gyth::UpdateAI(), boss_pyroguard_emberseer::UpdateAI(), boss_kirtonos_the_herald::UpdateAI(), npc_harrison_jones::npc_harrison_jonesAI::UpdateAI(), boss_arlokk::UpdateAI(), boss_marli::UpdateAI(), boss_thaddius::UpdateAI(), npc_barada::npc_baradaAI::UpdateAI(), player_ghoulAI::UpdateAI(), npc_portal_eoe::UpdateAI(), npc_iron_construct::npc_iron_constructAI::UpdateAI(), and Spell::UpdateChanneledTargetList().
| void Unit::RemoveAura | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0, |
||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3674 of file Unit.cpp.
References Aura::GetCasterGUID(), Aura::GetEffectMask(), m_appliedAuras, and RemoveAura().
| void Unit::RemoveAuraFromStack | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3823 of file Unit.cpp.
References Aura::GetCasterGUID(), Aura::GetType(), m_ownedAuras, Aura::ModStackAmount(), and UNIT_AURA_TYPE.
Referenced by boss_ignis::boss_ignis_AI::DoAction(), Spell::EffectSchoolDMG(), spell_mage_fingers_of_frost::HandleDummy(), spell_putricide_gaseous_bloat::HandleExtraEffect(), spell_oculus_evasive_maneuvers::HandleProc(), spell_sha_tidal_force_dummy::HandleProc(), spell_freya_attuned_to_nature_dose_reduction::spell_freya_attuned_to_nature_dose_reduction_SpellScript::HandleScript(), spell_item_brittle_armor::HandleScript(), spell_item_mercurial_shield::HandleScript(), spell_item_deadly_precision::HandleStackDrop(), spell_item_zandalarian_charm::spell_item_zandalarian_charm_AuraScript::HandleStackDrop(), spell_brewfest_giddyup::OnPeriodic(), spell_hodir_biting_cold_area_aura::OnPeriodic(), spell_shade_soul_channel_serverside::OnRemove(), and boss_archimonde::OnSpellCast().
| void Unit::RemoveAurasByShapeShift | ( | ) |
Definition at line 4132 of file Unit.cpp.
References SpellInfo::GetAllEffectsMechanicMask(), Aura::GetSpellInfo(), SpellInfo::HasAttribute(), m_appliedAuras, MECHANIC_ROOT, MECHANIC_SNARE, RemoveAura(), and SPELL_ATTR0_CU_AURA_CC.
Referenced by AuraEffect::HandleAuraModShapeshift().
| void Unit::RemoveAurasByType | ( | AuraType | auraType, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| Aura * | except = nullptr, |
||
| bool | negative = true, |
||
| bool | positive = true |
||
| ) |
Definition at line 3966 of file Unit.cpp.
References ASSERT, Aura::GetApplicationOfTarget(), Aura::GetCasterGUID(), Object::GetGUID(), AuraApplication::IsPositive(), m_modAuras, m_removedAurasCount, and RemoveAura().
| void Unit::RemoveAurasByType | ( | AuraType | auraType, |
| std::function< bool(AuraApplication const *)> const & | check, | ||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3788 of file Unit.cpp.
References ASSERT, Aura::GetApplicationOfTarget(), Object::GetGUID(), m_modAuras, m_removedAurasCount, and RemoveAura().
Referenced by _EnterVehicle(), VehicleJoinEvent::Abort(), Player::ActivateTaxiPathTo(), Battleground::AddPlayer(), SpellInfo::ApplyAllSpellImmunitiesTo(), spell_rog_vanish::ApplyStealth(), Attack(), spell_gen_summon_tournament_mount::CheckIfLanceEquiped(), ClearComboPoints(), Spell::EffectTriggerSpell(), Battleground::EndBattleground(), VehicleJoinEvent::Execute(), ExitVehicle(), WorldSession::HandleAuctionHelloOpcode(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionListItems(), WorldSession::HandleAuctionListOwnerItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraMounted(), AuraEffect::HandleAuraTransform(), WorldSession::HandleBankerActivateOpcode(), WorldSession::HandleBinderActivateOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleBuyStableSlot(), WorldSession::HandleCancelGrowthAuraOpcode(), WorldSession::HandleCancelMountAuraOpcode(), misc_commandscript::HandleDismountCommand(), spell_brewfest_mount_transformation::HandleDummy(), spell_winter_veil_reindeer_transformation::HandleDummy(), spell_warl_seduction::HandleDummy(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandleMoveWorldportAck(), spell_algalon_remove_phase::HandlePeriodic(), WorldSession::HandlePetitionBuyOpcode(), spell_mage_glyph_of_polymorph::HandleProc(), spell_mage_glyph_of_icy_veins::HandleProc(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleRequestStabledPets(), WorldSession::HandleSaveGuildEmblemOpcode(), spell_jormungars_burning_bile::HandleScriptEffect(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSpiritHealerActivateOpcode(), WorldSession::HandleStablePet(), WorldSession::HandleStableSwapPet(), WorldSession::HandleTabardVendorActivateOpcode(), WorldSession::HandleTalentWipeConfirmOpcode(), WorldSession::HandleTaxiQueryAvailableNodes(), WorldSession::HandleTrainerBuySpellOpcode(), WorldSession::HandleUnstablePet(), WorldSession::LogoutPlayer(), Vehicle::RemoveAllPassengers(), RemoveBindSightAuras(), boss_faction_championsAI::RemoveCC(), RemoveCharmAuras(), Battleground::RemovePlayerAtLeave(), WorldSession::SendDoFlight(), WorldSession::SendListInventory(), WorldSession::SendTrainerList(), SetCharmedBy(), npc_gothik_minion_baseAI::UpdateAI(), and GameObject::Use().
| void Unit::RemoveAurasDueToItemSpell | ( | uint32 | spellId, |
| ObjectGuid | castItemGuid | ||
| ) |
Definition at line 3952 of file Unit.cpp.
References m_appliedAuras, and RemoveAura().
Referenced by Player::ApplyEnchantment(), and Player::ApplyEquipSpell().
| void Unit::RemoveAurasDueToSpell | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0, |
||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3807 of file Unit.cpp.
References Aura::GetCasterGUID(), Aura::GetEffectMask(), m_appliedAuras, and RemoveAura().
Referenced by Player::ActivateTalentGroup(), spell_midsummer_torch_tossing_training_practice::AfterApply(), spell_twin_valkyr_dark_essence::AfterApply(), spell_twin_valkyr_light_essence::AfterApply(), spell_zuldrak_akalis_stun::AfterApply(), spell_zuldrak_summon_escort_aura::AfterApply(), spell_exarch_maladaar_stolen_soul_dispel::AfterApply(), spell_commander_sarannis_arcane_devastation::AfterApply(), spell_sunken_temple_hex_of_jammalan_transform::AfterRemove(), spell_love_is_in_the_air_service_uniform::AfterRemove(), spell_midsummer_torch_tossing_training_practice::AfterRemove(), spell_azuremyst_isle_shadow_of_the_forest_player::AfterRemove(), spell_bjarngrim_stance_dummy::AfterRemove(), spell_thorim_aura_of_celerity::AfterRemove(), spell_fjord_worg_disguise::AfterRemove(), spell_fjord_worg_disguise_dummy::AfterRemove(), spell_zuldrak_scourge_disguise_expiring::AfterRemove(), spell_leotheras_the_blind_insidious_whisper_aura::AfterRemove(), spell_serpent_shrine_coilfang_water::AfterRemove(), spell_magtheridon_shadow_grasp_visual::AfterRemove(), spell_kaelthas_mind_control_aura::AfterRemove(), spell_capacitus_polarity_charge_periodic::AfterRemove(), spell_bem_apexis_swiftness::AfterRemove(), spell_shadowmoon_illidari_agent_illusion::AfterRemove(), spell_terokkar_shadowy_disguise::AfterRemove(), spell_dk_lichborne::AfterRemove(), spell_dru_nurturing_instinct::AfterRemove(), spell_dru_savage_roar_aura::AfterRemove(), spell_dru_survival_instincts_aura::AfterRemove(), spell_item_thrallmar_and_honor_hold_favor::AfterRemove(), spell_pri_dispersion::AfterRemove(), Player::ApplyEquipSpell(), Player::ApplyItemObtainSpells(), boss_supremus::ChangePhase(), Player::CheckTitanGripPenalty(), AuraEffect::CleanupTriggeredSpells(), npc_kerlonian::npc_kerlonianAI::ClearSleeping(), boss_jeklik::DamageTaken(), boss_apothecary_hummel::DamageTaken(), boss_muru::DamageTaken(), npc_dark_fiend::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), npc_frost_sphere::DamageTaken(), boss_lady_deathwhisper::DamageTaken(), boss_sjonnir::DamageTaken(), npc_feral_defender::DamageTaken(), boss_ingvar_the_plunderer::DamageTaken(), npc_wild_wyrm::DamageTaken(), npc_phoenix_the_eye::DamageTaken(), boss_felblood_kaelthas::DamageTaken(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::DestroyIceWall(), npc_barnes::DoAction(), npc_stone_keeper::DoAction(), npc_fire_bomb_zulaman::DoAction(), npc_zuljin_spirit::DoAction(), npc_twilight_volunteer::DoAction(), boss_anub_arak::DoAction(), npc_halion_controller::DoAction(), boss_jaraxxus::DoAction(), BloodPrincesBossAI::DoAction(), npc_high_overlord_saurfang_icc::DoAction(), npc_muradin_bronzebeard_icc::DoAction(), boss_general_bjarngrim::DoAction(), npc_volkhan_molten_golem::DoAction(), boss_general_vezax::boss_general_vezaxAI::DoAction(), boss_vx_001::boss_vx_001AI::DoAction(), npc_mimiron_computer::npc_mimiron_computerAI::DoAction(), boss_yogg_saron::boss_yogg_saronAI::DoAction(), boss_anzu::DoAction(), npc_volcano::DoAction(), boss_lady_vashj::DoAction(), boss_leotheras_the_blind::DoAction(), boss_warlord_kalithresh::DoAction(), npc_frozen_core::DoAction(), npc_earthen_ring_flamecaller::DoAction(), npc_shaman_bonfire_bunny::DoAction(), boss_razorscale::DoAction(), boss_palehoof::DoAction(), PalehoofMinionsBossAI::DoAction(), boss_illidan_stormrage::DoAction(), boss_reliquary_of_souls::DoAction(), npc_headless_horseman_head::DoAction(), boss_headless_horseman::DoAction(), npc_pulsing_pumpkin::DoAction(), boss_ambassador_hellmaw::DoIntro(), InstanceScript::DoRemoveAurasDueToSpellOnPlayer(), Spell::DoTriggersOnSpellHit(), Spell::EffectApplyGlyph(), Spell::EffectHeal(), Spell::EffectRemoveAura(), Spell::EffectSchoolDMG(), boss_jormungarAI::Emerge(), boss_felmyst::EnterPhase(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundEY::EventPlayerCapturedFlag(), BattlegroundWS::EventPlayerDroppedFlag(), BattlegroundEY::EventPlayerDroppedFlag(), npc_unworthy_initiate::npc_unworthy_initiateAI::EventStart(), BattleExperienceEvent::Execute(), FrostBombExplosion::Execute(), ValithriaAuraRemoveEvent::Execute(), boss_terestian_illhoof::boss_terestianAI::ExecuteEvent(), lfg::LFGMgr::FinishDungeon(), spell_capacitus_polarity_charge_damage::HandleAfterCast(), spell_item_disco_ball_listening_to_music_check::HandleAfterCast(), spell_illidan_remove_parasitic_shadowfiend::HandleApply(), OutdoorPvPSI::HandleAreaTrigger(), BattlegroundDS::HandleAreaTrigger(), spell_mimiron_proximity_explosion::spell_mimiron_proximity_explosion_SpellScript::HandleAura(), AuraEffect::HandleAuraControlVehicle(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModShapeshift(), Aura::HandleAuraSpecificMods(), spell_dk_frost_fever::HandleDispel(), spell_putricide_choking_gas_filter::HandleDispel(), spell_midsummer_remove_torches::HandleDummy(), spell_pilgrims_bounty_feast_on::HandleDummy(), spell_buru_cancel_creeping_plague::HandleDummy(), spell_ahn_kahet_swarm::HandleDummy(), spell_putricide_ooze_eruption_searcher::HandleDummy(), spell_borean_tundra_magnataur_on_death_2::HandleDummy(), spell_capacitus_polarity_shift::HandleDummy(), spell_dru_starfall_dummy::HandleDummy(), spell_item_hourglass_sand::HandleDummy(), spell_mistress_kiss::HandleDummyTick(), spell_zuldrak_quenching_mist::HandleEffectPeriodic(), spell_rog_prey_on_the_weak::HandleEffectPeriodic(), boss_felmyst::HandleFlightSequence(), gm_commandscript::HandleGMVisibleCommand(), OPvPCapturePointZM_Graveyard::HandleOpenGo(), spell_algalon_phase_punch::HandlePeriodic(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), OutdoorPvPEP::HandlePlayerLeaveZone(), OutdoorPvPHP::HandlePlayerLeaveZone(), OutdoorPvPNA::HandlePlayerLeaveZone(), OutdoorPvPSI::HandlePlayerLeaveZone(), OutdoorPvPTF::HandlePlayerLeaveZone(), OutdoorPvPZM::HandlePlayerLeaveZone(), spell_eredar_twins_dark_flame_aura_shadow::HandleProc(), spell_eredar_twins_dark_flame_aura_fire::HandleProc(), spell_item_anger_capacitor< StackAmount >::spell_item_anger_capacitor_AuraScript< Stacks >::HandleProc(), spell_item_trinket_stack::spell_item_trinket_stack_AuraScript::HandleProc(), spell_icc_harvest_blight_specimen::HandleQuestComplete(), spell_hallow_end_candy_pirate::HandleRemove(), spell_midsummer_test_ribbon_pole_channel::HandleRemove(), spell_sindragosa_ice_tomb_trap::HandleRemove(), spell_dru_enrage::HandleRemove(), spell_gen_burning_depths_necrolyte_image::HandleRemove(), spell_pal_avenging_wrath::HandleRemove(), spell_rog_killing_spree::spell_rog_killing_spree_AuraScript::HandleRemove(), spell_warr_vigilance::HandleRemove(), WorldSession::HandleRemoveGlyph(), spell_pilgrims_bounty_well_fed::HandleScript(), spell_putricide_clear_aura_effect_value::HandleScript(), spell_the_lich_king_jump::HandleScript(), spell_the_lich_king_jump_remove_aura::HandleScript(), spell_icc_harvest_blight_specimen::HandleScript(), spell_vexallus_clear_energy_feedback::HandleScript(), spell_brutallus_stomp::HandleScript(), spell_love_is_in_the_air_cancel_service_uniform::HandleScript(), spell_love_is_in_the_air_perfume_cologne_immune::HandleScript(), spell_pilgrims_bounty_turkey_tracker::HandleScript(), spell_halion_clear_debuffs::HandleScript(), spell_gal_darah_clear_puncture::HandleScript(), spell_festergut_pungent_blight::HandleScript(), spell_festergut_gastric_bloat::HandleScript(), spell_putricide_unbound_plague::HandleScript(), spell_putricide_eat_ooze::HandleScript(), spell_rotface_little_ooze_combine::HandleScript(), spell_rotface_large_ooze_combine::HandleScript(), spell_rotface_large_ooze_buff_combine::HandleScript(), spell_generic_remove_empowered_blood::HandleScript(), spell_borean_tundra_weakness_to_lightning_cancel_aura::HandleScript(), spell_borean_tundra_weakness_to_lightning_on_quest_complete::HandleScript(), spell_borean_tundra_strip_auras::HandleScript(), spell_dragonblight_cancel_banshees_magic_mirror::HandleScript(), spell_dragonblight_cancel_scarlet_raven_priest_image::HandleScript(), spell_dragonblight_scrape_corrosive_spit::HandleScript(), spell_dragonblight_focus_on_the_beach_quest_completion_script::HandleScript(), spell_dragonblight_atop_the_woodlands_quest_completion_script::HandleScript(), spell_dragonblight_end_of_the_line_quest_completion_script::HandleScript(), spell_grizzly_hills_ganjo_ressurection::HandleScript(), spell_icecrown_through_the_eye_kill_credit_to_master::HandleScript(), spell_icecrown_forcecast_bridenbrad_ascension::HandleScript(), spell_sholazar_sputum_collected::HandleScript(), spell_sholazar_lifeblood_dummy::HandleScript(), spell_storm_peaks_free_brunnhildar_prisoner::HandleScript(), spell_zuldrak_remove_akalis_stun::HandleScript(), spell_leotheras_the_blind_clear_consuming_madness::HandleScript(), spell_gruul_shatter::HandleScript(), spell_remove_kargath_executioner::HandleScript(), spell_kaelthas_explodes::HandleScript(), spell_bem_dispelling_analysis::HandleScript(), spell_terokkar_cancel_shadowy_disguise::HandleScript(), spell_pet_gen_lich_pet_aura_remove::HandleScript(), spell_gen_cancel_aura::HandleScript(), spell_deliver_stolen_horse::HandleScriptEffect(), spell_ethereal_pet_aura_remove::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), npc_headless_horseman_head::HandleStartPhase(), misc_commandscript::HandleUnAuraCommand(), misc_commandscript::HandleUnFreezeCommand(), boss_valithria_dreamwalker::HealReceived(), npc_underbog_mushroom::InitializeAI(), dummy_dragonAI::JustDied(), npc_acolyte_of_vesperon::JustDied(), npc_gunship::npc_gunshipAI::JustDied(), npc_frostwing_ymirjar_vrykul::JustDied(), boss_high_astromancer_solarian::JustDied(), npc_pure_energy::JustDied(), npc_inner_demon::JustDied(), npc_slad_ran_constrictor::JustEngagedWith(), npc_angered_soul_fragment::JustEngagedWith(), boss_jeklik::JustEngagedWith(), boss_kelris::JustEngagedWith(), boss_jedoga_shadowseeker::JustEngagedWith(), boss_bronjahm::JustEngagedWith(), boss_lady_deathwhisper::JustEngagedWith(), boss_nexus_commanders::JustEngagedWith(), boss_mimiron::boss_mimironAI::JustEngagedWith(), npc_bone_spike::KilledUnit(), Player::LearnQuestRewardedSpells(), npc_anubarak_spike::MoveInLineOfSight(), boss_general_bjarngrim::MovementInform(), boss_headless_horseman::MovementInform(), boss_garfrost::MovementInform(), npc_ball_of_flame::MovementInform(), npc_frost_sphere::MovementInform(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::MovementInform(), npc_grauf::MovementInform(), npc_illidan_db_target::MovementInform(), npc_anubarak_anub_ar_assassin::MovementInform(), spell_moroes_garrote_remove::OnApply(), spell_amanitar_potent_fungus::OnApply(), spell_halion_twilight_realm_handlers::OnApply(), spell_systems_shutdown::spell_systems_shutdown_AuraScript::OnApply(), spell_arcatraz_death_count::OnApply(), npc_eye_of_acherus::OnCharmed(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::OnGossipHello(), npc_essence_of_twin::OnGossipHello(), lfg::LFGPlayerScript::OnMapChanged(), spell_love_is_in_the_air_romantic_picnic::OnPeriodic(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), spell_illidan_demon_transform2::OnPeriodic(), spell_kaelthas_gaining_power::OnPeriodic(), BattlefieldWG::OnPlayerLeaveWar(), BattlefieldWG::OnPlayerLeaveZone(), spell_kalecgos_spectral_realm_aura::OnRemove(), spell_halion_combustion_consumption::OnRemove(), spell_halion_twilight_realm_handlers::OnRemove(), spell_jormungars_paralytic_toxin::OnRemove(), spell_icc_empowered_blood::OnRemove(), spell_icc_empowered_blood_3::OnRemove(), spell_algalon_phase_punch::OnRemove(), spell_load_into_catapult::spell_load_into_catapult_AuraScript::OnRemove(), spell_yogg_saron_sanity::spell_yogg_saron_sanity_AuraScript::OnRemove(), spell_palehoof_crazed::OnRemove(), spell_dru_barkskin::OnRemove(), spell_gen_damage_reduction_aura::OnRemove(), spell_gen_vehicle_control_link::OnRemove(), spell_hun_aspect_of_the_beast::OnRemove(), spell_hun_ascpect_of_the_viper::OnRemove(), spell_hun_viper_attack_speed::OnRemove(), spell_item_anger_capacitor< StackAmount >::spell_item_anger_capacitor_AuraScript< Stacks >::OnRemove(), spell_item_power_circle::OnRemove(), spell_item_shadowmourne::OnRemove(), spell_item_shadowmourne_soul_fragment::OnRemove(), spell_item_trinket_stack::spell_item_trinket_stack_AuraScript::OnRemove(), spell_mage_combustion_proc::OnRemove(), spell_mage_fingers_of_frost::OnRemove(), spell_pilgrims_bounty_a_serving_of::OnRemove(), spell_wintergrasp_tenacity_refresh::OnRemove(), item_tainted_core::OnRemove(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), npc_descend_into_madness::npc_descend_into_madnessAI::OnSpellClick(), boss_hodir::OnSpellStart(), spell_exploding_orb_hasty_grow::OnStackChange(), spell_item_shadowmourne_soul_fragment::OnStackChange(), npc_constrictor_tentacle::npc_constrictor_tentacleAI::PassengerBoarded(), npc_tournament_mount::npc_tournament_mountAI::PassengerBoarded(), spell_rog_overkill_mos< RemoveSpellId >::PeriodicTick(), spell_hun_feeding_frenzy::PeriodicTick(), ProcessTerrainStatusUpdate(), spell_gen_defend::RefreshVisualShields(), spell_teron_gorefiend_shadow_of_death_remove::RemoveAuras(), BattlefieldWG::RemoveAurasFromPlayer(), boss_festergut::RemoveBlight(), spell_warl_health_funnel::RemoveEffect(), RemoveGameObjectImpl(), boss_najentus::RemoveImpalingSpine(), spell_shirrak_inhibit_magic::RemoveOldAura(), spell_mage_frostfire_bolt::RemovePermafrost(), BattlegroundAV::RemovePlayer(), boss_prince_taldaram::RemovePrison(), boss_keristrasza::RemovePrison(), Player::RemoveSpell(), Pet::removeSpell(), spell_gen_defend::RemoveVisualShields(), boss_baroness_anastari::Reset(), boss_thekal::Reset(), npc_zealot_lorkhan::Reset(), npc_zealot_zath::Reset(), boss_eye_of_cthun::eye_of_cthunAI::Reset(), boss_cthun::cthunAI::Reset(), boss_sartharion::Reset(), npc_shadron::Reset(), boss_deathbringer_saurfang::Reset(), boss_festergut::Reset(), boss_lord_marrowgar::Reset(), npc_frostwing_ymirjar_vrykul::Reset(), boss_elder_brightleaf::boss_elder_brightleafAI::Reset(), boss_elder_stonebark::boss_elder_stonebarkAI::Reset(), boss_elder_ironbranch::boss_elder_ironbranchAI::Reset(), npc_angered_soul_fragment::Reset(), boss_hydross_the_unstable::Reset(), boss_taerar::boss_taerarAI::Reset(), boss_volazj::ResetPlayersPhaseMask(), Player::ResurrectPlayer(), Player::SendQuestUpdate(), OPvPCapturePointZM_Graveyard::SetBeaconState(), boss_thekal::SetData(), npc_sir_thomas::SpellHit(), npc_zuljin_spirit::SpellHit(), npc_omen::SpellHit(), boss_buru::SpellHit(), boss_anub_arak::SpellHit(), boss_gal_darah::SpellHit(), boss_moorabi::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), npc_akama_shade::SpellHit(), boss_najentus::SpellHit(), boss_ahune::SpellHit(), boss_high_botanist_freywinn::SpellHit(), npc_infernal_attacker::npc_infernal_attackerAI::SpellHit(), npc_troll_volunteer::SpellHit(), boss_ossirian::boss_ossirianAI::SpellHit(), boss_sister_svalna::SpellHit(), boss_felblood_kaelthas::SpellHitTarget(), boss_festergut::SpellHitTarget(), npc_malformed_ooze::SpellHitTarget(), npc_unstable_sun_beam::npc_unstable_sun_beamAI::SpellHitTarget(), boss_headless_horseman::StartPhase(), boss_jormungarAI::Submerge(), boss_ichoron::SummonedCreatureDespawn(), boss_moam::SummonedCreatureDies(), Player::SummonPet(), boss_netherspite::boss_netherspiteAI::SwitchToBanishPhase(), boss_netherspite::boss_netherspiteAI::SwitchToPortalPhase(), Totem::UnSummon(), boss_chromaggus::UpdateAI(), boss_ragnaros::UpdateAI(), boss_moroes::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), npc_eye_of_acherus::UpdateAI(), npc_koltira_deathweaver::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_headless_horseman_head::UpdateAI(), boss_headless_horseman::UpdateAI(), boss_baroness_anastari::UpdateAI(), npc_madrigosa::UpdateAI(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::UpdateAI(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), boss_zuljin::UpdateAI(), boss_thekal::UpdateAI(), npc_medivh_bm::UpdateAI(), boss_glutton::UpdateAI(), boss_buru::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_draenei_survivor::npc_draenei_survivorAI::UpdateAI(), boss_volazj::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_prince_taldaram::UpdateAI(), boss_anubarak_trial::UpdateAI(), npc_nerubian_burrower::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), boss_professor_putricide::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), boss_ioc_horde_alliance::UpdateAI(), boss_anomalus::UpdateAI(), boss_magus_telestra::UpdateAI(), boss_loken::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_feral_defender::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), boss_elder_brightleaf::boss_elder_brightleafAI::UpdateAI(), npc_healthy_spore::npc_healthy_sporeAI::UpdateAI(), npc_eonars_gift::npc_eonars_giftAI::UpdateAI(), boss_hodir::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), boss_razorscale::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), boss_anzu::UpdateAI(), npc_akama_shade::UpdateAI(), boss_doomwalker::UpdateAI(), boss_hydross_the_unstable::UpdateAI(), boss_leotheras_the_blind::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_swamplord_muselek::UpdateAI(), boss_vazruden_the_herald::UpdateAI(), boss_magtheridon::UpdateAI(), npc_warden_mellichar::UpdateAI(), boss_laj::UpdateAI(), boss_alar::UpdateAI(), boss_kaelthas::UpdateAI(), boss_taerar::boss_taerarAI::UpdateAI(), npc_crok_scourgebane::UpdateEscortAI(), boss_archaedas::UpdateOutOfCombatEvents(), boss_vazruden_the_herald::UpdateSpecialEvents(), npc_earthen_ring_flamecaller::WaypointPathEnded(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached(), and npc_rizzle_sprysprocket::WaypointStarted().
| void Unit::RemoveAurasDueToSpellByDispel | ( | uint32 | spellId, |
| uint32 | dispellerSpellId, | ||
| ObjectGuid | casterGUID, | ||
| WorldObject * | dispeller, | ||
| uint8 | chargesRemoved = 1 |
||
| ) |
Definition at line 3840 of file Unit.cpp.
References AURA_REMOVE_BY_ENEMY_SPELL, Aura::CallScriptAfterDispel(), Aura::CallScriptDispel(), Aura::GetCasterGUID(), DispelInfo::GetRemovedCharges(), Aura::GetSpellInfo(), SpellInfo::HasAttribute(), m_ownedAuras, Aura::ModCharges(), Aura::ModStackAmount(), and SPELL_ATTR7_DISPEL_CHARGES.
Referenced by Spell::EffectDispel().
| void Unit::RemoveAurasDueToSpellBySteal | ( | uint32 | spellId, |
| ObjectGuid | casterGUID, | ||
| WorldObject * | stealer | ||
| ) |
Definition at line 3868 of file Unit.cpp.
References AURA_REMOVE_BY_ENEMY_SPELL, Aura::CanApplyResilience(), AuraEffect::CanBeRecalculated(), AuraEffect::GetAmount(), AuraEffect::GetBaseAmount(), Aura::GetCaster(), Aura::GetCasterGUID(), Aura::GetCharges(), Aura::GetCritChance(), Aura::GetDuration(), Aura::GetEffect(), Aura::GetId(), Aura::GetMaxDuration(), GetSingleCastAuras(), Aura::GetSpellInfo(), SpellInfo::HasAttribute(), IN_MILLISECONDS, Aura::IsSingleTarget(), m_ownedAuras, MAX_SPELL_EFFECTS, MINUTE, Aura::ModCharges(), Aura::ModStackAmount(), AuraCreateInfo::SetBaseAmount(), AuraCreateInfo::SetCasterGUID(), Aura::SetIsSingleTarget(), SPELL_ATTR7_DISPEL_CHARGES, Object::ToUnit(), Aura::TryRefreshStackOrCreate(), and Aura::UnregisterSingleTarget().
Referenced by Spell::EffectStealBeneficialBuff().
| void Unit::RemoveAurasOnEvade | ( | ) |
Definition at line 4241 of file Unit.cpp.
References IsCharmedOwnedByPlayerOrPlayer(), RemoveAllAurasExceptType(), SPELL_AURA_CLONE_CASTER, and SPELL_AURA_CONTROL_VEHICLE.
Referenced by CreatureAI::_EnterEvadeMode(), boss_deathbringer_saurfang::DamageTaken(), and boss_hodir::EnterEvadeMode().
| void Unit::RemoveAurasWithAttribute | ( | SpellAttr0 | flags | ) |
Definition at line 3986 of file Unit.cpp.
References flags, SpellInfo::HasAttribute(), m_appliedAuras, and RemoveAura().
Referenced by Player::CheckOutdoorsAuraRequirements().
| void Unit::RemoveAurasWithFamily | ( | SpellFamilyNames | family, |
| flag96 const & | familyFlag, | ||
| ObjectGuid | casterGUID | ||
| ) |
Definition at line 4074 of file Unit.cpp.
References Aura::GetCasterGUID(), Aura::GetSpellInfo(), m_appliedAuras, RemoveAura(), SpellInfo::SpellFamilyFlags, and SpellInfo::SpellFamilyName.
Referenced by Aura::HandleAuraSpecificMods().
Definition at line 4045 of file Unit.cpp.
References SpellInfo::AuraInterruptFlags, CURRENT_CHANNELED_SPELL, Aura::GetId(), Aura::GetSpellInfo(), InterruptNonMeleeSpells(), m_currentSpells, m_interruptableAuras, m_interruptMask, m_removedAurasCount, RemoveAura(), SPELL_STATE_CASTING, and UpdateInterruptMask().
Referenced by AtExitCombat(), AttackerStateUpdate(), AtTargetAttacked(), DealDamage(), Dismount(), Spell::TargetInfo::DoDamageAndTriggers(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundEY::EventPlayerCapturedFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), BattlegroundAB::EventPlayerClickedOnFlag(), BattlegroundEY::EventPlayerClickedOnFlag(), VehicleJoinEvent::Execute(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleFeignDeath(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleLootOpcode(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleModStealth(), AuraEffect::HandleModUnattackable(), WorldSession::HandleMovementOpcode(), AuraEffect::HandlePhase(), InterruptMovementBasedAuras(), Mount(), Spell::PreprocessSpellHit(), ProcessTerrainStatusUpdate(), SetStandState(), and Player::TeleportTo().
| void Unit::RemoveAurasWithMechanic | ( | uint32 | mechanicMaskToRemove, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT, |
||
| uint32 | exceptSpellId = 0, |
||
| bool | withEffectMechanics = false |
||
| ) |
Definition at line 4100 of file Unit.cpp.
References AuraApplication::GetBase(), AuraApplication::GetEffectMask(), Object::GetGUID(), Aura::GetId(), Aura::GetSpellInfo(), SpellInfo::GetSpellMechanicMaskByEffectMask(), SpellInfo::Mechanic, and RemoveAppliedAuras().
Referenced by SpellInfo::ApplyAllSpellImmunitiesTo(), spell_pal_divine_purpose::HandleProc(), and RemoveMovementImpairingAuras().
| void Unit::RemoveBindSightAuras | ( | ) |
Definition at line 6319 of file Unit.cpp.
References RemoveAurasByType(), and SPELL_AURA_BIND_SIGHT.
Referenced by RemoveFromWorld().
| void Unit::RemoveCharmAuras | ( | ) |
Definition at line 6324 of file Unit.cpp.
References RemoveAurasByType(), SPELL_AURA_AOE_CHARM, SPELL_AURA_MOD_CHARM, SPELL_AURA_MOD_POSSESS, and SPELL_AURA_MOD_POSSESS_PET.
Referenced by misc_commandscript::HandleUnPossessCommand(), RemoveAllControlled(), RemoveFromWorld(), and Player::StopCastingCharm().
| void Unit::RemoveCharmedBy | ( | Unit * | charmer | ) |
Definition at line 11637 of file Unit.cpp.
References _oldFactionId, ApplyControlStatesIfNeeded(), ASSERT, AttackStop(), CastStop(), CHARM_TYPE_CHARM, CHARM_TYPE_CONVERT, CHARM_TYPE_POSSESS, CHARM_TYPE_VEHICLE, CLASS_WARLOCK, ClearUnitState(), CREATURE_TYPE_DEMON, DeleteCharmInfo(), GetAI(), GetCharmer(), GetCharmInfo(), GetClass(), Creature::GetCreatureTemplate(), GetFirstControlled(), Object::GetGUID(), Object::GetGUID(), GetMotionMaster(), Object::GetTypeId(), HasUnitState(), MotionMaster::InitializeDefault(), IsCharmed(), IsGuardian(), IsOnVehicle(), Object::IsPlayer(), IsVehicle(), LastCharmerGUID, m_combatManager, WorldObject::m_movementInfo, MOVEMENTFLAG_MASK_MOVING, MOVEMENTFLAG_MASK_TURNING, MovementInfo::RemoveMovementFlag(), RemoveUnitFlag(), RestoreFaction(), CombatManager::RevalidateCombat(), ScheduleAIChange(), Player::SendRemoveControlBar(), SetCharm(), SetClass(), Player::SetClientControl(), SetFaction(), CharmInfo::SetPetNumber(), StopMoving(), TC_LOG_ERROR, Object::ToCreature(), Object::ToPlayer(), Object::ToPlayer(), Position::ToString(), CreatureTemplate::type, TYPEID_PLAYER, TYPEID_UNIT, CreatureTemplate::unit_class, UNIT_FLAG_POSSESSED, UNIT_FLAG_REMOVE_CLIENT_CONTROL, and UNIT_STATE_POSSESSED.
Referenced by AuraEffect::HandleCharmConvert(), AuraEffect::HandleModCharm(), AuraEffect::HandleModPossess(), AuraEffect::HandleModPossessPet(), RemoveFromWorld(), Vehicle::RemovePassenger(), and CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadResetScript().
|
inline |
Definition at line 1721 of file Unit.h.
Referenced by AddComboPoints(), and ClearComboPoints().
| void Unit::RemoveDynObject | ( | uint32 | spellId | ) |
Definition at line 5077 of file Unit.cpp.
References DynamicObject::GetSpellId(), m_dynObj, and DynamicObject::Remove().
Referenced by Spell::cancel(), boss_kalecgos_kj::boss_kalecgos_kjAI::EmpowerOrb(), boss_kalecgos_kj::boss_kalecgos_kjAI::ResetOrbs(), and boss_kalecgos_kj::boss_kalecgos_kjAI::SetRingOfBlueFlames().
|
overridevirtual |
Reimplemented from Object.
Definition at line 9578 of file Unit.cpp.
References ABORT, ASSERT, ExitVehicle(), GetAI(), GetCharmedGUID(), GetCharmerGUID(), Object::GetEntry(), Object::GetGUID(), WorldObject::GetOwner(), IsCharmed(), Object::IsInWorld(), IsVehicle(), m_duringRemoveFromWorld, RemoveAllControlled(), RemoveAllDynObjects(), RemoveAllFollowers(), RemoveAllGameObjects(), RemoveAreaAurasDueToLeaveWorld(), RemoveBindSightAuras(), RemoveCharmAuras(), RemoveCharmedBy(), WorldObject::RemoveFromWorld(), RemoveNotOwnSingleTargetAuras(), RemoveVehicleKit(), TC_LOG_FATAL, and UnsummonAllTotems().
Referenced by CleanupBeforeRemoveFromMap(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), Creature::RemoveFromWorld(), Pet::RemoveFromWorld(), and Player::RemoveFromWorld().
| void Unit::RemoveGameObject | ( | GameObject * | gameObj, |
| bool | del | ||
| ) |
Definition at line 5161 of file Unit.cpp.
References Object::GetGUID(), GameObject::GetOwnerGUID(), m_gameObj, and RemoveGameObjectImpl().
Referenced by Spell::cancel(), npc_death_knight_initiate::npc_death_knight_initiateAI::DamageTaken(), Spell::EffectSummonObject(), gobject_commandscript::HandleGameObjectDeleteCommand(), spell_warl_demonic_circle_summon::HandleRemove(), GameObject::Update(), npc_headless_horseman_head::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), npc_nature_bomb::npc_nature_bombAI::UpdateAI(), and npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI().
| void Unit::RemoveGameObject | ( | uint32 | spellid, |
| bool | del | ||
| ) |
Definition at line 5171 of file Unit.cpp.
References m_gameObj, and RemoveGameObjectImpl().
|
protected |
Definition at line 5134 of file Unit.cpp.
References GameObject::Delete(), ObjectGuid::Empty, Object::GetGUID(), GetSpellHistory(), GameObject::GetSpellId(), SpellInfo::IsCooldownStartedOnEvent(), m_ObjectSlot, RemoveAurasDueToSpell(), SpellHistory::SendCooldownEvent(), GameObject::SetOwnerGUID(), GameObject::SetRespawnTime(), and sSpellMgr.
Referenced by RemoveAllGameObjects(), RemoveGameObject(), and RemoveGameObject().
| void Unit::RemoveMovementImpairingAuras | ( | bool | withRoot | ) |
Definition at line 4092 of file Unit.cpp.
References AURA_REMOVE_BY_DEFAULT, MECHANIC_ROOT, MECHANIC_SNARE, and RemoveAurasWithMechanic().
Referenced by Spell::CheckCast(), Spell::EffectTriggerSpell(), spell_pri_imp_shadowform::HandleProc(), and spell_gen_remove_impairing_auras::HandleScriptEffect().
| void Unit::RemoveNotOwnSingleTargetAuras | ( | uint32 | newPhase = 0x0 | ) |
Definition at line 3998 of file Unit.cpp.
References Aura::GetCaster(), Aura::GetCasterGUID(), Object::GetGUID(), GetSingleCastAuras(), Aura::GetUnitOwner(), WorldObject::InSamePhase(), Aura::IsSingleTarget(), m_ownedAuras, Aura::Remove(), and RemoveOwnedAura().
Referenced by RemoveFromWorld(), and SetPhaseMask().
|
inline |
Definition at line 1112 of file Unit.h.
References flags, and UNIT_NPC_FLAGS.
Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), boss_victor_nefarius::BeginEvent(), boss_vaelastrasz::BeginSpeech(), npc_thalorien_dawnseeker::DoAction(), npc_high_overlord_saurfang_icc::DoAction(), npc_muradin_bronzebeard_icc::DoAction(), npc_akama_illidan::DoAction(), VehicleJoinEvent::Execute(), spell_deliver_stolen_horse::HandleScriptEffect(), npc_medivh_bm::JustAppeared(), npc_thassarian::JustAppeared(), npc_millhouse_manastorm::JustAppeared(), npc_akama_illidan::JustSummoned(), npc_wyrmrest_defender::OnCharmed(), instance_stratholme::instance_stratholme_InstanceMapScript::OnCreatureCreate(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnCreatureCreate(), npc_tirion_fordring_tft::OnGossipSelect(), npc_high_overlord_saurfang_igb::OnGossipSelect(), npc_muradin_bronzebeard_igb::OnGossipSelect(), boss_apothecary_hummel::OnGossipSelect(), npc_harrison_jones::npc_harrison_jonesAI::OnGossipSelect(), npc_sylvanas_fos::OnGossipSelect(), npc_jaina_fos::OnGossipSelect(), npc_brann_bronzebeard_ulduar_intro::npc_brann_bronzebeard_ulduar_introAI::OnGossipSelect(), npc_lorekeeper::npc_lorekeeperAI::OnGossipSelect(), npc_sinclari_vh::OnGossipSelect(), npc_observation_ring_keeper::npc_observation_ring_keeperAI::OnGossipSelect(), npc_zulaman_hostage::npc_zulaman_hostageAI::OnGossipSelect(), npc_taretha::OnGossipSelect(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::OnGossipSelect(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::OnGossipSelect(), npc_expedition_commander::OnGossipSelect(), npc_thassarian::OnGossipSelect(), npc_akama_illidan::OnGossipSelect(), npc_barada::npc_baradaAI::OnGossipSelect(), npc_belnistrasz::npc_belnistraszAI::OnQuestAccept(), npc_calvin_montague::npc_calvin_montagueAI::OnQuestAccept(), boss_flame_leviathan_overload_device::boss_flame_leviathan_overload_deviceAI::OnSpellClick(), RemoveVehicleKit(), boss_doomrel::boss_doomrelAI::Reset(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), npc_sir_thomas::Reset(), npc_morridune::Reset(), npc_rizzle_sprysprocket::Reset(), npc_xerestrasza::Reset(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::Reset(), npc_tirion_fordring_tft::Reset(), npc_lake_frog::Reset(), npc_magister_aledis::npc_magister_aledisAI::Reset(), npc_chicken_cluck::npc_chicken_cluckAI::Reset(), hyjalAI::Retreat(), npc_barrett_toc::SendActionToTirion(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_announcer_toc5::npc_announcer_toc5AI::StartEncounter(), hyjalAI::StartEvent(), npc_magister_aledis::npc_magister_aledisAI::StartFight(), npc_thrall_old_hillsbrad::StartWP(), npc_brann_hos::StartWP(), npc_koltira_deathweaver::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_andorov::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), npc_thassarian::UpdateAI(), npc_lake_frog::UpdateAI(), npc_brann_bronzebeard_keystone::UpdateAI(), npc_crusade_recruit::UpdateAI(), npc_akama_shade::UpdateAI(), boss_majordomo::UpdateSpecialEvents(), and Vehicle::Vehicle().
| void Unit::RemoveOwnedAura | ( | Aura * | aura, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3617 of file Unit.cpp.
References ABORT, ASSERT, AURA_REMOVE_NONE, Aura::GetId(), Aura::GetOwner(), Aura::IsRemoved(), m_ownedAuras, RemoveOwnedAura(), and TC_LOG_ERROR.
| void Unit::RemoveOwnedAura | ( | AuraMap::iterator & | i, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3584 of file Unit.cpp.
References Aura::_Remove(), ASSERT, Aura::IsRemoved(), Aura::IsSingleTarget(), m_auraUpdateIterator, m_ownedAuras, m_removedAuras, and Aura::UnregisterSingleTarget().
Referenced by _UpdateSpells(), PlayerAI::CancelAllShapeshifts(), boss_falric::boss_falricAI::DamageTaken(), WorldSession::HandleCancelAuraOpcode(), spell_pal_improved_aura::HandleEffectApply(), spell_pal_aura_mastery::HandleEffectRemove(), spell_pal_improved_aura::HandleEffectRemove(), WorldSession::HandlePetCancelAuraOpcode(), AuraEffect::HandleShapeshiftBoosts(), spell_gen_animal_blood::OnApply(), UnitAura::Remove(), RemoveAllAuras(), RemoveAllAurasExceptType(), RemoveAllAurasExceptType(), RemoveAllAurasOnDeath(), RemoveAllAurasRequiringDeadTarget(), RemoveAllGroupBuffsFromCaster(), Player::RemoveItemDependentAurasAndCasts(), RemoveNotOwnSingleTargetAuras(), RemoveOwnedAura(), RemoveOwnedAura(), RemoveOwnedAuras(), RemoveOwnedAuras(), Player::RemoveSpell(), and Player::UpdateAreaDependentAuras().
| void Unit::RemoveOwnedAura | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0, |
||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3605 of file Unit.cpp.
References m_ownedAuras, and RemoveOwnedAura().
| void Unit::RemoveOwnedAuras | ( | std::function< bool(Aura const *)> const & | check, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3747 of file Unit.cpp.
References m_ownedAuras, and RemoveOwnedAura().
Referenced by _RemoveNoStackAurasDueToAura().
| void Unit::RemoveOwnedAuras | ( | uint32 | spellId, |
| std::function< bool(Aura const *)> const & | check, | ||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3774 of file Unit.cpp.
References m_ownedAuras, and RemoveOwnedAura().
|
inline |
Definition at line 1009 of file Unit.h.
References flags, UNIT_BYTES_2_OFFSET_PET_FLAGS, and UNIT_FIELD_BYTES_2.
Referenced by WorldSession::HandlePetRename().
| void Unit::RemovePlayerFromVision | ( | Player * | player | ) |
Definition at line 6309 of file Unit.cpp.
References m_sharedVision, WorldObject::setActive(), and WorldObject::SetIsStoredInWorldObjectGridContainer().
|
inline |
Definition at line 998 of file Unit.h.
References flags, UNIT_BYTES_2_OFFSET_PVP_FLAG, and UNIT_FIELD_BYTES_2.
Referenced by WorldSession::HandleAreaTriggerOpcode(), Player::InitStatsForLevel(), Player::SetGameMaster(), SetPvP(), Player::UpdateArea(), and Player::UpdatePvPState().
|
inline |
Definition at line 969 of file Unit.h.
References flags, and UNIT_FIELD_FLAGS.
Referenced by AggroAllPlayers(), npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), boss_kologarn::boss_kologarnAI::boss_kologarnAI(), boss_vaelastrasz::boss_vaelastrasz(), Player::BuildPlayerRepop(), Player::CleanupAfterTaxiFlight(), Dismount(), boss_xt002::DisposeHeart(), boss_nightbane::boss_nightbaneAI::DoAction(), npc_stone_keeper::DoAction(), npc_twilight_volunteer::DoAction(), boss_anub_arak::DoAction(), npc_halion_controller::DoAction(), BloodPrincesBossAI::DoAction(), npc_stalagg::DoAction(), npc_feugen::DoAction(), npc_living_constellation::DoAction(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DoAction(), boss_vx_001::boss_vx_001AI::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_xt002_heart::DoAction(), boss_ingvar_the_plunderer::DoAction(), ControllerBaseAI::DoAction(), boss_skadi::DoAction(), npc_naga_distiller::DoAction(), npc_frozen_core::DoAction(), BroggokPrisionerBaseAI::DoAction(), boss_kelidan_the_breaker::DoAction(), boss_razorscale::DoAction(), npc_expedition_trapper::DoAction(), npc_expedition_engineer::DoAction(), HomeMovementGenerator< T >::DoFinalize(), ConfusedMovementGenerator< T >::DoFinalize(), FlightPathMovementGenerator::DoFinalize(), ConfusedMovementGenerator< T >::DoFinalize(), FleeingMovementGenerator< T >::DoFinalize(), WorldSession::DoLootRelease(), Spell::EffectResurrectPet(), Spell::EffectSkinning(), boss_jormungarAI::Emerge(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), AuraEffect::HandleArenaPreparation(), AuraEffect::HandleAuraModDmgImmunity(), AuraEffect::HandleAuraModFaction(), AuraEffect::HandleAuraModPacify(), AuraEffect::HandleAuraModPacifyAndSilence(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleAuraModSilence(), spell_palehoof_awaken_gortok::HandleDummy(), spell_maiev_down::HandleEffectRemove(), AuraEffect::HandleFeignDeath(), WorldSession::HandleLogoutCancelOpcode(), AuraEffect::HandleModUnattackable(), spell_ichoron_drained::HandleRemove(), PetAI::HandleReturnMovement(), spell_palehoof_awaken_subboss::HandleScript(), spell_sholazar_freya_dummy::HandleScript(), npc_headless_horseman_head::HandleStartPhase(), Player::InitStatsForLevel(), boss_julianne::JustDied(), boss_romulo::JustDied(), boss_apothecary_hummel::JustDied(), boss_xt002::JustDied(), boss_illidan_stormrage::JustDied(), boss_alar::JustDied(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustDied(), boss_anubarak_trial::JustEngagedWith(), boss_prince_valanar_icc::JustSummoned(), boss_ignis::boss_ignis_AI::JustSummoned(), npc_snobold_vassal::MountOnBoss(), boss_shade_of_akama::MovementInform(), boss_selin_fireheart::MovementInform(), npc_valkyr_shadowguard::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), boss_jedoga_shadowseeker::MovementInform(), npc_expedition_defender::MovementInform(), boss_flame_leviathan::boss_flame_leviathanAI::MovementInform(), npc_giant_infernal::npc_giant_infernalAI::npc_giant_infernalAI(), npc_pool_of_tar::npc_pool_of_tarAI::npc_pool_of_tarAI(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipSelect(), spell_systems_shutdown::spell_systems_shutdown_AuraScript::OnRemove(), spell_gen_feign_death_all_flags::OnRemove(), spell_gen_feign_death_no_dyn_flag::OnRemove(), spell_gen_prevent_emotes::OnRemove(), npc_melee_hover_disk::PassengerBoarded(), RemoveAllControlled(), RemoveCharmedBy(), Vehicle::RemovePassenger(), boss_prince_taldaram::RemovePrison(), boss_ragnaros::Reset(), npc_curator_astral_flare::npc_curator_astral_flareAI::Reset(), boss_scarlet_commander_mograine::Reset(), boss_thekal::Reset(), npc_zealot_lorkhan::Reset(), npc_zealot_zath::Reset(), boss_eye_of_cthun::eye_of_cthunAI::Reset(), boss_volazj::Reset(), boss_anub_arak::Reset(), dummy_dragonAI::Reset(), boss_general_zarithrian::Reset(), boss_anubarak_trial::Reset(), npc_infernal_volcano::Reset(), npc_nether_portal::Reset(), boss_professor_putricide::Reset(), boss_noth::Reset(), boss_malygos::Reset(), boss_magus_telestra::Reset(), boss_ionar::Reset(), boss_kologarn::boss_kologarnAI::Reset(), boss_mimiron::boss_mimironAI::Reset(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::Reset(), boss_ingvar_the_plunderer::Reset(), ControllerBaseAI::Reset(), npc_venture_co_straggler::Reset(), boss_leotheras_the_blind::Reset(), npc_barada::npc_baradaAI::Reset(), emerald_dragonAI::Reset(), npc_doctor::npc_doctorAI::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), boss_novos::SetBubbled(), SetCharm(), setDeathState(), Pet::setDeathState(), SetImmuneToAll(), SetImmuneToNPC(), SetImmuneToPC(), SetStunned(), Battlefield::ShowNpc(), boss_pyroguard_emberseer::SpellHit(), npc_sir_thomas::SpellHit(), boss_scarlet_commander_mograine::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), boss_ahune::SpellHit(), npc_infernal_attacker::npc_infernal_attackerAI::SpellHit(), npc_ichor_globule::SpellHit(), npc_nether_drake::npc_nether_drakeAI::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), npc_clintar_spirit::npc_clintar_spiritAI::StartEvent(), boss_thaddius::Transition(), boss_ragnaros::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), npc_felblood_kaelthas_phoenix::UpdateAI(), npc_koltira_deathweaver::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), boss_arlokk::UpdateAI(), boss_renataki::UpdateAI(), boss_thekal::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), boss_ouro::boss_ouroAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), boss_volazj::UpdateAI(), boss_anubarak_trial::UpdateAI(), npc_nerubian_burrower::UpdateAI(), boss_tyrannus::UpdateAI(), boss_deathbringer_saurfang::UpdateAI(), boss_kelthuzad::UpdateAI(), boss_noth::UpdateAI(), boss_sapphiron::UpdateAI(), boss_malygos::UpdateAI(), boss_magus_telestra::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_feral_defender::UpdateAI(), npc_vrykul_skeleton::UpdateAI(), boss_svala::UpdateAI(), npc_thassarian::UpdateAI(), boss_illidan_stormrage::UpdateAI(), boss_leotheras_the_blind::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_magtheridon::UpdateAI(), boss_alar::UpdateAI(), boss_kaelthas::UpdateAI(), npc_barada::npc_baradaAI::UpdateAI(), boss_taerar::boss_taerarAI::UpdateAI(), boss_ionar::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), boss_archaedas::UpdateOutOfCombatEvents(), boss_broggok::UpdateOutOfCombatEvents(), CombatManager::UpdateOwnerCombatState(), and UpdatePetCombatState().
|
inline |
Definition at line 975 of file Unit.h.
References flags, and UNIT_FIELD_FLAGS_2.
Referenced by AuraEffect::HandleAuraCloneCaster(), AuraEffect::HandleComprehendLanguage(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleForceMoveForward(), spell_ichoron_drained::HandleRemove(), Player::LoadFromDB(), spell_gen_feign_death_all_flags::OnRemove(), spell_gen_feign_death_no_dyn_flag::OnRemove(), spell_gen_feign_death_no_prevent_emotes::OnRemove(), and Player::SetGameMaster().
|
inline |
Definition at line 1693 of file Unit.h.
Referenced by Vehicle::RemovePassenger(), SetCanFly(), SetDisableGravity(), SetFall(), SetFeatherFall(), SetHover(), SetRooted(), SetSwim(), SetWalk(), SetWaterWalking(), and boss_krick::UpdateAI().
| void Unit::RemoveVehicleKit | ( | ) |
Definition at line 11779 of file Unit.cpp.
References m_unitTypeMask, Object::m_updateFlag, m_vehicleKit, RemoveNpcFlag(), Vehicle::Uninstall(), UNIT_NPC_FLAG_PLAYER_VEHICLE, and UNIT_NPC_FLAG_SPELLCLICK.
Referenced by CleanupBeforeRemoveFromMap(), Dismount(), AuraEffect::HandleAuraSetVehicle(), npc_gunship::npc_gunshipAI::JustDied(), spell_blood_queen_frenzied_bloodthirst::OnRemove(), and RemoveFromWorld().
|
inline |
Definition at line 1021 of file Unit.h.
References flags, UNIT_BYTES_1_OFFSET_VIS_FLAG, and UNIT_FIELD_BYTES_1.
Referenced by AuraEffect::HandleAuraUntrackable(), AuraEffect::HandleModStealth(), and Player::InitStatsForLevel().
| void Unit::RemoveVisibleAura | ( | uint8 | slot | ) |
Definition at line 662 of file Unit.cpp.
References m_visibleAuras, and UpdateAuraForGroup().
Referenced by AuraApplication::_Remove().
|
inlineoverridevirtual |
Reimplemented from Object.
Definition at line 833 of file Unit.h.
References UNIT_DYNAMIC_FLAGS.
Referenced by Creature::AtDisengage(), Spell::EffectResurrectPet(), modify_commandscript::HandleModifyFactionCommand(), Player::KillPlayer(), Creature::setDeathState(), Pet::setDeathState(), and Creature::UpdateEntry().
|
inline |
Definition at line 1113 of file Unit.h.
References flags, and UNIT_NPC_FLAGS.
Referenced by Pet::CreateBaseAtTamed(), npc_wild_wyrm::DamageTaken(), Spell::EffectSummonType(), SmartAI::EndPath(), modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcSetFlagCommand(), Pet::LoadPetFromDB(), go_crystalline_tear::go_crystalline_tearAI::OnQuestAccept(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::Reset(), Creature::setDeathState(), EscortAI::Start(), FollowerAI::StartFollow(), SmartAI::StartPath(), Player::SummonPet(), Creature::UpdateEntry(), and GameEventMgr::UpdateEventNPCFlags().
|
inline |
Definition at line 1010 of file Unit.h.
References flags, UNIT_BYTES_2_OFFSET_PET_FLAGS, and UNIT_FIELD_BYTES_2.
Referenced by Pet::CreateBaseAtTamed(), Creature::LoadCreaturesAddon(), and Pet::LoadPetFromDB().
|
inline |
Definition at line 999 of file Unit.h.
References flags, UNIT_BYTES_2_OFFSET_PVP_FLAG, and UNIT_FIELD_BYTES_2.
Referenced by reset_commandscript::HandleResetStatsOrLevelHelper(), Creature::LoadCreaturesAddon(), SetCharm(), and SetMinion().
|
inline |
Definition at line 970 of file Unit.h.
References flags, and UNIT_FIELD_FLAGS.
Referenced by modify_commandscript::HandleModifyFactionCommand(), reset_commandscript::HandleResetStatsOrLevelHelper(), InitTamedPet(), Pet::LoadPetFromDB(), Creature::setDeathState(), and Creature::UpdateEntry().
|
inline |
Definition at line 976 of file Unit.h.
References flags, and UNIT_FIELD_FLAGS_2.
Referenced by Creature::UpdateEntry().
|
inline |
Definition at line 1022 of file Unit.h.
References flags, UNIT_BYTES_1_OFFSET_VIS_FLAG, and UNIT_FIELD_BYTES_1.
Referenced by Creature::LoadCreaturesAddon().
| void Unit::resetAttackTimer | ( | WeaponAttackType | type = BASE_ATTACK | ) |
Definition at line 606 of file Unit.cpp.
References GetAttackTime(), m_attackTimer, and m_modAttackSpeedPct.
Referenced by _UpdateAutoRepeatSpell(), boss_flame_leviathan::boss_flame_leviathanAI::DoBatteringRamIfReady(), UnitAI::DoMeleeAttackIfReady(), boss_malchezaar::boss_malchezaarAI::DoMeleeAttacksIfReady(), PlayerAI::DoRangedAttackIfReady(), UnitAI::DoSpellAttackIfReady(), Spell::finish(), npc_guard_generic::JustEngagedWith(), Player::Update(), npc_high_overlord_saurfang_igb::UpdateAI(), npc_muradin_bronzebeard_igb::UpdateAI(), and npc_scarlet_ghoul::UpdateAI().
|
private |
Definition at line 9545 of file Unit.cpp.
References GetTopAI(), and PopAI().
Referenced by ScheduleAIChange(), and UpdateCharmAI().
| void Unit::RestoreDisplayId | ( | ) |
Definition at line 10391 of file Unit.cpp.
References AURA_EFFECT_HANDLE_SEND_FOR_CLIENT, Aura::GetApplicationOfTarget(), GetAuraEffectsByType(), AuraApplication::GetBase(), Object::GetGUID(), GetModelForForm(), GetNativeDisplayId(), GetShapeshiftForm(), AuraEffect::HandleEffect(), SetDisplayId(), SPELL_AURA_MOD_SHAPESHIFT, and SPELL_AURA_TRANSFORM.
Referenced by AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraTransform(), boss_tharon_ja::Reset(), and boss_tharon_ja::UpdateAI().
| void Unit::RestoreFaction | ( | ) |
Definition at line 11747 of file Unit.cpp.
References WorldObject::GetOwner(), GetRace(), Object::GetTypeId(), HasUnitTypeMask(), SetFaction(), Player::SetFactionForRace(), Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, and UNIT_MASK_MINION.
Referenced by boss_paletress::boss_paletressAI::boss_paletressAI(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), npc_death_knight_initiate::npc_death_knight_initiateAI::DamageTaken(), AuraEffect::HandleAuraModFaction(), EscortAI::InitializeAI(), npc_thassarian::JustAppeared(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::npc_blastmaster_emi_shortfuseAI(), RemoveCharmedBy(), npc_death_knight_initiate::npc_death_knight_initiateAI::Reset(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), npc_marzon_silent_blade::npc_marzon_silent_bladeAI::Reset(), npc_calvin_montague::npc_calvin_montagueAI::Reset(), and npc_magister_aledis::npc_magister_aledisAI::Reset().
Definition at line 10316 of file Unit.cpp.
References GetMotionMaster(), and IsInvalidMovementSlot().
Referenced by SmartAI::JustReachedHome(), and SmartAI::ResumePath().
Definition at line 13019 of file Unit.cpp.
References AddPct(), GetLevel(), GetTotalAuraModifier(), HasAura(), ModifyPower(), POWER_RAGE, RATE_POWER_RAGE_INCOME, SPELL_AURA_MOD_RAGE_FROM_DAMAGE_DEALT, and sWorld.
Referenced by DealDamage().
| MeleeHitOutcome Unit::RollMeleeOutcomeAgainst | ( | Unit const * | victim, |
| WeaponAttackType | attType | ||
| ) | const |
Definition at line 2165 of file Unit.cpp.
References CREATURE_FLAG_EXTRA_NO_CRUSHING_BLOWS, GetDefenseSkillValue(), GetLevel(), GetLevelForTarget(), GetMaxSkillValueForLevel(), Object::GetTypeId(), GetUnitBlockChance(), GetUnitCriticalChanceAgainst(), GetUnitDodgeChance(), GetUnitParryChance(), GetWeaponSkillValue(), HasAuraType(), Position::HasInArc(), HasUnitState(), IsControlledByPlayer(), Creature::IsInEvadeMode(), IsNonMeleeSpellCast(), IsPet(), IsStandState(), M_PI, 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, MeleeSpellMissChance(), SPELL_AURA_IGNORE_HIT_DIRECTION, Object::ToCreature(), Object::ToCreature(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_STATE_CONTROLLED, and urand().
|
virtual |
Reimplemented in Player.
Definition at line 13805 of file Unit.cpp.
References CHAT_MSG_MONSTER_SAY, CONFIG_LISTEN_RANGE_SAY, and sWorld.
Referenced by npc_commandscript::HandleNpcSayCommand(), wp_commandscript::HandleWpLoadCommand(), wp_commandscript::HandleWpUnLoadCommand(), and Map::ScriptsProcess().
|
virtual |
Reimplemented in Player.
Definition at line 13861 of file Unit.cpp.
References CHAT_MSG_MONSTER_SAY, CONFIG_LISTEN_RANGE_SAY, and sWorld.
| void Unit::ScheduleAIChange | ( | ) |
Definition at line 9532 of file Unit.cpp.
References GetScheduledChangeAI(), IsCharmed(), PushAI(), and RestoreDisabledAI().
Referenced by UnitAI::OnCharmed(), RemoveCharmedBy(), and SetCharmedBy().
| Unit * Unit::SelectNearbyTarget | ( | Unit * | exclude = nullptr, |
| float | dist = NOMINAL_MELEE_RANGE |
||
| ) | const |
Definition at line 10567 of file Unit.cpp.
References GetVictim(), WorldObject::IsWithinLOSInMap(), Trinity::Containers::SelectRandomContainerElement(), and Cell::VisitAllObjects().
Referenced by spell_rog_blade_flurry::CheckProc(), and spell_warr_sweeping_strikes::CheckProc().
| void Unit::SendAttackStateUpdate | ( | CalcDamageInfo * | damageInfo | ) |
Definition at line 5297 of file Unit.cpp.
References CalcDamageInfo::Absorb, WorldPackets::CombatLog::SubDamage::Absorbed, CalcDamageInfo::Attacker, WorldPackets::CombatLog::AttackerStateUpdate::AttackerGUID, WorldPackets::CombatLog::AttackerStateUpdate::BlockAmount, CalcDamageInfo::Blocked, CalcDamageInfo::Damage, WorldPackets::CombatLog::SubDamage::Damage, WorldPackets::CombatLog::AttackerStateUpdate::Damage, CalcDamageInfo::Damages, CalcDamageInfo::DamageSchoolMask, WorldPackets::CombatLog::SubDamage::FDamage, WorldPackets::CombatLog::AttackerStateUpdate::Flags, Object::GetGUID(), GetHealth(), CalcDamageInfo::HitInfo, WorldPackets::CombatLog::AttackerStateUpdate::OverDamage, WorldPackets::CombatLog::AttackerStateUpdate::RageGained, CalcDamageInfo::Resist, WorldPackets::CombatLog::SubDamage::Resisted, WorldPackets::CombatLog::SubDamage::SchoolMask, WorldObject::SendMessageToSet(), WorldPackets::CombatLog::AttackerStateUpdate::SubDmg, WorldPackets::CombatLog::AttackerStateUpdate::SubDmgCount, CalcDamageInfo::Target, CalcDamageInfo::TargetState, WorldPackets::CombatLog::AttackerStateUpdate::VictimGUID, WorldPackets::CombatLog::AttackerStateUpdate::VictimState, and WorldPackets::CombatLog::AttackerStateUpdate::Write().
Referenced by AttackerStateUpdate(), misc_commandscript::HandleDamageCommand(), and SendAttackStateUpdate().
| void Unit::SendAttackStateUpdate | ( | uint32 | HitInfo, |
| Unit * | target, | ||
| uint8 | SwingType, | ||
| SpellSchoolMask | damageSchoolMask, | ||
| uint32 | Damage, | ||
| uint32 | AbsorbDamage, | ||
| uint32 | Resist, | ||
| VictimState | TargetState, | ||
| uint32 | BlockedAmount | ||
| ) |
Definition at line 5328 of file Unit.cpp.
References CalcDamageInfo::Absorb, CalcDamageInfo::Attacker, CalcDamageInfo::Blocked, CalcDamageInfo::Damage, CalcDamageInfo::Damages, CalcDamageInfo::DamageSchoolMask, CalcDamageInfo::HitInfo, CalcDamageInfo::Resist, SendAttackStateUpdate(), CalcDamageInfo::Target, and CalcDamageInfo::TargetState.
| void Unit::SendClearTarget | ( | ) |
Definition at line 13131 of file Unit.cpp.
References Object::GetPackGUID(), WorldObject::SendMessageToSet(), and SMSG_BREAK_TARGET.
Referenced by VehicleJoinEvent::Execute().
| void Unit::SendComboPoints | ( | ) |
Definition at line 10471 of file Unit.cpp.
References GetCharmerOrOwnerGUID(), GetCharmerOrSelfPlayer(), Object::GetPackGUID(), ObjectAccessor::GetPlayer(), WorldPacket::Initialize(), ObjectGuid::IsPlayer(), m_cleanupDone, m_comboPoints, m_comboTarget, Player::SendDirectMessage(), PackedGuid::size(), SMSG_PET_UPDATE_COMBO_POINTS, SMSG_UPDATE_COMBO_POINTS, and Object::ToPlayer().
Referenced by AddComboPoints(), and ClearComboPoints().
Definition at line 6369 of file Unit.cpp.
References Object::GetPackGUID(), WorldObject::SendMessageToSet(), and SMSG_SPELLENERGIZELOG.
Referenced by EnergizeBySpell().
|
private |
Definition at line 579 of file Unit.cpp.
References Movement::MoveSpline::Duration(), Movement::MoveSpline::Finalized(), Object::GetGUID(), WorldPackets::Movement::FlightSplineSync::Guid, Movement::MoveSpline::isCyclic(), movespline, WorldObject::SendMessageToSet(), WorldPackets::Movement::FlightSplineSync::SplineDist, Movement::MoveSpline::timePassed(), and WorldPackets::Movement::FlightSplineSync::Write().
Referenced by Heartbeat().
| void Unit::SendHealSpellLog | ( | HealInfo & | healInfo, |
| bool | critical = false |
||
| ) |
Definition at line 6345 of file Unit.cpp.
References HealInfo::GetAbsorb(), HealInfo::GetEffectiveHeal(), HealInfo::GetHeal(), HealInfo::GetHealer(), Object::GetPackGUID(), HealInfo::GetSpellInfo(), HealInfo::GetTarget(), SpellInfo::Id, WorldObject::SendMessageToSet(), and SMSG_SPELLHEALLOG.
Referenced by HealBySpell().
| void Unit::SendMeleeAttackStart | ( | Unit * | victim | ) |
Definition at line 2353 of file Unit.cpp.
References WorldPackets::Combat::AttackStart::Attacker, Object::GetGUID(), Object::GetGUID(), WorldObject::SendMessageToSet(), WorldPackets::Combat::AttackStart::Victim, and WorldPackets::Combat::AttackStart::Write().
Referenced by Attack(), and Player::SendInitialVisiblePackets().
| void Unit::SendMeleeAttackStop | ( | Unit const * | victim = nullptr | ) | const |
Definition at line 2361 of file Unit.cpp.
References WorldPackets::Combat::SAttackStop::Attacker, Object::GetGUID(), Object::GetGUID(), IsAlive(), WorldPackets::Combat::SAttackStop::NowDead, WorldObject::SendMessageToSet(), TC_LOG_DEBUG, ObjectGuid::ToString(), Position::ToString(), WorldPackets::Combat::SAttackStop::Victim, and WorldPackets::Combat::SAttackStop::Write().
Referenced by Attack(), AttackStop(), WorldSession::HandleAttackSwingOpcode(), and SetControlled().
| void Unit::SendMoveKnockBack | ( | Player * | player, |
| float | speedXY, | ||
| float | speedZ, | ||
| float | vcos, | ||
| float | vsin | ||
| ) |
Definition at line 12164 of file Unit.cpp.
References Object::GetPackGUID(), Player::SendDirectMessage(), and SMSG_MOVE_KNOCK_BACK.
Referenced by JumpTo(), and KnockbackFrom().
| void Unit::SendPeriodicAuraLog | ( | SpellPeriodicAuraLogInfo * | pInfo | ) |
Definition at line 5231 of file Unit.cpp.
References SpellPeriodicAuraLogInfo::absorb, SpellPeriodicAuraLogInfo::auraEff, SpellPeriodicAuraLogInfo::critical, SpellPeriodicAuraLogInfo::damage, AuraEffect::GetAuraType(), AuraEffect::GetCasterGUID(), AuraEffect::GetId(), AuraEffect::GetMiscValue(), Object::GetPackGUID(), SpellInfo::GetSchoolMask(), AuraEffect::GetSpellInfo(), SpellPeriodicAuraLogInfo::multiplier, SpellPeriodicAuraLogInfo::overDamage, SpellPeriodicAuraLogInfo::resist, WorldObject::SendMessageToSet(), SMSG_PERIODICAURALOG, SPELL_AURA_OBS_MOD_HEALTH, SPELL_AURA_OBS_MOD_POWER, SPELL_AURA_PERIODIC_DAMAGE, SPELL_AURA_PERIODIC_DAMAGE_PERCENT, SPELL_AURA_PERIODIC_ENERGIZE, SPELL_AURA_PERIODIC_HEAL, SPELL_AURA_PERIODIC_MANA_LEECH, TC_LOG_ERROR, and ObjectGuid::WriteAsPacked().
Referenced by AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), and AuraEffect::HandlePeriodicManaLeechAuraTick().
| void Unit::SendPetActionFeedback | ( | PetActionFeedback | msg, |
| uint32 | spellId | ||
| ) | const |
-------—Pet responses methods--------------—
Definition at line 10233 of file Unit.cpp.
References WorldObject::GetOwner(), Object::GetTypeId(), WorldPackets::Pet::PetActionFeedback::Response, Player::SendDirectMessage(), WorldPackets::Pet::PetActionFeedback::SpellID, Object::ToPlayer(), TYPEID_PLAYER, and WorldPackets::Pet::PetActionFeedback::Write().
Referenced by WorldSession::HandlePetCancelAuraOpcode().
| void Unit::SendPetActionSound | ( | PetAction | action | ) | const |
Definition at line 10245 of file Unit.cpp.
References WorldPackets::Pet::PetActionSound::Action, Object::GetGUID(), WorldObject::SendMessageToSet(), WorldPackets::Pet::PetActionSound::UnitGUID, and WorldPackets::Pet::PetActionSound::Write().
Referenced by WorldSession::HandlePetActionHelper().
| void Unit::SendPetAIReaction | ( | ObjectGuid | guid | ) | const |
Definition at line 10265 of file Unit.cpp.
References AI_REACTION_HOSTILE, WorldObject::GetOwner(), Object::GetTypeId(), WorldPackets::Combat::AIReaction::Reaction, Player::SendDirectMessage(), Object::ToPlayer(), TYPEID_PLAYER, WorldPackets::Combat::AIReaction::UnitGUID, and WorldPackets::Combat::AIReaction::Write().
Referenced by PetAI::DoAttack(), and WorldSession::HandlePetActionHelper().
| void Unit::SendPetDismissSound | ( | ) | const |
Definition at line 10253 of file Unit.cpp.
References GetNativeDisplayId(), Position::GetPosition(), WorldPackets::Pet::PetDismissSound::ModelId, CreatureDisplayInfoEntry::ModelID, WorldPackets::Pet::PetDismissSound::ModelPosition, sCreatureDisplayInfoStore, WorldObject::SendMessageToSet(), and WorldPackets::Pet::PetDismissSound::Write().
Referenced by WorldSession::HandlePetActionHelper().
Definition at line 11990 of file Unit.cpp.
References Object::GetGUID(), WorldPackets::Spells::PlaySpellVisualKit::KitRecID, WorldObject::SendMessageToSet(), WorldPackets::Spells::PlaySpellVisualKit::Unit, and WorldPackets::Spells::PlaySpellVisualKit::Write().
Referenced by boss_lady_vashj::DoAction(), spell_kaelthas_pure_nether_beam_visual::HandleDummy(), spell_illidan_return_glaives::HandleScriptEffect(), Player::RegenerateAll(), and Trainer::Trainer::TeachSpell().
Definition at line 5287 of file Unit.cpp.
References Object::GetGUID(), Object::GetGUID(), WorldObject::SendMessageToSet(), and SMSG_SPELLORDAMAGE_IMMUNE.
Referenced by DealMeleeDamage(), spell_sindragosa_s_fury::HandleDummy(), and AuraEffect::SendTickImmune().
Definition at line 5277 of file Unit.cpp.
References Object::GetGUID(), Object::GetGUID(), WorldObject::SendMessageToSet(), and SMSG_PROCRESIST.
| void Unit::SendSpellNonMeleeDamageLog | ( | SpellNonMeleeDamage const * | log | ) |
Definition at line 5199 of file Unit.cpp.
References SpellNonMeleeDamage::absorb, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Absorbed, SpellNonMeleeDamage::attacker, SpellNonMeleeDamage::blocked, WorldPackets::CombatLog::SpellNonMeleeDamageLog::CasterGUID, SpellNonMeleeDamage::damage, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Damage, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Flags, Object::GetGUID(), Object::GetGUID(), GetHealth(), SpellNonMeleeDamage::HitInfo, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Me, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Overkill, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Periodic, SpellNonMeleeDamage::periodicLog, SpellNonMeleeDamage::resist, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Resisted, SpellNonMeleeDamage::schoolMask, WorldPackets::CombatLog::SpellNonMeleeDamageLog::SchoolMask, WorldObject::SendMessageToSet(), WorldPackets::CombatLog::SpellNonMeleeDamageLog::ShieldBlock, SpellNonMeleeDamage::SpellID, WorldPackets::CombatLog::SpellNonMeleeDamageLog::SpellID, SpellNonMeleeDamage::target, and WorldPackets::CombatLog::SpellNonMeleeDamageLog::Write().
Referenced by CalcAbsorbResist(), Spell::TargetInfo::DoDamageAndTriggers(), Spell::EffectEnvironmentalDMG(), misc_commandscript::HandleDamageCommand(), spell_sindragosa_s_fury::HandleDummy(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), and AuraEffect::HandleProcTriggerDamageAuraProc().
| void Unit::SendTeleportPacket | ( | Position const & | pos, |
| bool | teleportingTransport = false |
||
| ) |
Definition at line 12820 of file Unit.cpp.
References GameClient::GetBasePlayer(), GetDirectTransport(), GetGameClientMovingMe(), GameTime::GetGameTimeMS(), Object::GetGUID(), GetMovementCounterAndInc(), Position::GetPosition(), MovementInfo::guid, IsMovedByClient(), WorldObject::m_movementInfo, MovementInfo::pos, MovementInfo::TransportInfo::pos, Position::Relocate(), Player::SendDirectMessage(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveTeleport::SequenceIndex, WorldPackets::Movement::MoveTeleport::Status, WorldPackets::Movement::MoveUpdateTeleport::Status, MovementInfo::time, MovementInfo::transport, WorldPackets::Movement::MoveTeleport::Write(), and WorldPackets::Movement::MoveUpdateTeleport::Write().
Referenced by NearTeleportTo(), and Player::TeleportTo().
|
protected |
Definition at line 9506 of file Unit.cpp.
References PushAI(), and RefreshAI().
Referenced by Creature::AIM_Create(), and UpdateCharmAI().
| void Unit::SetAnimTier | ( | AnimTier | animTier | ) |
Definition at line 10367 of file Unit.cpp.
References Object::IsCreature(), Object::SetByteValue(), UNIT_BYTES_1_OFFSET_ANIM_TIER, and UNIT_FIELD_BYTES_1.
Referenced by boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), Creature::LoadCreaturesAddon(), npc_enslaved_proto_drake::MovementInform(), npc_enslaved_proto_drake::SetData(), SetDisableGravity(), SetHover(), boss_jedoga_shadowseeker::SummonedCreatureDies(), npc_madrigosa::UpdateAI(), and UpdateSplineMovement().
|
inline |
Definition at line 920 of file Unit.h.
References SPELL_SCHOOL_NORMAL.
Referenced by Player::InitStatsForLevel(), boss_high_astromancer_solarian::Reset(), boss_high_astromancer_solarian::UpdateAI(), Creature::UpdateArmor(), Guardian::UpdateArmor(), and Player::UpdateArmor().
|
inline |
Definition at line 1557 of file Unit.h.
References UNIT_FIELD_ATTACK_POWER.
Referenced by Player::InitStatsForLevel(), Creature::UpdateAttackPowerAndDamage(), Guardian::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 1559 of file Unit.h.
References UNIT_FIELD_ATTACK_POWER_MODS.
Referenced by Player::InitStatsForLevel(), Creature::UpdateAttackPowerAndDamage(), Guardian::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 1558 of file Unit.h.
References UNIT_FIELD_ATTACK_POWER_MODS.
Referenced by Player::InitStatsForLevel(), Creature::UpdateAttackPowerAndDamage(), Guardian::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 1560 of file Unit.h.
References UNIT_FIELD_ATTACK_POWER_MULTIPLIER.
Referenced by Player::InitStatsForLevel(), Creature::UpdateAttackPowerAndDamage(), Guardian::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 960 of file Unit.h.
References UNIT_FIELD_BASEATTACKTIME.
Referenced by Player::_ApplyWeaponDamage(), Player::InitDataForForm(), Guardian::InitStatsForLevel(), npc_pet_hunter_snake_trap::JustAppeared(), Player::SetRegularAttackTime(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), and Creature::UpdateEntry().
|
inline |
Definition at line 846 of file Unit.h.
Referenced by _UpdateAutoRepeatSpell(), Attack(), DealMeleeDamage(), Player::Update(), and Update().
Definition at line 11981 of file Unit.cpp.
References AddAura(), GetAura(), Object::GetGUID(), and Aura::SetStackAmount().
Referenced by spell_thaddius_polarity_charge::HandleTargets(), BattlefieldWG::OnPlayerJoinWar(), and npc_feral_defender::Reset().
|
inline |
Definition at line 1568 of file Unit.h.
Referenced by Player::_ApplyWeaponDamage(), Guardian::InitStatsForLevel(), and Creature::UpdateLevelDependantStats().
|
inline |
Definition at line 856 of file Unit.h.
References UNIT_FIELD_BOUNDINGRADIUS.
Referenced by boss_hadronox::InitializeAI(), npc_felmyst_trail::npc_felmyst_trail(), boss_felmyst::Reset(), Creature::SetDisplayId(), Creature::SetObjectScale(), and Player::SetObjectScale().
|
inlinevirtual |
Reimplemented in Creature.
Definition at line 852 of file Unit.h.
Referenced by Spell::EffectDualWield(), Player::RemoveSpell(), and Creature::SetCanDualWield().
| bool Unit::SetCanFly | ( | bool | enable, |
| bool | packetOnly = false |
||
| ) |
Definition at line 13349 of file Unit.cpp.
References AddUnitMovementFlag(), GameClient::GetBasePlayer(), GetGameClientMovingMe(), Object::GetGUID(), GetMovementCounterAndInc(), Position::GetPositionZ(), Object::GetTypeId(), HasUnitMovementFlag(), IsMovedByClient(), WorldObject::m_movementInfo, MOVEMENTFLAG_CAN_FLY, MOVEMENTFLAG_FALLING, MOVEMENTFLAG_MASK_MOVING_FLY, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, MSG_MOVE_UPDATE_CAN_FLY, RemoveUnitMovementFlag(), Player::SendDirectMessage(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, Player::SetFallInformation(), SMSG_MOVE_SET_CAN_FLY, SMSG_MOVE_UNSET_CAN_FLY, SMSG_SPLINE_MOVE_SET_FLYING, SMSG_SPLINE_MOVE_UNSET_FLYING, WorldPackets::Movement::MoveUpdate::Status, Object::ToPlayer(), TYPEID_PLAYER, WorldPackets::Movement::MoveUpdate::Write(), WorldPackets::Movement::MoveSplineSetFlag::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
Referenced by boss_sindragosa::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), debug_commandscript::HandleDebugMoveflagsCommand(), boss_sindragosa::JustReachedHome(), KnockbackFrom(), boss_nefarian::MovementInform(), boss_onyxia::MovementInform(), boss_saviana_ragefire::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), npc_rimefang_icc::MovementInform(), npc_melee_hover_disk::PassengerBoarded(), npc_caster_hover_disk::PassengerBoarded(), npc_grauf::PassengerBoarded(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::Reset(), boss_saviana_ragefire::Reset(), npc_unleashed_ballAI::Reset(), boss_rimefang::Reset(), boss_sindragosa::Reset(), npc_spinestalker::Reset(), npc_rimefang_icc::Reset(), npc_simon_bunny::npc_simon_bunnyAI::SetGUID(), npc_pet_dk_ebon_gargoyle::SpellHit(), boss_saviana_ragefire::UpdateAI(), boss_sindragosa::UpdateAI(), npc_rimefang_icc::UpdateAI(), boss_urom::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), and Creature::UpdateMovementFlags().
|
inline |
Definition at line 1548 of file Unit.h.
Referenced by Player::_ApplyAllStatBonuses(), Player::_RemoveAllStatBonuses(), Player::LoadFromDB(), Pet::LoadPetFromDB(), and Creature::UpdateEntry().
| void Unit::SetCantProc | ( | bool | apply | ) |
Definition at line 10749 of file Unit.cpp.
References ASSERT, and m_procDeep.
Referenced by TriggerAurasProcOnEvent().
|
inline |
Definition at line 1474 of file Unit.h.
References UNIT_FIELD_CHANNEL_OBJECT.
Referenced by Spell::EffectTransmitted(), Player::LoadFromDB(), spell_mimiron_p3wx2_laser_barrage::spell_mimiron_p3wx2_laser_barrage_SpellScript::OnHit(), spell_mimiron_spinning_up::spell_mimiron_spinning_up_SpellScript::OnHit(), Spell::SendChannelStart(), and Spell::SendChannelUpdate().
|
inline |
Definition at line 1472 of file Unit.h.
References UNIT_CHANNEL_SPELL.
Referenced by Player::LoadFromDB(), Spell::SendChannelStart(), and Spell::SendChannelUpdate().
| void Unit::SetCharm | ( | Unit * | target, |
| bool | apply | ||
| ) |
Definition at line 6027 of file Unit.cpp.
References _isWalkingBeforeCharm, Object::AddGuidValue(), ASSERT_WITH_SIDE_EFFECTS, ClearUnitState(), GetCharmedGUID(), GetCharmerGUID(), WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), Object::GetEntry(), Object::GetGUID(), Object::GetGUID(), WorldObject::GetName(), GetOwnerGUID(), GetPvpFlags(), Object::GetTypeId(), HasUnitTypeMask(), IsWalking(), m_charmed, m_charmer, m_Controlled, m_ControlledByPlayer, Object::RemoveGuidValue(), RemoveUnitFlag(), ReplaceAllPvpFlags(), SetUnitFlag(), SetWalk(), Object::ToCreature(), Object::ToPlayer(), ObjectGuid::ToString(), Position::ToString(), TYPEID_PLAYER, UNIT_BYTE2_FLAG_NONE, UNIT_FIELD_CHARM, UNIT_FIELD_CHARMEDBY, UNIT_FLAG_PLAYER_CONTROLLED, UNIT_MASK_MINION, UNIT_STATE_CHARMED, UpdatePetCombatState(), and Player::UpdatePvPState().
Referenced by RemoveCharmedBy(), SetCharmedBy(), and Player::StopCastingCharm().
| bool Unit::SetCharmedBy | ( | Unit * | charmer, |
| CharmType | type, | ||
| AuraApplication const * | aurApp = nullptr |
||
| ) |
Definition at line 11460 of file Unit.cpp.
References _oldFactionId, AddUnitState(), ASSERT, AttackStop(), CastStop(), CHARM_TYPE_CHARM, CHARM_TYPE_CONVERT, CHARM_TYPE_POSSESS, CHARM_TYPE_VEHICLE, Player::CharmSpellInitialize(), CLASS_MAGE, CLASS_WARLOCK, MotionMaster::Clear(), CREATURE_TYPE_DEMON, GetAI(), GetCharmerGUID(), GetCharmInfo(), GetClass(), Creature::GetCreatureTemplate(), GetFaction(), GameTime::GetGameTime(), Object::GetGUID(), Object::GetGUID(), GetMotionMaster(), AuraApplication::GetRemoveMode(), WorldObject::GetTransport(), Object::GetTypeId(), GetVehicleKit(), MotionMaster::HasMovementGenerator(), CharmInfo::InitCharmCreateSpells(), InitCharmInfo(), MotionMaster::InitializeDefault(), CharmInfo::InitPossessCreateSpells(), Object::IsInWorld(), m_combatManager, MOTION_PRIORITY_HIGHEST, MOTION_PRIORITY_NORMAL, PauseMovement(), Player::PossessSpellInitialize(), RemoveAurasByType(), CombatManager::RevalidateCombat(), ScheduleAIChange(), SetCharm(), SetClass(), Player::SetClientControl(), SetFaction(), SetPetNameTimestamp(), CharmInfo::SetPetNumber(), SetUnitFlag(), sObjectMgr, SPELL_AURA_MOUNTED, Player::StopCastingBindSight(), Player::StopCastingCharm(), StopMoving(), TC_LOG_DEBUG, TC_LOG_FATAL, Object::ToCreature(), Object::ToPlayer(), Object::ToPlayer(), ObjectGuid::ToString(), Position::ToString(), CreatureTemplate::type, TYPEID_PLAYER, TYPEID_UNIT, UNIT_FLAG_POSSESSED, UNIT_FLAG_REMOVE_CLIENT_CONTROL, UNIT_STATE_CHARMED, UNIT_STATE_POSSESSED, and Player::VehicleSpellInitialize().
Referenced by VehicleJoinEvent::Execute(), AuraEffect::HandleCharmConvert(), AuraEffect::HandleModCharm(), AuraEffect::HandleModPossess(), AuraEffect::HandleModPossessPet(), spell_dk_raise_ally::spell_dk_raise_ally_SpellScript::HandleSummon(), and Puppet::InitSummon().
|
inline |
Definition at line 910 of file Unit.h.
References UNIT_BYTES_0_OFFSET_CLASS, and UNIT_FIELD_BYTES_0.
Referenced by Player::Create(), Pet::CreateBaseAtTamed(), Creature::InitEntry(), Player::LoadFromDB(), Pet::LoadPetFromDB(), RemoveCharmedBy(), SetCharmedBy(), and Player::SummonPet().
|
inline |
Definition at line 854 of file Unit.h.
References UNIT_FIELD_COMBATREACH.
Referenced by boss_hadronox::InitializeAI(), boss_felmyst::Reset(), boss_kiljaeden::boss_kiljaedenAI::Reset(), Creature::SetDisplayId(), Creature::SetObjectScale(), and Player::SetObjectScale().
|
protected |
Definition at line 11434 of file Unit.cpp.
References CONFUSED_MOTION_TYPE, ObjectGuid::Empty, EnsureVictim(), GetCharmerOrSelfPlayer(), Object::GetGUID(), GetMotionMaster(), GetVictim(), IsAlive(), MotionMaster::MoveConfused(), MotionMaster::Remove(), Player::SetClientControl(), and SetTarget().
Referenced by ApplyControlStatesIfNeeded(), and SetControlled().
| void Unit::SetControlled | ( | bool | apply, |
| UnitState | state | ||
| ) |
Definition at line 11227 of file Unit.cpp.
References AddUnitState(), ApplyControlStatesIfNeeded(), CastStop(), ClearUnitState(), GetVehicle(), HasAuraType(), HasUnitState(), IsRooted(), SendMeleeAttackStop(), SetConfused(), SetFeared(), SetRooted(), SetStunned(), SPELL_AURA_MOD_CONFUSE, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_STUN, Object::ToCreature(), UNIT_STATE_CONFUSED, UNIT_STATE_CONTROLLED, UNIT_STATE_FLEEING, UNIT_STATE_MELEE_ATTACKING, UNIT_STATE_ROOT, and UNIT_STATE_STUNNED.
Referenced by _EnterVehicle(), _ExitVehicle(), Vehicle::ApplyAllImmunities(), boss_kologarn::boss_kologarnAI::boss_kologarnAI(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), boss_illidan_stormrage::DamageTaken(), npc_stalagg::DoAction(), npc_feugen::DoAction(), Creature::DoFleeToGetAssistance(), boss_jormungarAI::Emerge(), CritterAI::EnterEvadeMode(), VehicleJoinEvent::Execute(), boss_illidan_stormrage::ExecuteSpecialEvents(), AuraEffect::HandleAuraModRoot(), AuraEffect::HandleAuraModStun(), debug_commandscript::HandleDebugMoveflagsCommand(), AuraEffect::HandleModConfuse(), AuraEffect::HandleModFear(), AuraEffect::HandlePreventFleeing(), CritterAI::JustEngagedWith(), boss_ignis::boss_ignis_AI::JustSummoned(), Creature::LoadTemplateRoot(), boss_malygos::MovementInform(), boss_alar::MovementInform(), npc_gunship_gunner::MovementInform(), npc_gunship_rocketeer::MovementInform(), npc_gunship_mage::MovementInform(), npc_scorch_ground::npc_scorch_groundAI::npc_scorch_groundAI(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::OnPlayerLeave(), spell_skadi_ride_vehicle::OnRemoveVehicle(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::OnUnitDeath(), npc_gunship_cannon::PassengerBoarded(), boss_thekal::Reset(), boss_volazj::Reset(), boss_acidmaw::Reset(), boss_devourer_of_souls::Reset(), boss_urom::Reset(), boss_ionar::Reset(), boss_thorim::boss_thorimAI::Reset(), npc_tournament_training_dummy::Reset(), boss_illidan_stormrage::Reset(), boss_ionar::SpellHit(), boss_volazj::SpellHitTarget(), boss_jormungarAI::Submerge(), boss_thekal::UpdateAI(), boss_archimonde::UpdateAI(), boss_volazj::UpdateAI(), boss_devourer_of_souls::UpdateAI(), boss_urom::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), npc_tournament_training_dummy::UpdateAI(), boss_illidan_stormrage::UpdateAI(), boss_alar::UpdateAI(), and boss_ionar::UpdateAI().
|
inline |
Definition at line 978 of file Unit.h.
References UNIT_CREATED_BY_SPELL.
Referenced by Spell::EffectSummonPet(), InitTamedPet(), Pet::LoadPetFromDB(), Map::SummonCreature(), and Transport::SummonPassenger().
|
inline |
Definition at line 1462 of file Unit.h.
References UNIT_FIELD_BASE_HEALTH.
Referenced by Player::GiveLevel(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), and Creature::UpdateLevelDependantStats().
|
inline |
Definition at line 1464 of file Unit.h.
References UNIT_FIELD_BASE_MANA.
Referenced by Player::GiveLevel(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), and Creature::UpdateLevelDependantStats().
|
inline |
Definition at line 1461 of file Unit.h.
Referenced by Player::GiveLevel(), Player::InitStatsForLevel(), and Guardian::InitStatsForLevel().
|
inline |
Definition at line 1257 of file Unit.h.
References UNIT_FIELD_CREATEDBY.
Referenced by Spell::EffectSummonType(), spell_putricide_mutated_transformation::HandleSummon(), Minion::InitStats(), InitTamedPet(), Player::LoadFromDB(), Pet::LoadPetFromDB(), and Player::SummonPet().
|
inline |
| void Unit::SetCurrentCastSpell | ( | Spell * | pSpell | ) |
Definition at line 2968 of file Unit.cpp.
References AddUnitState(), ASSERT, CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, Spell::GetCastTime(), Spell::GetCurrentContainer(), Spell::GetSpellInfo(), SpellInfo::Id, InterruptSpell(), m_AutoRepeatFirstCast, m_currentSpells, Spell::m_selfContainer, Spell::SetReferencedFromCurrent(), and UNIT_STATE_CASTING.
|
virtual |
Reimplemented in Creature, Minion, Pet, and Player.
Definition at line 8668 of file Unit.cpp.
References ALIVE, ClearAllReactives(), ClearComboPointHolders(), ClearDiminishings(), CombatStop(), DisableSpline(), EMOTE_ONESHOT_NONE, ExitVehicle(), WorldObject::GetInstanceScript(), GetMotionMaster(), GetPowerType(), GetVehicle(), WorldObject::GetZoneScript(), InterruptNonMeleeSpells(), IsNonMeleeSpellCast(), JUST_DIED, JUST_RESPAWNED, m_deathState, RemoveAllAurasOnDeath(), RemoveAllControlled(), RemoveUnitFlag(), SetEmoteState(), SetHealth(), SetPower(), UNIT_FLAG_SKINNABLE, and UnsummonAllTotems().
Referenced by _ExitVehicle(), boss_twinemperorsAI::DamageTaken(), Spell::finish(), AuraEffect::HandleSpiritOfRedemption(), Kill(), Creature::setDeathState(), and Player::setDeathState().
| bool Unit::SetDisableGravity | ( | bool | disable, |
| bool | updateAnimTier = true |
||
| ) |
Definition at line 13262 of file Unit.cpp.
References AddUnitMovementFlag(), Fly, GameClient::GetBasePlayer(), GetGameClientMovingMe(), Object::GetGUID(), GetMovementCounterAndInc(), Ground, HasUnitState(), Hover, Object::IsCreature(), IsGravityDisabled(), IsHovering(), IsMovedByClient(), IsRooted(), WorldObject::m_movementInfo, MOVEMENTFLAG_DISABLE_GRAVITY, MOVEMENTFLAG_FALLING, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, MSG_MOVE_GRAVITY_CHNG, RemoveUnitMovementFlag(), Player::SendDirectMessage(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SetAnimTier(), SMSG_MOVE_GRAVITY_DISABLE, SMSG_MOVE_GRAVITY_ENABLE, SMSG_SPLINE_MOVE_GRAVITY_DISABLE, SMSG_SPLINE_MOVE_GRAVITY_ENABLE, WorldPackets::Movement::MoveUpdate::Status, Object::ToCreature(), UNIT_STATE_ROOT, WorldPackets::Movement::MoveUpdate::Write(), WorldPackets::Movement::MoveSplineSetFlag::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
Referenced by boss_aerial_command_unit::boss_aerial_command_unitAI::boss_aerial_command_unitAI(), boss_prince_taldaram::boss_prince_taldaram(), boss_vx_001::boss_vx_001AI::boss_vx_001AI(), boss_jeklik::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), boss_blood_queen_lana_thel::DoAction(), npc_high_overlord_saurfang_icc::DoAction(), npc_muradin_bronzebeard_icc::DoAction(), boss_sindragosa::DoAction(), boss_algalon_the_observer::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), boss_razorscale::DoAction(), boss_illidan_stormrage::DoAction(), npc_pulsing_pumpkin::DoAction(), boss_nightbane::boss_nightbaneAI::EnterEvadeMode(), boss_blood_queen_lana_thel::EnterEvadeMode(), boss_felmyst::EnterPhase(), boss_nightbane::boss_nightbaneAI::ExecuteEvent(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), debug_commandscript::HandleDebugMoveflagsCommand(), spell_gen_gryphon_wyvern_mount_check::HandleEffectPeriodic(), boss_felmyst::HandleFlightSequence(), boss_razorscale::Initialize(), boss_headless_horseman::InitializeAI(), npc_pulsing_pumpkin::InitializeAI(), npc_icc_nerubar_broodkeeper::InitializeAI(), boss_kirtonos_the_herald::JustAppeared(), npc_brood_of_anzu::JustAppeared(), boss_vazruden_the_herald::JustAppeared(), boss_alar::JustAppeared(), boss_the_lich_king::JustDied(), boss_mimiron::boss_mimironAI::JustDied(), boss_jeklik::JustEngagedWith(), boss_ayamiss::JustEngagedWith(), boss_ayamiss::JustReachedHome(), boss_blood_queen_lana_thel::JustReachedHome(), boss_sindragosa::JustReachedHome(), boss_sister_svalna::JustReachedHome(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::JustSummoned(), boss_nefarian::MovementInform(), boss_headless_horseman::MovementInform(), boss_onyxia::MovementInform(), boss_ayamiss::MovementInform(), boss_blood_queen_lana_thel::MovementInform(), boss_sister_svalna::MovementInform(), npc_icc_nerubar_broodkeeper::MovementInform(), boss_malygos::MovementInform(), npc_ruby_emerald_amber_drake::MovementInform(), boss_alar::MovementInform(), boss_saviana_ragefire::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), npc_rimefang_icc::MovementInform(), boss_nightbane::boss_nightbaneAI::MovementInform(), npc_kalecgos::MovementInform(), boss_razorscale::MovementInform(), npc_gothik_trigger::npc_gothik_trigger(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), npc_melee_hover_disk::PassengerBoarded(), npc_caster_hover_disk::PassengerBoarded(), npc_grauf::PassengerBoarded(), boss_prince_taldaram::RemovePrison(), boss_nightbane::boss_nightbaneAI::Reset(), boss_felmyst::Reset(), boss_kalecgos_kj::boss_kalecgos_kjAI::Reset(), npc_shield_orb::npc_shield_orbAI::Reset(), boss_saviana_ragefire::Reset(), npc_unleashed_ballAI::Reset(), npc_open_portal_target_toc::Reset(), npc_blood_queen_lana_thel::Reset(), boss_sindragosa::Reset(), npc_spinestalker::Reset(), npc_rimefang_icc::Reset(), boss_malygos::Reset(), boss_urom::Reset(), boss_thorim::boss_thorimAI::Reset(), boss_svala::Reset(), boss_illidan_stormrage::Reset(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::Reset(), Creature::setDeathState(), SmartAI::SetDisableGravity(), npc_hive_zara_swarmer::SpellHit(), npc_high_overlord_saurfang_icc::SpellHit(), npc_muradin_bronzebeard_icc::SpellHit(), npc_saurfang_event::SpellHit(), npc_image_of_medivh::npc_image_of_medivhAI::StartEvent(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), npc_madrigosa::UpdateAI(), boss_kalecgos::UpdateAI(), npc_highborne_lamenter::npc_highborne_lamenterAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_saviana_ragefire::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), boss_sindragosa::UpdateAI(), boss_the_lich_king::UpdateAI(), boss_urom::UpdateAI(), npc_ruby_emerald_amber_drake::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_feral_defender::UpdateAI(), boss_razorscale::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), boss_svala::UpdateAI(), boss_illidan_stormrage::UpdateAI(), boss_alar::UpdateAI(), boss_kaelthas::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), boss_kirtonos_the_herald::UpdateIntroEvents(), Creature::UpdateMovementFlags(), boss_vazruden_the_herald::UpdateSpecialEvents(), and npc_brood_of_anzu::WaypointPathEnded().
|
virtual |
Reimplemented in Creature, and Pet.
Definition at line 10383 of file Unit.cpp.
References SetGender(), Object::SetUInt32Value(), sObjectMgr, and UNIT_FIELD_DISPLAYID.
Referenced by spell_love_is_in_the_air_service_uniform::AfterApply(), spell_item_dire_brew::AfterApply(), DeMorph(), AuraEffect::HandleAuraCloneCaster(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraTransform(), modify_commandscript::HandleModifyMorphCommand(), spell_mimiron_rocket_strike_target_select::spell_mimiron_rocket_strike_target_select_SpellScript::HandleScript(), Player::InitDisplayIds(), go_crystalline_tear::go_crystalline_tearAI::OnQuestAccept(), npc_bountiful_table::npc_bountiful_tableAI::PassengerBoarded(), RestoreDisplayId(), and Creature::SetDisplayId().
|
inline |
Definition at line 981 of file Unit.h.
References UNIT_NPC_EMOTESTATE.
Referenced by Attack(), boss_vx_001::boss_vx_001AI::boss_vx_001AI(), npc_icc_nerubar_broodkeeper::DoAction(), CoolestFriendBaseAI::DoAction(), boss_vx_001::boss_vx_001AI::DoAction(), boss_grand_warlock_nethekurse::DoAction(), npc_martha_goslin::npc_martha_goslinAI::DoAction(), modify_commandscript::HandleModifyStandStateCommand(), WorldSession::HandleMovementOpcode(), npc_commandscript::HandleNpcPlayEmoteCommand(), spell_operation_gnomeregan_basic_orders_emote::HandlePeriodic(), spell_sholazar_freya_dummy::HandleScript(), WorldSession::HandleTextEmoteOpcode(), npc_icc_nerubar_broodkeeper::InitializeAI(), npc_martha_goslin::npc_martha_goslinAI::JustAppeared(), boss_pathaleon_the_calculator::JustAppeared(), npc_dk_understudy::JustEngagedWith(), npc_dragonflayer_forge_master::JustEngagedWith(), npc_tirion_fordring_tft::JustReachedHome(), Creature::LoadCreaturesAddon(), npc_martha_goslin::npc_martha_goslinAI::MovementInform(), npc_tirion_fordring_tft::MovementInform(), npc_apothecary_genericAI::MovementInform(), npc_expedition_engineer::MovementInform(), npc_skadi_trashAI::MovementInform(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), npc_amberpine_woodsman::Reset(), npc_crusade_recruit::Reset(), boss_shade_of_akama::Reset(), npc_dancing_flames::Reset(), setDeathState(), boss_shade_of_akama::SpellHit(), boss_felblood_kaelthas::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_partygoer_pather::UpdateAI(), npc_partygoer::UpdateAI(), npc_harrison_jones::npc_harrison_jonesAI::UpdateAI(), npc_martha_goslin::npc_martha_goslinAI::UpdateAI(), npc_medivh_bm::UpdateAI(), npc_andorov::UpdateAI(), npc_clintar_spirit::npc_clintar_spiritAI::UpdateAI(), boss_lich_king_toc::UpdateAI(), npc_fizzlebang_toc::UpdateAI(), npc_amberpine_woodsman::UpdateAI(), npc_brann_bronzebeard_keystone::UpdateAI(), npc_crusade_recruit::UpdateAI(), npc_alchemist_finklestein::UpdateAI(), npc_akama_illidan::UpdateAI(), boss_magtheridon::UpdateAI(), boss_grand_warlock_nethekurse::UpdateOutOfCombatEvents(), npc_thassarian::WaypointPathEnded(), and npc_ghoul::npc_ghoulAI::WaypointReached().
|
inline |
Definition at line 1702 of file Unit.h.
Referenced by debug_commandscript::HandleDebugMoveflagsCommand().
| void Unit::SetFacingTo | ( | float | ori, |
| bool | force = true, |
||
| uint32 | movementId = EVENT_FACE |
||
| ) |
Definition at line 13226 of file Unit.cpp.
References Movement::MoveSpline::Finalized(), GetMotionMaster(), IsStopped(), MotionMaster::MoveFace(), and movespline.
Referenced by npc_expedition_engineer::ChangeOrientation(), boss_grand_warlock_nethekurse::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), FormationMovementGenerator::DoUpdate(), DistractMovementGenerator::Finalize(), spell_item_unusual_compass::HandleDummy(), boss_felmyst::HandleFlightSequence(), boss_algalon_the_observer::MovementInform(), npc_martha_goslin::npc_martha_goslinAI::MovementInform(), npc_roger_owens::npc_roger_owensAI::MovementInform(), boss_onyxia::MovementInform(), npc_commander_eligor_dawnbringer::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), npc_rimefang_icc::MovementInform(), boss_aerial_command_unit::boss_aerial_command_unitAI::MovementInform(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::MovementInform(), gunship_npc_AI::MovementInform(), npc_gunship_mage::MovementInform(), boss_the_lich_king::MovementInform(), npc_brann_bronzebeard_algalon::MovementInform(), boss_razorscale::MovementInform(), npc_grauf::MovementInform(), boss_erekem::MovementInform(), npc_announcer_toc5::npc_announcer_toc5AI::MovementInform(), boss_mr_smite::boss_mr_smiteAI::MovementInform(), spell_the_lurker_below_spout_periodic::OnPeriodic(), SmartScript::ProcessAction(), Creature::ReacquireSpellFocusTarget(), npc_dancing_flames::ReceiveEmote(), npc_depth_charge::Reset(), npc_sinclari_vh::ScheduleIntro(), npc_tirion_fordring_tft::SpellHit(), boss_vazruden_the_herald::SpellHit(), SimpleCharmedPlayerAI::UpdateAI(), boss_rend_blackhand::UpdateAI(), boss_victor_nefarius::UpdateAI(), npc_kalecgos::UpdateAI(), npc_partygoer::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), npc_harrison_jones::npc_harrison_jonesAI::UpdateAI(), npc_malcolm_moore::npc_malcolm_mooreAI::UpdateAI(), npc_sergeant_morigan::npc_sergeant_moriganAI::UpdateAI(), npc_roger_owens::npc_roger_owensAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), npc_medivh_bm::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), npc_hadronox_crusherPackAI::UpdateAI(), boss_jaraxxus::UpdateAI(), boss_devourer_of_souls::UpdateAI(), boss_the_lich_king::UpdateAI(), boss_svala::UpdateAI(), npc_bloodmage_laurith::UpdateAI(), npc_brann_bronzebeard_keystone::UpdateAI(), npc_alchemist_finklestein::UpdateAI(), boss_illidan_stormrage::UpdateAI(), npc_akama_illidan::UpdateAI(), npc_akama_shade::UpdateAI(), npc_claw::UpdateAI(), npc_warden_mellichar::UpdateAI(), boss_kaelthas::UpdateAI(), npc_barada::npc_baradaAI::UpdateAI(), npc_millhouse_manastorm::UpdateIntroEvents(), npc_leryssa::WaypointPathEnded(), npc_morridune::WaypointReached(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::WaypointReached(), and npc_argent_soldier::npc_argent_soldierAI::WaypointReached().
| void Unit::SetFacingToObject | ( | WorldObject const * | object, |
| bool | force = true, |
||
| uint32 | movementId = EVENT_FACE |
||
| ) |
Definition at line 13235 of file Unit.cpp.
References Movement::MoveSpline::Finalized(), GetMotionMaster(), IsStopped(), MotionMaster::MoveFace(), and movespline.
Referenced by npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::AttackIceWall(), npc_thrall_herald_of_war::npc_thrall_herald_of_warAI::DoAction(), npc_maiev::DoAction(), npc_ranshalla::npc_ranshallaAI::DoChannelTorchSpell(), boss_nightbane::boss_nightbaneAI::ExecuteEvent(), spell_mimiron_weld::spell_mimiron_weld_AuraScript::HandleTick(), npc_terenas_menethil::IsSummonedBy(), npc_crystal_spike_trigger::IsSummonedBy(), npc_ruby_emerald_amber_drake::IsSummonedBy(), npc_strangulate_vehicle::IsSummonedBy(), npc_iron_roots::npc_iron_rootsAI::IsSummonedBy(), npc_maiev::JustAppeared(), npc_ranshalla::npc_ranshallaAI::JustDidDialogueStep(), npc_ashtongue_broken::MovementInform(), boss_high_inquisitor_whitemane::MovementInform(), npc_jena_anderson::npc_jena_andersonAI::MovementInform(), boss_professor_putricide::MovementInform(), boss_malygos::MovementInform(), npc_twilight_volunteer::MovementInform(), boss_jaraxxus::MovementInform(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::MovementInform(), npc_geezle::npc_geezleAI::NextStep(), npc_harrison_jones::npc_harrison_jonesAI::OnGossipSelect(), npc_crusade_recruit::OnGossipSelect(), npc_jungle_punch_target::proceedCwEvent(), SmartScript::ProcessAction(), Creature::ReacquireSpellFocusTarget(), npc_lake_frog::ReceiveEmote(), npc_bloodmage_laurith::SetGUID(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::SetInFace(), Creature::SetSpellFocus(), boss_swamplord_muselek::SpellHit(), npc_magister_aledis::npc_magister_aledisAI::StartFight(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_eachother(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_Pathaleons_Image(), boss_victor_nefarius::UpdateAI(), npc_madrigosa::UpdateAI(), npc_partygoer::UpdateAI(), boss_zuljin::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_jena_anderson::npc_jena_andersonAI::UpdateAI(), npc_malcolm_moore::npc_malcolm_mooreAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), boss_onyxia::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), npc_overlord_runthak_orgrimmar::npc_overlord_runthak_orgrimmarAI::UpdateAI(), npc_thrall_herald_of_war::npc_thrall_herald_of_warAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_devourer_of_souls::UpdateAI(), npc_uther_quel_delar::npc_uther_quel_delarAI::UpdateAI(), boss_krick::UpdateAI(), npc_high_overlord_saurfang_icc::UpdateAI(), boss_professor_putricide::UpdateAI(), npc_rimefang_icc::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), boss_malygos::UpdateAI(), boss_volkhan::UpdateAI(), boss_vx_001::boss_vx_001AI::UpdateAI(), boss_svala::UpdateAI(), npc_thassarian::UpdateAI(), boss_illidan_stormrage::UpdateAI(), boss_wrath_scryer_soccothrates::UpdateAI(), npc_pet_gen_pandaren_monk::UpdateAI(), npc_millhouse_manastorm::UpdateIntroEvents(), npc_earthen_ring_flamecaller::WaypointPathEnded(), npc_ranshalla::npc_ranshallaAI::WaypointReached(), and npc_demolitionist_legoso::npc_demolitionist_legosoAI::WaypointReached().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 988 of file Unit.h.
References UNIT_FIELD_FACTIONTEMPLATE.
Referenced by BattlegroundAB::_NodeOccupied(), boss_victor_nefarius::BeginEvent(), boss_vaelastrasz::boss_vaelastrasz(), BattlegroundSA::CaptureGraveyard(), boss_veknilash::boss_veknilashAI::CastSpellOnBug(), boss_veklor::boss_veklorAI::CastSpellOnBug(), boss_eadric::boss_eadricAI::DamageTaken(), boss_paletress::boss_paletressAI::DamageTaken(), npc_claw::DamageTaken(), npc_argent_valiant::DamageTaken(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::DestroyDoor(), boss_coren_direbrew::DoAction(), npc_direbrew_antagonist::DoAction(), boss_apothecary_hummel::DoAction(), npc_apothecary_genericAI::DoAction(), npc_stone_keeper::DoAction(), npc_akama_shade::DoAction(), npc_ashtongue_broken::DoAction(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DoNice(), Spell::EffectSummonType(), BattlegroundEY::EventTeamCapturedPoint(), boss_thorim::boss_thorimAI::FinishEncounter(), AuraEffect::HandleAuraModFaction(), BattlegroundIC::HandleCapturedNodes(), modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcSetFactionIdCommand(), spell_deliver_stolen_horse::HandleScriptEffect(), npc_inner_demon::InitializeAI(), Minion::InitStats(), TempSummon::InitStats(), InitTamedPet(), boss_majordomo::JustAppeared(), npc_stone_keeper::JustAppeared(), npc_yor::JustAppeared(), boss_freya::boss_freyaAI::JustDied(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustDied(), npc_stone_keeper::JustReachedHome(), boss_ignis::boss_ignis_AI::JustSummoned(), boss_balinda::JustSummoned(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::JustSummoned(), npc_felfire_portal::npc_felfire_portalAI::JustSummoned(), Pet::LoadPetFromDB(), npc_argent_valiant::MovementInform(), npc_argent_valiant::npc_argent_valiant(), npc_iron_roots::npc_iron_rootsAI::npc_iron_rootsAI(), instance_nexus::instance_nexus_InstanceMapScript::OnCreatureCreate(), instance_black_temple::instance_black_temple_InstanceMapScript::OnCreatureCreate(), boss_doomrel::boss_doomrelAI::OnGossipSelect(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::OnGossipSelect(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::OnGossipSelect(), npc_belnistrasz::npc_belnistraszAI::OnQuestAccept(), npc_calvin_montague::npc_calvin_montagueAI::OnQuestAccept(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::OnQuestAccept(), npc_muglash::npc_muglashAI::OnQuestAccept(), npc_prospector_remtravel::npc_prospector_remtravelAI::OnQuestAccept(), go_crystalline_tear::go_crystalline_tearAI::OnQuestAccept(), npc_gilthares::npc_giltharesAI::OnQuestAccept(), npc_ranshalla::npc_ranshallaAI::OnQuestAccept(), npc_maghar_captive::npc_maghar_captiveAI::OnQuestAccept(), npc_kurenai_captive::npc_kurenai_captiveAI::OnQuestAccept(), npc_earthmender_wilda::npc_earthmender_wildaAI::OnQuestAccept(), at_zumrah::OnTrigger(), npc_melee_hover_disk::PassengerBoarded(), BattlegroundAV::PopulateNode(), npc_chicken_cluck::npc_chicken_cluckAI::ReceiveEmote(), RemoveCharmedBy(), boss_coren_direbrew::Reset(), npc_direbrew_minion::Reset(), boss_doomrel::boss_doomrelAI::Reset(), boss_victor_nefarius::Reset(), npc_unworthy_initiate::npc_unworthy_initiateAI::Reset(), boss_apothecary_hummel::Reset(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::Reset(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::Reset(), boss_zum_rah::boss_zum_rahAI::Reset(), npc_sergeant_bly::npc_sergeant_blyAI::Reset(), boss_sara::boss_saraAI::Reset(), npc_akama_shade::Reset(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::Reset(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::Reset(), npc_chicken_cluck::npc_chicken_cluckAI::Reset(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), RestoreFaction(), SetCharmedBy(), Player::SetFactionForRace(), Player::SetGameMaster(), BattlegroundIC::SetupBattleground(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::SpawnNPC(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::SpellHit(), FollowerAI::StartFollow(), Spell::SummonGuardian(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), Player::SummonPet(), WorldObject::SummonTrigger(), boss_vaelastrasz::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), npc_unworthy_initiate::npc_unworthy_initiateAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), boss_kalecgos::UpdateAI(), boss_ironaya::UpdateAI(), boss_ouro::boss_ouroAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_sergeant_bly::npc_sergeant_blyAI::UpdateAI(), boss_deathbringer_saurfang::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_hodir::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), boss_sara::boss_saraAI::UpdateAI(), npc_akama_shade::UpdateAI(), npc_claw::UpdateAI(), npc_magister_aledis::npc_magister_aledisAI::UpdateAI(), npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI(), npc_lord_gregor_lescovar::npc_lord_gregor_lescovarAI::UpdateAI(), Creature::UpdateEntry(), npc_magwin::npc_magwinAI::UpdateEscortAI(), boss_majordomo::UpdateSpecialEvents(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::WaypointReached(), and npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached().
| bool Unit::SetFall | ( | bool | enable | ) |
Definition at line 13314 of file Unit.cpp.
References AddUnitMovementFlag(), HasUnitMovementFlag(), WorldObject::m_movementInfo, MOVEMENTFLAG_FALLING, MOVEMENTFLAG_FALLING_FAR, RemoveUnitMovementFlag(), and MovementInfo::SetFallTime().
Referenced by MotionMaster::MoveFall(), and Creature::UpdateMovementFlags().
|
protected |
Definition at line 11399 of file Unit.cpp.
References CONFIG_CREATURE_FAMILY_FLEE_DELAY, ObjectGuid::Empty, EnsureVictim(), FLEEING_MOTION_TYPE, getAttackerForHelper(), GetAuraEffectsByType(), GetCharmerOrSelfPlayer(), Object::GetGUID(), GetMotionMaster(), ObjectAccessor::GetUnit(), GetVictim(), IsAlive(), IsInCombat(), Object::IsPlayer(), MotionMaster::MoveFleeing(), MotionMaster::MoveTargetedHome(), MotionMaster::Remove(), Player::SetClientControl(), SetTarget(), SPELL_AURA_MOD_FEAR, and sWorld.
Referenced by ApplyControlStatesIfNeeded(), and SetControlled().
| bool Unit::SetFeatherFall | ( | bool | enable | ) |
Definition at line 13436 of file Unit.cpp.
References AddUnitMovementFlag(), GameClient::GetBasePlayer(), GetGameClientMovingMe(), Object::GetGUID(), GetMovementCounterAndInc(), HasUnitMovementFlag(), IsMovedByClient(), WorldObject::m_movementInfo, MOVEMENTFLAG_FALLING_SLOW, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, MSG_MOVE_FEATHER_FALL, RemoveUnitMovementFlag(), Player::SendDirectMessage(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_FEATHER_FALL, SMSG_MOVE_NORMAL_FALL, SMSG_SPLINE_MOVE_FEATHER_FALL, SMSG_SPLINE_MOVE_NORMAL_FALL, WorldPackets::Movement::MoveUpdate::Status, WorldPackets::Movement::MoveUpdate::Write(), WorldPackets::Movement::MoveSplineSetFlag::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
Referenced by AuraEffect::HandleAuraFeatherFall(), and debug_commandscript::HandleDebugMoveflagsCommand().
|
inline |
Definition at line 941 of file Unit.h.
Referenced by boss_veknilash::boss_veknilashAI::CastSpellOnBug(), boss_veklor::boss_veklorAI::CastSpellOnBug(), Player::Create(), npc_stalagg::DoAction(), npc_feugen::DoAction(), boss_steelbreaker::boss_steelbreakerAI::DoAction(), boss_runemaster_molgeim::boss_runemaster_molgeimAI::DoAction(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::DoAction(), boss_razorgore::DoChangePhase(), Player::GiveLevel(), spell_gen_revive_self::HandleDummy(), spell_gen_zero_mana_full_health::HandleDummy(), spell_auto_repair::spell_auto_repair_SpellScript::HandleScript(), spell_gen_pet_summoned::HandleScript(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), InitTamedPet(), boss_alar::OnSpellCast(), boss_high_astromancer_solarian::Reset(), Player::ResetAllPowers(), boss_thekal::SetData(), Creature::setDeathState(), Player::SummonPet(), boss_thekal::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), boss_xt002::UpdateAI(), boss_emalon::UpdateAI(), and boss_black_knight::boss_black_knightAI::UpdateAI().
|
inline |
Definition at line 955 of file Unit.h.
Referenced by Player::Create(), Player::GiveLevel(), spell_gen_revive_self::HandleDummy(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), npc_toc_rogue::Reset(), Player::ResetAllPowers(), Player::ResurrectUsingRequestDataImpl(), SetPowerType(), and Creature::UpdateLevelDependantStats().
|
inline |
Definition at line 1316 of file Unit.h.
Referenced by GameClient::AddAllowedMover(), and GameClient::RemoveAllowedMover().
|
inline |
Definition at line 913 of file Unit.h.
References UNIT_BYTES_0_OFFSET_GENDER, and UNIT_FIELD_BYTES_0.
Referenced by Player::Create(), Pet::CreateBaseAtTamed(), modify_commandscript::HandleModifyGenderCommand(), Player::LoadFromDB(), Pet::LoadPetFromDB(), and SetDisplayId().
| void Unit::SetHealth | ( | uint32 | val | ) |
Definition at line 9338 of file Unit.cpp.
References CORPSE, DEAD, getDeathState(), Player::GetGroup(), GetMaxHealth(), WorldObject::GetOwner(), Object::GetTypeId(), GROUP_UPDATE_FLAG_CUR_HP, GROUP_UPDATE_FLAG_PET_CUR_HP, JUST_DIED, Player::SetGroupUpdateFlag(), Object::SetUInt32Value(), Object::ToCreature(), ToPet(), Object::ToPlayer(), Object::ToPlayer(), TYPEID_PLAYER, and UNIT_FIELD_HEALTH.
Referenced by boss_twilight_halion::boss_twilight_halion(), Player::BuildPlayerRepop(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), boss_twinemperorsAI::DamageTaken(), boss_noth::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), boss_black_knight::boss_black_knightAI::DamageTaken(), DealDamage(), BloodPrincesBossAI::DoAction(), npc_terenas_menethil::DoAction(), boss_lady_vashj::DoAction(), Spell::EffectResurrectPet(), Spell::EffectSelfResurrect(), Spell::EffectSummonPet(), Spell::EffectSummonType(), boss_malchezaar::boss_malchezaarAI::EnfeebleResetHealth(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModIncreaseMaxHealth(), spell_illidari_council_empyreal_balance::HandleDummy(), spell_gen_injured::HandleDummy(), modify_commandscript::HandleModifyHPCommand(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcSetLevelCommand(), spell_halazzi_set_health::HandleScript(), spell_stinky_precious_decimate::HandleScript(), spell_illidari_council_empyreal_equivalency::HandleScript(), spell_ahune_synch_health::HandleScript(), spell_harbinger_skyriss_health::HandleScript(), AuraEffect::HandleSpiritOfRedemption(), BloodPrincesBossAI::JustAppeared(), boss_twinemperorsAI::JustDied(), boss_vaelastrasz::JustEngagedWith(), BloodPrincesBossAI::JustReachedHome(), boss_skeram::boss_skeramAI::JustSummoned(), boss_attumen::boss_attumenAI::JustSummoned(), boss_baltharus_the_warborn::JustSummoned(), boss_drakkari_colossus::JustSummoned(), Player::LoadFromDB(), Pet::LoadPetFromDB(), ModifyHealth(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::MovementInform(), Player::RegenerateHealth(), npc_draenei_survivor::npc_draenei_survivorAI::Reset(), npc_injured_draenei::npc_injured_draeneiAI::Reset(), BloodPrincesBossAI::Reset(), boss_valithria_dreamwalker::Reset(), boss_murmur::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), Player::RestoreHealthAfterDuel(), Player::ResurrectPlayer(), Player::ResurrectUsingRequestDataImpl(), setDeathState(), SetMaxHealth(), Creature::SetSpawnHealth(), boss_twinemperorsAI::SpellHit(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), boss_baltharus_the_warborn::UpdateAI(), npc_baltharus_the_warborn_clone::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), boss_krick::UpdateAI(), boss_blood_council_controller::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), Creature::UpdateEntry(), and Creature::UpdateLevelDependantStats().
| bool Unit::SetHover | ( | bool | enable, |
| bool | updateAnimTier = true |
||
| ) |
No need to check height on ascent
Dying creatures will MoveFall from setDeathState
Definition at line 13475 of file Unit.cpp.
References AddUnitMovementFlag(), Fly, GameClient::GetBasePlayer(), Object::GetFloatValue(), WorldObject::GetFloorZ(), GetGameClientMovingMe(), Object::GetGUID(), GetMovementCounterAndInc(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Object::GetTypeId(), Ground, HasUnitMovementFlag(), HasUnitState(), Hover, Object::IsCreature(), isDying(), IsGravityDisabled(), IsHovering(), IsMovedByClient(), IsRooted(), WorldObject::m_movementInfo, MOVEMENTFLAG_HOVER, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, MSG_MOVE_HOVER, RemoveUnitMovementFlag(), Player::SendDirectMessage(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SetAnimTier(), SMSG_MOVE_SET_HOVER, SMSG_MOVE_UNSET_HOVER, SMSG_SPLINE_MOVE_SET_HOVER, SMSG_SPLINE_MOVE_UNSET_HOVER, WorldPackets::Movement::MoveUpdate::Status, Object::ToCreature(), TYPEID_UNIT, UNIT_FIELD_HOVERHEIGHT, UNIT_STATE_ROOT, WorldObject::UpdateAllowedPositionZ(), UpdateHeight(), WorldPackets::Movement::MoveUpdate::Write(), WorldPackets::Movement::MoveSplineSetFlag::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
Referenced by boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_pulsing_pumpkin::DoAction(), AuraEffect::HandleAuraHover(), debug_commandscript::HandleDebugMoveflagsCommand(), boss_headless_horseman::InitializeAI(), npc_pulsing_pumpkin::InitializeAI(), boss_ayamiss::JustEngagedWith(), boss_ayamiss::JustReachedHome(), boss_sister_svalna::JustReachedHome(), boss_headless_horseman::MovementInform(), boss_ayamiss::MovementInform(), boss_sister_svalna::MovementInform(), boss_alar::MovementInform(), boss_sapphiron::Reset(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::Reset(), Creature::setDeathState(), npc_madrigosa::UpdateAI(), boss_sapphiron::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_feral_defender::UpdateAI(), boss_svala::UpdateAI(), boss_alar::UpdateAI(), boss_kaelthas::UpdateAI(), and Creature::UpdateMovementFlags().
|
inline |
Definition at line 1229 of file Unit.h.
References UNIT_FIELD_HOVERHEIGHT.
Referenced by Creature::InitEntry(), and Player::LoadFromDB().
|
inlinevirtual |
Reimplemented in Creature, and Creature.
Definition at line 1150 of file Unit.h.
References SetImmuneToAll().
Referenced by SetImmuneToAll().
| void Unit::SetImmuneToAll | ( | bool | apply, |
| bool | keepCombat | ||
| ) |
Definition at line 8243 of file Unit.cpp.
References CombatManager::EndAllCombat(), m_combatManager, RemoveUnitFlag(), SetUnitFlag(), UNIT_FLAG_IMMUNE_TO_NPC, UNIT_FLAG_IMMUNE_TO_PC, and ValidateAttackersAndOwnTarget().
Referenced by Creature::SetImmuneToAll().
|
inlinevirtual |
Reimplemented in Creature, and Creature.
Definition at line 1156 of file Unit.h.
References SetImmuneToNPC().
Referenced by SetImmuneToNPC().
| void Unit::SetImmuneToNPC | ( | bool | apply, |
| bool | keepCombat | ||
| ) |
Definition at line 8279 of file Unit.cpp.
References CombatManager::GetPvECombatRefs(), CombatManager::GetPvPCombatRefs(), m_combatManager, RemoveUnitFlag(), SetUnitFlag(), UNIT_FLAG_IMMUNE_TO_NPC, UNIT_FLAG_PLAYER_CONTROLLED, and ValidateAttackersAndOwnTarget().
Referenced by spell_sholazar_freya_dummy::HandleScript(), and Creature::SetImmuneToNPC().
|
inlinevirtual |
Reimplemented in Creature, and Creature.
Definition at line 1153 of file Unit.h.
References SetImmuneToPC().
Referenced by SetImmuneToPC().
| void Unit::SetImmuneToPC | ( | bool | apply, |
| bool | keepCombat | ||
| ) |
Definition at line 8256 of file Unit.cpp.
References CombatManager::GetPvECombatRefs(), CombatManager::GetPvPCombatRefs(), m_combatManager, RemoveUnitFlag(), SetUnitFlag(), UNIT_FLAG_IMMUNE_TO_PC, UNIT_FLAG_PLAYER_CONTROLLED, and ValidateAttackersAndOwnTarget().
Referenced by Creature::SetImmuneToPC().
|
inline |
Definition at line 1160 of file Unit.h.
Referenced by npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::AttackStart(), npc_feugen::DoAction(), EngageWithTarget(), npc_escape_event_trash::IsSummonedBy(), npc_iron_roots::npc_iron_rootsAI::IsSummonedBy(), boss_ionar::JustSummoned(), Spell::PreprocessSpellLaunch(), Spell::TargetInfo::PreprocessTarget(), and npc_phase_hunter::npc_phase_hunterAI::UpdateAI().
| void Unit::SetInFront | ( | WorldObject const * | target | ) |
Definition at line 13220 of file Unit.cpp.
References Position::GetAbsoluteAngle(), HasUnitState(), Position::SetOrientation(), and UNIT_STATE_CANNOT_TURN.
Referenced by WorldSession::HandlePetActionHelper(), spell_mimiron_summon_flames_spread::spell_mimiron_summon_flames_spread_SpellScript::OnHit(), AuraEffect::PeriodicTick(), Creature::SelectVictim(), and ChaseMovementGenerator::Update().
|
inline |
Definition at line 1816 of file Unit.h.
Referenced by AuraEffect::HandleModCastingSpeed().
|
inline |
Definition at line 1844 of file Unit.h.
Referenced by boss_leotheras_the_blind::DoAction(), boss_leotheras_the_blind::Reset(), and Creature::UpdateEntry().
|
inline |
Definition at line 1060 of file Unit.h.
Referenced by Spell::TargetInfo::DoDamageAndTriggers().
|
inline |
Definition at line 1646 of file Unit.h.
Referenced by Spell::TakePower().
| void Unit::SetLevel | ( | uint8 | lvl, |
| bool | sendUpdate = true |
||
| ) |
Definition at line 9321 of file Unit.cpp.
References Object::GetGUID(), GROUP_UPDATE_FLAG_LEVEL, sCharacterCache, Object::SetUInt32Value(), Object::ToPlayer(), and UNIT_FIELD_LEVEL.
Referenced by Player::Create(), Player::GiveLevel(), group_commandscript::HandleGroupLevelCommand(), npc_commandscript::HandleNpcSetLevelCommand(), reset_commandscript::HandleResetLevelCommand(), wp_commandscript::HandleWpShowCommand(), Puppet::InitStats(), Totem::InitStats(), TempSummon::InitStats(), Guardian::InitStatsForLevel(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::JustSummoned(), npc_felfire_portal::npc_felfire_portalAI::JustSummoned(), Player::LoadFromDB(), Creature::SelectLevel(), and WorldObject::SummonTrigger().
| void Unit::SetMaxHealth | ( | uint32 | val | ) |
Definition at line 9370 of file Unit.cpp.
References Player::GetGroup(), GetHealth(), WorldObject::GetOwner(), Object::GetTypeId(), GROUP_UPDATE_FLAG_MAX_HP, GROUP_UPDATE_FLAG_PET_MAX_HP, Player::SetGroupUpdateFlag(), SetHealth(), Object::SetUInt32Value(), Object::ToCreature(), ToPet(), Object::ToPlayer(), Object::ToPlayer(), TYPEID_PLAYER, and UNIT_FIELD_MAXHEALTH.
Referenced by Spell::EffectSummonType(), spell_illidari_council_empyreal_balance::HandleDummy(), modify_commandscript::HandleModifyHPCommand(), npc_commandscript::HandleNpcSetLevelCommand(), Player::InitStatsForLevel(), npc_pet_hunter_snake_trap::JustAppeared(), boss_skeram::boss_skeramAI::JustSummoned(), Creature::UpdateLevelDependantStats(), Creature::UpdateMaxHealth(), Guardian::UpdateMaxHealth(), and Player::UpdateMaxHealth().
Definition at line 9439 of file Unit.cpp.
References AsUnderlyingType(), Player::GetGroup(), WorldObject::GetOwner(), GetPower(), Object::GetTypeId(), GROUP_UPDATE_FLAG_MAX_POWER, GROUP_UPDATE_FLAG_PET_MAX_POWER, Player::SetGroupUpdateFlag(), SetPower(), Object::SetStatInt32Value(), Object::ToCreature(), ToPet(), Object::ToPlayer(), Object::ToPlayer(), TYPEID_PLAYER, and UNIT_FIELD_MAXPOWER1.
Referenced by Pet::CreateBaseAtTamed(), modify_commandscript::HandleModifyEnergyCommand(), modify_commandscript::HandleModifyManaCommand(), modify_commandscript::HandleModifyRageCommand(), modify_commandscript::HandleModifyRunicPowerCommand(), spell_dk_raise_ally::spell_dk_raise_ally_SpellScript::HandleSummon(), Player::InitStatsForLevel(), Pet::LoadPetFromDB(), Creature::UpdateLevelDependantStats(), Creature::UpdateMaxPower(), Guardian::UpdateMaxPower(), and Player::UpdateMaxPower().
| void Unit::SetMinion | ( | Minion * | minion, |
| bool | apply | ||
| ) |
Definition at line 5852 of file Unit.cpp.
References ABORT, Object::AddGuidValue(), ASSERT, Player::CharmSpellInitialize(), ObjectGuid::Empty, GetCharmedGUID(), GetCritterGUID(), GetDebugInfo(), Object::GetEntry(), GetGuardianPet(), Object::GetGUID(), Object::GetGUID(), GetOwnerGUID(), GetPetGUID(), GetPvpFlags(), Totem::GetSpell(), GetSpellHistory(), Object::GetTypeId(), Object::GetUInt32Value(), HasUnitTypeMask(), SpellInfo::IsCooldownStartedOnEvent(), ObjectGuid::IsEmpty(), Minion::IsGuardianPet(), Object::IsInWorld(), IsPet(), IsTotem(), m_Controlled, m_ControlledByPlayer, TempSummon::m_Properties, m_speed_rate, MAX_MOVE_TYPE, OutDebugInfo(), PET_SAVE_NOT_IN_SLOT, Player::PetSpellInitialize(), RemoveAllMinionsByEntry(), Object::RemoveGuidValue(), ReplaceAllPvpFlags(), SpellHistory::SendCooldownEvent(), SetCritterGUID(), SetMinionGUID(), SetOwnerGUID(), SetPetGUID(), SetSpeedRate(), SetUnitFlag(), SPELL_EFFECT_SUMMON, sSpellMgr, SpellHistory::StartCooldown(), SUMMON_TYPE_MINIPET, TC_LOG_DEBUG, TC_LOG_FATAL, SummonPropertiesEntry::Title, ToPet(), Object::ToPlayer(), ObjectGuid::ToString(), ToTotem(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_CREATED_BY_SPELL, UNIT_FIELD_SUMMON, UNIT_FLAG_PLAYER_CONTROLLED, UNIT_MASK_CONTROLABLE_GUARDIAN, and UpdatePetCombatState().
Referenced by Spell::EffectCreateTamedPet(), Spell::EffectTameCreature(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), Minion::InitStats(), Pet::LoadPetFromDB(), Minion::RemoveFromWorld(), Player::RemovePet(), and Player::SummonPet().
|
inline |
Definition at line 1259 of file Unit.h.
References UNIT_FIELD_SUMMON.
Referenced by GetFirstMinion(), Minion::setDeathState(), and SetMinion().
|
inline |
Definition at line 964 of file Unit.h.
References UNIT_MOD_CAST_SPEED.
Referenced by ApplyCastTimePercentMod(), Creature::InitEntry(), Player::InitStatsForLevel(), and Guardian::InitStatsForLevel().
|
inline |
Definition at line 1029 of file Unit.h.
References UNIT_FIELD_MOUNTDISPLAYID.
Referenced by Dismount(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), AuraEffect::HandleAuraTransform(), Player::InitStatsForLevel(), Mount(), and Creature::setDeathState().
|
inline |
Definition at line 1602 of file Unit.h.
References UNIT_FIELD_NATIVEDISPLAYID.
Referenced by npc_commandscript::HandleNpcSetModelCommand(), Player::InitDisplayIds(), Creature::InitEntry(), boss_felmyst::InitializeAI(), Pet::LoadPetFromDB(), and Creature::Respawn().
|
inlinevirtual |
|
inline |
Definition at line 1111 of file Unit.h.
References flags, and UNIT_NPC_FLAGS.
Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), boss_vaelastrasz::boss_vaelastrasz(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), npc_barnes::DoAction(), boss_majordomo::JustAppeared(), npc_thassarian::JustAppeared(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustDied(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::MovementInform(), npc_akama_illidan::MovementInform(), npc_verdisa_beglaristrasz_eternos::MovementInform(), npc_announcer_toc5::npc_announcer_toc5AI::npc_announcer_toc5AI(), npc_jaina_fos::npc_jaina_fos(), npc_sylvanas_fos::npc_sylvanas_fos(), instance_oculus::instance_oculus_InstanceMapScript::OnCreatureCreate(), npc_chicken_cluck::npc_chicken_cluckAI::ReceiveEmote(), Vehicle::RemovePassenger(), boss_doomrel::boss_doomrelAI::Reset(), boss_victor_nefarius::Reset(), npc_koltira_deathweaver::Reset(), npc_thalorien_dawnseeker::Reset(), hyjalAI::Reset(), npc_belnistrasz::npc_belnistraszAI::Reset(), npc_sinclari_vh::Reset(), npc_crusade_recruit::Reset(), npc_akama_shade::Reset(), npc_millhouse_manastorm::Reset(), npc_barada::npc_baradaAI::Reset(), npc_magister_aledis::npc_magister_aledisAI::Reset(), npc_sinclari_vh::ScheduleIntro(), npc_sir_thomas::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_koltira_deathweaver::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), npc_calvin_montague::npc_calvin_montagueAI::UpdateAI(), npc_harrison_jones::npc_harrison_jonesAI::UpdateAI(), hyjalAI::UpdateAI(), npc_andorov::UpdateAI(), npc_xerestrasza::UpdateAI(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), npc_thassarian::UpdateAI(), npc_lake_frog::UpdateAI(), npc_brann_hos::UpdateEscortAI(), boss_majordomo::UpdateSpecialEvents(), Vehicle::Vehicle(), npc_morridune::WaypointReached(), npc_thrall_old_hillsbrad::WaypointReached(), and npc_rizzle_sprysprocket::WaypointStarted().
| void Unit::SetOwnerGUID | ( | ObjectGuid | owner | ) |
Definition at line 5782 of file Unit.cpp.
References UpdateData::BuildPacket(), Object::BuildValuesUpdateBlockForPlayer(), GetOwnerGUID(), ObjectAccessor::GetPlayer(), Player::HaveAtClient(), Object::RemoveFieldNotifyFlag(), Player::SendDirectMessage(), Object::SetFieldNotifyFlag(), Object::SetGuidValue(), UF_FLAG_OWNER, and UNIT_FIELD_SUMMONEDBY.
Referenced by Spell::EffectSummonType(), Player::LoadFromDB(), and SetMinion().
|
inline |
Definition at line 1008 of file Unit.h.
References flags, UNIT_BYTES_2_OFFSET_PET_FLAGS, and UNIT_FIELD_BYTES_2.
Referenced by Spell::EffectRenamePet().
|
inline |
Definition at line 1261 of file Unit.h.
References SUMMON_SLOT_PET.
Referenced by GetGuardianPet(), Minion::setDeathState(), and SetMinion().
|
inline |
Definition at line 1304 of file Unit.h.
References UNIT_FIELD_PET_NAME_TIMESTAMP.
Referenced by Pet::CreateBaseAtTamed(), WorldSession::HandlePetRename(), Pet::LoadPetFromDB(), SetCharmedBy(), and Player::SummonPet().
|
inline |
Definition at line 1303 of file Unit.h.
References UNIT_FIELD_PETNUMBER.
Referenced by CharmInfo::SetPetNumber().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 12123 of file Unit.cpp.
References Map::GetCreature(), WorldObject::GetMap(), WorldObject::GetPhaseMask(), Object::IsInWorld(), m_Controlled, m_SummonSlot, MAX_SUMMON_SLOT, RemoveNotOwnSingleTargetAuras(), WorldObject::SetPhaseMask(), TYPEID_UNIT, and UpdateObjectVisibility().
Referenced by modify_commandscript::HandleModifyPhaseCommand(), AuraEffect::HandlePhase(), Creature::SetPhaseMask(), and Player::SetPhaseMask().
Definition at line 9398 of file Unit.cpp.
References AsUnderlyingType(), BASE_ATTACK, Player::GetGroup(), GetMaxPower(), WorldObject::GetOwner(), Object::GetPackGUID(), GetPower(), Object::GetTypeId(), GROUP_UPDATE_FLAG_CUR_POWER, GROUP_UPDATE_FLAG_PET_CUR_POWER, HUNTER_PET, POWER_HAPPINESS, WorldObject::SendMessageToSet(), Player::SetGroupUpdateFlag(), Object::SetStatInt32Value(), SMSG_POWER_UPDATE, Object::ToCreature(), ToPet(), Object::ToPlayer(), Object::ToPlayer(), TYPEID_PLAYER, and UNIT_FIELD_POWER1.
Referenced by Player::ActivateTalentGroup(), Pet::CreateBaseAtTamed(), boss_lady_deathwhisper::DamageTaken(), boss_deathbringer_saurfang::DoAction(), Spell::EffectSelfResurrect(), Spell::EffectSummonPet(), AuraEffect::HandleAuraModShapeshift(), spell_gen_zero_mana_full_health::HandleDummy(), spell_warr_execute::HandleEffect(), modify_commandscript::HandleModifyEnergyCommand(), modify_commandscript::HandleModifyManaCommand(), modify_commandscript::HandleModifyRageCommand(), modify_commandscript::HandleModifyRunicPowerCommand(), WorldSession::HandlePetAbandon(), spell_gen_pet_summoned::HandleScript(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), Player::LoadFromDB(), Pet::LoadPetFromDB(), ModifyPower(), boss_moam::OnSpellCast(), spell_dru_frenzied_regeneration::PeriodicTick(), Player::Regenerate(), spell_igb_incinerating_blast::RemoveEnergy(), boss_deathbringer_saurfang::Reset(), boss_lady_deathwhisper::Reset(), Player::ResetAllPowers(), Player::RestoreManaAfterDuel(), Player::ResurrectPlayer(), Player::ResurrectUsingRequestDataImpl(), setDeathState(), SetMaxPower(), SetPowerType(), Creature::SetSpawnHealth(), Player::SummonPet(), and boss_shade_of_aran::boss_aranAI::UpdateAI().
| void Unit::SetPowerType | ( | Powers | power, |
| bool | sendUpdate = true |
||
| ) |
Definition at line 5350 of file Unit.cpp.
References Player::GetGroup(), WorldObject::GetOwner(), GetPowerType(), Object::GetTypeId(), GROUP_UPDATE_FLAG_PET_POWER_TYPE, GROUP_UPDATE_FLAG_POWER_TYPE, POWER_ENERGY, POWER_FOCUS, POWER_MANA, POWER_RAGE, Object::SetByteValue(), SetFullPower(), Player::SetGroupUpdateFlag(), SetPower(), Object::ToCreature(), ToPet(), Object::ToPlayer(), Object::ToPlayer(), TYPEID_PLAYER, UNIT_BYTES_0_OFFSET_POWER_TYPE, UNIT_FIELD_BYTES_0, and UpdateMaxPower().
Referenced by Player::Create(), AuraEffect::HandleAuraModShapeshift(), reset_commandscript::HandleResetStatsOrLevelHelper(), Guardian::InitStatsForLevel(), npc_toc_rogue::Reset(), and UpdateDisplayPower().
|
virtual |
Reimplemented in Player.
Definition at line 11927 of file Unit.cpp.
References RemovePvpFlag(), SetPvpFlag(), and UNIT_BYTE2_FLAG_PVP.
Referenced by npc_draenei_survivor::npc_draenei_survivorAI::Reset(), Player::SetPvP(), npc_draenei_survivor::npc_draenei_survivorAI::SpellHit(), and Creature::UpdateEntry().
|
inline |
Definition at line 997 of file Unit.h.
References flags, UNIT_BYTES_2_OFFSET_PVP_FLAG, and UNIT_FIELD_BYTES_2.
Referenced by Player::Create(), WorldSession::HandlePlayerLogin(), Player::SetGameMaster(), SetPvP(), Player::UpdateArea(), Creature::UpdateEntry(), and Player::UpdatePvPState().
|
inline |
Definition at line 907 of file Unit.h.
References UNIT_BYTES_0_OFFSET_RACE, and UNIT_FIELD_BYTES_0.
Referenced by Player::Create(), Creature::InitEntry(), and Player::LoadFromDB().
|
inline |
Definition at line 1561 of file Unit.h.
References UNIT_FIELD_RANGED_ATTACK_POWER.
Referenced by Player::InitStatsForLevel(), Creature::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 1563 of file Unit.h.
References UNIT_FIELD_RANGED_ATTACK_POWER_MODS.
Referenced by Player::InitStatsForLevel(), Creature::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 1562 of file Unit.h.
References UNIT_FIELD_RANGED_ATTACK_POWER_MODS.
Referenced by Player::InitStatsForLevel(), Creature::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 1564 of file Unit.h.
References UNIT_FIELD_RANGED_ATTACK_POWER_MULTIPLIER.
Referenced by Player::InitStatsForLevel(), Creature::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 924 of file Unit.h.
References UNIT_FIELD_RESISTANCES.
Referenced by Player::InitStatsForLevel(), Creature::UpdateResistances(), Guardian::UpdateResistances(), and Player::UpdateResistances().
|
protected |
Definition at line 11357 of file Unit.cpp.
References AddUnitMovementFlag(), BuildMovementPacket(), GameClient::GetBasePlayer(), GetGameClientMovingMe(), GetMovementCounterAndInc(), Object::GetPackGUID(), WorldPacket::Initialize(), IsMovedByClient(), MOVEMENTFLAG_MASK_MOVING, MOVEMENTFLAG_ROOT, MSG_MOVE_ROOT, MSG_MOVE_UNROOT, RemoveUnitMovementFlag(), Player::SendDirectMessage(), WorldObject::SendMessageToSet(), SMSG_FORCE_MOVE_ROOT, SMSG_FORCE_MOVE_UNROOT, SMSG_SPLINE_MOVE_ROOT, SMSG_SPLINE_MOVE_UNROOT, and StopMoving().
Referenced by ApplyControlStatesIfNeeded(), Player::BuildPlayerRepop(), WorldSession::HandleLogoutCancelOpcode(), WorldSession::HandleLogoutRequestOpcode(), Player::KillPlayer(), Player::ResurrectPlayer(), SetControlled(), and SetStunned().
| void Unit::SetShapeshiftForm | ( | ShapeshiftForm | form | ) |
Definition at line 8904 of file Unit.cpp.
References Object::SetByteValue(), UNIT_BYTES_2_OFFSET_SHAPESHIFT_FORM, and UNIT_FIELD_BYTES_2.
Referenced by AuraEffect::HandleAuraModShapeshift(), reset_commandscript::HandleResetStatsOrLevelHelper(), and Creature::LoadCreaturesAddon().
|
inlinevirtual |
Reimplemented in Player.
Definition at line 984 of file Unit.h.
References UNIT_BYTES_2_OFFSET_SHEATH_STATE, and UNIT_FIELD_BYTES_2.
Referenced by Pet::Create(), Pet::CreateBaseAtTamed(), boss_algalon_the_observer::EnterEvadeMode(), Creature::LoadCreaturesAddon(), Pet::LoadPetFromDB(), SmartScript::ProcessAction(), boss_illidan_stormrage::Reset(), Player::SetSheath(), npc_harrison_jones::npc_harrison_jonesAI::UpdateAI(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::UpdateAI(), boss_the_lich_king::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_illidan_stormrage::UpdateAI(), and Creature::UpdateEntry().
| void Unit::SetSpeed | ( | UnitMoveType | mtype, |
| float | newValue | ||
| ) |
Definition at line 8613 of file Unit.cpp.
References baseMoveSpeed, IsControlledByPlayer(), playerBaseMoveSpeed, and SetSpeedRate().
Referenced by boss_gluth::Reset(), and boss_gluth::UpdateAI().
| void Unit::SetSpeedRate | ( | UnitMoveType | mtype, |
| float | rate | ||
| ) |
Definition at line 8618 of file Unit.cpp.
References baseMoveSpeed, MovementPacketSender::GetChangeTypeByMoveType(), HasPendingMovementChange(), IsControlledByPlayer(), Object::IsInWorld(), IsMovedByClient(), m_speed_rate, playerBaseMoveSpeed, MovementPacketSender::SendSpeedChangeToAll(), MovementPacketSender::SendSpeedChangeToMover(), and SetSpeedRateReal().
Referenced by boss_ionar::CallBackSparks(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_professor_putricide::DoAction(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), boss_razorscale::DoAction(), npc_thrall_old_hillsbrad::DoMount(), npc_thrall_old_hillsbrad::DoUnmount(), boss_felmyst::EnterPhase(), spell_mount_check::HandleEffectPeriodic(), spell_gen_pony_mount_check::HandleEffectPeriodic(), modify_commandscript::HandleModifyASpeedCommand(), modify_commandscript::HandleModifyBWalkCommand(), modify_commandscript::HandleModifyFlyCommand(), modify_commandscript::HandleModifyMountCommand(), modify_commandscript::HandleModifySpeedCommand(), modify_commandscript::HandleModifySwimCommand(), Creature::InitEntry(), npc_rizzle_sprysprocket::IsSummonedBy(), npc_enchanted_elemental::JustAppeared(), boss_the_lich_king::JustSummoned(), boss_onyxia::MovementInform(), boss_professor_putricide::MovementInform(), boss_sindragosa::MovementInform(), boss_razorscale::MovementInform(), npc_caster_hover_disk::npc_caster_hover_disk(), npc_melee_hover_disk::npc_melee_hover_disk(), npc_wyrmrest_skytalon::PassengerBoarded(), npc_quel_delar_sword::npc_quel_delar_swordAI::Reset(), boss_lord_marrowgar::Reset(), boss_malygos::Reset(), npc_grauf::Reset(), SetMinion(), SetSpeed(), boss_onyxia::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), npc_anubarak_spike::StartChase(), boss_jormungarAI::Submerge(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), boss_lord_marrowgar::UpdateAI(), npc_ruby_emerald_amber_drake::UpdateAI(), npc_dream_fog::npc_dream_fogAI::UpdateAI(), npc_spark_of_ionar::UpdateAI(), and UpdateSpeed().
|
private |
Definition at line 8647 of file Unit.cpp.
References IsInCombat(), m_speed_rate, PropagateSpeedChange(), and Object::ToPlayer().
Referenced by WorldSession::HandleForceSpeedChangeAck(), PurgeAndApplyPendingMovementChanges(), and SetSpeedRate().
| void Unit::SetStandState | ( | UnitStandStateType | state | ) |
Definition at line 10340 of file Unit.cpp.
References AURA_INTERRUPT_FLAG_NOT_SEATED, Object::GetTypeId(), RemoveAurasWithInterruptFlags(), Player::SendDirectMessage(), Object::SetByteValue(), Object::ToPlayer(), TYPEID_PLAYER, UNIT_BYTES_1_OFFSET_STAND_STATE, UNIT_FIELD_BYTES_1, UNIT_STAND_STATE_STAND, and WorldPackets::Misc::StandStateUpdate::Write().
Referenced by _ApplyAura(), spell_fjord_the_cleansing_cleansing_soul::AfterApply(), spell_fjord_the_cleansing_cleansing_soul::AfterRemove(), boss_victor_nefarius::BeginEvent(), npc_kerlonian::npc_kerlonianAI::ClearSleeping(), boss_scarlet_commander_mograine::DamageTaken(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), npc_phoenix_the_eye::DamageTaken(), npc_vrykul_skeleton::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_vx_001::boss_vx_001AI::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), DealDamage(), npc_twilight_volunteer::DoAction(), boss_the_lich_king::DoAction(), npc_stalagg::DoAction(), npc_feugen::DoAction(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DoAction(), boss_vx_001::boss_vx_001AI::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_earthen_ring_flamecaller::DoAction(), boss_reliquary_of_souls::DoAction(), npc_ashtongue_broken::DoAction(), Spell::TargetInfo::DoDamageAndTriggers(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DoNice(), npc_unworthy_initiate::npc_unworthy_initiateAI::EventStart(), WorldSession::HandleAlterAppearance(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), WorldSession::HandleLogoutCancelOpcode(), WorldSession::HandleLogoutRequestOpcode(), WorldSession::HandleMovementOpcode(), WorldSession::HandlePlayerLogin(), spell_gen_stand::HandleScript(), AuraEffect::HandleSpiritOfRedemption(), WorldSession::HandleStandStateChangeOpcode(), DistractMovementGenerator::Initialize(), npc_thassarian::JustAppeared(), npc_ranshalla::npc_ranshallaAI::JustDidDialogueStep(), boss_high_inquisitor_fairbanks::JustEngagedWith(), boss_jedoga_shadowseeker::JustSummoned(), Creature::LoadCreaturesAddon(), npc_jena_anderson::npc_jena_andersonAI::MovementInform(), npc_bartleby_battson::npc_bartleby_battsonAI::MovementInform(), npc_sergeant_morigan::npc_sergeant_moriganAI::MovementInform(), boss_nightbane::boss_nightbaneAI::MovementInform(), npc_koltira_deathweaver::MovementInform(), npc_twilight_volunteer::MovementInform(), npc_earthen_ring_flamecaller::MovementInform(), boss_mr_smite::boss_mr_smiteAI::MovementInform(), spell_love_is_in_the_air_romantic_picnic::OnApply(), spell_reliquary_of_souls_submerge::OnApply(), npc_kerlonian::npc_kerlonianAI::OnQuestAccept(), go_crystalline_tear::go_crystalline_tearAI::OnQuestAccept(), npc_gilthares::npc_giltharesAI::OnQuestAccept(), npc_maghar_captive::npc_maghar_captiveAI::OnQuestAccept(), npc_kurenai_captive::npc_kurenai_captiveAI::OnQuestAccept(), spell_reliquary_of_souls_submerge::OnRemove(), boss_victor_nefarius::Reset(), boss_vaelastrasz::Reset(), boss_ragnaros::Reset(), boss_mr_smite::boss_mr_smiteAI::Reset(), npc_unworthy_initiate::npc_unworthy_initiateAI::Reset(), npc_koltira_deathweaver::Reset(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::Reset(), boss_high_inquisitor_fairbanks::Reset(), boss_scarlet_commander_mograine::Reset(), npc_draenei_survivor::npc_draenei_survivorAI::Reset(), npc_injured_draenei::npc_injured_draeneiAI::Reset(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::Reset(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), npc_kerlonian::npc_kerlonianAI::SetSleeping(), SetStunned(), boss_scarlet_commander_mograine::SpellHit(), npc_harrison_jones::npc_harrison_jonesAI::SpellHit(), boss_ahune::SpellHit(), npc_draenei_survivor::npc_draenei_survivorAI::SpellHit(), npc_wounded_skirmisher::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), boss_victor_nefarius::SummonedCreatureDies(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_eachother(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_Pathaleons_Image(), boss_vaelastrasz::UpdateAI(), boss_ragnaros::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), npc_koltira_deathweaver::UpdateAI(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_calvin_montague::npc_calvin_montagueAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_jena_anderson::npc_jena_andersonAI::UpdateAI(), npc_bartleby_battson::npc_bartleby_battsonAI::UpdateAI(), npc_sergeant_morigan::npc_sergeant_moriganAI::UpdateAI(), npc_roger_owens::npc_roger_owensAI::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), boss_krick::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_vrykul_skeleton::UpdateAI(), npc_thassarian::UpdateAI(), boss_leotheras_the_blind::UpdateAI(), boss_the_lurker_below::UpdateAI(), npc_claw::UpdateAI(), boss_alar::UpdateAI(), boss_mr_smite::boss_mr_smiteAI::UpdateAI(), npc_tallhorn_stag::UpdateAI(), npc_magwin::npc_magwinAI::UpdateEscortAI(), npc_brann_hos::UpdateEscortAI(), npc_millhouse_manastorm::UpdateIntroEvents(), GameObject::Use(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached(), and npc_brann_hos::WaypointReached().
Definition at line 918 of file Unit.h.
References UNIT_FIELD_STAT0.
Referenced by Player::InitStatsForLevel(), Player::UpdateAllStats(), Guardian::UpdateStats(), and Player::UpdateStats().
| void Unit::SetStatFlatModifier | ( | UnitMods | unitMod, |
| UnitModifierFlatType | modifierType, | ||
| float | val | ||
| ) |
Definition at line 9011 of file Unit.cpp.
References m_auraFlatModifiersGroup, and UpdateUnitMod().
Referenced by Guardian::InitStatsForLevel(), UpdateDamageDoneMods(), Creature::UpdateEntry(), and Creature::UpdateLevelDependantStats().
| void Unit::SetStatPctModifier | ( | UnitMods | unitMod, |
| UnitModifierPctType | modifierType, | ||
| float | val | ||
| ) |
Definition at line 9020 of file Unit.cpp.
References m_auraPctModifiersGroup, and UpdateUnitMod().
Referenced by AuraEffect::HandleAuraIncreaseBaseHealthPercent(), AuraEffect::HandleAuraModBaseResistancePCT(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleModPercentStat(), AuraEffect::HandleModResistancePercent(), AuraEffect::HandleModTotalPercentStat(), and UpdateDamagePctDoneMods().
|
protected |
Definition at line 11326 of file Unit.cpp.
References CastStop(), ObjectGuid::Empty, EnsureVictim(), GetCharmerOrOwner(), Object::GetGUID(), Object::GetTypeId(), GetVictim(), HasUnitState(), IsAlive(), IsMounted(), RemoveUnitFlag(), SetRooted(), SetStandState(), SetTarget(), SetUnitFlag(), StopMoving(), Object::ToPlayer(), TYPEID_PLAYER, UNIT_FLAG_STUNNED, UNIT_STAND_STATE_STAND, and UNIT_STATE_ROOT.
Referenced by ApplyControlStatesIfNeeded(), and SetControlled().
| bool Unit::SetSwim | ( | bool | enable | ) |
Definition at line 13330 of file Unit.cpp.
References AddUnitMovementFlag(), Object::GetGUID(), HasUnitMovementFlag(), MOVEMENTFLAG_SWIMMING, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), SMSG_SPLINE_MOVE_START_SWIM, SMSG_SPLINE_MOVE_STOP_SWIM, and WorldPackets::Movement::MoveSplineSetFlag::Write().
Referenced by debug_commandscript::HandleDebugMoveflagsCommand(), and Creature::UpdateMovementFlags().
|
pure virtual |
Implemented in Player, and Creature.
Referenced by Attack(), AttackStop(), RemoveAllFollowers(), SetConfused(), SetFeared(), and SetStunned().
|
inline |
Definition at line 1603 of file Unit.h.
Referenced by AuraEffect::HandleAuraTransform().
|
inline |
Definition at line 968 of file Unit.h.
References flags, and UNIT_FIELD_FLAGS.
Referenced by Creature::AllLootRemovedFromCorpse(), npc_doctor::npc_doctorAI::BeginEvent(), boss_thaddius::BeginResetEncounter(), boss_eadric::boss_eadricAI::boss_eadricAI(), boss_hunter_toc5::boss_hunter_toc5AI::boss_hunter_toc5AI(), boss_mage_toc5::boss_mage_toc5AI::boss_mage_toc5AI(), boss_paletress::boss_paletressAI::boss_paletressAI(), boss_rouge_toc5::boss_rouge_toc5AI::boss_rouge_toc5AI(), boss_shaman_toc5::boss_shaman_toc5AI::boss_shaman_toc5AI(), boss_twilight_halion::boss_twilight_halion(), boss_vx_001::boss_vx_001AI::boss_vx_001AI(), boss_warrior_toc5::boss_warrior_toc5AI::boss_warrior_toc5AI(), spell_the_lich_king_vile_spirit_damage_target_search::CheckTargetCount(), Player::Create(), boss_taerar::boss_taerarAI::DamageTaken(), npc_felblood_kaelthas_phoenix::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_apothecary_hummel::DamageTaken(), boss_muru::DamageTaken(), npc_dark_fiend::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), npc_frost_sphere::DamageTaken(), boss_deathbringer_saurfang::DamageTaken(), npc_terenas_menethil::DamageTaken(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), boss_algalon_the_observer::DamageTaken(), npc_feral_defender::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), boss_ingvar_the_plunderer::DamageTaken(), AdvisorBaseAI::DamageTaken(), npc_phoenix_the_eye::DamageTaken(), npc_tiger_matriarch::DamageTaken(), boss_halion::DamageTaken(), npc_vrykul_skeleton::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_vx_001::boss_vx_001AI::DamageTaken(), instance_ulduar::instance_ulduar_InstanceMapScript::DespawnLeviatanVehicle(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), boss_algalon_the_observer::DoAction(), npc_xt002_heart::DoAction(), boss_skadi::DoAction(), npc_frozen_core::DoAction(), npc_barada::npc_baradaAI::DoAction(), boss_illidan_stormrage::DoAction(), npc_melee_hover_disk::DoAction(), PetAI::DoAttack(), FlightPathMovementGenerator::DoReset(), VehicleJoinEvent::Execute(), ControllerBaseAI::ExecuteEvent(), boss_thorim::boss_thorimAI::FinishEncounter(), spell_ichoron_drained::HandleApply(), AuraEffect::HandleArenaPreparation(), AuraEffect::HandleAuraModDmgImmunity(), AuraEffect::HandleAuraModFaction(), AuraEffect::HandleAuraModPacify(), AuraEffect::HandleAuraModPacifyAndSilence(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleAuraModSilence(), spell_maiev_down::HandleEffectApply(), spell_gen_feign_death_all_flags::HandleEffectApply(), spell_gen_feign_death_no_dyn_flag::HandleEffectApply(), spell_gen_prevent_emotes::HandleEffectApply(), AuraEffect::HandleFeignDeath(), npc_headless_horseman_head::HandleInitialSetup(), BattlefieldWG::HandleKill(), Battleground::HandleKillPlayer(), WorldSession::HandleLogoutRequestOpcode(), AuraEffect::HandleModUnattackable(), Battlefield::HideNpc(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::InitializeAI(), boss_sapphiron::InitializeAI(), boss_flame_leviathan::boss_flame_leviathanAI::InitializeAI(), Player::InitStatsForLevel(), boss_archaedas::JustAppeared(), npc_stone_keeper::JustAppeared(), boss_broggok::JustAppeared(), BroggokPrisionerBaseAI::JustAppeared(), boss_kelidan_the_breaker::JustAppeared(), boss_kologarn::boss_kologarnAI::JustDied(), boss_algalon_the_observer::JustEngagedWith(), boss_mimiron::boss_mimironAI::JustEngagedWith(), boss_archaedas::JustReachedHome(), npc_stone_keeper::JustReachedHome(), BloodPrincesBossAI::JustReachedHome(), BroggokPrisionerBaseAI::JustReachedHome(), boss_kelidan_the_breaker::JustReachedHome(), npc_announcer_toc5::npc_announcer_toc5AI::JustSummoned(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), Mount(), boss_svala::MoveInLineOfSight(), boss_malygos::MovementInform(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::MovementInform(), boss_aerial_command_unit::boss_aerial_command_unitAI::MovementInform(), npc_announcer_toc5::npc_announcer_toc5AI::npc_announcer_toc5AI(), npc_giant_infernal::npc_giant_infernalAI::npc_giant_infernalAI(), npc_healthy_spore::npc_healthy_sporeAI::npc_healthy_sporeAI(), npc_hodirs_fury::npc_hodirs_furyAI::npc_hodirs_furyAI(), npc_mimirons_inferno::npc_mimirons_infernoAI::npc_mimirons_infernoAI(), npc_scorch_ground::npc_scorch_groundAI::npc_scorch_groundAI(), npc_thorims_hammer::npc_thorims_hammerAI::npc_thorims_hammerAI(), spell_systems_shutdown::spell_systems_shutdown_AuraScript::OnApply(), instance_dire_maul::instance_dire_maul_InstanceMapScript::OnCreatureCreate(), boss_flame_leviathan_overload_device::boss_flame_leviathan_overload_deviceAI::OnSpellClick(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), Creature::RefreshCanSwimFlag(), boss_pyroguard_emberseer::Reset(), npc_image_of_medivh::npc_image_of_medivhAI::Reset(), npc_death_knight_initiate::npc_death_knight_initiateAI::Reset(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), npc_koltira_deathweaver::Reset(), npc_sir_thomas::Reset(), boss_kalecgos_kj::boss_kalecgos_kjAI::Reset(), npc_felfire_portal::npc_felfire_portalAI::Reset(), npc_earthen_hallshaper_custodian::Reset(), npc_earthen_guardian::Reset(), npc_vault_warder::Reset(), boss_cthun::cthunAI::Reset(), npc_depth_charge::Reset(), npc_draenei_survivor::npc_draenei_survivorAI::Reset(), npc_injured_draenei::npc_injured_draeneiAI::Reset(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::Reset(), npc_flame_tsunami::Reset(), npc_twilight_fissure::Reset(), npc_unleashed_ballAI::Reset(), boss_krick::Reset(), boss_tyrannus::Reset(), boss_rimefang::Reset(), boss_kelthuzad::Reset(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::Reset(), boss_svala::Reset(), boss_shade_of_akama::Reset(), npc_ashtongue_channeler::Reset(), npc_naga_distiller::Reset(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), Player::SendLoot(), boss_novos::SetBubbled(), SetCharm(), SetCharmedBy(), SetImmuneToAll(), SetImmuneToNPC(), SetImmuneToPC(), SetMinion(), SetStunned(), Battlefield::ShowNpc(), netherspite_infernal::netherspite_infernalAI::SpellHit(), boss_anub_arak::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), boss_valithria_dreamwalker::SpellHit(), boss_ionar::SpellHit(), npc_wyrmrest_defender::SpellHit(), boss_ahune::SpellHit(), npc_venture_co_straggler::SpellHit(), npc_nether_drake::npc_nether_drakeAI::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), boss_volazj::SpellHitTarget(), boss_jormungarAI::Submerge(), boss_victor_nefarius::SummonedCreatureDies(), boss_ragnaros::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), npc_headless_horseman_head::UpdateAI(), boss_arlokk::UpdateAI(), boss_renataki::UpdateAI(), boss_ouro::boss_ouroAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_anubarak_trial::UpdateAI(), npc_nerubian_burrower::UpdateAI(), npc_terenas_menethil::UpdateAI(), boss_noth::UpdateAI(), boss_magus_telestra::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), boss_xt002::UpdateAI(), boss_svala::UpdateAI(), npc_ethereal_beacon::UpdateAI(), boss_leotheras_the_blind::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_alar::UpdateAI(), boss_kaelthas::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), Creature::UpdateEntry(), CombatManager::UpdateOwnerCombatState(), and UpdatePetCombatState().
|
inline |
Definition at line 974 of file Unit.h.
References flags, and UNIT_FIELD_FLAGS_2.
Referenced by Pet::Create(), Player::Create(), boss_algalon_the_observer::DoAction(), spell_ichoron_drained::HandleApply(), spell_icecrown_bloated_abom_feign_death::HandleApply(), AuraEffect::HandleAuraCloneCaster(), AuraEffect::HandleComprehendLanguage(), spell_gen_feign_death_all_flags::HandleEffectApply(), spell_gen_feign_death_no_dyn_flag::HandleEffectApply(), spell_gen_feign_death_no_prevent_emotes::HandleEffectApply(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleForceMoveForward(), Player::InitStatsForLevel(), and Player::SetGameMaster().
|
inline |
Definition at line 1696 of file Unit.h.
Referenced by debug_commandscript::HandleDebugMoveflagsCommand(), and Player::TeleportTo().
|
inline |
Definition at line 1754 of file Unit.h.
Referenced by VehicleJoinEvent::Execute(), and Vehicle::RemovePassenger().
Definition at line 13839 of file Unit.cpp.
References MAX_EQUIPMENT_ITEMS, Object::SetUInt32Value(), and UNIT_VIRTUAL_ITEM_SLOT_ID.
Referenced by spell_bjarngrim_stance_dummy::AfterApply(), Creature::LoadEquipment(), spell_thorim_stormhammer::spell_thorim_stormhammer_SpellScript::LoseHammer(), spell_thorim_stormhammer_sif::spell_thorim_stormhammer_sif_SpellScript::LoseHammer(), spell_gen_clone_weapon_aura::OnApply(), spell_gen_clone_weapon_aura::OnRemove(), boss_arlokk::Reset(), npc_thrall_old_hillsbrad::Reset(), ScriptedAI::SetEquipmentSlots(), Spell::SummonGuardian(), npc_harrison_jones::npc_harrison_jonesAI::UpdateAI(), boss_arlokk::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), and npc_thrall_old_hillsbrad::WaypointReached().
|
inline |
Definition at line 1020 of file Unit.h.
References flags, UNIT_BYTES_1_OFFSET_VIS_FLAG, and UNIT_FIELD_BYTES_1.
Referenced by AuraEffect::HandleAuraUntrackable(), and AuraEffect::HandleModStealth().
| void Unit::SetVisible | ( | bool | x | ) |
Definition at line 8453 of file Unit.cpp.
References WorldObject::m_serverSideVisibility, SEC_GAMEMASTER, SEC_PLAYER, SERVERSIDE_VISIBILITY_GM, FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::SetValue(), and UpdateObjectVisibility().
Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), boss_viscidus::boss_viscidusAI::DamageTaken(), spell_rotface_unstable_ooze_explosion_suicide::DespawnSelf(), npc_kelthuzad_guardian::DoAction(), npc_rocket_propelled_warhead::FinishQuest(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), Battlefield::HideNpc(), npc_webwrap::InitializeAI(), boss_sapphiron::InitializeAI(), hyjalAI::JustDied(), npc_rocket_propelled_warhead::JustReachedHome(), boss_kalecgos::MovementInform(), npc_blood_queen_lana_thel::MovementInform(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::OnCreatureCreate(), npc_lorekeeper::npc_lorekeeperAI::OnGossipSelect(), boss_victor_nefarius::Reset(), boss_midnight::boss_midnightAI::Reset(), boss_kagani_nightstrike::Reset(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::Reset(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::Reset(), boss_eye_of_cthun::eye_of_cthunAI::Reset(), boss_cthun::cthunAI::Reset(), boss_skeram::boss_skeramAI::Reset(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::Reset(), boss_horAI::Reset(), npc_blood_queen_lana_thel::Reset(), boss_ionar::Reset(), npc_minigob_manabonk::Reset(), boss_high_astromancer_solarian::Reset(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::Reset(), npc_violet_hold_teleportation_portal_elite::ScheduleTasks(), Battlefield::ShowNpc(), boss_ionar::SpellHit(), npc_grimstone::npc_grimstoneAI::UpdateAI(), boss_victor_nefarius::UpdateAI(), boss_kagani_nightstrike::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), boss_muru::UpdateAI(), hyjalAI::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), boss_skeram::boss_skeramAI::UpdateAI(), boss_viscidus::boss_viscidusAI::UpdateAI(), npc_kinetic_bomb::UpdateAI(), npc_kelthuzad_guardian::UpdateAI(), npc_webwrap::UpdateAI(), boss_sapphiron::UpdateAI(), npc_minigob_manabonk::UpdateAI(), boss_alar::UpdateAI(), boss_high_astromancer_solarian::UpdateAI(), npc_commander_dawnforge::npc_commander_dawnforgeAI::UpdateAI(), boss_ionar::UpdateAI(), SmartAI::UpdateDespawn(), and npc_thrall_old_hillsbrad::WaypointReached().
| void Unit::SetVisibleAura | ( | uint8 | slot, |
| AuraApplication * | aurApp | ||
| ) |
Definition at line 656 of file Unit.cpp.
References m_visibleAuras, and UpdateAuraForGroup().
Referenced by AuraApplication::_Remove(), and AuraApplication::AuraApplication().
| bool Unit::SetWalk | ( | bool | enable | ) |
Definition at line 13244 of file Unit.cpp.
References AddUnitMovementFlag(), Object::GetGUID(), IsWalking(), MOVEMENTFLAG_WALKING, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), SMSG_SPLINE_MOVE_SET_RUN_MODE, SMSG_SPLINE_MOVE_SET_WALK_MODE, and WorldPackets::Movement::MoveSplineSetFlag::Write().
Referenced by boss_the_lich_king::DamageTaken(), npc_twilight_volunteer::DoAction(), npc_xerestrasza::DoAction(), npc_azure_ring_captain::DoAction(), npc_turned_champion::npc_turned_championAI::DoAction(), npc_akama_shade::DoAction(), boss_headless_horseman::DoAction(), WaypointMovementGenerator< Creature >::DoFinalize(), RandomMovementGenerator< T >::DoFinalize(), OrbAirPositionEvent::Execute(), OrbFlyEvent::Execute(), debug_commandscript::HandleDebugMoveflagsCommand(), npc_sanctum_sentry::JustEngagedWith(), boss_professor_putricide::JustReachedHome(), npc_daegarn::JustSummoned(), npc_rinji::npc_rinjiAI::JustSummoned(), npc_maghar_captive::npc_maghar_captiveAI::JustSummoned(), npc_kurenai_captive::npc_kurenai_captiveAI::JustSummoned(), instance_deadmines::instance_deadmines_InstanceMapScript::MoveCreatureInside(), npc_akama_shade::MovementInform(), boss_shade_of_akama::MovementInform(), boss_headless_horseman::MovementInform(), boss_mandokir::MovementInform(), npc_high_overlord_saurfang_icc::MovementInform(), npc_muradin_bronzebeard_icc::MovementInform(), EscortAI::MovementInform(), npc_cameron::MoveTheChildren(), npc_marzon_silent_blade::npc_marzon_silent_bladeAI::npc_marzon_silent_bladeAI(), SmartAI::OnCharmed(), npc_tirion_fordring_tft::OnGossipSelect(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), boss_headless_horseman::Reset(), boss_arlokk::Reset(), npc_kinetic_bomb::Reset(), boss_professor_putricide::Reset(), npc_azure_ring_captain::Reset(), npc_sanctum_sentry::Reset(), npc_garona::npc_garonaAI::Reset(), boss_shade_of_akama::Reset(), SmartAI::ReturnToLastOOCPos(), boss_selin_fireheart::SelectNearestCrystal(), SetCharm(), npc_zombie_chow::SetData(), SmartAI::SetRun(), npc_akama_shade::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), boss_headless_horseman::StartPhase(), hyjalAI::SummonCreature(), npc_koltira_deathweaver::UpdateAI(), npc_scarlet_courier::npc_scarlet_courierAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), boss_arlokk::UpdateAI(), npc_thrall_herald_of_war::npc_thrall_herald_of_warAI::UpdateAI(), npc_uther_quel_delar::npc_uther_quel_delarAI::UpdateAI(), npc_high_overlord_saurfang_icc::UpdateAI(), npc_muradin_bronzebeard_icc::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), npc_thassarian::UpdateAI(), npc_commander_eligor_dawnbringer::UpdateAI(), npc_brann_bronzebeard_keystone::UpdateAI(), npc_crusade_recruit::UpdateAI(), npc_akama_shade::UpdateAI(), npc_claw::UpdateAI(), boss_kaelthas::UpdateAI(), npc_dream_fog::npc_dream_fogAI::UpdateAI(), boss_kirtonos_the_herald::UpdateIntroEvents(), boss_majordomo::UpdateSpecialEvents(), npc_thassarian::WaypointPathEnded(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), and npc_emily::WaypointReached().
| bool Unit::SetWaterWalking | ( | bool | enable | ) |
Definition at line 13397 of file Unit.cpp.
References AddUnitMovementFlag(), GameClient::GetBasePlayer(), GetGameClientMovingMe(), Object::GetGUID(), GetMovementCounterAndInc(), HasUnitMovementFlag(), IsMovedByClient(), WorldObject::m_movementInfo, MOVEMENTFLAG_WATERWALKING, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, MSG_MOVE_WATER_WALK, RemoveUnitMovementFlag(), Player::SendDirectMessage(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_LAND_WALK, SMSG_MOVE_WATER_WALK, SMSG_SPLINE_MOVE_LAND_WALK, SMSG_SPLINE_MOVE_WATER_WALK, WorldPackets::Movement::MoveUpdate::Status, WorldPackets::Movement::MoveUpdate::Write(), WorldPackets::Movement::MoveSplineSetFlag::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
Referenced by Player::BuildPlayerRepop(), AuraEffect::HandleAuraWaterWalk(), debug_commandscript::HandleDebugMoveflagsCommand(), WorldSession::HandlePlayerLogin(), cheat_commandscript::HandleWaterWalkCheatCommand(), and Player::ResurrectPlayer().
| int32 Unit::SpellBaseDamageBonusDone | ( | SpellSchoolMask | schoolMask | ) | const |
Definition at line 6927 of file Unit.cpp.
References BASE_ATTACK, CalculatePct(), GetAuraEffectsByType(), Player::GetBaseSpellPowerBonus(), GetStat(), GetTotalAttackPowerValue(), GetTotalAuraModifierByMiscMask(), Object::GetTypeId(), SPELL_AURA_MOD_DAMAGE_DONE, SPELL_AURA_MOD_SPELL_DAMAGE_OF_ATTACK_POWER, SPELL_AURA_MOD_SPELL_DAMAGE_OF_STAT_PERCENT, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Spell::EffectWeaponDmg(), spell_pal_seal_of_righteousness::HandleProc(), spell_sha_flametongue_weapon::HandleProc(), Guardian::InitStatsForLevel(), SpellDamageBonusDone(), and Player::UpdateSpellDamageAndHealingBonus().
| int32 Unit::SpellBaseHealingBonusDone | ( | SpellSchoolMask | schoolMask | ) | const |
Definition at line 7546 of file Unit.cpp.
References BASE_ATTACK, CalculatePct(), GetAuraEffectsByType(), Player::GetBaseSpellPowerBonus(), AuraEffect::GetMiscValue(), GetStat(), GetTotalAttackPowerValue(), GetTotalAuraModifier(), Object::GetTypeId(), SPELL_AURA_MOD_HEALING_DONE, SPELL_AURA_MOD_SPELL_HEALING_OF_ATTACK_POWER, SPELL_AURA_MOD_SPELL_HEALING_OF_STAT_PERCENT, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by SpellHealingBonusDone(), and Player::UpdateSpellDamageAndHealingBonus().
| float Unit::SpellCritChanceDone | ( | SpellInfo const * | spellInfo, |
| SpellSchoolMask | schoolMask, | ||
| WeaponAttackType | attackType = BASE_ATTACK, |
||
| bool | isPeriodic = false |
||
| ) | const |
Mobs can't crit with spells. (Except player controlled)
Definition at line 6955 of file Unit.cpp.
References AsUnderlyingType(), SpellInfo::DmgClass, GetFirstSchoolInMask(), Object::GetFloatValue(), WorldObject::GetSpellModOwner(), GetTotalAuraModifierByMiscMask(), Object::GetTypeId(), GetUnitCriticalChanceDone(), SpellInfo::HasAttribute(), SpellInfo::Id, Object::IsPlayer(), m_baseSpellCritChance, PLAYER_SPELL_CRIT_PERCENTAGE1, SPELL_ATTR0_CU_CAN_CRIT, SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL, SPELL_DAMAGE_CLASS_MAGIC, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_NONE, SPELL_DAMAGE_CLASS_RANGED, SPELL_SCHOOL_MASK_NORMAL, SPELLMOD_CRITICAL_CHANCE, and TYPEID_UNIT.
Referenced by Aura::CalcPeriodicCritChance(), and Spell::PreprocessSpellLaunch().
| float Unit::SpellCritChanceTaken | ( | Unit const * | caster, |
| SpellInfo const * | spellInfo, | ||
| SpellSchoolMask | schoolMask, | ||
| float | doneChance, | ||
| WeaponAttackType | attackType = BASE_ATTACK, |
||
| bool | isPeriodic = false |
||
| ) | const |
Definition at line 7009 of file Unit.cpp.
References ApplyResilience(), AURA_STATE_BLEEDING, AURA_STATE_FAERIE_FIRE, AURA_STATE_FROZEN, AURA_STATE_HEALTHLESS_35_PERCENT, CanApplyResilience(), CR_CRIT_TAKEN_SPELL, CREATURE_TYPEMASK_DEMON_OR_UNDEAD, SpellInfo::DmgClass, EFFECT_0, FindCurrentSpellBySpellId(), GetAuraEffect(), GetAuraEffectsByType(), AuraEffect::GetCasterGUID(), SpellInfo::GetCategory(), GetCreatureTypeMask(), GetDummyAuraEffect(), Object::GetGUID(), Object::GetGUID(), GetLevel(), GetLevelForTarget(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), Object::GetTypeId(), GetUnitCriticalChanceTaken(), SpellInfo::HasAttribute(), HasAura(), HasAuraState(), HasAuraWithMechanic(), AuraEffect::IsAffectingSpell(), SpellInfo::IsPositive(), MECHANIC_KNOCKOUT, MECHANIC_STUN, SPELL_ATTR0_CU_CAN_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, SPELLFAMILY_DRUID, SPELLFAMILY_MAGE, SPELLFAMILY_PALADIN, SPELLFAMILY_ROGUE, SPELLFAMILY_SHAMAN, SPELLFAMILY_WARRIOR, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, and TYPEID_UNIT.
Referenced by AuraEffect::GetCritChanceFor(), and Spell::PreprocessSpellLaunch().
|
static |
Definition at line 7197 of file Unit.cpp.
References AddPct(), SpellInfo::DmgClass, GetCreatureTypeMask(), SpellInfo::GetSchoolMask(), WorldObject::GetSpellModOwner(), GetTotalAuraModifierByMiscMask(), GetTotalAuraMultiplierByMiscMask(), SpellInfo::Id, SPELL_AURA_MOD_CRIT_DAMAGE_BONUS, SPELL_AURA_MOD_CRIT_PERCENT_VERSUS, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_RANGED, and SPELLMOD_CRIT_DAMAGE_BONUS.
Referenced by CalculateSpellDamageTaken(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
|
static |
Definition at line 7240 of file Unit.cpp.
References SpellInfo::DmgClass, GetCreatureTypeMask(), GetTotalAuraMultiplier(), GetTotalAuraMultiplierByMiscMask(), SPELL_AURA_MOD_CRIT_PERCENT_VERSUS, SPELL_AURA_MOD_CRITICAL_HEALING_AMOUNT, SPELL_DAMAGE_CLASS_MELEE, and SPELL_DAMAGE_CLASS_RANGED.
Referenced by Spell::TargetInfo::DoDamageAndTriggers(), and AuraEffect::HandlePeriodicHealAurasTick().
| uint32 Unit::SpellDamageBonusDone | ( | Unit * | victim, |
| SpellInfo const * | spellProto, | ||
| uint32 | pdamage, | ||
| DamageEffectType | damagetype, | ||
| SpellEffectInfo const & | spellEffectInfo, | ||
| Optional< float > const & | donePctTotal, | ||
| uint32 | stack = 1 |
||
| ) | const |
Definition at line 6393 of file Unit.cpp.
References AddPct(), BASE_ATTACK, SpellEffectInfo::BonusCoefficient, CalculateDefaultCoefficient(), CalculateSpellpowerCoefficientLevelPenalty(), DIRECT_DAMAGE, SpellInfo::DmgClass, DOT, EFFECT_0, GetCreatureTypeMask(), AuraEffect::GetMiscValue(), WorldObject::GetOwner(), SpellInfo::GetSchoolMask(), Player::GetSpellMap(), WorldObject::GetSpellModOwner(), GetTotalAttackPowerValue(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), Object::GetTypeId(), SpellInfo::HasAttribute(), HasUnitTypeMask(), SpellInfo::Id, AuraEffect::IsAffectingSpell(), SpellInfo::IsRangedWeaponSpell(), IsTotem(), PLAYERSPELL_REMOVED, RANGED_ATTACK, SPELL_ATTR3_NO_DONE_BONUS, SPELL_ATTR6_LIMIT_PCT_DAMAGE_MODS, SPELL_AURA_MELEE_ATTACK_POWER_ATTACKER_BONUS, SPELL_AURA_MOD_DAMAGE_TAKEN, SPELL_AURA_MOD_FLAT_SPELL_DAMAGE_VERSUS, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_AURA_RANGED_ATTACK_POWER_ATTACKER_BONUS, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_NONE, SpellBaseDamageBonusDone(), SpellDamagePctDone(), SPELLFAMILY_DEATHKNIGHT, SpellInfo::SpellFamilyName, SPELLMOD_BONUS_MULTIPLIER, SPELLMOD_DAMAGE, SPELLMOD_DOT, sSpellMgr, Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, and UNIT_MASK_GUARDIAN.
Referenced by AuraEffect::CalculateAmount(), spell_warl_seed_of_corruption_dummy::CalculateBuffer(), Spell::EffectHealthLeech(), Spell::EffectPowerDrain(), Spell::EffectSchoolDMG(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandleProcTriggerDamageAuraProc().
| uint32 Unit::SpellDamageBonusTaken | ( | Unit * | caster, |
| SpellInfo const * | spellProto, | ||
| uint32 | pdamage, | ||
| DamageEffectType | damagetype | ||
| ) | const |
Definition at line 6850 of file Unit.cpp.
References AddPct(), DIRECT_DAMAGE, SpellInfo::GetAllEffectsMechanicMask(), GetAuraEffectsByType(), AuraEffect::GetCasterGUID(), Object::GetGUID(), GetMeleeCritDamageReduction(), AuraEffect::GetMiscValue(), SpellInfo::GetSchoolMask(), GetTotalAuraMultiplier(), GetTotalAuraMultiplierByMiscMask(), SpellInfo::HasAttribute(), AuraEffect::IsAffectingSpell(), SPELL_ATTR4_FIXED_DAMAGE, SPELL_AURA_DUMMY, SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN, SPELL_AURA_MOD_IGNORE_TARGET_RESIST, SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCENT, SPELL_AURA_MOD_SPELL_DAMAGE_FROM_CASTER, and SPELL_SCHOOL_MASK_NORMAL.
Referenced by DealMeleeDamage(), Spell::EffectHealthLeech(), Spell::EffectPowerDrain(), Spell::EffectSchoolDMG(), Aura::HandleAuraSpecificMods(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), and AuraEffect::HandleProcTriggerDamageAuraProc().
| float Unit::SpellDamagePctDone | ( | Unit * | victim, |
| SpellInfo const * | spellProto, | ||
| DamageEffectType | damagetype | ||
| ) | const |
Definition at line 6533 of file Unit.cpp.
References AddPct(), AURA_STATE_CONFLAGRATE, AURA_STATE_FROZEN, AURA_STATE_HEALTHLESS_20_PERCENT, AURA_STATE_HEALTHLESS_35_PERCENT, WorldObject::CalculateSpellDamage(), DIRECT_DAMAGE, EFFECT_0, AuraEffect::GetAmount(), GetAppliedAuras(), GetAuraEffect(), GetAuraEffectOfRankedSpell(), GetAuraEffectsByType(), GetCreatureTypeMask(), GetDiseasesByCaster(), GetDoTsByCaster(), GetDummyAuraEffect(), Object::GetFloatValue(), Object::GetGUID(), Object::GetGUID(), GetLevel(), AuraEffect::GetMiscValue(), WorldObject::GetOwner(), GetOwnerGUID(), SpellInfo::GetSchoolMask(), Creature::GetSpellDamageMod(), Aura::GetSpellInfo(), Aura::GetStackAmount(), GetTotalAuraModifierByMiscValue(), GetTotalAuraMultiplier(), GetTotalAuraMultiplierByMiscMask(), Object::GetTypeId(), SpellInfo::HasAttribute(), HasAura(), HasAuraState(), HasAuraWithMechanic(), HealthAbovePct(), IsPet(), IsTotem(), MAX_SPELL_SCHOOL, SpellInfo::Mechanic, MECHANIC_SLOW_ATTACK, MECHANIC_SNARE, PLAYER_FIELD_MOD_DAMAGE_DONE_PCT, SPELL_ATTR3_NO_DONE_BONUS, SPELL_ATTR6_LIMIT_PCT_DAMAGE_MODS, SPELL_AURA_DUMMY, SPELL_AURA_MOD_DAMAGE_DONE_FOR_MECHANIC, SPELL_AURA_MOD_DAMAGE_DONE_VERSUS, SPELL_AURA_MOD_DAMAGE_DONE_VERSUS_AURASTATE, SPELL_AURA_MOD_DAMAGE_PERCENT_DONE, SPELL_AURA_MOD_STALKED, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_DEATHKNIGHT, SPELLFAMILY_DRUID, SPELLFAMILY_HUNTER, SPELLFAMILY_MAGE, SPELLFAMILY_PALADIN, SPELLFAMILY_PRIEST, SPELLFAMILY_WARLOCK, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, Object::ToCreature(), TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by Aura::SaveCasterInfo(), and SpellDamageBonusDone().
| uint32 Unit::SpellHealingBonusDone | ( | Unit * | victim, |
| SpellInfo const * | spellProto, | ||
| uint32 | healamount, | ||
| DamageEffectType | damagetype, | ||
| SpellEffectInfo const & | spellEffectInfo, | ||
| Optional< float > const & | donePctTotal, | ||
| uint32 | stack = 1 |
||
| ) | const |
Definition at line 7274 of file Unit.cpp.
References AddPct(), BASE_ATTACK, SpellEffectInfo::BonusCoefficient, CalculateDefaultCoefficient(), CalculateSpellpowerCoefficientLevelPenalty(), SpellInfo::DmgClass, DOT, EFFECT_0, GetAuraEffectsByType(), SpellInfo::GetEffects(), WorldObject::GetOwner(), SpellInfo::GetSchoolMask(), Player::GetSpellMap(), WorldObject::GetSpellModOwner(), GetTotalAttackPowerValue(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), Object::GetTypeId(), HasUnitTypeMask(), SpellInfo::Id, SpellInfo::IsRangedWeaponSpell(), IsTotem(), PLAYERSPELL_REMOVED, RANGED_ATTACK, SPELL_AURA_MELEE_ATTACK_POWER_ATTACKER_BONUS, SPELL_AURA_MOD_HEALING, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_AURA_PERIODIC_HEALTH_FUNNEL, SPELL_AURA_PERIODIC_LEECH, SPELL_AURA_RANGED_ATTACK_POWER_ATTACKER_BONUS, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_NONE, SPELL_EFFECT_HEALTH_LEECH, SpellBaseHealingBonusDone(), SPELLFAMILY_DEATHKNIGHT, SPELLFAMILY_POTION, SpellInfo::SpellFamilyName, SpellHealingPctDone(), SPELLMOD_BONUS_MULTIPLIER, SPELLMOD_DAMAGE, SPELLMOD_DOT, sSpellMgr, Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, and UNIT_MASK_GUARDIAN.
Referenced by AuraEffect::CalculateAmount(), Spell::EffectHeal(), Spell::EffectHealthLeech(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
| uint32 Unit::SpellHealingBonusTaken | ( | Unit * | caster, |
| SpellInfo const * | spellProto, | ||
| uint32 | healamount, | ||
| DamageEffectType | damagetype | ||
| ) | const |
Definition at line 7498 of file Unit.cpp.
References AddPct(), DOT, GetAuraEffect(), AuraEffect::GetCasterGUID(), Object::GetGUID(), GetMaxNegativeAuraModifier(), GetMaxPositiveAuraModifier(), GetTotalAuraMultiplier(), AuraEffect::IsAffectingSpell(), SPELL_AURA_MOD_HEALING_PCT, SPELL_AURA_MOD_HEALING_RECEIVED, SPELL_AURA_MOD_HOT_PCT, SPELL_AURA_PERIODIC_HEAL, SPELLFAMILY_DRUID, SpellInfo::SpellFamilyFlags, and SpellInfo::SpellFamilyName.
Referenced by Spell::EffectHeal(), Spell::EffectHealMechanical(), Spell::EffectHealPct(), Spell::EffectHealthLeech(), AuraEffect::HandlePeriodicHealAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
Definition at line 7418 of file Unit.cpp.
References AddPct(), GetAppliedAuras(), GetAuraEffect(), GetAuraEffectsByType(), Aura::GetCasterGUID(), Object::GetGUID(), WorldObject::GetOwner(), Aura::GetSpellInfo(), Aura::GetStackAmount(), GetTotalAuraMultiplier(), Object::GetTypeId(), SpellInfo::HasAttribute(), HealthBelowPct(), IsTotem(), SPELL_ATTR3_NO_DONE_BONUS, SPELL_ATTR6_LIMIT_PCT_HEALING_MODS, SPELL_AURA_DUMMY, SPELL_AURA_MOD_HEALING_DONE_PERCENT, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_AURA_PERIODIC_HEAL, SPELLFAMILY_DRUID, SPELLFAMILY_POTION, SPELLFAMILY_SHAMAN, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, and TYPEID_UNIT.
Referenced by Aura::SaveCasterInfo(), and SpellHealingBonusDone().
|
inline |
Definition at line 1735 of file Unit.h.
References REACTIVE_TIMER_START.
Referenced by ProcSkillsAndReactives().
| void Unit::StopAttackFaction | ( | uint32 | faction_id | ) |
Definition at line 13050 of file Unit.cpp.
References AttackStop(), FactionTemplateEntry::Faction, getAttackers(), WorldObject::GetFactionTemplateEntry(), CombatManager::GetPvECombatRefs(), Object::GetTypeId(), GetVictim(), InterruptNonMeleeSpells(), IsNonMeleeSpellCast(), m_combatManager, m_Controlled, Player::SendAttackSwingCancelAttack(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by AuraEffect::HandleForceReaction().
| void Unit::StopMoving | ( | bool | force = false | ) |
Definition at line 10289 of file Unit.cpp.
References ClearUnitState(), Movement::MoveSpline::Finalized(), Movement::MoveSpline::HasStarted(), Object::IsInWorld(), movespline, Movement::MoveSplineInit::Stop(), UNIT_STATE_MOVING, and UpdateSplinePosition().
Referenced by npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), npc_kelthuzad_guardian::DoAction(), boss_malygos::DoAction(), boss_razorscale::DoAction(), ScriptedAI::DoCastSpell(), RandomMovementGenerator< T >::DoFinalize(), FlightPathMovementGenerator::DoFinalize(), ConfusedMovementGenerator< T >::DoFinalize(), FleeingMovementGenerator< T >::DoFinalize(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), FormationMovementGenerator::DoInitialize(), WaypointMovementGenerator< Creature >::DoInitialize(), WaypointMovementGenerator< Creature >::DoReset(), FormationMovementGenerator::DoUpdate(), WaypointMovementGenerator< Creature >::DoUpdate(), RandomMovementGenerator< T >::DoUpdate(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::EnterEvadeMode(), boss_felmyst::EnterPhase(), TimedFleeingMovementGenerator::Finalize(), debug_commandscript::HandleDebugMoveflagsCommand(), boss_felmyst::HandleFlightSequence(), spell_sapphiron_change_blizzard_target::HandlePeriodic(), IdleMovementGenerator::Initialize(), boss_razuvious::JustEngagedWith(), npc_ashtongue_sorcerer::MoveInLineOfSight(), npc_magister_aledis::npc_magister_aledisAI::OnGossipSelect(), npc_caster_hover_disk::PassengerBoarded(), PauseMovement(), Spell::prepare(), npc_pet_gen_pandaren_monk::ReceiveEmote(), RemoveCharmedBy(), Creature::RemoveCorpse(), IdleMovementGenerator::Reset(), SplineChainMovementGenerator::Reset(), SetCharmedBy(), SmartAI::SetCombatMove(), npc_zombie_chow::SetData(), boss_victor_nefarius::SetData(), RandomMovementGenerator< T >::SetRandomLocation(), SetRooted(), SetStunned(), MotionMaster::StopOnDeath(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), npc_frost_wyrm::npc_frost_wyrmAI::UpdateAI(), npc_gargoyle::npc_gargoyleAI::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::UpdateAI(), npc_quel_delar_sword::npc_quel_delar_swordAI::UpdateAI(), npc_zombie_chow::UpdateAI(), boss_gothik::UpdateAI(), boss_heigan::UpdateAI(), boss_noth::UpdateAI(), boss_malygos::UpdateAI(), boss_urom::UpdateAI(), boss_svala::UpdateAI(), and npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::UpdateAI().
|
virtual |
Definition at line 13797 of file Unit.cpp.
References Cell::VisitWorldObjects().
Referenced by spell_brewfest_barker_bunny::OnApply().
|
virtual |
Definition at line 13847 of file Unit.cpp.
References GetGender(), sObjectMgr, TC_LOG_ERROR, and Cell::VisitWorldObjects().
|
virtual |
Reimplemented in Player.
Definition at line 13815 of file Unit.cpp.
References CHAT_MSG_MONSTER_EMOTE, CHAT_MSG_RAID_BOSS_EMOTE, CONFIG_LISTEN_RANGE_TEXTEMOTE, LANG_UNIVERSAL, and sWorld.
Referenced by npc_commandscript::HandleNpcTextEmoteCommand(), spell_auto_repair::spell_auto_repair_SpellScript::HandleScript(), spell_item_decahedral_dwarven_dice::HandleScript(), spell_item_worn_troll_dice::HandleScript(), Map::ScriptsProcess(), spell_item_titanium_seal_of_dalaran_toss::TriggerEmote(), and spell_item_titanium_seal_of_dalaran_catch::TriggerEmote().
|
virtual |
Reimplemented in Player.
Definition at line 13871 of file Unit.cpp.
References CHAT_MSG_MONSTER_EMOTE, CHAT_MSG_RAID_BOSS_EMOTE, CONFIG_LISTEN_RANGE_TEXTEMOTE, and sWorld.
|
inline |
Definition at line 1804 of file Unit.h.
Referenced by BeforeVisibilityDestroy< Creature >(), spell_warl_pet_passive_voidwalker::spell_warl_pet_passive_voidwalker_AuraScript::CalculateAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateArcaneResistanceAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArcaneResistanceAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateArmorAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArmorAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateAttackPowerAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateAttackPowerAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateDamageDoneAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateDamageDoneAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateFireResistanceAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateFireResistanceAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateFrostResistanceAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateFrostResistanceAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateIntellectAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateNatureResistanceAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateNatureResistanceAmount(), spell_warl_pet_scaling_04::spell_warl_pet_scaling_04_AuraScript::CalculateShadowResistanceAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateShadowResistanceAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateStaminaAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateStaminaAmount(), Spell::CheckCast(), Spell::EffectDismissPet(), Spell::EffectLearnPetSpell(), Spell::EffectLearnSpell(), GetCreatePowerValue(), GetSelectedPlayerPetOrOwn(), AuraEffect::HandleModPossessPet(), WorldSession::HandlePetAbandon(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), WorldSession::HandlePetSpellAutocastOpcode(), reset_commandscript::HandleResetTalentsCommand(), SpellHistory::LockSpellSchool(), ModifyAuraState(), PetAI::ReceiveEmote(), SetHealth(), SetMaxHealth(), SetMaxPower(), SetMinion(), SetPower(), SetPowerType(), TempSummon::UnSummon(), FollowMovementGenerator::Update(), Guardian::UpdateAttackPowerAndDamage(), Guardian::UpdateDamagePhysical(), UpdateDisplayPower(), FollowMovementGenerator::UpdatePetSpeed(), and Guardian::UpdateStats().
|
inline |
Definition at line 1810 of file Unit.h.
Referenced by BossAI::_DespawnAtEvade(), _ExitVehicle(), ThreatManager::CanHaveThreatList(), boss_nefarian::DamageTaken(), npc_tiger_matriarch::DamageTaken(), DealDamage(), Creature::DespawnOrUnsummon(), boss_sindragosa::DoAction(), npc_strangulate_vehicle::DoAction(), Spell::EffectScriptEffect(), npc_gatewatcher_petAI::EnterEvadeMode(), npc_marzon_silent_blade::npc_marzon_silent_bladeAI::EnterEvadeMode(), GetAllMinionsByEntry(), SmartScript::GetTargets(), WorldSession::HandleDismissCritter(), npc_commandscript::HandleNpcDeleteCommand(), spell_sapphiron_change_blizzard_target::HandlePeriodic(), spell_assembly_rune_of_summoning::spell_assembly_rune_of_summoning_AuraScript::HandlePeriodic(), spell_gen_whisper_to_controller_random::HandleScript(), spell_pri_lightwell::HandleScriptEffect(), npc_stolen_soul::InitializeAI(), npc_inner_demon::InitializeAI(), TempSummon::InitStats(), SpellClickInfo::IsFitToRequirements(), CreatureAI::JustAppeared(), npc_dark_rider_of_acherus::JustAppeared(), npc_ancient_wisp::JustAppeared(), npc_flash_freeze_init::JustAppeared(), npc_flash_freeze_combat::JustAppeared(), npc_frost_tomb::JustAppeared(), npc_blackheart_the_inciter_dummy::JustAppeared(), npc_inner_demon::JustAppeared(), npc_steamrigger_mechanic::JustAppeared(), boss_grubbis::boss_grubbisAI::JustDied(), npc_tito::JustDied(), npc_giant_flesh_tentacle::flesh_tentacleAI::JustDied(), npc_gatewatcher_web_wrap::JustDied(), npc_memory::npc_memoryAI::JustDied(), boss_tyrannus::JustDied(), npc_bone_spike::JustDied(), npc_raging_spirit::JustDied(), npc_counselor_talbot::JustDied(), npc_stolen_soul::JustDied(), npc_slad_ran_constrictor::JustEngagedWith(), npc_marzon_silent_blade::npc_marzon_silent_bladeAI::JustEngagedWith(), npc_gatewatcher_petAI::JustEngagedWith(), boss_prince_keleseth_icc::JustSummoned(), boss_massive_jormungar::JustSummoned(), Kill(), npc_tiger_matriarch::KilledUnit(), npc_stratholme_rp_dummy::MovementInform(), npc_frostbrood_skytalon::MovementInform(), npc_marzon_silent_blade::npc_marzon_silent_bladeAI::MovementInform(), npc_glob_of_viscidus::npc_glob_of_viscidusAI::MovementInform(), BattlefieldWG::OnCreatureCreate(), npc_wormhole::npc_wormholeAI::OnGossipHello(), RemoveAllControlled(), RemoveAllMinionsByEntry(), Creature::RemoveCorpse(), spell_gen_defend::RemoveDummyFromDriver(), npc_raging_spirit::Reset(), Creature::SelectVictim(), boss_grubbis::boss_grubbisAI::SetDataSummoner(), boss_the_lich_king::SummonedCreatureDies(), boss_nefarian::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), npc_tiger_matriarch_credit::UpdateAI(), npc_tiger_matriarch::UpdateAI(), npc_strangulate_vehicle::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), Player::VehicleSpellInitialize(), npc_general_arlos::WaypointPathEnded(), and npc_leryssa::WaypointPathEnded().
|
inline |
|
inline |
Definition at line 1807 of file Unit.h.
Referenced by _UnapplyAura(), Spell::EffectDestroyAllTotems(), WorldSession::HandleTotemDestroyed(), ProcSkillsAndReactives(), SetMinion(), Spell::SummonGuardian(), and TotemAI::UpdateAI().
| void Unit::TriggerAurasProcOnEvent | ( | ProcEventInfo & | eventInfo, |
| AuraApplicationProcContainer & | procAuras | ||
| ) |
Definition at line 10202 of file Unit.cpp.
References AuraApplication::GetBase(), ProcEventInfo::GetProcSpell(), AuraApplication::GetRemoveMode(), Aura::GetSpellInfo(), SpellInfo::HasAttribute(), Spell::IsProcDisabled(), SetCantProc(), SPELL_ATTR3_DISABLE_PROC, and Aura::TriggerProcOnEvent().
| void Unit::TriggerAurasProcOnEvent | ( | Unit * | actionTarget, |
| uint32 | typeMaskActor, | ||
| uint32 | typeMaskActionTarget, | ||
| uint32 | spellTypeMask, | ||
| uint32 | spellPhaseMask, | ||
| uint32 | hitMask, | ||
| Spell * | spell, | ||
| DamageInfo * | damageInfo, | ||
| HealInfo * | healInfo | ||
| ) |
Definition at line 10166 of file Unit.cpp.
References GetProcAurasTriggeredOnEvent(), WorldObject::GetSpellModOwner(), Spell::m_appliedMods, and TriggerAurasProcOnEvent().
Referenced by ProcSkillsAndAuras(), and TriggerAurasProcOnEvent().
| void Unit::UnsummonAllTotems | ( | ) |
Definition at line 6332 of file Unit.cpp.
References WorldObject::GetMap(), m_SummonSlot, and MAX_SUMMON_SLOT.
Referenced by Player::ActivateTalentGroup(), RemoveFromWorld(), and setDeathState().
|
overridevirtual |
Reimplemented from WorldObject.
Reimplemented in Pet, Creature, TempSummon, Puppet, Player, and Totem.
Definition at line 440 of file Unit.cpp.
References _lastDamagedTargetGuid, _lastExtraAttackSpell, _positionUpdateInfo, _UpdateSpells(), ASSERT, AURA_STATE_HEALTH_ABOVE_75_PERCENT, AURA_STATE_HEALTHLESS_20_PERCENT, AURA_STATE_HEALTHLESS_35_PERCENT, BASE_ATTACK, CheckPendingMovementAcks(), ObjectGuid::Empty, extraAttacksTargets, Movement::MoveSpline::Finalized(), getAttackTimer(), GetCharmerGUID(), Object::GetTypeId(), ObjectAccessor::GetUnit(), HandleProcExtraAttackFor(), HasScheduledAIChange(), HealthAbovePct(), HealthBelowPct(), i_motionMaster, InterruptMovementBasedAuras(), IsAlive(), IsCharmed(), Object::IsCreature(), Object::IsInWorld(), m_combatManager, m_procDeep, ModifyAuraState(), movespline, OFF_ATTACK, RANGED_ATTACK, RefreshAI(), PositionUpdateInfo::Reset(), setAttackTimer(), TYPEID_PLAYER, WorldObject::Update(), MotionMaster::Update(), CombatManager::Update(), UpdateCharmAI(), UpdateReactives(), and UpdateSplineMovement().
Referenced by Creature::Update(), and Player::Update().
| void Unit::UpdateAllDamageDoneMods | ( | ) |
Definition at line 9156 of file Unit.cpp.
References BASE_ATTACK, MAX_ATTACK, and UpdateDamageDoneMods().
Referenced by AuraEffect::HandleModDamageDone().
| void Unit::UpdateAllDamagePctDoneMods | ( | ) |
Definition at line 9200 of file Unit.cpp.
References BASE_ATTACK, MAX_ATTACK, and UpdateDamagePctDoneMods().
Referenced by AuraEffect::HandleModDamagePercentDone().
|
virtual |
Definition at line 56 of file StatSystem.cpp.
References MAX_SPELL_SCHOOL, SPELL_SCHOOL_NORMAL, and UpdateResistances().
Referenced by Creature::UpdateAllStats(), Guardian::UpdateAllStats(), and Player::UpdateAllStats().
|
pure virtual |
|
pure virtual |
Implemented in Creature, Guardian, Player, and Totem.
Referenced by AuraEffect::HandleAuraModResistenceOfStatPercent(), and UpdateUnitMod().
|
pure virtual |
Implemented in Creature, Guardian, Player, and Totem.
Referenced by HandleAttackPowerModifier(), and AuraEffect::HandleModAttackPowerOfArmorAuraTick().
| void Unit::UpdateAuraForGroup | ( | uint8 | slot | ) |
Definition at line 10722 of file Unit.cpp.
References Player::GetGroup(), WorldObject::GetOwner(), Object::GetTypeId(), GROUP_UPDATE_FLAG_AURAS, GROUP_UPDATE_FLAG_PET_AURAS, Pet::isControlled(), IsPet(), MAX_AURAS, Pet::SetAuraUpdateMaskForRaid(), Player::SetGroupUpdateFlag(), Object::ToPlayer(), Object::ToPlayer(), TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by RemoveVisibleAura(), and SetVisibleAura().
|
private |
Definition at line 9663 of file Unit.cpp.
References ASSERT, GetAI(), GetCharmer(), GetCharmerGUID(), Object::GetGUID(), Object::GetTypeId(), IsCharmed(), isPossessed(), IsVehicle(), UnitAI::OnCharmed(), RefreshAI(), RestoreDisabledAI(), SetAI(), TC_LOG_ERROR, Object::ToCreature(), Object::ToCreature(), Object::ToPlayer(), Position::ToString(), TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by Update().
|
virtual |
Reimplemented in Player.
Definition at line 9126 of file Unit.cpp.
References ABORT, BASE_ATTACK, CheckAttackFitToAuraRequirement(), AuraEffect::GetMiscValue(), GetTotalAuraModifier(), OFF_ATTACK, RANGED_ATTACK, SetStatFlatModifier(), SPELL_AURA_MOD_DAMAGE_DONE, SPELL_SCHOOL_MASK_NORMAL, TOTAL_VALUE, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, and UNIT_MOD_DAMAGE_RANGED.
Referenced by UpdateAllDamageDoneMods(), and Player::UpdateDamageDoneMods().
| void Unit::UpdateDamagePctDoneMods | ( | WeaponAttackType | attackType | ) |
Definition at line 9162 of file Unit.cpp.
References ABORT, BASE_ATTACK, CheckAttackFitToAuraRequirement(), AuraEffect::GetMiscValue(), GetTotalAuraMultiplier(), OFF_ATTACK, RANGED_ATTACK, SetStatPctModifier(), SPELL_AURA_MOD_DAMAGE_PERCENT_DONE, SPELL_AURA_MOD_OFFHAND_DAMAGE_PCT, SPELL_SCHOOL_MASK_NORMAL, TOTAL_PCT, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, and UNIT_MOD_DAMAGE_RANGED.
Referenced by AuraEffect::HandleModOffhandDamagePercent(), UpdateAllDamagePctDoneMods(), and Player::UpdateWeaponDependentAuras().
|
virtual |
Reimplemented in Guardian, and Totem.
Definition at line 62 of file StatSystem.cpp.
References BASE_ATTACK, CalculateMinMaxDamage(), MAX_ITEM_PROTO_DAMAGES, OFF_ATTACK, RANGED_ATTACK, Object::SetStatFloatValue(), UNIT_FIELD_MAXDAMAGE, UNIT_FIELD_MAXOFFHANDDAMAGE, UNIT_FIELD_MAXRANGEDDAMAGE, UNIT_FIELD_MINDAMAGE, UNIT_FIELD_MINOFFHANDDAMAGE, and UNIT_FIELD_MINRANGEDDAMAGE.
Referenced by Player::_ApplyAmmoBonuses(), Player::_ApplyWeaponDamage(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleModAttackSpeed(), Player::RemoveAmmo(), Creature::SetCanDualWield(), Creature::UpdateAttackPowerAndDamage(), Player::UpdateAttackPowerAndDamage(), and UpdateUnitMod().
| void Unit::UpdateDisplayPower | ( | ) |
Definition at line 5395 of file Unit.cpp.
References CLASS_ROGUE, ChrClassesEntry::DisplayPower, FORM_BEAR, FORM_CAT, FORM_DIREBEAR, FORM_GHOSTWOLF, FORM_GHOUL, FORM_TRAVEL, GetClass(), GetShapeshiftForm(), Object::GetTypeId(), GetVehicleKit(), HUNTER_PET, MAX_POWERS, POWER_ENERGY, POWER_FOCUS, POWER_MANA, POWER_RAGE, sChrClassesStore, SetPowerType(), sPowerDisplayStore, ToPet(), TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by Creature::CreateFromProto(), AuraEffect::HandleAuraModShapeshift(), Player::InitDataForForm(), and Player::LoadFromDB().
| void Unit::UpdateHeight | ( | float | newZ | ) |
Only server-side height update, does not broadcast to client.
Definition at line 12917 of file Unit.cpp.
References Position::GetPositionX(), Position::GetPositionY(), GetVehicleKit(), IsVehicle(), Position::Relocate(), and Vehicle::RelocatePassengers().
Referenced by SetHover().
| void Unit::UpdateInterruptMask | ( | ) |
Definition at line 668 of file Unit.cpp.
References CURRENT_CHANNELED_SPELL, m_currentSpells, m_interruptableAuras, m_interruptMask, and SPELL_STATE_CASTING.
Referenced by _UnapplyAura(), Spell::finish(), and RemoveAurasWithInterruptFlags().
|
pure virtual |
Implemented in Creature, Guardian, Player, and Totem.
Referenced by UpdateUnitMod().
|
pure virtual |
Implemented in Creature, Guardian, Player, and Totem.
Referenced by SetPowerType(), and UpdateUnitMod().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 12151 of file Unit.cpp.
References WorldObject::AddToNotify(), WorldObject::GetVisibilityRange(), NOTIFY_VISIBILITY_CHANGED, WorldObject::UpdateObjectVisibility(), and Cell::VisitAllObjects().
Referenced by Map::CreatureRelocation(), Map::CreatureRespawnRelocation(), AuraEffect::HandleAuraModStalked(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleModInvisibilityDetect(), AuraEffect::HandleModStealth(), AuraEffect::HandleModStealthDetect(), AuraEffect::HandleModStealthLevel(), AuraEffect::HandlePhase(), Map::MoveAllCreaturesInMoveList(), NearTeleportTo(), Creature::Respawn(), Creature::SetPhaseMask(), SetPhaseMask(), SetVisible(), and Player::UpdateObjectVisibility().
| void Unit::UpdateOrientation | ( | float | orientation | ) |
Only server-side orientation update, does not broadcast to client.
Definition at line 12909 of file Unit.cpp.
References GetVehicleKit(), IsVehicle(), Vehicle::RelocatePassengers(), and Position::SetOrientation().
Referenced by UpdatePosition().
| void Unit::UpdatePetCombatState | ( | ) |
Definition at line 8754 of file Unit.cpp.
References ASSERT, IsPet(), m_Controlled, RemoveUnitFlag(), SetUnitFlag(), and UNIT_FLAG_PET_IN_COMBAT.
Referenced by SetCharm(), and SetMinion().
|
virtual |
Reimplemented in Player.
Definition at line 12866 of file Unit.cpp.
References _positionUpdateInfo, Map::CreatureRelocation(), WorldObject::GetMap(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Object::GetTypeId(), Trinity::IsValidMapCoord(), M_PI, Map::PlayerRelocation(), PositionUpdateInfo::Relocated, TC_LOG_DEBUG, Object::ToCreature(), Object::ToPlayer(), PositionUpdateInfo::Turned, TYPEID_PLAYER, UpdateOrientation(), and WorldObject::UpdatePositionData().
Referenced by WorldSession::HandleForceSpeedChangeAck(), WorldSession::HandleMoveKnockBackAck(), WorldSession::HandleMovementOpcode(), npc_frost_wyrm::npc_frost_wyrmAI::JustDied(), boss_flame_leviathan_safety_container::boss_flame_leviathan_safety_containerAI::JustDied(), npc_gargoyle::npc_gargoyleAI::JustDied(), NearTeleportTo(), FrostwingGauntletRespawner::operator()(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::Reset(), boss_twinemperorsAI::TeleportToMyBrother(), npc_highborne_lamenter::npc_highborne_lamenterAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), Player::UpdatePosition(), UpdatePosition(), and UpdateSplinePosition().
|
virtual |
Reimplemented in Player.
Definition at line 12903 of file Unit.cpp.
References Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and UpdatePosition().
| void Unit::UpdateReactives | ( | uint32 | p_time | ) |
Definition at line 10525 of file Unit.cpp.
References AURA_STATE_DEFENSE, AURA_STATE_HUNTER_PARRY, CLASS_HUNTER, CLASS_WARRIOR, ClearComboPoints(), GetClass(), Object::GetTypeId(), HasAuraState(), IsHunterPet(), m_reactiveTimer, MAX_REACTIVE, ModifyAuraState(), REACTIVE_DEFENSE, REACTIVE_HUNTER_PARRY, REACTIVE_OVERPOWER, REACTIVE_WOLVERINE_BITE, and TYPEID_PLAYER.
Referenced by Update().
| void Unit::UpdateResistanceBuffModsMod | ( | SpellSchools | school | ) |
Definition at line 4955 of file Unit.cpp.
References AsUnderlyingType(), AuraEffect::GetAmount(), GetMaxPositiveAuraModifierByMiscMask(), AuraEffect::GetMiscValue(), GetTotalAuraModifier(), GetTotalAuraMultiplierByMiscMask(), Object::SetFloatValue(), SPELL_AURA_MOD_RESISTANCE, SPELL_AURA_MOD_RESISTANCE_EXCLUSIVE, SPELL_AURA_MOD_RESISTANCE_PCT, UNIT_FIELD_RESISTANCEBUFFMODSNEGATIVE, and UNIT_FIELD_RESISTANCEBUFFMODSPOSITIVE.
Referenced by AuraEffect::HandleAuraModResistance(), AuraEffect::HandleAuraModResistanceExclusive(), and AuraEffect::HandleModResistancePercent().
|
pure virtual |
Implemented in Creature, Guardian, Player, and Totem.
Referenced by UpdateAllResistances(), and UpdateUnitMod().
| void Unit::UpdateSpeed | ( | UnitMoveType | mtype | ) |
Definition at line 8463 of file Unit.cpp.
References AddPct(), ASSERT_NOTNULL, baseMoveSpeed, CalculatePct(), FOLLOW_MOTION_TYPE, GetCharmer(), Creature::GetCreatureTemplate(), MotionMaster::GetCurrentMovementGeneratorType(), WorldObject::GetDistance(), Object::GetGUID(), GetMaxNegativeAuraModifier(), GetMaxPositiveAuraModifier(), GetMotionMaster(), GetOwnerGUID(), GetSpeedRate(), GetTarget(), GetTotalAuraModifier(), GetTotalAuraMultiplier(), Object::GetTypeId(), GetVehicle(), GetVehicleBase(), IsControlledByPlayer(), IsHunterPet(), IsInCombat(), IsMounted(), Object::IsPlayer(), WorldObject::IsWithinDist3d(), MECHANIC_DAZE, MECHANIC_SNARE, MOVE_FLIGHT, MOVE_FLIGHT_BACK, MOVE_RUN, MOVE_RUN_BACK, MOVE_SWIM, MOVE_SWIM_BACK, MOVE_WALK, PET_FOLLOW_DIST, playerBaseMoveSpeed, SetSpeedRate(), CreatureTemplate::speed_run, SPELL_AURA_MOD_DECREASE_SPEED, SPELL_AURA_MOD_FLIGHT_SPEED_NOT_STACK, SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_AURA_MOD_INCREASE_MOUNTED_SPEED, SPELL_AURA_MOD_INCREASE_SPEED, SPELL_AURA_MOD_INCREASE_SWIM_SPEED, SPELL_AURA_MOD_INCREASE_VEHICLE_FLIGHT_SPEED, SPELL_AURA_MOD_MINIMUM_SPEED, SPELL_AURA_MOD_MOUNTED_FLIGHT_SPEED_ALWAYS, SPELL_AURA_MOD_MOUNTED_SPEED_ALWAYS, SPELL_AURA_MOD_MOUNTED_SPEED_NOT_STACK, SPELL_AURA_MOD_SPEED_ALWAYS, SPELL_AURA_MOD_SPEED_NOT_STACK, SPELL_AURA_MOD_VEHICLE_SPEED_ALWAYS, SPELL_AURA_USE_NORMAL_MOVEMENT_SPEED, TC_LOG_ERROR, Object::ToCreature(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_MASK_MINION, and UpdateSpeed().
Referenced by Creature::AtDisengage(), Creature::AtEngage(), boss_jormungarAI::Emerge(), AuraEffect::HandleAuraModDecreaseSpeed(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), AuraEffect::HandleAuraModIncreaseSpeed(), AuraEffect::HandleAuraModIncreaseSwimSpeed(), AuraEffect::HandleAuraModUseNormalSpeed(), boss_razorscale::MovementInform(), PetAI::UpdateAI(), and UpdateSpeed().
|
private |
Definition at line 536 of file Unit.cpp.
References DisableSpline(), Movement::MoveSpline::Finalized(), Movement::MoveSpline::GetAnimTier(), Movement::MoveSpline::HasAnimation(), movespline, SetAnimTier(), UpdateSplinePosition(), and Movement::MoveSpline::updateState().
Referenced by ImmediateMovementGenerator::Initialize(), and Update().
|
private |
Definition at line 555 of file Unit.cpp.
References Movement::MoveSpline::ComputePosition(), GetDirectTransport(), Position::GetOrientation(), HasUnitState(), WorldObject::m_movementInfo, Position::m_positionX, Position::m_positionY, Position::m_positionZ, movespline, Movement::MoveSpline::onTransport, Movement::Location::orientation, MovementInfo::TransportInfo::pos, Position::SetOrientation(), MovementInfo::transport, UNIT_STATE_CANNOT_TURN, and UpdatePosition().
Referenced by StopMoving(), and UpdateSplineMovement().
| void Unit::UpdateStatBuffMod | ( | Stats | stat | ) |
Definition at line 4992 of file Unit.cpp.
References AsUnderlyingType(), BASE_VALUE, AuraEffect::GetAmount(), GetFlatModifierValue(), AuraEffect::GetMiscValue(), GetTotalAuraModifier(), GetTotalAuraMultiplier(), IsGuardian(), Object::SetFloatValue(), SPELL_AURA_MOD_PERCENT_STAT, SPELL_AURA_MOD_STAT, SPELL_AURA_MOD_TOTAL_STAT_PERCENTAGE, UNIT_FIELD_NEGSTAT0, UNIT_FIELD_POSSTAT0, and UNIT_MOD_STAT_START.
Referenced by Player::_ApplyItemBonuses(), Player::ApplyEnchantment(), AuraEffect::HandleAuraModStat(), AuraEffect::HandleModTotalPercentStat(), and Guardian::UpdateStats().
|
pure virtual |
Implemented in Creature, Guardian, Player, and Totem.
Referenced by UpdateUnitMod().
| void Unit::UpdateUnitMod | ( | UnitMods | unitMod | ) |
Definition at line 9051 of file Unit.cpp.
References BASE_ATTACK, CanModifyStats(), GetPowerTypeByAuraGroup(), GetSpellSchoolByAuraGroup(), GetStatByAuraGroup(), OFF_ATTACK, RANGED_ATTACK, UNIT_MOD_ARMOR, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, UNIT_MOD_DAMAGE_RANGED, UNIT_MOD_ENERGY, UNIT_MOD_FOCUS, UNIT_MOD_HAPPINESS, UNIT_MOD_HEALTH, 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_STAT_AGILITY, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_STAT_STAMINA, UNIT_MOD_STAT_STRENGTH, UpdateArmor(), UpdateDamagePhysical(), UpdateMaxHealth(), UpdateMaxPower(), UpdateResistances(), and UpdateStats().
Referenced by ApplyStatPctModifier(), HandleStatFlatModifier(), SetStatFlatModifier(), and SetStatPctModifier().
| void Unit::ValidateAttackersAndOwnTarget | ( | ) |
Definition at line 5615 of file Unit.cpp.
References AttackStop(), getAttackers(), GetVictim(), and WorldObject::IsValidAttackTarget().
Referenced by SetImmuneToAll(), SetImmuneToNPC(), SetImmuneToPC(), and Player::UpdateArea().
|
virtual |
Reimplemented in Player.
Definition at line 13820 of file Unit.cpp.
References CHAT_MSG_MONSTER_WHISPER, CHAT_MSG_RAID_BOSS_WHISPER, Player::GetSession(), WorldSession::GetSessionDbLocaleIndex(), WorldPackets::Chat::Chat::Initialize(), Player::SendDirectMessage(), and WorldPackets::Chat::Chat::Write().
Referenced by npc_commandscript::HandleNpcWhisperCommand(), and Map::ScriptsProcess().
Reimplemented in Player.
Definition at line 13876 of file Unit.cpp.
References CHAT_MSG_MONSTER_WHISPER, CHAT_MSG_RAID_BOSS_WHISPER, GetGender(), Player::GetSession(), WorldSession::GetSessionDbLocaleIndex(), BroadcastTextEntry::GetText(), WorldPackets::Chat::Chat::Initialize(), LANG_UNIVERSAL, Player::SendDirectMessage(), sObjectMgr, TC_LOG_ERROR, and WorldPackets::Chat::Chat::Write().
|
virtual |
Reimplemented in Player.
Definition at line 13810 of file Unit.cpp.
References CHAT_MSG_MONSTER_YELL, CONFIG_LISTEN_RANGE_YELL, and sWorld.
Referenced by npc_commandscript::HandleNpcYellCommand(), and Map::ScriptsProcess().
|
virtual |
Reimplemented in Player.
Definition at line 13866 of file Unit.cpp.
References CHAT_MSG_MONSTER_YELL, CONFIG_LISTEN_RANGE_YELL, and sWorld.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
|
private |
|
private |
Are we walking before we were charmed?
Definition at line 1992 of file Unit.h.
Referenced by SetCharm(), and Unit().
|
private |
Definition at line 1985 of file Unit.h.
Referenced by AddExtraAttacks(), AttackerStateUpdate(), and Update().
|
private |
Definition at line 1983 of file Unit.h.
Referenced by AttackerStateUpdate(), Unit(), and Update().
|
protected |
Definition at line 1920 of file Unit.h.
Referenced by Player::HandleDrowning(), ProcessTerrainStatusUpdate(), and Unit().
|
private |
faction before charm
Definition at line 1991 of file Unit.h.
Referenced by RemoveCharmedBy(), SetCharmedBy(), and Unit().
|
private |
Definition at line 1996 of file Unit.h.
Referenced by InterruptMovementBasedAuras(), Update(), and UpdatePosition().
|
private |
Definition at line 1994 of file Unit.h.
Referenced by _UpdateSpells(), and ~Unit().
|
private |
Definition at line 1984 of file Unit.h.
Referenced by AddExtraAttacks(), and Update().
|
private |
Definition at line 1974 of file Unit.h.
Referenced by RefreshAI().
|
private |
Definition at line 1973 of file Unit.h.
Referenced by PopAI(), PushAI(), and RefreshAI().
|
protected |
Definition at line 1911 of file Unit.h.
Referenced by AddToWorld(), Update(), and ~Unit().
| ObjectGuid Unit::LastCharmerGUID |
Definition at line 1748 of file Unit.h.
Referenced by CreatureAI::OnCharmed(), SmartAI::OnCharmed(), and RemoveCharmedBy().
|
private |
Definition at line 1975 of file Unit.h.
Referenced by AIUpdateTick(), and RefreshAI().
|
protected |
Definition at line 1884 of file Unit.h.
Referenced by _ApplyAllAuraStatMods(), _CreateAuraApplication(), _RemoveAllAuraStatMods(), _UnapplyAura(), _UnapplyAura(), GetAuraApplication(), GetAuraCount(), GetAuraEffect(), HasAuraEffect(), HasAuraWithMechanic(), HasStrongerAuraWithDR(), OutDebugInfo(), RemoveAllAuras(), RemoveAllAurasExceptType(), RemoveAllAurasExceptType(), RemoveAllAurasOnDeath(), RemoveAllAurasRequiringDeadTarget(), RemoveAppliedAuras(), RemoveAppliedAuras(), RemoveAreaAurasDueToLeaveWorld(), RemoveAura(), RemoveAura(), RemoveAurasByShapeShift(), RemoveAurasDueToItemSpell(), RemoveAurasDueToSpell(), RemoveAurasWithAttribute(), RemoveAurasWithFamily(), and ~Unit().
|
protected |
Definition at line 1865 of file Unit.h.
Referenced by _addAttacker(), _removeAttacker(), RemoveAllAttackers(), and ~Unit().
|
protected |
|
protected |
Definition at line 1897 of file Unit.h.
Referenced by GetAttackPowerModifierValue(), HandleAttackPowerModifier(), and Unit().
| uint32 Unit::m_attackTimer[MAX_ATTACK] |
Definition at line 1516 of file Unit.h.
Referenced by ApplyAttackTimePercentMod(), resetAttackTimer(), and Unit().
|
protected |
Definition at line 1895 of file Unit.h.
Referenced by GetFlatModifierValue(), HandleStatFlatModifier(), SetStatFlatModifier(), and Unit().
|
protected |
Definition at line 1896 of file Unit.h.
Referenced by ApplyStatPctModifier(), GetPctModifierValue(), SetStatPctModifier(), and Unit().
|
protected |
Definition at line 1892 of file Unit.h.
Referenced by _CreateAuraApplication(), _UnapplyAura(), BuildAuraStateUpdateForTarget(), and HasAuraState().
|
protected |
Definition at line 1886 of file Unit.h.
Referenced by _UpdateSpells(), RemoveOwnedAura(), and Unit().
|
protected |
Definition at line 1861 of file Unit.h.
Referenced by _UpdateAutoRepeatSpell(), and SetCurrentCastSpell().
| float Unit::m_baseSpellCritChance |
Definition at line 1513 of file Unit.h.
Referenced by AuraEffect::HandleAuraModCritPct(), AuraEffect::HandleModSpellCritChance(), SpellCritChanceDone(), and Unit().
| bool Unit::m_canDualWield |
Definition at line 862 of file Unit.h.
Referenced by Player::RemoveSpell(), and Unit().
|
protected |
Definition at line 1906 of file Unit.h.
Referenced by SetCharm().
|
protected |
Definition at line 1905 of file Unit.h.
Referenced by SetCharm().
|
protected |
Definition at line 1907 of file Unit.h.
Referenced by Pet::_SaveAuras(), Pet::_SaveSpells(), Pet::addSpell(), Pet::CleanupActionBar(), DeleteCharmInfo(), Pet::FillPetInfo(), Pet::GenerateActionBarData(), Pet::GetDebugInfo(), Creature::GetPetAutoSpellOnPos(), InitCharmInfo(), Pet::InitPetCreateSpells(), Guardian::InitStats(), Pet::LoadPetFromDB(), Pet::removeSpell(), Pet::SavePetToDB(), Unit(), and ~Unit().
|
private |
Definition at line 1987 of file Unit.h.
Referenced by _AddAura(), _CreateAuraApplication(), CleanupBeforeRemoveFromMap(), SendComboPoints(), and Unit().
|
private |
Definition at line 1966 of file Unit.h.
Referenced by CombatStop(), RemoveCharmedBy(), SetCharmedBy(), SetImmuneToAll(), SetImmuneToNPC(), SetImmuneToPC(), StopAttackFaction(), and Update().
|
private |
Definition at line 1981 of file Unit.h.
Referenced by ClearComboPointHolders().
|
private |
Definition at line 1980 of file Unit.h.
Referenced by AddComboPoints(), ClearComboPoints(), and SendComboPoints().
|
private |
Definition at line 1979 of file Unit.h.
Referenced by AddComboPoints(), ClearComboPoints(), and SendComboPoints().
| ControlList Unit::m_Controlled |
Definition at line 1289 of file Unit.h.
Referenced by Attack(), CombatStopWithPets(), DealDamage(), InstanceScript::DoCastSpellOnPlayer(), InstanceScript::DoRemoveAurasDueToSpellOnPlayer(), GetAllMinionsByEntry(), GetDebugInfo(), WorldSession::HandlePetAction(), WorldSession::HandlePetSetAction(), WorldSession::HandlePetSpellAutocastOpcode(), spell_dk_dancing_rune_weapon::HandleProc(), isAttackingPlayer(), OutDebugInfo(), RemoveAllControlled(), RemoveAllMinionsByEntry(), SetCharm(), Player::SetContestedPvP(), Minion::setDeathState(), SetMinion(), SetPhaseMask(), Player::SetPvP(), StopAttackFaction(), UpdatePetCombatState(), Player::UpdatePvPState(), and ~Unit().
|
protected |
Definition at line 1859 of file Unit.h.
Referenced by TempSummon::InitStats(), Player::Player(), SetCharm(), and SetMinion().
|
protected |
Definition at line 1863 of file Unit.h.
Referenced by Player::InitStatsForLevel(), and Unit().
|
protected |
Definition at line 1881 of file Unit.h.
Referenced by _UpdateAutoRepeatSpell(), _UpdateSpells(), AttackerStateUpdate(), CastStop(), DealDamage(), FindCurrentSpellBySpellId(), FinishSpell(), InterruptNonMeleeSpells(), InterruptSpell(), IsMovementPreventedByCasting(), IsNonMeleeSpellCast(), MeleeSpellMissChance(), RemoveAurasWithInterruptFlags(), SetCurrentCastSpell(), Unit(), UpdateInterruptMask(), and ~Unit().
|
protected |
Definition at line 1868 of file Unit.h.
Referenced by WorldSession::HandlePlayerLogin(), Player::LoadFromDB(), Creature::LoadFromDB(), setDeathState(), Creature::SetSpawnHealth(), Unit(), Pet::Update(), Creature::Update(), TempSummon::Update(), and Player::Update().
|
private |
Definition at line 1962 of file Unit.h.
Referenced by ApplyDiminishingAura(), ClearDiminishings(), GetDiminishing(), and IncrDiminishing().
|
private |
Definition at line 1988 of file Unit.h.
Referenced by RemoveFromWorld(), Unit(), and ~Unit().
|
protected |
Definition at line 1873 of file Unit.h.
Referenced by _RegisterDynObject(), _UnregisterDynObject(), GetDynObjects(), RemoveAllDynObjects(), RemoveDynObject(), and ~Unit().
|
private |
Definition at line 1977 of file Unit.h.
Referenced by RemoveAllFollowers().
|
protected |
Definition at line 1877 of file Unit.h.
Referenced by _UpdateSpells(), AddGameObject(), GetGameObjects(), RemoveAllGameObjects(), RemoveGameObject(), RemoveGameObject(), and ~Unit().
|
protected |
Definition at line 1891 of file Unit.h.
Referenced by _CreateAuraApplication(), _UnapplyAura(), HasNegativeAuraWithInterruptFlag(), RemoveAurasWithInterruptFlags(), and UpdateInterruptMask().
|
protected |
Definition at line 1893 of file Unit.h.
Referenced by HasNegativeAuraWithInterruptFlag(), RemoveAurasWithInterruptFlags(), Unit(), and UpdateInterruptMask().
|
private |
Definition at line 1960 of file Unit.h.
Referenced by IsUnderLastManaUseEffect(), and Unit().
| uint32 Unit::m_lastSanctuaryTime |
Definition at line 1585 of file Unit.h.
Referenced by Spell::TargetInfo::DoTargetSpellHit(), and Spell::EffectSanctuary().
| float Unit::m_modAttackSpeedPct[MAX_ATTACK] |
Definition at line 1515 of file Unit.h.
Referenced by ApplyAttackTimePercentMod(), GetAttackTime(), WorldObject::ModSpellCastTime(), WorldObject::ModSpellDurationTime(), resetAttackTimer(), and Unit().
|
protected |
Definition at line 1889 of file Unit.h.
Referenced by _RegisterAuraEffect(), GetDiseasesByCaster(), HasAuraType(), RemoveAurasByType(), and RemoveAurasByType().
| float Unit::m_modMeleeHitChance |
Definition at line 1510 of file Unit.h.
Referenced by MeleeSpellMissChance(), Unit(), and Player::UpdateMeleeHitChances().
| float Unit::m_modRangedHitChance |
Definition at line 1511 of file Unit.h.
Referenced by MeleeSpellMissChance(), Unit(), and Player::UpdateRangedHitChances().
| float Unit::m_modSpellHitChance |
Definition at line 1512 of file Unit.h.
Referenced by AuraEffect::HandleModSpellHitChance(), WorldObject::MagicSpellHitResult(), Unit(), and Player::UpdateSpellHitChances().
|
private |
| ObjectGuid Unit::m_ObjectSlot[MAX_GAMEOBJECT_SLOT] |
Definition at line 1501 of file Unit.h.
Referenced by Spell::EffectSummonObject(), RemoveGameObjectImpl(), and Unit().
|
protected |
Definition at line 1883 of file Unit.h.
Referenced by _AddAura(), Pet::_SaveAuras(), Player::_SaveAuras(), _UpdateSpells(), DelayOwnedAuras(), GetOwnedAura(), RemoveAllAuras(), RemoveAllAurasExceptType(), RemoveAllAurasExceptType(), RemoveAllAurasOnDeath(), RemoveAllAurasRequiringDeadTarget(), RemoveAllGroupBuffsFromCaster(), RemoveAreaAurasDueToLeaveWorld(), RemoveAuraFromStack(), RemoveAurasDueToSpellByDispel(), RemoveAurasDueToSpellBySteal(), Player::RemoveItemDependentAurasAndCasts(), RemoveNotOwnSingleTargetAuras(), RemoveOwnedAura(), RemoveOwnedAura(), RemoveOwnedAura(), RemoveOwnedAuras(), RemoveOwnedAuras(), Unit(), Player::UpdateAreaDependentAuras(), and ~Unit().
|
private |
Definition at line 2004 of file Unit.h.
Referenced by CheckPendingMovementAcks(), HasPendingMovementChange(), PeakFirstPendingMovementChange(), PopPendingMovementChange(), PurgeAndApplyPendingMovementChanges(), and PushPendingMovementChange().
|
protected |
Definition at line 1870 of file Unit.h.
Referenced by SetCantProc(), and Update().
|
protected |
Definition at line 1913 of file Unit.h.
Referenced by ClearAllReactives(), Unit(), and UpdateReactives().
|
protected |
Definition at line 1914 of file Unit.h.
Referenced by Creature::Creature(), Player::Player(), Player::Regenerate(), Player::RegenerateAll(), Creature::Update(), and Player::Update().
|
protected |
Definition at line 1885 of file Unit.h.
Referenced by _DeleteRemovedAuras(), RemoveOwnedAura(), and ~Unit().
|
protected |
Definition at line 1887 of file Unit.h.
Referenced by _DeleteRemovedAuras(), _UnapplyAura(), CalcHealAbsorb(), IsHighestExclusiveAuraEffect(), RemoveAurasByType(), RemoveAurasByType(), and RemoveAurasWithInterruptFlags().
|
protected |
Definition at line 1908 of file Unit.h.
Referenced by AddPlayerToVision(), RemovePlayerFromVision(), and ~Unit().
|
protected |
Definition at line 1903 of file Unit.h.
Referenced by GetSpeed(), SetMinion(), SetSpeedRate(), SetSpeedRateReal(), and Unit().
| SpellImmuneContainer Unit::m_spellImmune[MAX_SPELL_IMMUNITY] |
Definition at line 1584 of file Unit.h.
Referenced by ApplySpellImmune(), GetDamageImmunityMask(), GetMechanicImmunityMask(), GetSchoolImmunityMask(), IsImmunedToDamage(), IsImmunedToSpell(), and IsImmunedToSpellEffect().
| ObjectGuid Unit::m_SummonSlot[MAX_SUMMON_SLOT] |
Definition at line 1500 of file Unit.h.
Referenced by spell_sha_fire_nova::CheckFireTotem(), InstanceScript::DoCastSpellOnPlayer(), InstanceScript::DoRemoveAurasDueToSpellOnPlayer(), Spell::EffectDestroyAllTotems(), spell_sha_totemic_mastery::HandleDummy(), spell_sha_fire_nova::HandleDummy(), spell_sha_glyph_of_totem_of_wrath::HandleProc(), spell_sha_stoneclaw_totem::HandleScriptEffect(), WorldSession::HandleTotemDestroyed(), TempSummon::InitStats(), isAttackingPlayer(), OutDebugInfo(), SetPhaseMask(), Unit(), Totem::UnSummon(), UnsummonAllTotems(), and Map::Update().
|
private |
Definition at line 1968 of file Unit.h.
Referenced by EngageWithTarget(), and IsThreatened().
|
protected |
Definition at line 1919 of file Unit.h.
Referenced by CreateVehicleKit(), Guardian::Guardian(), Guardian::InitStatsForLevel(), Minion::Minion(), OutDebugInfo(), Pet::Pet(), Puppet::Puppet(), RemoveVehicleKit(), TempSummon::TempSummon(), and Totem::Totem().
|
protected |
Definition at line 1916 of file Unit.h.
Referenced by _EnterVehicle(), _ExitVehicle(), Creature::_IsTargetAcceptable(), ChangeSeat(), ExitVehicle(), GetVehicleBase(), IsOnVehicle(), and Player::TeleportTo().
|
protected |
Definition at line 1917 of file Unit.h.
Referenced by CreateVehicleKit(), RemoveVehicleKit(), and Creature::Update().
|
protected |
Definition at line 1901 of file Unit.h.
Referenced by _UpdateSpells(), GetVisibleAura(), RemoveVisibleAura(), and SetVisibleAura().
|
protected |
Definition at line 1898 of file Unit.h.
Referenced by GetWeaponDamageRange(), and Unit().
| Movement::MoveSpline* Unit::movespline |
Definition at line 1820 of file Unit.h.
Referenced by Object::BuildMovementUpdate(), DisableSpline(), FormationMovementGenerator::DoUpdate(), WaypointMovementGenerator< Creature >::DoUpdate(), RandomMovementGenerator< T >::DoUpdate(), HomeMovementGenerator< T >::DoUpdate(), FlightPathMovementGenerator::DoUpdate(), GetDebugInfo(), MotionMaster::GetDestination(), SplineChainMovementGenerator::GetResumeInfo(), WorldSession::HandleMovementOpcode(), IsFalling(), IsSplineEnabled(), Movement::MoveSplineInit::Launch(), FormationMovementGenerator::LaunchMovement(), CharmInfo::SaveStayPosition(), SendFlightSplineSyncUpdate(), SetFacingTo(), SetFacingToObject(), Movement::MoveSplineInit::Stop(), StopMoving(), Update(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), GenericMovementGenerator::Update(), SplineChainMovementGenerator::Update(), UpdateSplineMovement(), UpdateSplinePosition(), WorldSession::ValidateMovementInfo(), and ~Unit().