![]() |
TrinityCore
|
#include <Unit.h>
Inheritance diagram for Unit:Classes | |
| struct | GetCastSpellInfoContext |
| struct | GetCastSpellInfoResult |
| struct | VisibleAuraSlotCompare |
Public Types | |
| enum class | AreaTriggerRemoveReason : uint8 { Default , UnitDespawn } |
| typedef std::set< Unit * > | AttackerSet |
| typedef std::set< Unit * > | ControlList |
| typedef std::vector< Unit * > | UnitVector |
| typedef std::multimap< uint32, Aura * > | AuraMap |
| typedef std::pair< AuraMap::const_iterator, AuraMap::const_iterator > | AuraMapBounds |
| typedef std::pair< AuraMap::iterator, AuraMap::iterator > | AuraMapBoundsNonConst |
| typedef std::multimap< uint32, AuraApplication * > | AuraApplicationMap |
| typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > | AuraApplicationMapBounds |
| typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > | AuraApplicationMapBoundsNonConst |
| typedef std::multimap< AuraStateType, AuraApplication * > | AuraStateAurasMap |
| typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > | AuraStateAurasMapBounds |
| typedef std::forward_list< AuraEffect * > | AuraEffectList |
| typedef std::forward_list< Aura * > | AuraList |
| typedef std::forward_list< AuraApplication * > | AuraApplicationList |
| typedef std::array< DiminishingReturn, DIMINISHING_MAX > | Diminishing |
| typedef std::vector< std::pair< uint32, AuraApplication * > > | AuraApplicationProcContainer |
| typedef std::set< AuraApplication *, VisibleAuraSlotCompare > | VisibleAuraContainer |
Public Member Functions | |
| virtual | ~Unit () |
| bool | IsAIEnabled () const |
| void | AIUpdateTick (uint32 diff) |
| UnitAI * | GetAI () const |
| void | ScheduleAIChange () |
| void | PushAI (UnitAI *newAI) |
| bool | PopAI () |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| void | CleanupBeforeRemoveFromMap (bool finalCleanup) |
| void | CleanupsBeforeDelete (bool finalCleanup=true) override |
| virtual bool | IsAffectedByDiminishingReturns () const |
| DiminishingLevels | GetDiminishing (DiminishingGroup group) const |
| void | IncrDiminishing (SpellInfo const *auraSpellInfo) |
| bool | ApplyDiminishingToDuration (SpellInfo const *auraSpellInfo, int32 &duration, WorldObject *caster, DiminishingLevels previousLevel) const |
| void | ApplyDiminishingAura (DiminishingGroup group, bool apply) |
| void | ClearDiminishings () |
| virtual void | Update (uint32 time) override |
| void | Heartbeat () override |
| void | TriggerAuraHeartbeat () |
| void | setAttackTimer (WeaponAttackType type, uint32 time) |
| void | resetAttackTimer (WeaponAttackType type=BASE_ATTACK) |
| uint32 | getAttackTimer (WeaponAttackType type) const |
| bool | isAttackReady (WeaponAttackType type=BASE_ATTACK) const |
| bool | haveOffhandWeapon () const |
| bool | CanDualWield () const |
| virtual void | SetCanDualWield (bool value) |
| float | GetCombatReach () const override |
| void | SetCombatReach (float combatReach) |
| float | GetBoundingRadius () const |
| void | SetBoundingRadius (float boundingRadius) |
| bool | IsWithinCombatRange (Unit const *obj, float dist2compare) const |
| bool | IsWithinMeleeRange (Unit const *obj) const |
| bool | IsWithinMeleeRangeAt (Position const &pos, Unit const *obj) const |
| float | GetMeleeRange (Unit const *target) const |
| virtual SpellSchoolMask | GetMeleeDamageSchoolMask (WeaponAttackType attackType=BASE_ATTACK) const =0 |
| bool | IsWithinBoundaryRadius (const Unit *obj) const |
| void | _addAttacker (Unit *pAttacker) |
| void | _removeAttacker (Unit *pAttacker) |
| Unit * | getAttackerForHelper () const |
| bool | Attack (Unit *victim, bool meleeAttack) |
| void | CastStop (uint32 except_spellid=0) |
| bool | AttackStop () |
| void | RemoveAllAttackers () |
| AttackerSet const & | getAttackers () const |
| bool | isAttackingPlayer () const |
| Unit * | GetVictim () const |
| Unit * | EnsureVictim () const |
| void | ValidateAttackersAndOwnTarget () |
| void | CombatStop (bool includingCast=false, bool mutualPvP=true, bool(*unitFilter)(Unit const *otherUnit)=nullptr) |
| void | CombatStopWithPets (bool includingCast=false) |
| void | StopAttackFaction (uint32 faction_id) |
| Unit * | SelectNearbyTarget (Unit *exclude=nullptr, float dist=NOMINAL_MELEE_RANGE) const |
| void | SendMeleeAttackStop (Unit const *victim=nullptr) const |
| void | SendMeleeAttackStart (Unit *victim) |
| void | AddUnitState (uint32 f) |
| bool | HasUnitState (const uint32 f) const |
| void | ClearUnitState (uint32 f) |
| bool | CanFreeMove () const |
| uint32 | HasUnitTypeMask (uint32 mask) const |
| void | AddUnitTypeMask (uint32 mask) |
| bool | IsSummon () const |
| bool | IsGuardian () const |
| bool | IsPet () const |
| bool | IsHunterPet () const |
| bool | IsTotem () const |
| bool | IsVehicle () const |
| int32 | GetContentTuning () const |
| uint8 | GetLevel () const |
| uint8 | GetEffectiveLevel () const |
| uint8 | GetLevelForTarget (WorldObject const *) const override |
| void | SetLevel (uint8 lvl, bool sendUpdate=true) |
| uint8 | GetRace () const |
| void | SetRace (uint8 race) |
| uint64 | GetRaceMask () const |
| uint8 | GetClass () const |
| void | SetClass (uint8 classId) |
| uint32 | GetClassMask () const |
| Gender | GetGender () const |
| void | SetGender (Gender gender) |
| virtual Gender | GetNativeGender () const |
| virtual void | SetNativeGender (Gender gender) |
| float | GetStat (Stats stat) const |
| void | SetStat (Stats stat, int32 val) |
| uint32 | GetArmor () const |
| void | SetArmor (int32 val, int32 bonusVal) |
| int32 | GetResistance (SpellSchools school) const |
| int32 | GetBonusResistanceMod (SpellSchools school) const |
| int32 | GetResistance (SpellSchoolMask mask) const |
| void | SetResistance (SpellSchools school, int32 val) |
| void | SetBonusResistanceMod (SpellSchools school, int32 val) |
| uint64 | GetHealth () const |
| uint64 | GetMaxHealth () const |
| bool | IsFullHealth () const |
| bool | HealthBelowPct (float pct) const |
| bool | HealthBelowPctDamaged (float pct, uint32 damage) const |
| bool | HealthAbovePct (float pct) const |
| bool | HealthAbovePctHealed (float pct, uint32 heal) const |
| float | GetHealthPct () const |
| uint64 | CountPctFromMaxHealth (float pct) const |
| uint64 | CountPctFromCurHealth (float pct) const |
| void | SetHealth (uint64 val) |
| void | SetMaxHealth (uint64 val) |
| void | SetFullHealth () |
| int64 | ModifyHealth (int64 val) |
| int64 | GetHealthGain (int64 dVal) |
| void | TriggerOnHealthChangeAuras (uint64 oldVal, uint64 newVal) |
| virtual float | GetHealthMultiplierForTarget (WorldObject const *) const |
| virtual float | GetDamageMultiplierForTarget (WorldObject const *) const |
| virtual float | GetArmorMultiplierForTarget (WorldObject const *) const |
| Powers | GetPowerType () const |
| void | SetPowerType (Powers power, bool sendUpdate=true, bool onInit=false) |
| void | SetInitialPowerValue (Powers powerType) |
| void | SetOverrideDisplayPowerId (uint32 powerDisplayId) |
| Powers | CalculateDisplayPowerType () const |
| void | UpdateDisplayPower () |
| int32 | GetPower (Powers power) const |
| int32 | GetMinPower (Powers power) const |
| int32 | GetMaxPower (Powers power) const |
| float | GetPowerPct (Powers power) const |
| int32 | CountPctFromMaxPower (Powers power, int32 pct) const |
| void | SetPower (Powers power, int32 val, bool withPowerUpdate=true) |
| void | SetMaxPower (Powers power, int32 val) |
| void | TriggerOnPowerChangeAuras (Powers power, int32 oldVal, int32 newVal) |
| void | SetFullPower (Powers power) |
| int32 | ModifyPower (Powers power, int32 val, bool withPowerUpdate=true) |
| void | ApplyModManaCostMultiplier (float manaCostMultiplier, bool apply) |
| void | ApplyModManaCostModifier (SpellSchools school, int32 mod, bool apply) |
| uint32 | GetBaseAttackTime (WeaponAttackType att) const |
| void | SetBaseAttackTime (WeaponAttackType att, uint32 val) |
| void | UpdateAttackTimeField (WeaponAttackType att) |
| void | ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply) |
| void | ApplyCastTimePercentMod (float val, bool apply) |
| void | ApplySpellHastePercentMod (float val, bool apply) |
| void | ApplyHasteRegenPercentMod (float val, bool apply) |
| void | SetModCastingSpeed (float castingSpeed) |
| void | SetModCastingSpeedNeg (float castingSpeedNeg) |
| void | SetModSpellHaste (float spellHaste) |
| void | SetModHaste (float haste) |
| void | SetModRangedHaste (float rangedHaste) |
| void | SetModHasteRegen (float hasteRegen) |
| void | SetModTimeRate (float timeRate) |
| bool | HasUnitFlag (UnitFlags flags) const |
| void | SetUnitFlag (UnitFlags flags) |
| void | RemoveUnitFlag (UnitFlags flags) |
| void | ReplaceAllUnitFlags (UnitFlags flags) |
| bool | HasUnitFlag2 (UnitFlags2 flags) const |
| void | SetUnitFlag2 (UnitFlags2 flags) |
| void | RemoveUnitFlag2 (UnitFlags2 flags) |
| void | ReplaceAllUnitFlags2 (UnitFlags2 flags) |
| bool | HasUnitFlag3 (UnitFlags3 flags) const |
| void | SetUnitFlag3 (UnitFlags3 flags) |
| void | RemoveUnitFlag3 (UnitFlags3 flags) |
| void | ReplaceAllUnitFlags3 (UnitFlags3 flags) |
| void | SetCreatedBySpell (int32 spellId) |
| void | SetNameplateAttachToGUID (ObjectGuid guid) |
| Emote | GetEmoteState () const |
| void | SetEmoteState (Emote emote) |
| SheathState | GetSheath () const |
| void | SetSheath (SheathState sheathed) |
| uint32 | GetFaction () const override |
| void | SetFaction (uint32 faction) override |
| bool | IsInPartyWith (Unit const *unit) const |
| bool | IsInRaidWith (Unit const *unit) const |
| void | GetPartyMembers (std::list< Unit * > &units) |
| bool | IsContestedGuard () const |
| UnitPVPStateFlags | GetPvpFlags () const |
| bool | HasPvpFlag (UnitPVPStateFlags flags) const |
| void | SetPvpFlag (UnitPVPStateFlags flags) |
| void | RemovePvpFlag (UnitPVPStateFlags flags) |
| void | ReplaceAllPvpFlags (UnitPVPStateFlags flags) |
| bool | IsInSanctuary () const |
| bool | IsPvP () const |
| bool | IsFFAPvP () const |
| virtual void | SetPvP (bool state) |
| UnitPetFlag | GetPetFlags () const |
| bool | HasPetFlag (UnitPetFlag flags) const |
| void | SetPetFlag (UnitPetFlag flags) |
| void | RemovePetFlag (UnitPetFlag flags) |
| void | ReplaceAllPetFlags (UnitPetFlag flags) |
| uint32 | GetCreatureType () const |
| uint32 | GetCreatureTypeMask () const |
| void | UpdateCreatureType () |
| UnitStandStateType | GetStandState () const |
| bool | IsSitState () const |
| bool | IsStandState () const |
| void | SetStandState (UnitStandStateType state, uint32 animKitID=0) |
| void | SetVisFlag (UnitVisFlags flags) |
| void | RemoveVisFlag (UnitVisFlags flags) |
| void | ReplaceAllVisFlags (UnitVisFlags flags) |
| AnimTier | GetAnimTier () const |
| void | SetAnimTier (AnimTier animTier, bool notifyClient=true) |
| bool | IsMounted () const |
| uint32 | GetMountDisplayId () const |
| void | SetMountDisplayId (uint32 mountDisplayId) |
| uint32 | GetCosmeticMountDisplayId () const |
| void | SetCosmeticMountDisplayId (uint32 mountDisplayId) |
| void | Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0) |
| void | Dismount () |
| void | CancelMountAura (bool force=false) |
| MountCapabilityEntry const * | GetMountCapability (uint32 mountType) const |
| void | UpdateMountCapability () |
| void | SendDurabilityLoss (Player *receiver, uint32 percent) |
| void | PlayOneShotAnimKitId (uint16 animKitId) |
| void | SetAIAnimKitId (uint16 animKitId) |
| uint16 | GetAIAnimKitId () const override |
| void | SetMovementAnimKitId (uint16 animKitId) |
| uint16 | GetMovementAnimKitId () const override |
| void | SetMeleeAnimKitId (uint16 animKitId) |
| uint16 | GetMeleeAnimKitId () const override |
| uint16 | GetMaxSkillValueForLevel (Unit const *target=nullptr) const |
| void | KillSelf (bool durabilityLoss=true, bool skipSettingDeathState=false) |
| void | GetProcAurasTriggeredOnEvent (AuraApplicationProcContainer &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo &eventInfo) |
| void | TriggerAurasProcOnEvent (AuraApplicationList *myProcAuras, AuraApplicationList *targetProcAuras, Unit *actionTarget, ProcFlagsInit const &typeMaskActor, ProcFlagsInit const &typeMaskActionTarget, ProcFlagsSpellType spellTypeMask, ProcFlagsSpellPhase spellPhaseMask, ProcFlagsHit hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
| void | TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationProcContainer &procAuras) |
| void | HandleEmoteCommand (Emote emoteId, Player *target=nullptr, Trinity::IteratorPair< int32 const * > spellVisualKitIds={}, int32 sequenceVariation=0) |
| void | DoMeleeAttackIfReady () |
| void | AttackerStateUpdate (Unit *victim, WeaponAttackType attType=BASE_ATTACK, bool extra=false) |
| void | CalculateMeleeDamage (Unit *victim, CalcDamageInfo *damageInfo, WeaponAttackType attackType=BASE_ATTACK) |
| void | DealMeleeDamage (CalcDamageInfo *damageInfo, bool durabilityLoss) |
| void | HandleProcExtraAttackFor (Unit *victim, uint32 count) |
| void | SetLastExtraAttackSpell (uint32 spellId) |
| uint32 | GetLastExtraAttackSpell () const |
| void | AddExtraAttacks (uint32 count) |
| void | SetLastDamagedTargetGuid (ObjectGuid guid) |
| ObjectGuid | GetLastDamagedTargetGuid () const |
| void | CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=BASE_ATTACK, bool crit=false, bool blocked=false, Spell *spell=nullptr) |
| void | DealSpellDamage (SpellNonMeleeDamage const *damageInfo, bool durabilityLoss) |
| uint32 | GetDamageReduction (uint32 damage) const |
| virtual bool | CanApplyResilience () const |
| int32 | CalculateAOEAvoidance (int32 damage, uint32 schoolMask, bool npcCaster) const |
| float | MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, SpellInfo const *spellInfo) const override |
| SpellMissInfo | MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const override |
| float | GetUnitDodgeChance (WeaponAttackType attType, Unit const *victim) const |
| float | GetUnitParryChance (WeaponAttackType attType, Unit const *victim) const |
| float | GetUnitBlockChance (WeaponAttackType attType, Unit const *victim) const |
| float | GetUnitMissChance () const |
| float | GetUnitCriticalChanceDone (WeaponAttackType attackType) const |
| float | GetUnitCriticalChanceTaken (Unit const *attacker, WeaponAttackType attackType, float critDone) const |
| float | GetUnitCriticalChanceAgainst (WeaponAttackType attackType, Unit const *victim) const |
| float | GetMechanicResistChance (SpellInfo const *spellInfo) const |
| bool | CanUseAttackType (uint8 attacktype) const |
| virtual float | GetBlockPercent (uint8) const |
| float | GetWeaponProcChance () const |
| float | GetPPMProcChance (uint32 WeaponSpeed, float PPM, SpellInfo const *spellProto) const |
| MeleeHitOutcome | RollMeleeOutcomeAgainst (Unit const *victim, WeaponAttackType attType) const |
| NPCFlags | GetNpcFlags () const |
| bool | HasNpcFlag (NPCFlags flags) const |
| void | SetNpcFlag (NPCFlags flags) |
| void | RemoveNpcFlag (NPCFlags flags) |
| void | ReplaceAllNpcFlags (NPCFlags flags) |
| NPCFlags2 | GetNpcFlags2 () const |
| bool | HasNpcFlag2 (NPCFlags2 flags) const |
| void | SetNpcFlag2 (NPCFlags2 flags) |
| void | RemoveNpcFlag2 (NPCFlags2 flags) |
| void | ReplaceAllNpcFlags2 (NPCFlags2 flags) |
| bool | IsVendor () const |
| bool | IsTrainer () const |
| bool | IsQuestGiver () const |
| bool | IsGossip () const |
| bool | IsTaxi () const |
| bool | IsGuildMaster () const |
| bool | IsBattleMaster () const |
| bool | IsBanker () const |
| bool | IsInnkeeper () const |
| bool | IsSpiritHealer () const |
| bool | IsAreaSpiritHealer () const |
| bool | IsTabardDesigner () const |
| bool | IsAuctioner () const |
| bool | IsArmorer () const |
| bool | IsWildBattlePet () const |
| bool | IsServiceProvider () const |
| bool | IsSpiritService () const |
| bool | IsAreaSpiritHealerIndividual () const |
| bool | IsCritter () const |
| bool | IsInFlight () const |
| bool | CanHaveThreatList () const |
| ====================== THREAT & COMBAT ==================== | |
| virtual bool | IsEngaged () const |
| bool | IsEngagedBy (Unit const *who) const |
| void | EngageWithTarget (Unit *who) |
| CombatManager & | GetCombatManager () |
| CombatManager const & | GetCombatManager () const |
| void | AtTargetAttacked (Unit *target, bool canInitialAggro) |
| bool | IsImmuneToAll () const |
| void | SetImmuneToAll (bool apply, bool keepCombat) |
| virtual void | SetImmuneToAll (bool apply) |
| bool | IsImmuneToPC () const |
| void | SetImmuneToPC (bool apply, bool keepCombat) |
| virtual void | SetImmuneToPC (bool apply) |
| bool | IsImmuneToNPC () const |
| void | SetImmuneToNPC (bool apply, bool keepCombat) |
| virtual void | SetImmuneToNPC (bool apply) |
| bool | IsUninteractible () const |
| void | SetUninteractible (bool apply) |
| bool | CannotTurn () const |
| void | SetCannotTurn (bool apply) |
| bool | IsInCombat () const |
| bool | IsInCombatWith (Unit const *who) const |
| void | SetInCombatWith (Unit *enemy, bool addSecondUnitSuppressed=false) |
| void | ClearInCombat () |
| void | UpdatePetCombatState () |
| bool | IsInteractionAllowedWhileHostile () const |
| virtual void | SetInteractionAllowedWhileHostile (bool interactionAllowed) |
| bool | IsInteractionAllowedInCombat () const |
| virtual void | SetInteractionAllowedInCombat (bool interactionAllowed) |
| virtual void | UpdateNearbyPlayersInteractions () |
| bool | IsThreatened () const |
| bool | IsThreatenedBy (Unit const *who) const |
| ThreatManager & | GetThreatManager () |
| ThreatManager const & | GetThreatManager () const |
| void | SendClearTarget () |
| bool | HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, flag128 familyFlags) const |
| virtual bool | HasSpell (uint32) const |
| bool | HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const |
| bool | HasBreakableByDamageCrowdControlAura (Unit const *excludeCasterChannel=nullptr) const |
| bool | HasStealthAura () const |
| bool | HasInvisibilityAura () const |
| bool | IsFeared () const |
| bool | HasRootAura () const |
| bool | IsPolymorphed () const |
| bool | IsFrozen () const |
| bool | isTargetableForAttack (bool checkFakeDeath=true) const |
| bool | IsInWater () const |
| bool | IsUnderWater () const |
| bool | IsOnOceanFloor () const |
| bool | isInAccessiblePlaceFor (Creature const *c) const |
| void | SendHealSpellLog (HealInfo &healInfo, bool critical=false) |
| int32 | HealBySpell (HealInfo &healInfo, bool critical=false) |
| void | SendEnergizeSpellLog (Unit *victim, uint32 spellId, int32 damage, int32 overEnergize, Powers powerType) |
| void | EnergizeBySpell (Unit *victim, SpellInfo const *spellInfo, int32 damage, Powers powerType) |
| Aura * | AddAura (uint32 spellId, Unit *target) |
| Aura * | AddAura (SpellInfo const *spellInfo, uint32 effMask, Unit *target) |
| void | SetAuraStack (uint32 spellId, Unit *target, uint32 stack) |
| void | SendPlaySpellVisual (Unit *target, uint32 spellVisualId, uint8 missReason, uint8 reflectStatus, float travelSpeed, bool speedAsTime=false, float launchDelay=0.0f) |
| void | SendPlaySpellVisual (Position const &targetPosition, uint32 spellVisualId, uint8 missReason, uint8 reflectStatus, float travelSpeed, bool speedAsTime=false, float launchDelay=0.0f) |
| void | SendCancelSpellVisual (uint32 id) |
| void | SendPlaySpellVisualKit (uint32 id, uint32 type, uint32 duration) const |
| void | SendCancelSpellVisualKit (uint32 id) |
| void | CancelSpellMissiles (uint32 spellId, bool reverseMissile=false, bool abortSpell=false) |
| void | DeMorph () |
| void | SendAttackStateUpdate (CalcDamageInfo *damageInfo) |
| void | SendAttackStateUpdate (uint32 HitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount, uint32 RageGained) |
| void | SendSpellNonMeleeDamageLog (SpellNonMeleeDamage const *log) |
| void | SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo) |
| void | SendSpellDamageResist (Unit *target, uint32 spellId) |
| void | SendSpellDamageImmune (Unit *target, uint32 spellId, bool isPeriodic) |
| void | NearTeleportTo (TeleportLocation const &target, bool casting=false) |
| void | NearTeleportTo (Position const &pos, bool casting=false) |
| void | NearTeleportTo (float x, float y, float z, float orientation, bool casting=false) |
| void | SendTeleportPacket (TeleportLocation const &teleportLocation) |
| virtual bool | UpdatePosition (float x, float y, float z, float ang, bool teleport=false) |
| virtual bool | UpdatePosition (Position const &pos, bool teleport=false) |
| void | UpdateOrientation (float orientation) |
| Only server-side orientation update, does not broadcast to client. | |
| void | UpdateHeight (float newZ) |
| Only server-side height update, does not broadcast to client. | |
| void | SendMoveKnockBack (Player *player, float speedXY, float speedZ, float vcos, float vsin) |
| void | KnockbackFrom (Position const &origin, float speedXY, float speedZ, float angle=M_PI, Movement::SpellEffectExtraData const *spellEffectExtraData=nullptr) |
| void | MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false) |
| bool | IsPlayingHoverAnim () const |
| void | SetPlayHoverAnim (bool enable, bool sendUpdate=true) |
| void | CalculateHoverHeight () |
| void | SetHoverHeight (float hoverHeight) |
| bool | IsGravityDisabled () const |
| bool | IsWalking () const |
| bool | IsHovering () const |
| bool | SetWalk (bool enable) |
| bool | SetDisableGravity (bool disable, bool updateAnimTier=true, bool updatePlayHoverAnim=true) |
| bool | SetFall (bool enable) |
| bool | SetSwim (bool enable) |
| bool | SetCanFly (bool enable) |
| bool | SetWaterWalking (bool enable) |
| bool | SetFeatherFall (bool enable) |
| bool | SetHover (bool enable, bool updateAnimTier=true) |
| bool | SetCollision (bool disable) |
| bool | SetStrafingDisabled (bool disable) |
| bool | SetJumpingDisabled (bool disable) |
| bool | SetEnableFullSpeedTurning (bool enable) |
| bool | SetEnableFullSpeedPitching (bool enable) |
| bool | SetAlwaysAllowPitching (bool enable) |
| bool | SetCanTransitionBetweenSwimAndFly (bool enable) |
| bool | SetCanTurnWhileFalling (bool enable) |
| bool | SetCanDoubleJump (bool enable) |
| bool | SetDisableInertia (bool disable) |
| bool | SetCanAdvFly (bool enable) |
| bool | SetMoveCantSwim (bool cantSwim) |
| void | SendSetVehicleRecId (uint32 vehicleId) |
| MovementForces const * | GetMovementForces () const |
| void | ApplyMovementForce (ObjectGuid id, Position origin, float magnitude, MovementForceType type, Position direction={}, ObjectGuid transportGuid=ObjectGuid::Empty) |
| void | RemoveMovementForce (ObjectGuid id) |
| bool | SetIgnoreMovementForces (bool ignore) |
| void | UpdateMovementForcesModMagnitude () |
| void | ApplyInertia (int32 id, Milliseconds duration) |
| void | RemoveInertia (int32 id) |
| void | SetGravityModifier (float gravityModifier) |
| void | SetInFront (WorldObject const *target) |
| void | SetFacingTo (float ori, bool force=true, uint32 movementId=EVENT_FACE) |
| void | SetFacingToObject (WorldObject const *object, bool force=true, uint32 movementId=EVENT_FACE) |
| void | SetFacingToPoint (Position const &point, bool force=true) |
| bool | IsAlive () const |
| bool | isDying () const |
| bool | isDead () const |
| DeathState | getDeathState () const |
| virtual void | setDeathState (DeathState s) |
| ObjectGuid | GetOwnerGUID () const override |
| void | SetOwnerGUID (ObjectGuid owner) |
| ObjectGuid | GetCreatorGUID () const override |
| void | SetCreatorGUID (ObjectGuid creator) |
| ObjectGuid | GetMinionGUID () const |
| void | SetMinionGUID (ObjectGuid guid) |
| ObjectGuid | GetPetGUID () const |
| void | SetPetGUID (ObjectGuid guid) |
| ObjectGuid | GetCritterGUID () const |
| void | SetCritterGUID (ObjectGuid guid) |
| ObjectGuid | GetBattlePetCompanionGUID () const |
| void | SetBattlePetCompanionGUID (ObjectGuid guid) |
| ObjectGuid | GetDemonCreatorGUID () const |
| void | SetDemonCreatorGUID (ObjectGuid guid) |
| Unit * | GetDemonCreator () const |
| Player * | GetDemonCreatorPlayer () const |
| ObjectGuid | GetCharmerGUID () const |
| Unit * | GetCharmer () const |
| ObjectGuid | GetCharmedGUID () const |
| Unit * | GetCharmed () const |
| bool | IsControlledByPlayer () const |
| Player * | GetControllingPlayer () const |
| ObjectGuid | GetCharmerOrOwnerGUID () const override |
| bool | IsCharmedOwnedByPlayerOrPlayer () const |
| Guardian * | GetGuardianPet () const |
| Minion * | GetFirstMinion () const |
| Unit * | GetCharmerOrOwner () const |
| void | SetMinion (Minion *minion, bool apply) |
| void | GetAllMinionsByEntry (std::list< TempSummon * > &Minions, uint32 entry) |
| void | RemoveAllMinionsByEntry (uint32 entry) |
| void | SetCharm (Unit *target, bool apply) |
| Unit * | GetNextRandomRaidMemberOrPet (float radius) |
| bool | SetCharmedBy (Unit *charmer, CharmType type, AuraApplication const *aurApp=nullptr) |
| void | RemoveCharmedBy (Unit *charmer) |
| void | RestoreFaction () |
| Unit * | GetFirstControlled () const |
| void | RemoveAllControlled () |
| bool | IsCharmed () const |
| bool | isPossessed () const |
| bool | isPossessedByPlayer () const |
| bool | isPossessing () const |
| bool | isPossessing (Unit *u) const |
| CharmInfo * | GetCharmInfo () |
| CharmInfo * | InitCharmInfo () |
| void | DeleteCharmInfo () |
| void | SetPetNumberForClient (uint32 petNumber) |
| void | SetPetNameTimestamp (uint32 timestamp) |
| void | SetMovedUnit (Unit *target) |
| Unit * | GetUnitBeingMoved () const |
| Player * | GetPlayerMovingMe () const |
| SharedVisionList const & | GetSharedVisionList () |
| void | AddPlayerToVision (Player *player) |
| void | RemovePlayerFromVision (Player *player) |
| bool | HasSharedVision () const |
| void | RemoveBindSightAuras () |
| void | RemoveCharmAuras () |
| Pet * | CreateTamedPetFrom (Creature *creatureTarget, uint32 spell_id=0) |
| Pet * | CreateTamedPetFrom (uint32 creatureEntry, uint32 spell_id=0) |
| bool | InitTamedPet (Pet *pet, uint8 level, uint32 spell_id) |
| uint32 | GetBattlePetCompanionNameTimestamp () const |
| void | SetBattlePetCompanionNameTimestamp (uint32 timestamp) |
| uint32 | GetBattlePetCompanionExperience () const |
| void | SetBattlePetCompanionExperience (uint32 experience) |
| uint32 | GetWildBattlePetLevel () const |
| void | SetWildBattlePetLevel (uint32 wildBattlePetLevel) |
| Aura * | _TryStackingOrRefreshingExistingAura (AuraCreateInfo &createInfo) |
| void | _AddAura (UnitAura *aura, Unit *caster) |
| AuraApplication * | _CreateAuraApplication (Aura *aura, uint32 effMask) |
| void | _ApplyAuraEffect (Aura *aura, uint8 effIndex) |
| void | _ApplyAura (AuraApplication *aurApp, uint32 effMask) |
| void | _UnapplyAura (AuraApplicationMap::iterator &i, AuraRemoveMode removeMode) |
| void | _UnapplyAura (AuraApplication *aurApp, AuraRemoveMode removeMode) |
| void | _RemoveNoStackAurasDueToAura (Aura *aura, bool owned) |
| void | _RegisterAuraEffect (AuraEffect *aurEff, bool apply) |
| AuraMap & | GetOwnedAuras () |
| AuraMap const & | GetOwnedAuras () const |
| void | RemoveOwnedAura (AuraMap::iterator &i, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAura (Aura *aura, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| Aura * | GetOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, Aura *except=nullptr) const |
| AuraApplicationMap & | GetAppliedAuras () |
| AuraApplicationMap const & | GetAppliedAuras () const |
| void | RemoveAura (AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (AuraApplication *aurApp, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (Aura *aur, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAppliedAuras (std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAuras (std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAppliedAuras (uint32 spellId, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAuras (uint32 spellId, std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasByType (AuraType auraType, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasDueToSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAuraFromStack (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, uint16 num=1) |
| void | RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, ObjectGuid casterGUID, WorldObject *dispeller, uint8 chargesRemoved=1) |
| void | RemoveAurasDueToSpellBySteal (uint32 spellId, ObjectGuid casterGUID, WorldObject *stealer, int32 stolenCharges=1) |
| void | RemoveAurasDueToItemSpell (uint32 spellId, ObjectGuid castItemGuid) |
| void | RemoveAurasByType (AuraType auraType, ObjectGuid casterGUID=ObjectGuid::Empty, Aura *except=nullptr, bool negative=true, bool positive=true) |
| void | RemoveNotOwnSingleTargetAuras (bool onPhaseChange=false) |
| template<typename InterruptFlags > | |
| void | RemoveAurasWithInterruptFlags (InterruptFlags flag, SpellInfo const *source=nullptr) |
| void | RemoveAurasWithAttribute (SpellAttr0 flags) |
| void | RemoveAurasWithFamily (SpellFamilyNames family, flag128 const &familyFlag, ObjectGuid casterGUID) |
| void | RemoveAurasWithMechanic (uint64 mechanicMaskToRemove, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, uint32 exceptSpellId=0, bool withEffectMechanics=false) |
| void | RemoveMovementImpairingAuras (bool withRoot) |
| void | RemoveAurasByShapeShift () |
| void | RemoveAreaAurasDueToLeaveWorld () |
| void | RemoveAllAuras () |
| void | RemoveArenaAuras () |
| void | RemoveAurasOnEvade () |
| void | RemoveAllAurasOnDeath () |
| void | RemoveAllAurasRequiringDeadTarget () |
| void | RemoveAllAurasExceptType (AuraType type) |
| void | RemoveAllAurasExceptType (AuraType type1, AuraType type2) |
| void | RemoveAllGroupBuffsFromCaster (ObjectGuid casterGUID) |
| void | DelayOwnedAuras (uint32 spellId, ObjectGuid caster, int32 delaytime) |
| void | _RemoveAllAuraStatMods () |
| void | _ApplyAllAuraStatMods () |
| AuraEffectList const & | GetAuraEffectsByType (AuraType type) const |
| AuraEffectList & | GetAuraEffectsByType (AuraType type) |
| AuraList & | GetSingleCastAuras () |
| AuraList const & | GetSingleCastAuras () const |
| AuraEffect * | GetAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const |
| AuraEffect * | GetAuraEffectOfRankedSpell (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const |
| AuraEffect * | GetAuraEffect (AuraType type, SpellFamilyNames family, flag128 const &familyFlag, ObjectGuid casterGUID=ObjectGuid::Empty) const |
| AuraApplication * | GetAuraApplication (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraApplication *except=nullptr) const |
| AuraApplication * | GetAuraApplication (uint32 spellId, std::function< bool(AuraApplication const *)> const &predicate) const |
| AuraApplication * | GetAuraApplication (uint32 spellId, std::function< bool(Aura const *)> const &predicate) const |
| AuraApplication * | GetAuraApplication (std::function< bool(AuraApplication const *)> const &predicate) const |
| AuraApplication * | GetAuraApplication (std::function< bool(Aura const *)> const &predicate) const |
| Aura * | GetAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const |
| Aura * | GetAura (uint32 spellId, std::function< bool(Aura const *)> const &predicate) const |
| Aura * | GetAura (std::function< bool(Aura const *)> const &predicate) const |
| AuraApplication * | GetAuraApplicationOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraApplication *except=nullptr) const |
| Aura * | GetAuraOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const |
| void | GetDispellableAuraList (WorldObject const *caster, uint32 dispelMask, DispelChargesList &dispelList, bool isReflect=false) const |
| bool | HasAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid caster=ObjectGuid::Empty) const |
| uint32 | GetAuraCount (uint32 spellId) const |
| bool | HasAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const |
| bool | HasAura (std::function< bool(Aura const *)> const &predicate) const |
| bool | HasAuraType (AuraType auraType) const |
| bool | HasAuraTypeWithCaster (AuraType auraType, ObjectGuid caster) const |
| bool | HasAuraTypeWithMiscvalue (AuraType auraType, int32 miscValue) const |
| bool | HasAuraTypeWithAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| bool | HasAuraTypeWithValue (AuraType auraType, int32 value) const |
| bool | HasAuraTypeWithTriggerSpell (AuraType auratype, uint32 triggerSpell) const |
| template<typename InterruptFlags > | |
| bool | HasNegativeAuraWithInterruptFlag (InterruptFlags flag, ObjectGuid guid=ObjectGuid::Empty) const |
| bool | HasAuraWithMechanic (uint64 mechanicMask) const |
| bool | HasStrongerAuraWithDR (SpellInfo const *auraSpellInfo, Unit *caster) const |
| AuraEffect * | IsScriptOverriden (SpellInfo const *spell, int32 script) const |
| uint32 | GetDiseasesByCaster (ObjectGuid casterGUID, bool remove=false) |
| uint32 | GetDoTsByCaster (ObjectGuid casterGUID) const |
| float | GetTotalAuraModifier (AuraType auraType) const |
| float | GetTotalAuraMultiplier (AuraType auraType) const |
| float | GetMaxPositiveAuraModifier (AuraType auraType) const |
| float | GetMaxNegativeAuraModifier (AuraType auraType) const |
| float | GetTotalAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| float | GetTotalAuraMultiplier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| float | GetMaxPositiveAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| float | GetMaxNegativeAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| float | GetTotalAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const |
| float | GetTotalAuraMultiplierByMiscMask (AuraType auraType, uint32 misc_mask) const |
| float | GetMaxPositiveAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask, AuraEffect const *except=nullptr) const |
| float | GetMaxNegativeAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const |
| float | GetTotalAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const |
| float | GetTotalAuraMultiplierByMiscValue (AuraType auraType, int32 misc_value) const |
| float | GetMaxPositiveAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const |
| float | GetMaxNegativeAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const |
| float | GetTotalAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| float | GetTotalAuraMultiplierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| float | GetMaxPositiveAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| float | GetMaxNegativeAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| void | InitStatBuffMods () |
| void | UpdateStatBuffMod (Stats stat) |
| void | UpdateStatBuffModForClient (Stats stat) |
| void | SetCreateStat (Stats stat, float val) |
| void | SetCreateHealth (uint32 val) |
| uint32 | GetCreateHealth () const |
| void | SetCreateMana (uint32 val) |
| uint32 | GetCreateMana () const |
| virtual int32 | GetCreatePowerValue (Powers power) const |
| float | GetPosStat (Stats stat) const |
| float | GetNegStat (Stats stat) const |
| float | GetCreateStat (Stats stat) const |
| uint32 | GetChannelSpellId () const |
| void | SetChannelSpellId (uint32 channelSpellId) |
| uint32 | GetChannelSpellXSpellVisualId () const |
| uint32 | GetChannelScriptVisualId () const |
| void | SetChannelVisual (SpellCastVisual channelVisual) |
| void | AddChannelObject (ObjectGuid guid) |
| void | SetChannelObject (uint32 slot, ObjectGuid guid) |
| void | RemoveChannelObject (ObjectGuid guid) |
| void | ClearChannelObjects () |
| void | SetChannelSpellData (uint32 startTimeMs, uint32 durationMs) |
| int8 | GetSpellEmpowerStage () const |
| void | SetSpellEmpowerStage (int8 stage) |
| void | SetCurrentCastSpell (Spell *pSpell) |
| void | InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true, SpellCastResult result=SPELL_FAILED_INTERRUPTED, Optional< SpellCastResult > resultOther={}, ObjectGuid const &interrupter=ObjectGuid::Empty) |
| void | FinishSpell (CurrentSpellTypes spellType, SpellCastResult result=SPELL_CAST_OK) |
| void | CancelAutoRepeatSpell () |
| bool | IsNonMeleeSpellCast (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true, bool skipChanneledAllowingActions=false) const |
| void | InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true) |
| Spell * | GetCurrentSpell (CurrentSpellTypes spellType) const |
| Spell * | FindCurrentSpellBySpellId (uint32 spell_id) const |
| int32 | GetCurrentSpellCastTime (uint32 spell_id) const |
| GetCastSpellInfoResult | GetCastSpellInfo (SpellInfo const *spellInfo) const |
| virtual SpellInfo const * | GetCastSpellInfo (SpellInfo const *spellInfo, TriggerCastFlags &triggerFlag, GetCastSpellInfoContext *context) const |
| uint32 | GetCastSpellXSpellVisualId (SpellInfo const *spellInfo) const override |
| virtual bool | HasSpellFocus (Spell const *=nullptr) const |
| virtual bool | IsMovementPreventedByCasting () const |
| bool | CanCastSpellWhileMoving (SpellInfo const *spellInfo) const |
| bool | IsSilenced (SpellSchoolMask schoolMask) const |
| void | SetSilencedSchoolMask (SpellSchoolMask schoolMask) |
| void | ReplaceAllSilencedSchoolMask (SpellSchoolMask schoolMask) |
| SpellHistory * | GetSpellHistory () |
| SpellHistory const * | GetSpellHistory () const |
| ShapeshiftForm | GetShapeshiftForm () const |
| void | SetShapeshiftForm (ShapeshiftForm form) |
| void | CancelShapeshiftForm (bool onlyTravelShapeshiftForm=false, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, bool force=false) |
| void | CancelTravelShapeshiftForm (AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, bool force=false) |
| bool | IsInFeralForm () const |
| bool | IsInDisallowedMountForm () const |
| bool | IsDisallowedMountForm (uint32 spellId, ShapeshiftForm form, uint32 displayId) const |
| void | HandleStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float amount, bool apply) |
| void | ApplyStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float amount) |
| void | SetStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float val) |
| void | SetStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float val) |
| float | GetFlatModifierValue (UnitMods unitMod, UnitModifierFlatType modifierType) const |
| float | GetPctModifierValue (UnitMods unitMod, UnitModifierPctType modifierType) const |
| void | UpdateUnitMod (UnitMods unitMod) |
| void | HandleAttackPowerModifier (AttackPowerModIndex index, AttackPowerModType modifierType, float amount, bool apply) |
| float | GetAttackPowerModifierValue (AttackPowerModIndex index, AttackPowerModType modifierType) const |
| virtual bool | CheckAttackFitToAuraRequirement (WeaponAttackType, AuraEffect const *) const |
| virtual void | UpdateDamageDoneMods (WeaponAttackType attackType, int32 skipEnchantSlot=-1) |
| void | UpdateAllDamageDoneMods () |
| void | UpdateDamagePctDoneMods (WeaponAttackType attackType) |
| void | UpdateAllDamagePctDoneMods () |
| float | GetTotalStatValue (Stats stat) const |
| float | GetTotalAuraModValue (UnitMods unitMod) const |
| SpellSchools | GetSpellSchoolByAuraGroup (UnitMods unitMod) const |
| Stats | GetStatByAuraGroup (UnitMods unitMod) const |
| bool | CanModifyStats () const |
| void | SetCanModifyStats (bool modifyStats) |
| virtual bool | UpdateStats (Stats stat)=0 |
| virtual bool | UpdateAllStats ()=0 |
| virtual void | UpdateResistances (uint32 school) |
| virtual void | UpdateAllResistances () |
| virtual void | UpdateArmor ()=0 |
| virtual void | UpdateMaxHealth ()=0 |
| virtual void | UpdateMaxPower (Powers power)=0 |
| virtual uint32 | GetPowerIndex (Powers power) const =0 |
| virtual ClassPowerTypes | GetPowerTypes () const =0 |
| virtual void | UpdateAttackPowerAndDamage (bool ranged=false)=0 |
| void | SetAttackPower (int32 attackPower) |
| void | SetAttackPowerModPos (int32 attackPowerMod) |
| void | SetAttackPowerModNeg (int32 attackPowerMod) |
| void | SetAttackPowerMultiplier (float attackPowerMult) |
| void | SetRangedAttackPower (int32 attackPower) |
| void | SetRangedAttackPowerModPos (int32 attackPowerMod) |
| void | SetRangedAttackPowerModNeg (int32 attackPowerMod) |
| void | SetRangedAttackPowerMultiplier (float attackPowerMult) |
| void | SetMainHandWeaponAttackPower (int32 attackPower) |
| void | SetOffHandWeaponAttackPower (int32 attackPower) |
| void | SetRangedWeaponAttackPower (int32 attackPower) |
| virtual void | UpdateDamagePhysical (WeaponAttackType attType) |
| float | GetTotalAttackPowerValue (WeaponAttackType attType, bool includeWeapon=true) const |
| float | GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type) const |
| void | SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value) |
| virtual void | CalculateMinMaxDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, float &minDamage, float &maxDamage) const =0 |
| uint32 | CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct) const |
| float | GetAPMultiplier (WeaponAttackType attType, bool normalized) const |
| bool | isInFrontInMap (Unit const *target, float distance, float arc=float(M_PI)) const |
| bool | isInBackInMap (Unit const *target, float distance, float arc=float(M_PI)) const |
| bool | IsVisible () const |
| void | SetVisible (bool x) |
| virtual void | OnPhaseChange () |
| void | UpdateObjectVisibility (bool forced=true) override |
| VisibleAuraContainer const & | GetVisibleAuras () const |
| bool | HasVisibleAura (AuraApplication *aurApp) const |
| void | SetVisibleAura (AuraApplication *aurApp) |
| void | RemoveVisibleAura (AuraApplication *aurApp) |
| void | SetVisibleAuraUpdate (AuraApplication *aurApp) |
| void | RemoveVisibleAuraUpdate (AuraApplication *aurApp) |
| bool | HasInterruptFlag (SpellAuraInterruptFlags flags) const |
| bool | HasInterruptFlag (SpellAuraInterruptFlags2 flags) const |
| void | AddInterruptMask (SpellAuraInterruptFlags flags, SpellAuraInterruptFlags2 flags2) |
| void | UpdateInterruptMask () |
| virtual float | GetNativeObjectScale () const |
| virtual void | RecalculateObjectScale () |
| uint32 | GetDisplayId () const |
| float | GetDisplayScale () const |
| virtual void | SetDisplayId (uint32 displayId, bool setNative=false) |
| uint32 | GetNativeDisplayId () const |
| float | GetNativeDisplayScale () const |
| void | RestoreDisplayId (bool ignorePositiveAurasPreventingMounting=false) |
| void | SetTransformSpell (uint32 spellid) |
| uint32 | GetTransformSpell () const |
| void | _RegisterDynObject (DynamicObject *dynObj) |
| void | _UnregisterDynObject (DynamicObject *dynObj) |
| DynamicObject * | GetDynObject (uint32 spellId) const |
| std::vector< DynamicObject * > | GetDynObjects (uint32 spellId) const |
| void | RemoveDynObject (uint32 spellId) |
| void | RemoveAllDynObjects () |
| GameObject * | GetGameObject (uint32 spellId) const |
| std::vector< GameObject * > | GetGameObjects (uint32 spellId) const |
| void | AddGameObject (GameObject *gameObj) |
| void | RemoveGameObject (GameObject *gameObj, bool del) |
| void | RemoveGameObject (uint32 spellid, bool del) |
| void | RemoveAllGameObjects () |
| void | _RegisterAreaTrigger (AreaTrigger *areaTrigger) |
| void | _UnregisterAreaTrigger (AreaTrigger *areaTrigger) |
| AreaTrigger * | GetAreaTrigger (uint32 spellId) const |
| std::vector< AreaTrigger * > | GetAreaTriggers (uint32 spellId) const |
| void | RemoveAreaTrigger (uint32 spellId) |
| void | RemoveAreaTrigger (AuraEffect const *aurEff) |
| void | RemoveAllAreaTriggers (AreaTriggerRemoveReason reason=AreaTriggerRemoveReason::Default) |
| void | EnterAreaTrigger (AreaTrigger *areaTrigger) |
| void | ExitAreaTrigger (AreaTrigger *areaTrigger) |
| std::vector< AreaTrigger * > const & | GetInsideAreaTriggers () const |
| void | ExitAllAreaTriggers () |
| void | ModifyAuraState (AuraStateType flag, bool apply) |
| uint32 | BuildAuraStateUpdateForTarget (Unit const *target) const |
| bool | HasAuraState (AuraStateType flag, SpellInfo const *spellProto=nullptr, Unit const *Caster=nullptr) const |
| void | UnsummonAllTotems () |
| bool | IsMagnet () const |
| Unit * | GetMeleeHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo=nullptr) |
| int32 | SpellBaseDamageBonusDone (SpellSchoolMask schoolMask) const |
| int32 | SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, int32 pdamage, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) const |
| float | SpellDamagePctDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo) const |
| int32 | SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 pdamage, DamageEffectType damagetype) const |
| int32 | SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const |
| int32 | SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, int32 healamount, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) const |
| float | SpellHealingPctDone (Unit *victim, SpellInfo const *spellProto) const |
| int32 | SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 healamount, DamageEffectType damagetype) const |
| int32 | SpellBaseAbsorbBonusDone (SpellSchoolMask schoolMask) const |
| int32 | SpellAbsorbBonusDone (Unit *victim, SpellInfo const *spellProto, int32 absorbamount, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, AuraEffect const *aurEff=nullptr) const |
| float | SpellAbsorbPctDone (Unit *victim, SpellInfo const *spellProto) const |
| int32 | SpellAbsorbBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 absorbamount) const |
| int32 | MeleeDamageBonusDone (Unit *pVictim, int32 damage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo const *spellProto=nullptr, SpellEffectInfo const *spellEffectInfo=nullptr, Mechanics mechanic=MECHANIC_NONE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) |
| int32 | MeleeDamageBonusTaken (Unit *attacker, int32 pdamage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL) |
| bool | IsBlockCritical () const |
| float | SpellCritChanceDone (Spell *spell, AuraEffect const *aurEff, SpellSchoolMask schoolMask, WeaponAttackType attackType=BASE_ATTACK) const |
| float | SpellCritChanceTaken (Unit const *caster, Spell *spell, AuraEffect const *aurEff, SpellSchoolMask schoolMask, float doneChance, WeaponAttackType attackType=BASE_ATTACK) const |
| void | ApplySpellImmune (uint32 spellId, SpellImmunity op, uint32 type, bool apply) |
| bool | IsImmunedToSpell (SpellInfo const *spellInfo, uint32 effectMask, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const |
| uint32 | GetSchoolImmunityMask () const |
| uint32 | GetDamageImmunityMask () const |
| uint64 | GetMechanicImmunityMask () const |
| EnumFlag< SpellOtherImmunity > | GetSpellOtherImmunityMask () const |
| bool | IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const |
| bool | IsImmunedToDamage (WorldObject const *caster, SpellInfo const *spellInfo, SpellEffectInfo const *spellEffectInfo=nullptr) const |
| virtual bool | IsImmunedToSpellEffect (SpellInfo const *spellInfo, SpellEffectInfo const &spellEffectInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const |
| bool | IsImmunedToAuraPeriodicTick (WorldObject const *caster, AuraEffect const *auraEffect) const |
| void | UpdateSpeed (UnitMoveType mtype) |
| float | GetSpeed (UnitMoveType mtype) const |
| float | GetSpeedRate (UnitMoveType mtype) const |
| void | SetSpeed (UnitMoveType mtype, float newValue) |
| void | SetSpeedRate (UnitMoveType mtype, float rate) |
| int32 | GetFlightCapabilityID () const |
| void | SetFlightCapabilityID (int32 flightCapabilityId, bool clientUpdate) |
| float | GetAdvFlyingSpeed (AdvFlyingRateTypeSingle speedType) const |
| float | GetAdvFlyingSpeedMin (AdvFlyingRateTypeRange speedType) const |
| float | GetAdvFlyingSpeedMax (AdvFlyingRateTypeRange speedType) const |
| void | UpdateAdvFlyingSpeed (AdvFlyingRateTypeSingle speedType, bool clientUpdate) |
| void | UpdateAdvFlyingSpeed (AdvFlyingRateTypeRange speedType, bool clientUpdate) |
| void | FollowerAdded (AbstractFollower *f) |
| void | FollowerRemoved (AbstractFollower *f) |
| void | RemoveAllFollowers () |
| MotionMaster * | GetMotionMaster () |
| MotionMaster const * | GetMotionMaster () const |
| virtual MovementGeneratorType | GetDefaultMovementType () const |
| bool | IsStopped () const |
| void | StopMoving (bool force=false) |
| void | PauseMovement (uint32 timer=0, uint8 slot=0, bool forced=true) |
| void | ResumeMovement (uint32 timer=0, uint8 slot=0) |
| void | AddUnitMovementFlag (MovementFlags f) |
| void | RemoveUnitMovementFlag (MovementFlags f) |
| bool | HasUnitMovementFlag (MovementFlags f) const |
| MovementFlags | GetUnitMovementFlags () const |
| void | SetUnitMovementFlags (MovementFlags f) |
| bool | IsSplineEnabled () const |
| void | SetControlled (bool apply, UnitState state) |
| void | ApplyControlStatesIfNeeded () |
| void | SendPetActionFeedback (PetActionFeedback msg, uint32 spellId) const |
| -------—Pet responses methods--------------— | |
| void | SendPetActionSound (PetAction action) const |
| void | SendPetDismissSound () const |
| void | SendPetAIReaction (ObjectGuid guid) const |
| void | PropagateSpeedChange () |
| -------—End of Pet responses methods-------— | |
| void | ClearAllReactives () |
| void | StartReactiveTimer (ReactiveType reactive) |
| void | UpdateReactives (uint32 p_time) |
| void | UpdateAuraForGroup () |
| bool | CanProc () const |
| void | SetCantProc (bool apply) |
| int32 | GetProcChainLength () const |
| uint32 | GetModelForForm (ShapeshiftForm form, uint32 spellId) const |
| bool | CreateVehicleKit (uint32 id, uint32 creatureEntry, bool loading=false) |
| void | RemoveVehicleKit (bool onRemoveFromWorld=false) |
| Vehicle * | GetVehicleKit () const |
| Trinity::unique_weak_ptr< Vehicle > | GetVehicleKitWeakPtr () const |
| Vehicle * | GetVehicle () const |
| void | SetVehicle (Vehicle *vehicle) |
| bool | IsOnVehicle (Unit const *vehicle) const |
| Unit * | GetVehicleBase () const |
| Unit * | GetVehicleRoot () const |
| Creature * | GetVehicleCreatureBase () const |
| ObjectGuid | GetTransGUID () const override |
| TransportBase * | GetDirectTransport () const |
| Returns the transport this unit is on directly (if on vehicle and transport, return vehicle) | |
| void | HandleSpellClick (Unit *clicker, int8 seatId=-1) |
| bool | HandleSpellClick (Unit *clicker, int8 seatId, uint32 spellId, TriggerCastFlags flags=TRIGGERED_NONE, SpellClickInfo const *spellClickInfo=nullptr) |
| void | EnterVehicle (Unit *base, int8 seatId=-1) |
| virtual void | ExitVehicle (Position const *exitPosition=nullptr) |
| void | ChangeSeat (int8 seatId, bool next=true) |
| void | _ExitVehicle (Position const *exitPosition=nullptr) |
| void | _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=nullptr) |
| bool | isMoving () const |
| bool | isTurning () const |
| virtual bool | CanFly () const =0 |
| bool | IsFlying () const |
| bool | IsFalling () const |
| virtual bool | CanEnterWater () const =0 |
| virtual bool | CanSwim () const |
| float | GetHoverOffset () const |
| int32 | RewardRage (uint32 baseRage) |
| virtual float | GetFollowAngle () const |
| void | OutDebugInfo () const |
| virtual bool | IsLoading () const |
| bool | IsDuringRemoveFromWorld () const |
| Pet * | ToPet () |
| Pet const * | ToPet () const |
| Totem * | ToTotem () |
| Totem const * | ToTotem () const |
| TempSummon * | ToTempSummon () |
| TempSummon const * | ToTempSummon () const |
| ObjectGuid | GetTarget () const |
| virtual void | SetTarget (ObjectGuid const &)=0 |
| void | SetInstantCast (bool set) |
| bool | CanInstantCast () const |
| SpellEffectValue | GetHighestExclusiveSameEffectSpellGroupValue (AuraEffect const *aurEff, AuraType auraType, bool checkMiscValue=false, int32 miscValue=0) const |
| bool | IsHighestExclusiveAura (Aura const *aura, bool removeOtherAuraApplications=false) |
| bool | IsHighestExclusiveAuraEffect (SpellInfo const *spellInfo, AuraType auraType, SpellEffectValue effectAmount, uint32 auraEffectMask, bool removeOtherAuraApplications=false) |
| virtual void | Talk (std::string_view text, ChatMsg msgType, Language language, float textRange, WorldObject const *target) |
| virtual void | Say (std::string_view text, Language language, WorldObject const *target=nullptr) |
| virtual void | Yell (std::string_view text, Language language, WorldObject const *target=nullptr) |
| virtual void | TextEmote (std::string_view text, WorldObject const *target=nullptr, bool isBossEmote=false) |
| virtual void | Whisper (std::string_view text, Language language, Player *target, bool isBossWhisper=false) |
| virtual void | Talk (uint32 textId, ChatMsg msgType, float textRange, WorldObject const *target) |
| virtual void | Say (uint32 textId, WorldObject const *target=nullptr) |
| virtual void | Yell (uint32 textId, WorldObject const *target=nullptr) |
| virtual void | TextEmote (uint32 textId, WorldObject const *target=nullptr, bool isBossEmote=false) |
| virtual void | Whisper (uint32 textId, Player *target, bool isBossWhisper=false) |
| void | ClearBossEmotes (Optional< uint32 > zoneId={}, Player const *target=nullptr) const |
| Clears boss emotes frame. | |
| float | GetCollisionHeight () const override |
| uint32 | GetVirtualItemId (uint32 slot) const |
| uint16 | GetVirtualItemAppearanceMod (uint32 slot) const |
| void | SetVirtualItem (uint32 slot, uint32 itemId, uint16 appearanceModId=0, uint16 itemVisual=0) |
| bool | IsCombatDisallowed () const |
| void | SetIsCombatDisallowed (bool apply) |
| void | AddWorldEffect (int32 worldEffectId) |
| void | RemoveWorldEffect (int32 worldEffectId) |
| void | ClearWorldEffects () |
| Vignettes::VignetteData const * | GetVignette () const |
| void | SetVignette (uint32 vignetteId) |
| std::string | GetDebugInfo () const override |
| void | AtStartOfEncounter (EncounterType type) |
| void | AtEndOfEncounter (EncounterType type) |
Public Member Functions inherited from WorldObject | |
| virtual | ~WorldObject () |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| void | GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle) const |
| void | GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float distance2d, float absAngle) const |
| void | GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0) const |
| void | MovePosition (Position &pos, float dist, float angle, float maxHeightChange=6.0f) const |
| Position | GetNearPosition (float dist, float angle) |
| void | MovePositionToFirstCollision (Position &pos, float dist, float angle) const |
| Position | GetFirstCollisionPosition (float dist, float angle) |
| Position | GetRandomNearPosition (float radius) |
| void | GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
| void | UpdateGroundPositionZ (float x, float y, float &z) const |
| void | UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const |
| Position | GetRandomPoint (Position const &srcPos, float distance, float minDistance=0.0f) const |
| uint32 | GetInstanceId () const |
| PhaseShift & | GetPhaseShift () |
| PhaseShift const & | GetPhaseShift () const |
| PhaseShift & | GetSuppressedPhaseShift () |
| PhaseShift const & | GetSuppressedPhaseShift () const |
| bool | InSamePhase (PhaseShift const &phaseShift) const |
| bool | InSamePhase (WorldObject const *obj) const |
| int32 | GetDBPhase () const |
| void | SetDBPhase (int32 p) |
| uint32 | GetZoneId () const |
| uint32 | GetAreaId () const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
| bool | IsInWorldPvpZone () const |
| bool | IsOutdoors () const |
| ZLiquidStatus | GetLiquidStatus () const |
| WmoLocation const * | GetCurrentWmo () const |
| InstanceScript * | GetInstanceScript () const |
| std::string const & | GetName () const |
| void | SetName (std::string newname) |
| std::string | GetNameForLocaleIdx (LocaleConstant) const override |
| float | GetDistance (WorldObject const *obj) const |
| float | GetDistance (Position const &pos) const |
| float | GetDistance (float x, float y, float z) const |
| float | GetDistance2d (WorldObject const *obj) const |
| float | GetDistance2d (float x, float y) const |
| float | GetDistanceZ (WorldObject const *obj) const |
| bool | IsSelfOrInSameMap (WorldObject const *obj) const |
| bool | IsInMap (WorldObject const *obj) const |
| bool | IsWithinDist3d (float x, float y, float z, float dist) const |
| bool | IsWithinDist3d (Position const *pos, float dist) const |
| bool | IsWithinDist2d (float x, float y, float dist) const |
| bool | IsWithinDist2d (Position const *pos, float dist) const |
| bool | IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const |
| bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const |
| bool | IsWithinLOS (float x, float y, float z, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const |
| bool | IsWithinLOSInMap (WorldObject const *obj, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const |
| Position | GetHitSpherePointFor (Position const &dest) const |
| void | GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z) const |
| bool | GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const |
| bool | IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const |
| bool | IsInRange2d (Position const *pos, float minRange, float maxRange) const |
| bool | IsInRange3d (Position const *pos, float minRange, float maxRange) const |
| bool | isInFront (WorldObject const *target, float arc=float(M_PI)) const |
| bool | isInBack (WorldObject const *target, float arc=float(M_PI)) const |
| bool | IsInBetween (Position const &pos1, Position const &pos2, float size=0) const |
| bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
| virtual void | SendMessageToSet (WorldPacket const *data, bool self) const |
| virtual void | SendMessageToSetInRange (WorldPacket const *data, float dist, bool self) const |
| virtual void | SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const |
| void | SendCombatLogMessage (WorldPackets::CombatLog::CombatLogServerPacket *combatLog) const |
| void | PlayDistanceSound (uint32 soundId, Player const *target=nullptr) const |
| void | StopDistanceSound (Player const *target=nullptr) const |
| void | PlayDirectSound (uint32 soundId, Player const *target=nullptr, uint32 broadcastTextId=0) const |
| void | PlayDirectMusic (uint32 musicId, Player const *target=nullptr) const |
| void | PlayObjectSound (int32 soundKitId, ObjectGuid targetObject, Player const *target=nullptr, int32 broadcastTextId=0) const |
| void | AddObjectToRemoveList () |
| float | GetGridActivationRange () const |
| float | GetVisibilityRange () const |
| float | GetSightRange (WorldObject const *target=nullptr) const |
| bool | CanSeeOrDetect (WorldObject const *obj, CanSeeOrDetectExtraArgs const &args={ }) const |
| virtual void | SetMap (Map *map) |
| virtual void | ResetMap () |
| Map * | GetMap () const |
| Map * | FindMap () const |
| void | SetZoneScript () |
| ZoneScript * | FindZoneScript () const |
| ZoneScript * | GetZoneScript () const |
| Scenario * | GetScenario () const |
| TempSummon * | SummonCreature (uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty) |
| TempSummon * | SummonCreature (uint32 entry, float x, float y, float z, float o=0, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, ObjectGuid privateObjectOwner=ObjectGuid::Empty) |
| TempSummon * | SummonPersonalClone (Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, Player *privateObjectOwner=nullptr) |
| GameObject * | SummonGameObject (uint32 entry, Position const &pos, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
| GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
| Creature * | SummonTrigger (float x, float y, float z, float ang, Milliseconds despawnTime, CreatureAI *(*GetAI)(Creature *)=nullptr) |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr) |
| Creature * | FindNearestCreature (uint32 entry, float range, bool alive=true) const |
| Creature * | FindNearestCreatureWithOptions (float range, FindCreatureOptions const &options) const |
| GameObject * | FindNearestGameObject (uint32 entry, float range, bool spawnedOnly=true) const |
| GameObject * | FindNearestGameObjectWithOptions (float range, FindGameObjectOptions const &options) const |
| GameObject * | FindNearestUnspawnedGameObject (uint32 entry, float range) const |
| GameObject * | FindNearestGameObjectOfType (GameobjectTypes type, float range) const |
| Player * | SelectNearestPlayer (float range) const |
| ObjectGuid | GetCharmerOrOwnerOrOwnGUID () const |
| Unit * | GetOwner () const |
| Unit * | GetCharmerOrOwner () const |
| Unit * | GetCharmerOrOwnerOrSelf () const |
| Player * | GetCharmerOrOwnerPlayerOrPlayerItself () const |
| Player * | GetAffectingPlayer () const |
| Player * | GetSpellModOwner () const |
| SpellRange | GetSpellMinMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| SpellEffectValue | ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, SpellEffectValue value) const |
| int32 | CalcSpellDuration (SpellInfo const *spellInfo, std::vector< SpellPowerCost > const *powerCosts) const |
| int32 | ModSpellDuration (SpellInfo const *spellInfo, WorldObject const *target, int32 duration, bool positive, uint32 effectMask) const |
| void | ModSpellCastTime (SpellInfo const *spellInfo, int32 &castTime, Spell *spell=nullptr) const |
| void | ModSpellDurationTime (SpellInfo const *spellInfo, int32 &durationTime, Spell *spell=nullptr) const |
| SpellMissInfo | MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const |
| SpellMissInfo | SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect, bool canImmune) const |
| void | SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo) |
| FactionTemplateEntry const * | GetFactionTemplateEntry () const |
| ReputationRank | GetReactionTo (WorldObject const *target) const |
| bool | IsHostileTo (WorldObject const *target) const |
| bool | IsHostileToPlayers () const |
| bool | IsFriendlyTo (WorldObject const *target) const |
| bool | IsNeutralToAll () const |
| SpellCastResult | CastSpell (CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ }) |
| void | SendPlayOrphanSpellVisual (Position const &sourceLocation, ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendPlayOrphanSpellVisual (Position const &sourceLocation, Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendPlayOrphanSpellVisual (ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendPlayOrphanSpellVisual (Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendCancelOrphanSpellVisual (uint32 id) |
| bool | IsValidAttackTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
| bool | IsValidAssistTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
| Unit * | GetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo) |
| template<typename Container > | |
| void | GetGameObjectListWithEntryInGrid (Container &gameObjectContainer, uint32 entry, float maxSearchRange=250.0f) const |
| template<typename Container > | |
| void | GetGameObjectListWithOptionsInGrid (Container &gameObjectContainer, float maxSearchRange, FindGameObjectOptions const &options) const |
| template<typename Container > | |
| void | GetCreatureListWithEntryInGrid (Container &creatureContainer, uint32 entry, float maxSearchRange=250.0f) const |
| template<typename Container > | |
| void | GetCreatureListWithOptionsInGrid (Container &creatureContainer, float maxSearchRange, FindCreatureOptions const &options) const |
| template<typename Container > | |
| void | GetPlayerListInGrid (Container &playerContainer, float maxSearchRange, bool alive=true) const |
| void | DestroyForNearbyPlayers () |
| virtual void | UpdateObjectVisibilityOnCreate () |
| virtual void | UpdateObjectVisibilityOnDestroy () |
| void | UpdatePositionData () |
| void | BuildUpdate (UpdateDataMapType &) override |
| bool | AddToObjectUpdate () override |
| void | RemoveFromObjectUpdate () override |
| void | AddToNotify (uint16 f) |
| bool | isNeedNotify (uint16 f) const |
| uint16 | GetNotifyFlags () const |
| void | ResetAllNotifies () |
| bool | isActiveObject () const |
| void | setActive (bool isActiveObject) |
| bool | IsFarVisible () const |
| void | SetFarVisible (bool on) |
| bool | IsVisibilityOverridden () const |
| void | SetVisibilityDistanceOverride (VisibilityDistanceType type) |
| void | SetIsStoredInWorldObjectGridContainer (bool apply) |
| bool | IsAlwaysStoredInWorldObjectGridContainer () const |
| bool | IsStoredInWorldObjectGridContainer () const |
| TransportBase * | GetTransport () const |
| float | GetTransOffsetX () const |
| float | GetTransOffsetY () const |
| float | GetTransOffsetZ () const |
| float | GetTransOffsetO () const |
| Position const & | GetTransOffset () const |
| uint32 | GetTransTime () const |
| int8 | GetTransSeat () const |
| void | SetTransport (TransportBase *t) |
| virtual Position const & | GetStationaryPosition () const |
| float | GetFloorZ () const |
| float | GetMapWaterOrGroundLevel (float x, float y, float z, float *ground=nullptr) const |
| float | GetMapHeight (float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const |
| std::string | GetDebugInfo () const override |
| bool | IsPrivateObject () const |
| ObjectGuid | GetPrivateObjectOwner () const |
| void | SetPrivateObjectOwner (ObjectGuid const &owner) |
| bool | CheckPrivateObjectOwnerVisibility (WorldObject const *seer) const |
| SmoothPhasing * | GetOrCreateSmoothPhasing () |
| SmoothPhasing * | GetSmoothPhasing () |
| SmoothPhasing const * | GetSmoothPhasing () const |
Public Member Functions inherited from Object | |
| virtual | ~Object () |
| uint32 | GetEntry () const |
| void | SetEntry (uint32 entry) |
| float | GetObjectScale () const |
| virtual void | SetObjectScale (float scale) |
| uint32 | GetDynamicFlags () const |
| bool | HasDynamicFlag (uint32 flag) const |
| void | SetDynamicFlag (uint32 flag) |
| void | RemoveDynamicFlag (uint32 flag) |
| void | ReplaceAllDynamicFlags (uint32 flag) |
| void | BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const |
| virtual bool | hasQuest (uint32) const |
| virtual bool | hasInvolvedQuest (uint32) const |
| WorldObject * | ToWorldObject () |
| WorldObject const * | ToWorldObject () const |
| Item * | ToItem () |
| Item const * | ToItem () const |
| Unit * | ToUnit () |
| Unit const * | ToUnit () const |
| Creature * | ToCreature () |
| Creature const * | ToCreature () const |
| Player * | ToPlayer () |
| Player const * | ToPlayer () const |
| GameObject * | ToGameObject () |
| GameObject const * | ToGameObject () const |
| Corpse * | ToCorpse () |
| Corpse const * | ToCorpse () const |
| DynamicObject * | ToDynObject () |
| DynamicObject const * | ToDynObject () const |
| AreaTrigger * | ToAreaTrigger () |
| AreaTrigger const * | ToAreaTrigger () const |
| SceneObject * | ToSceneObject () |
| SceneObject const * | ToSceneObject () const |
| Conversation * | ToConversation () |
| Conversation const * | ToConversation () const |
| Trinity::unique_weak_ptr< Object > | GetWeakPtr () const |
| virtual Loot * | GetLootForPlayer (Player const *player) const |
| virtual SpawnTrackingStateData const * | GetSpawnTrackingStateDataForPlayer (Player const *player) const |
| virtual void | BuildValuesUpdateWithFlag (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const |
Public Member Functions inherited from BaseEntity | |
| virtual | ~BaseEntity () |
| bool | IsInWorld () const |
| ObjectGuid const & | GetGUID () const |
| TypeID | GetTypeId () const |
| bool | isType (TypeMask mask) const |
| bool | IsWorldObject () const |
| bool | IsItem () const |
| bool | IsUnit () const |
| bool | IsCreature () const |
| bool | IsPlayer () const |
| bool | IsGameObject () const |
| bool | IsDynObject () const |
| bool | IsCorpse () const |
| bool | IsAreaTrigger () const |
| bool | IsSceneObject () const |
| bool | IsConversation () const |
| bool | IsMeshObject () const |
| virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | SendUpdateToPlayer (Player *player) const |
| void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const |
| void | BuildDestroyUpdateBlock (UpdateData *data) const |
| void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
| ByteBuffer & | PrepareValuesUpdateBuffer (UpdateData *data) const |
| void | SendOutOfRangeForPlayer (Player const *target) const |
| void | ClearUpdateMask (bool remove) |
| void | SetIsNewObject (bool enable) |
| bool | IsDestroyedObject () const |
| void | SetDestroyedObject (bool destroyed) |
| void | BuildUpdateChangesMask () |
| void | BuildFieldsUpdate (Player *player, UpdateDataMapType &data_map) const |
| template<typename T > | |
| void | ForceUpdateFieldChange (UF::UpdateFieldPrivateSetter< T > const &) |
Public Member Functions inherited from WorldLocation | |
| constexpr | WorldLocation () |
| constexpr | WorldLocation (uint32 mapId, float x, float y) |
| constexpr | WorldLocation (uint32 mapId, float x, float y, float z) |
| constexpr | WorldLocation (uint32 mapId, float x, float y, float z, float o) |
| constexpr | WorldLocation (uint32 mapId, Position const &position) |
| constexpr void | WorldRelocate (WorldLocation const &loc) |
| constexpr void | WorldRelocate (WorldLocation const *loc) |
| constexpr void | WorldRelocate (uint32 mapId, Position const &pos) |
| constexpr void | WorldRelocate (uint32 mapId, float x, float y, float z, float o) |
| constexpr WorldLocation | GetWorldLocation () const |
| constexpr uint32 | GetMapId () const |
| std::string | GetDebugInfo () const |
Public Member Functions inherited from Position | |
| constexpr | Position () |
| constexpr | Position (float x, float y) |
| constexpr | Position (float x, float y, float z) |
| constexpr | Position (float x, float y, float z, float o) |
| bool | operator== (Position const &a) const |
| constexpr void | Relocate (float x, float y) |
| constexpr void | Relocate (float x, float y, float z) |
| constexpr void | Relocate (float x, float y, float z, float o) |
| constexpr void | Relocate (Position const &pos) |
| constexpr void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| constexpr void | SetOrientation (float orientation) |
| constexpr float | GetPositionX () const |
| constexpr float | GetPositionY () const |
| constexpr float | GetPositionZ () const |
| constexpr float | GetOrientation () const |
| constexpr void | GetPosition (float &x, float &y) const |
| constexpr void | GetPosition (float &x, float &y, float &z) const |
| constexpr void | GetPosition (float &x, float &y, float &z, float &o) const |
| constexpr Position | GetPosition () const |
| Streamer< XY > | PositionXYStream () |
| ConstStreamer< XY > | PositionXYStream () const |
| Streamer< XYZ > | PositionXYZStream () |
| ConstStreamer< XYZ > | PositionXYZStream () const |
| Streamer< XYZO > | PositionXYZOStream () |
| ConstStreamer< XYZO > | PositionXYZOStream () const |
| Streamer< PackedXYZ > | PositionPackedXYZStream () |
| ConstStreamer< PackedXYZ > | PositionPackedXYZStream () const |
| bool | IsPositionValid () const |
| constexpr float | GetExactDist2dSq (const float x, const float y) const |
| constexpr float | GetExactDist2dSq (Position const &pos) const |
| constexpr float | GetExactDist2dSq (Position const *pos) const |
| float | GetExactDist2d (const float x, const float y) const |
| float | GetExactDist2d (Position const &pos) const |
| float | GetExactDist2d (Position const *pos) const |
| constexpr float | GetExactDistSq (float x, float y, float z) const |
| constexpr float | GetExactDistSq (Position const &pos) const |
| constexpr float | GetExactDistSq (Position const *pos) const |
| float | GetExactDist (float x, float y, float z) const |
| float | GetExactDist (Position const &pos) const |
| float | GetExactDist (Position const *pos) const |
| Position | GetPositionOffsetTo (Position const &endPos) const |
| Position | GetPositionWithOffset (Position const &offset) const |
| float | GetAbsoluteAngle (float x, float y) const |
| float | GetAbsoluteAngle (Position const &pos) const |
| float | GetAbsoluteAngle (Position const *pos) const |
| float | ToAbsoluteAngle (float relAngle) const |
| float | ToRelativeAngle (float absAngle) const |
| float | GetRelativeAngle (float x, float y) const |
| float | GetRelativeAngle (Position const &pos) const |
| float | GetRelativeAngle (Position const *pos) const |
| constexpr bool | IsInDist2d (float x, float y, float dist) const |
| constexpr bool | IsInDist2d (Position const &pos, float dist) const |
| constexpr bool | IsInDist2d (Position const *pos, float dist) const |
| constexpr bool | IsInDist (float x, float y, float z, float dist) const |
| constexpr bool | IsInDist (Position const &pos, float dist) const |
| constexpr bool | IsInDist (Position const *pos, float dist) const |
| bool | IsWithinBox (Position const &boxOrigin, float length, float width, float height) const |
| bool | IsWithinVerticalCylinder (Position const &cylinderOrigin, float radius, float height, bool isDoubleVertical=false) const |
| bool | IsInPolygon2D (Position const &polygonOrigin, std::span< Position const > vertices) const |
| bool | HasInArc (float arcangle, Position const *pos, float border=2.0f) const |
| bool | HasInLine (Position const *pos, float objSize, float width) const |
| std::string | ToString () const |
Static Public Member Functions | |
| static std::vector< AuraEffect * > | CopyAuraEffectList (AuraEffectList const &list) |
| static float | CalculateAverageResistReduction (WorldObject const *caster, SpellSchoolMask schoolMask, Unit const *victim, SpellInfo const *spellInfo=nullptr) |
| static void | DealDamageMods (Unit const *attacker, Unit const *victim, uint32 &damage, uint32 *absorb) |
| static uint32 | DealDamage (Unit *attacker, Unit *victim, uint32 damage, CleanDamage const *cleanDamage=nullptr, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=nullptr, bool durabilityLoss=true) |
| static void | Kill (Unit *attacker, Unit *victim, bool durabilityLoss=true, bool skipSettingDeathState=false) |
| static void | DealHeal (HealInfo &healInfo) |
| static void | ProcSkillsAndAuras (Unit *actor, Unit *actionTarget, ProcFlagsInit const &typeMaskActor, ProcFlagsInit const &typeMaskActionTarget, ProcFlagsSpellType spellTypeMask, ProcFlagsSpellPhase spellPhaseMask, ProcFlagsHit hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
| static void | ApplyResilience (Unit const *victim, int32 *damage) |
| static uint32 | SpellCriticalDamageBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| static uint32 | SpellCriticalHealingBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| static bool | IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=nullptr) |
| static uint32 | CalcArmorReducedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=MAX_ATTACK, uint8 attackerLevel=0) |
| static uint32 | CalcSpellResistedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellSchoolMask schoolMask, SpellInfo const *spellInfo) |
| static void | CalcAbsorbResist (DamageInfo &damageInfo, Spell *spell=nullptr) |
| static void | CalcHealAbsorb (HealInfo &healInfo) |
Static Public Member Functions inherited from WorldObject | |
| static bool | InSamePhase (WorldObject const *a, WorldObject const *b) |
| static ReputationRank | GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, WorldObject const *target) |
Static Public Member Functions inherited from Object | |
| static WorldObject * | ToWorldObject (Object *o) |
| static WorldObject const * | ToWorldObject (Object const *o) |
| static Item * | ToItem (Object *o) |
| static Item const * | ToItem (Object const *o) |
| static Unit * | ToUnit (Object *o) |
| static Unit const * | ToUnit (Object const *o) |
| static Creature * | ToCreature (Object *o) |
| static Creature const * | ToCreature (Object const *o) |
| static Player * | ToPlayer (Object *o) |
| static Player const * | ToPlayer (Object const *o) |
| static GameObject * | ToGameObject (Object *o) |
| static GameObject const * | ToGameObject (Object const *o) |
| static Corpse * | ToCorpse (Object *o) |
| static Corpse const * | ToCorpse (Object const *o) |
| static DynamicObject * | ToDynObject (Object *o) |
| static DynamicObject const * | ToDynObject (Object const *o) |
| static AreaTrigger * | ToAreaTrigger (Object *o) |
| static AreaTrigger const * | ToAreaTrigger (Object const *o) |
| static SceneObject * | ToSceneObject (Object *o) |
| static SceneObject const * | ToSceneObject (Object const *o) |
| static Conversation * | ToConversation (Object *o) |
| static Conversation const * | ToConversation (Object const *o) |
Static Public Member Functions inherited from BaseEntity | |
| static ObjectGuid | GetGUID (BaseEntity const *o) |
Static Public Member Functions inherited from Position | |
| static float | NormalizeOrientation (float o) |
Protected Types | |
| typedef std::vector< DynamicObject * > | DynObjectList |
| typedef std::list< GameObject * > | GameObjectList |
| typedef std::vector< AreaTrigger * > | AreaTriggerList |
Protected Member Functions | |
| void | SetAI (UnitAI *newAI) |
| UnitAI * | GetTopAI () const |
| void | RefreshAI () |
| UnitAI * | GetScheduledChangeAI () |
| bool | HasScheduledAIChange () const |
| Unit (bool isWorldObject) | |
| UF::UpdateFieldFlag | GetUpdateFieldFlagsFor (Player const *target) const override |
| void | DestroyForPlayer (Player const *target) const override |
| void | ClearValuesChangesMask () override |
| void | _UpdateSpells (uint32 time) |
| void | _DeleteRemovedAuras () |
| void | _UpdateAutoRepeatSpell () |
| void | RemoveGameObjectImpl (GameObject *gameObj, bool del) |
| bool | IsAlwaysVisibleFor (WorldObject const *seer) const override |
| bool | IsAlwaysDetectableFor (WorldObject const *seer) const override |
| void | DisableSpline () |
| void | ProcessPositionDataChanged (PositionFullTerrainStatus const &data) override |
| void | UpdateLiquidStatusOnPositionChange (Optional< LiquidData > const &newLiquidData) |
| virtual void | AtEnterCombat () |
| virtual void | AtExitCombat () |
| virtual void | AtEngage (Unit *target) |
| virtual void | AtDisengage () |
| void | SetFeared (bool apply) |
| void | SetConfused (bool apply) |
| void | SetStunned (bool apply) |
| void | SetRooted (bool apply) |
Protected Member Functions inherited from WorldObject | |
| WorldObject (bool isWorldObject) | |
| void | SetLocationMapId (uint32 _mapId) |
| void | SetLocationInstanceId (uint32 _instanceId) |
| virtual bool | CanNeverSee (WorldObject const *obj, bool ignorePhaseShift=false) const |
| virtual bool | CanAlwaysSee (WorldObject const *) const |
| virtual bool | IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects) const |
| virtual bool | IsInvisibleDueToDespawn (WorldObject const *seer) const |
Protected Member Functions inherited from Object | |
| Object () | |
| virtual void | BuildValuesCreate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const =0 |
| virtual void | BuildValuesUpdate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const =0 |
| void | BuildEntityFragmentsForValuesUpdateForPlayerWithMask (ByteBuffer &data, EnumFlag< UF::UpdateFieldFlag > flags) const |
Protected Member Functions inherited from BaseEntity | |
| BaseEntity () | |
| void | _Create (ObjectGuid const &guid) |
| template<typename T > | |
| void | SetUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value) |
| template<typename T > | |
| void | SetUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag) |
| template<typename T > | |
| void | RemoveUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag) |
| template<typename T > | |
| UF::DynamicUpdateFieldSetter< T >::insert_result | AddDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter) |
| template<typename T > | |
| UF::DynamicUpdateFieldSetter< T >::insert_result | InsertDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index) |
| template<typename T > | |
| void | RemoveDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index) |
| template<typename T > | |
| void | ClearDynamicUpdateFieldValues (UF::DynamicUpdateFieldSetter< T > setter) |
| template<typename K , typename V > | |
| void | RemoveMapUpdateFieldValue (UF::MapUpdateFieldSetter< K, V > setter, std::type_identity_t< K > const &key) |
| template<typename T > | |
| void | InsertSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key) |
| template<typename T > | |
| void | RemoveSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key) |
| template<typename T > | |
| void | RemoveOptionalUpdateFieldValue (UF::OptionalUpdateFieldSetter< T > setter) |
| template<typename T > | |
| void | SetUpdateFieldStatValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value) |
| template<typename T > | |
| void | ApplyModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type mod, bool apply) |
| template<typename T > | |
| void | ApplyPercentModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, float percent, bool apply) |
| template<typename Action > | |
| void | DoWithSuppressingObjectUpdates (Action &&action) |
| void | BuildMovementUpdate (ByteBuffer &data, CreateObjectBits flags, Player const *target) const |
| void | AddToObjectUpdateIfNeeded () |
Private Types | |
| typedef std::stack< std::shared_ptr< UnitAI > > | UnitAIStack |
Private Member Functions | |
| void | UpdateSplineMovement (uint32 t_diff) |
| void | UpdateSplinePosition () |
| void | SendFlightSplineSyncUpdate () |
| void | InterruptMovementBasedAuras () |
| float | GetCombatRatingReduction (CombatRating cr) const |
| uint32 | GetCombatRatingDamageReduction (CombatRating cr, float rate, float cap, uint32 damage) const |
| void | ProcSkillsAndReactives (bool isVictim, Unit *procTarget, ProcFlagsInit const &typeMask, ProcFlagsHit hitMask, WeaponAttackType attType) |
| void | UpdateCharmAI () |
| void | RestoreDisabledAI () |
Private Attributes | |
| uint32 | m_state |
| Diminishing | m_Diminishing |
| CombatManager | m_combatManager |
| ThreatManager | m_threatManager |
| UnitAIStack | i_AIs |
| std::shared_ptr< UnitAI > | i_AI |
| bool | m_aiLocked |
| std::unordered_set< AbstractFollower * > | m_followingMe |
| uint32 | _lastExtraAttackSpell |
| std::unordered_map< ObjectGuid, uint32 > | extraAttacksTargets |
| ObjectGuid | _lastDamagedTargetGuid |
| bool | m_cleanupDone |
| bool | m_duringRemoveFromWorld |
| bool | _instantCast |
| uint32 | _oldFactionId |
| faction before charm | |
| bool | _isWalkingBeforeCharm |
| Are we walking before we were charmed? | |
| uint16 | _aiAnimKitId |
| uint16 | _movementAnimKitId |
| uint16 | _meleeAnimKitId |
| std::unique_ptr< SpellHistory > | _spellHistory |
| std::unique_ptr< MovementForces > | _movementForces |
| PositionUpdateInfo | _positionUpdateInfo |
| bool | _isCombatDisallowed |
Friends | |
| class | VehicleJoinEvent |
| class | ImmediateMovementGenerator |
| class | CombatManager |
| class | ThreatManager |
Additional Inherited Members | |
Static Protected Member Functions inherited from BaseEntity | |
| static void | BuildEntityFragments (ByteBuffer &data, std::span< WowCS::EntityFragment const > fragments) |
|
protected |
| typedef std::set<Unit*> Unit::AttackerSet |
| typedef std::forward_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<uint32 , AuraApplication*> > Unit::AuraApplicationProcContainer |
| typedef std::forward_list<AuraEffect*> Unit::AuraEffectList |
| typedef std::forward_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::set<AuraApplication*, VisibleAuraSlotCompare> Unit::VisibleAuraContainer |
|
strong |
|
virtual |
Definition at line 397 of file Unit.cpp.
References _DeleteRemovedAuras(), ASSERT, EventProcessor::KillAllEvents(), m_appliedAuras, m_areaTrigger, m_attackers, m_attacking, m_Controlled, m_currentSpells, m_duringRemoveFromWorld, m_dynObj, WorldObject::m_Events, m_gameObj, m_ownedAuras, m_playerMovingMe, m_removedAuras, m_sharedVision, and m_unitMovedByMe.
|
explicitprotected |
Definition at line 309 of file Unit.cpp.
References _instantCast, _isCombatDisallowed, _isWalkingBeforeCharm, _lastExtraAttackSpell, _lastLiquid, _oldFactionId, WowCS::EntityFragmentsHolder::Add(), ALIVE, BASE_MAXDAMAGE, BASE_MINDAMAGE, BASE_PCT, BASE_VALUE, End, FlatNegative, FlatPositive, GHOST_VISIBILITY_ALIVE, m_attacking, m_attackPowerMods, m_attackTimer, m_auraFlatModifiersGroup, m_auraPctModifiersGroup, m_auraUpdateIterator, m_baseAttackSpeed, m_baseSpellCritChance, m_canDualWield, m_canModifyStats, m_cleanupDone, m_currentSpells, m_deathState, m_duringRemoveFromWorld, BaseEntity::m_entityFragments, m_floatStatNegBuff, m_floatStatPosBuff, m_modAttackSpeedPct, m_modMeleeHitChance, m_modRangedHitChance, m_modSpellHitChance, m_movementCounter, BaseEntity::m_objectTypeId, m_ownedAuras, m_reactiveTimer, WorldObject::m_serverSideVisibility, m_speed_rate, m_state, BaseEntity::m_updateFlag, m_weaponDamage, MAX_ATTACK, MAXDAMAGE, MINDAMAGE, CreateObjectBits::MovementUpdate, Pct, SERVERSIDE_VISIBILITY_GHOST, SetFlightCapabilityID(), FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::SetValue(), WowCS::Tag_Unit, TOTAL_PCT, TOTAL_VALUE, TYPEID_UNIT, UNIT_MOD_DAMAGE_OFFHAND, and UNIT_MOD_END.
| void Unit::_addAttacker | ( | Unit * | pAttacker | ) |
Definition at line 3468 of file Unit.cpp.
References _RemoveNoStackAurasDueToAura(), ASSERT, Aura::GetCasterGUID(), BaseEntity::GetGUID(), Aura::GetId(), GetSingleCastAuras(), Aura::GetSpellInfo(), IsDuringRemoveFromWorld(), BaseEntity::IsInWorld(), Aura::IsRemoved(), Aura::IsSingleTarget(), SpellInfo::IsSingleTarget(), m_cleanupDone, m_ownedAuras, SpellInfo::MaxAffectedTargets, and Aura::SetIsSingleTarget().
Referenced by UnitAura::UnitAura().
| void Unit::_ApplyAllAuraStatMods | ( | ) |
Definition at line 4616 of file Unit.cpp.
References AURA_EFFECT_HANDLE_STAT, and m_appliedAuras.
Referenced by Player::_ApplyAllStatBonuses().
| void Unit::_ApplyAura | ( | AuraApplication * | aurApp, |
| uint32 | effMask | ||
| ) |
Definition at line 3563 of file Unit.cpp.
References AuraApplication::_HandleEffect(), _RemoveNoStackAurasDueToAura(), UF::UnitData::AuraState, BaseEntity::ForceUpdateFieldChange(), GainAura, Aura::GetAuraEffects(), SpellInfo::GetAuraState(), AuraApplication::GetBase(), Aura::GetCaster(), Aura::GetId(), AuraApplication::GetRemoveMode(), Aura::GetSpellInfo(), GetStandState(), Aura::HandleAuraSpecificMods(), SpellInfo::HasAuraInterruptFlag(), m_unitData, BaseEntity::m_values, ModifyAuraState(), UF::UpdateFieldHolder::ModifyValue(), PER_CASTER_AURA_STATE_MASK, sConditionMgr, SetStandState(), Standing, Object::ToPlayer(), UNIT_STAND_STATE_SIT, and UNIT_STAND_STATE_STAND.
Referenced by _ApplyAuraEffect().
Definition at line 3549 of file Unit.cpp.
References _ApplyAura(), AuraApplication::_HandleEffect(), ASSERT, Aura::GetApplicationOfTarget(), AuraApplication::GetEffectMask(), BaseEntity::GetGUID(), and Aura::HasEffect().
| AuraApplication * Unit::_CreateAuraApplication | ( | Aura * | aura, |
| uint32 | effMask | ||
| ) |
Definition at line 3507 of file Unit.cpp.
References Aura::_ApplyForTarget(), AddInterruptMask(), ASSERT, SpellInfo::AuraInterruptFlags, SpellInfo::AuraInterruptFlags2, SpellInfo::GetAuraState(), Aura::GetCaster(), Aura::GetDebugInfo(), GetDebugInfo(), BaseEntity::GetGUID(), Aura::GetSpellInfo(), BaseEntity::GetTypeId(), SpellInfo::HasAnyAuraInterruptFlag(), 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 2935 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 12852 of file Unit.cpp.
References Vehicle::AddVehiclePassenger(), ASSERT, ExitVehicle(), Vehicle::GetBase(), AuraApplication::GetBase(), Object::GetEntry(), BaseEntity::GetGUID(), AuraApplication::GetRemoveMode(), WorldObject::GetTransSeat(), BaseEntity::GetTypeId(), GetVehicleKit(), IsAlive(), IsOnVehicle(), m_vehicle, RemoveAura(), RemoveAurasByType(), FormationMgr::RemoveCreatureFromGroup(), SPELL_AURA_CONTROL_VEHICLE, TC_LOG_DEBUG, Object::ToCreature(), Object::ToPlayer(), and TYPEID_PLAYER.
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 12950 of file Unit.cpp.
References AbandonVehicle, AddUnitState(), CanFly(), Creature::DespawnOrUnsummon(), Player::duel, DUEL_FLED, Player::DuelComplete(), EVENT_VEHICLE_EXIT, VehicleSeatAddon::ExitParameter, VehicleSeatAddon::ExitParameterO, VehicleSeatAddon::ExitParameterX, VehicleSeatAddon::ExitParameterY, VehicleSeatAddon::ExitParameterZ, Vehicle::GetBase(), GetCollisionHeight(), getDeathState(), GetDebugInfo(), Vehicle::GetDespawnDelay(), WorldObject::GetMap(), GetMotionMaster(), Position::GetOrientation(), WorldObject::GetPhaseShift(), Position::GetPosition(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Vehicle::GetSeatAddonForSeatOfPassenger(), BaseEntity::GetTypeId(), Map::GetWaterOrGroundLevel(), HasUnitTypeMask(), JUST_DIED, MotionMaster::LaunchMoveSpline(), m_vehicle, MOTION_PRIORITY_HIGHEST, Position::Relocate(), Position::RelocateOffset(), RemoveAurasWithInterruptFlags(), Vehicle::RemovePassenger(), Player::ResummonPetTemporaryUnSummonedIfAny(), SetControlled(), setDeathState(), Player::SetFallInformation(), Position::SetOrientation(), TC_LOG_ERROR, Object::ToCreature(), Object::ToPlayer(), ToTempSummon(), TYPEID_UNIT, UNIT_MASK_ACCESSORY, UNIT_MASK_MINION, UNIT_STATE_MOVE, UNIT_STATE_ROOT, TempSummon::UnSummon(), VehicleExitParamDest, and VehicleExitParamOffset.
Referenced by AuraEffect::HandleAuraControlVehicle(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), and Player::StopCastingCharm().
| void Unit::_RegisterAreaTrigger | ( | AreaTrigger * | areaTrigger | ) |
Definition at line 5474 of file Unit.cpp.
References Creature::AI(), BaseEntity::GetTypeId(), IsAIEnabled(), CreatureAI::JustRegisteredAreaTrigger(), m_areaTrigger, Object::ToCreature(), and TYPEID_UNIT.
Referenced by AreaTrigger::Create().
| void Unit::_RegisterAuraEffect | ( | AuraEffect * | aurEff, |
| bool | apply | ||
| ) |
Definition at line 3753 of file Unit.cpp.
References GainAuraEffect, AuraEffect::GetAuraType(), m_modAuras, Trinity::Containers::Lists::RemoveUnique(), and Object::ToPlayer().
Referenced by AuraEffect::HandleEffect().
| void Unit::_RegisterDynObject | ( | DynamicObject * | dynObj | ) |
Definition at line 5318 of file Unit.cpp.
References Creature::AI(), BaseEntity::GetTypeId(), IsAIEnabled(), CreatureAI::JustRegisteredDynObject(), m_dynObj, Object::ToCreature(), and TYPEID_UNIT.
Referenced by DynamicObject::BindToCaster().
| void Unit::_RemoveAllAuraStatMods | ( | ) |
Definition at line 4610 of file Unit.cpp.
References AURA_EFFECT_HANDLE_STAT, and m_appliedAuras.
Referenced by Player::_RemoveAllStatBonuses().
| void Unit::_removeAttacker | ( | Unit * | pAttacker | ) |
Definition at line 5844 of file Unit.cpp.
References m_attackers.
Referenced by Attack(), and AttackStop().
| void Unit::_RemoveNoStackAurasDueToAura | ( | Aura * | aura, |
| bool | owned | ||
| ) |
Definition at line 3733 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 3405 of file Unit.cpp.
References ASSERT, AURA_REMOVE_BY_DEFAULT, AuraPointsStack, AuraCreateInfo::BaseAmount, AuraCreateInfo::Caster, AuraCreateInfo::CasterGUID, AuraCreateInfo::CastItemGUID, AuraCreateInfo::CastItemId, AuraCreateInfo::CastItemLevel, ObjectGuid::Empty, AuraCreateInfo::GetAuraEffectMask(), SpellInfo::GetEffects(), BaseEntity::GetGUID(), GetOwnedAura(), AuraCreateInfo::GetSpellInfo(), SpellInfo::HasAttribute(), SpellInfo::Id, ObjectGuid::IsEmpty(), SpellInfo::IsMultiSlotAura(), SpellInfo::IsStackableOnOneSlotWithDifferentCasters(), AuraEffect::m_baseAmount, AuraCreateInfo::ResetPeriodicTimer, SPELL_ATTR0_CU_ENCHANT_PROC, and AuraCreateInfo::StackAmount.
Referenced by Aura::TryRefreshStackOrCreate().
| void Unit::_UnapplyAura | ( | AuraApplication * | aurApp, |
| AuraRemoveMode | removeMode | ||
| ) |
Definition at line 3712 of file Unit.cpp.
References _UnapplyAura(), ABORT, ASSERT, Aura::GetApplicationOfTarget(), AuraApplication::GetBase(), BaseEntity::GetGUID(), Aura::GetId(), and m_appliedAuras.
| void Unit::_UnapplyAura | ( | AuraApplicationMap::iterator & | i, |
| AuraRemoveMode | removeMode | ||
| ) |
Definition at line 3620 of file Unit.cpp.
References AuraApplication::_HandleEffect(), AuraApplication::_Remove(), Aura::_UnapplyForTarget(), ASSERT, AURA_REMOVE_BY_EXPIRE, UF::UnitData::AuraState, BaseEntity::ForceUpdateFieldChange(), Aura::GetAuraEffects(), SpellInfo::GetAuraState(), AuraApplication::GetBase(), Aura::GetCaster(), AuraApplication::GetEffectMask(), Aura::GetId(), AuraApplication::GetRemoveMode(), Aura::GetSpellInfo(), AuraApplication::GetTarget(), BaseEntity::GetTypeId(), Aura::HandleAuraSpecificMods(), SpellInfo::HasAnyAuraInterruptFlag(), AuraApplication::HasEffect(), IsTotem(), JUST_DIED, LoseAura, m_appliedAuras, m_auraStateAuras, m_interruptableAuras, m_removedAurasCount, m_unitData, BaseEntity::m_values, ModifyAuraState(), UF::UpdateFieldHolder::ModifyValue(), PER_CASTER_AURA_STATE_MASK, Trinity::Containers::Lists::RemoveUnique(), sConditionMgr, Minion::setDeathState(), AuraApplication::SetRemoveMode(), TC_LOG_DEBUG, Object::ToPlayer(), TOTEM_PASSIVE, ToTotem(), TYPEID_UNIT, and UpdateInterruptMask().
Referenced by Aura::_Remove(), _UnapplyAura(), RemoveAllAuras(), RemoveAllAurasExceptType(), RemoveAllAurasExceptType(), RemoveAllAurasOnDeath(), RemoveAllAurasRequiringDeadTarget(), RemoveAura(), and AuraApplication::UpdateApplyEffectMask().
| void Unit::_UnregisterAreaTrigger | ( | AreaTrigger * | areaTrigger | ) |
Definition at line 5481 of file Unit.cpp.
References Creature::AI(), BaseEntity::GetTypeId(), IsAIEnabled(), CreatureAI::JustUnregisteredAreaTrigger(), m_areaTrigger, Object::ToCreature(), and TYPEID_UNIT.
| void Unit::_UnregisterDynObject | ( | DynamicObject * | dynObj | ) |
Definition at line 5325 of file Unit.cpp.
References Creature::AI(), BaseEntity::GetTypeId(), IsAIEnabled(), CreatureAI::JustUnregisteredDynObject(), m_dynObj, Object::ToCreature(), and TYPEID_UNIT.
Referenced by DynamicObject::UnbindFromCaster().
|
protected |
Definition at line 3008 of file Unit.cpp.
References CURRENT_AUTOREPEAT_SPELL, BaseEntity::GetTypeId(), HasAuraType(), InterruptSpell(), isAttackReady(), SpellInfo::IsAutoShot(), isMoving(), IsNonMeleeSpellCast(), m_currentSpells, Spell::prepare(), RANGED_ATTACK, Spell::SendCastResult(), SPELL_AURA_DISABLE_AUTOATTACK, SPELL_CAST_OK, SPELL_STATE_PREPARING, Object::ToPlayer(), TRIGGERED_IGNORE_GCD, and TYPEID_PLAYER.
Referenced by _UpdateSpells().
|
protected |
Definition at line 2946 of file Unit.cpp.
References _DeleteRemovedAuras(), _spellHistory, _UpdateAutoRepeatSpell(), AURA_REMOVE_BY_CANCEL, AURA_REMOVE_BY_EXPIRE, CURRENT_AUTOREPEAT_SPELL, ObjectGuid::Empty, BaseEntity::GetGUID(), ObjectAccessor::GetWorldObject(), m_auraUpdateIterator, m_currentSpells, m_gameObj, m_ownedAuras, m_visibleAurasToUpdate, RemoveOwnedAura(), SPELL_STATE_FINISHED, and Aura::UpdateOwner().
Referenced by Update().
Definition at line 12356 of file Unit.cpp.
References SpellInfo::GetEffects(), WorldObject::GetMap(), WorldLocation::GetMapId(), SpellInfo::HasAttribute(), SpellInfo::Id, IsAlive(), IsImmunedToSpell(), IsImmunedToSpellEffect(), SpellInfo::IsPassive(), AuraCreateInfo::SetCaster(), SPELL_ATTR2_ALLOW_DEAD_TARGET, SPELL_CAST_SOURCE_NORMAL, and Aura::TryRefreshStackOrCreate().
Definition at line 12344 of file Unit.cpp.
References AddAura(), WorldObject::GetMap(), MAX_EFFECT_MASK, and sSpellMgr.
Referenced by Player::_LoadAuras(), boss_flame_leviathan::boss_flame_leviathanAI::ActiveTower(), AddAura(), Player::ApplyItemDependentAuras(), boss_twilight_halion::boss_twilight_halion(), boss_veknilash::boss_veknilashAI::CastSpellOnBug(), boss_veklor::boss_veklorAI::CastSpellOnBug(), boss_lady_deathwhisper::DamageTaken(), boss_steelbreaker::boss_steelbreakerAI::DoAction(), boss_runemaster_molgeim::boss_runemaster_molgeimAI::DoAction(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), AreaTrigger::DoActions(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::EnterEvadeMode(), npc_anubisath_sentinel::aqsentinelAI::GainSentinelAbility(), misc_commandscript::HandleAuraCommand(), Aura::HandleAuraSpecificMods(), spell_thaddius_magnetic_pull::HandleCast(), deserter_commandscript::HandleDeserterAdd(), misc_commandscript::HandleFreezeCommand(), gm_commandscript::HandleGMVisibleCommand(), Player::HandlePassiveSpellLearn(), spell_thaddius_polarity_charge::HandleTargets(), spell_gen_trigger_exclude_caster_aura_spell::HandleTrigger(), spell_gen_trigger_exclude_target_aura_spell::HandleTrigger(), Guardian::InitStatsForLevel(), boss_twin_baseAI::JustEngagedWith(), boss_drakkari_elemental::JustEngagedWith(), boss_halion::JustEngagedWith(), boss_twilight_halion::JustEngagedWith(), boss_freya::boss_freyaAI::JustEngagedWith(), Creature::LoadCreaturesAddon(), npc_flame_tsunami::npc_flame_tsunami(), BattlefieldWG::OnCreatureCreate(), spell_warl_soul_swap_exhale::OnEffectHit(), go_blackfathom_altar::OnGossipHello(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnPlayerEnter(), BattlefieldWG::OnPlayerEnterZone(), AreaTrigger_at_area_52_entrance::OnTrigger(), boss_baleroc::PreparePhase(), npc_lake_frog::ReceiveEmote(), spell_putricide_slime_puddle_aura::ReplaceAura(), npc_troll_volunteer::Reset(), npc_acolyte_of_shadron::Reset(), npc_acolyte_of_vesperon::Reset(), npc_twilight_eggs::Reset(), npc_twilight_fissure::Reset(), npc_vengeful_shade::Reset(), boss_magus_telestra::Reset(), SetAuraStack(), boss_gyth::UpdateAI(), boss_netherspite::boss_netherspiteAI::UpdateAI(), npc_tiger_matriarch_credit::UpdateAI(), npc_tiger_matriarch::UpdateAI(), npc_frostwing_ymirjar_vrykul::UpdateAI(), boss_elder_brightleaf::boss_elder_brightleafAI::UpdateAI(), npc_ancient_conservator::npc_ancient_conservatorAI::UpdateAI(), npc_scorch_ground::npc_scorch_groundAI::UpdateAI(), and boss_netherspite::boss_netherspiteAI::UpdatePortals().
| void Unit::AddChannelObject | ( | ObjectGuid | guid | ) |
Definition at line 3046 of file Unit.cpp.
References BaseEntity::AddDynamicUpdateFieldValue(), UF::UnitData::ChannelObjects, m_unitData, BaseEntity::m_values, and UF::UpdateFieldHolder::ModifyValue().
Referenced by Spell::EffectPersistentAA(), and Spell::SendChannelStart().
| void Unit::AddExtraAttacks | ( | uint32 | count | ) |
Definition at line 2363 of file Unit.cpp.
References _lastDamagedTargetGuid, extraAttacksTargets, GetTarget(), and ObjectGuid::IsEmpty().
Referenced by Spell::EffectAddExtraAttacks().
| void Unit::AddGameObject | ( | GameObject * | gameObj | ) |
Definition at line 5385 of file Unit.cpp.
References Creature::AI(), BaseEntity::GetGUID(), WorldObject::GetMap(), GameObject::GetOwnerGUID(), GetSpellHistory(), GameObject::GetSpellId(), BaseEntity::GetTypeId(), IsAIEnabled(), SpellInfo::IsCooldownStartedOnEvent(), ObjectGuid::IsEmpty(), CreatureAI::JustSummonedGameobject(), m_gameObj, GameObject::SetOwnerGUID(), sSpellMgr, SpellHistory::StartCooldown(), Object::ToCreature(), and TYPEID_UNIT.
Referenced by Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectTransmitted(), and WorldObject::SummonGameObject().
|
inline |
| void Unit::AddPlayerToVision | ( | Player * | player | ) |
Definition at line 6729 of file Unit.cpp.
References m_sharedVision, WorldObject::setActive(), and WorldObject::SetIsStoredInWorldObjectGridContainer().
|
overridevirtual |
Reimplemented from Object.
Definition at line 10301 of file Unit.cpp.
References WorldObject::AddToWorld(), EnterWorld, i_motionMaster, and RemoveAurasWithInterruptFlags().
Referenced by Creature::AddToWorld(), Pet::AddToWorld(), and Player::AddToWorld().
|
inline |
Definition at line 1759 of file Unit.h.
Referenced by Vehicle::InitMovementInfoForBase(), npc_chained_spirit::npc_chained_spirit(), npc_azure_ring_captain::Reset(), Player::ResurrectPlayer(), SetAlwaysAllowPitching(), SetCanAdvFly(), SetCanDoubleJump(), SetCanFly(), SetCanTransitionBetweenSwimAndFly(), SetCanTurnWhileFalling(), SetCollision(), SetDisableGravity(), SetDisableInertia(), SetEnableFullSpeedPitching(), SetEnableFullSpeedTurning(), SetFall(), SetFeatherFall(), SetHover(), SetIgnoreMovementForces(), SetJumpingDisabled(), SetMoveCantSwim(), SetRooted(), SetStrafingDisabled(), SetSwim(), SetWalk(), SetWaterWalking(), and boss_krick::UpdateAI().
|
inline |
Definition at line 754 of file Unit.h.
Referenced by _ExitVehicle(), MotionMaster::AddBaseUnitState(), Attack(), boss_ichoron::boss_ichoron(), Creature::Create(), Transport::CreateNPCPassenger(), boss_black_knight::boss_black_knightAI::DamageTaken(), npc_altar_altercation_ariok::DoAction(), SmartAI::EnterEvadeMode(), firelands_bossAI::EnterEvadeMode(), boss_blood_queen_lana_thel::EnterEvadeMode(), npc_daegarn::EnterEvadeMode(), CreatureAI::EnterEvadeMode(), AuraEffect::HandleFeignDeath(), spell_aqusirr_surging_rush::HandleScript(), PointMovementGenerator::Initialize(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::InitializeAI(), spell_alysrazor_turn_monstrosity::spell_alysrazor_turn_monstrosity_SpellScript::KnockBarrage(), FormationMovementGenerator::LaunchMovement(), spell_systems_shutdown::spell_systems_shutdown_AuraScript::OnApply(), spell_rokmora_emerge_aura::OnApply(), scene_auchindoun_soulbinder_nyami::OnSceneStart(), scene_maiden_of_virtue_outro::OnSceneStart(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::Reset(), SplineChainMovementGenerator::SendPathSpline(), boss_twinemperorsAI::SetAfterTeleport(), SetCharmedBy(), Player::SetContestedPvP(), SetControlled(), SetCurrentCastSpell(), Creature::SetSpellFocus(), HomeMovementGenerator< T >::SetTargetLocation(), FleeingMovementGenerator::SetTargetLocation(), Transport::SummonPassenger(), boss_twinemperorsAI::TryActivateAfterTTelep(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), PointMovementGenerator::Update(), boss_black_knight::boss_black_knightAI::UpdateAI(), npc_general_arlos::WaypointPathEnded(), and npc_leryssa::WaypointPathEnded().
|
inline |
Definition at line 760 of file Unit.h.
Referenced by Vehicle::InstallAccessory().
| void Unit::AddWorldEffect | ( | int32 | worldEffectId | ) |
Definition at line 14706 of file Unit.cpp.
References BaseEntity::AddDynamicUpdateFieldValue(), m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), and UF::UnitData::WorldEffects.
| void Unit::AIUpdateTick | ( | uint32 | diff | ) |
Definition at line 10223 of file Unit.cpp.
References GetAI(), and m_aiLocked.
Referenced by Creature::Update(), and Player::Update().
| void Unit::ApplyAttackTimePercentMod | ( | WeaponAttackType | att, |
| float | val, | ||
| bool | apply | ||
| ) |
Definition at line 11034 of file Unit.cpp.
References ApplyPercentModFloatVar(), BaseEntity::ApplyPercentModUpdateFieldValue(), BASE_ATTACK, m_attackTimer, m_baseAttackSpeed, m_modAttackSpeedPct, m_unitData, BaseEntity::m_values, UF::UnitData::ModHaste, UF::UpdateFieldHolder::ModifyValue(), UF::UnitData::ModRangedHaste, RANGED_ATTACK, and UpdateAttackTimeField().
Referenced by AuraEffect::HandleModAttackSpeed(), AuraEffect::HandleModMeleeHaste(), AuraEffect::HandleModMeleeHasteNoRegen(), AuraEffect::HandleModMeleeRangedCastingHaste(), AuraEffect::HandleModMeleeRangedCastingSlowNoStack(), AuraEffect::HandleModMeleeRangedHaste(), AuraEffect::HandleModMeleeRangedHasteNoRegen(), AuraEffect::HandleModMeleeSlowNoStack(), AuraEffect::HandleModRangedHaste(), AuraEffect::HandleModRangedHasteNoRegen(), AuraEffect::HandleModRangedSlowNoStack(), and Player::UpdateRating().
| void Unit::ApplyCastTimePercentMod | ( | float | val, |
| bool | apply | ||
| ) |
Definition at line 11060 of file Unit.cpp.
References BaseEntity::ApplyPercentModUpdateFieldValue(), m_unitData, BaseEntity::m_values, UF::UnitData::ModCastingSpeed, UF::UnitData::ModCastingSpeedNeg, and UF::UpdateFieldHolder::ModifyValue().
Referenced by AuraEffect::HandleModCastingSlowNoStack(), AuraEffect::HandleModCastingSpeed(), AuraEffect::HandleModMeleeRangedCastingHaste(), AuraEffect::HandleModMeleeRangedCastingSlowNoStack(), AuraEffect::HandleModSpellSlowNoStack(), and Player::UpdateRating().
| void Unit::ApplyControlStatesIfNeeded | ( | ) |
Definition at line 11712 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_ROOT_2, SPELL_AURA_MOD_ROOT_DISABLE_GRAVITY, SPELL_AURA_MOD_STUN, SPELL_AURA_MOD_STUN_DISABLE_GRAVITY, 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 9455 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, |
| int32 & | duration, | ||
| WorldObject * | caster, | ||
| DiminishingLevels | previousLevel | ||
| ) | const |
Definition at line 9374 of file Unit.cpp.
References CREATURE_FLAG_EXTRA_OBEYS_TAUNT_DIMINISHING_RETURNS, DIMINISHING_AOE_KNOCKBACK, 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(), BaseEntity::GetTypeId(), IsAffectedByDiminishingReturns(), Object::ToCreature(), TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by HasStrongerAuraWithDR(), and Spell::PreprocessSpellHit().
| void Unit::ApplyHasteRegenPercentMod | ( | float | val, |
| bool | apply | ||
| ) |
Definition at line 11081 of file Unit.cpp.
References BaseEntity::ApplyPercentModUpdateFieldValue(), GetPowerTypes(), m_unitData, BaseEntity::m_values, UF::UnitData::ModHasteRegen, UF::UpdateFieldHolder::ModifyValue(), RegenAffectedByHaste, sDB2Manager, and Object::ToPlayer().
Referenced by AuraEffect::HandleModMeleeHaste(), AuraEffect::HandleModMeleeRangedCastingHaste(), AuraEffect::HandleModMeleeRangedHaste(), AuraEffect::HandleModRangedHaste(), and Player::UpdateRating().
| void Unit::ApplyInertia | ( | int32 | id, |
| Milliseconds | duration | ||
| ) |
Definition at line 14254 of file Unit.cpp.
References BaseEntity::GetGUID(), GetPlayerMovingMe(), MovementInfo::Inertia::id, MovementInfo::inertia, WorldPackets::Movement::MoveApplyInertia::InertiaID, WorldPackets::Movement::MoveUpdateApplyInertia::InertiaID, MovementInfo::Inertia::lifetime, WorldPackets::Movement::MoveApplyInertia::LifetimeMs, WorldPackets::Movement::MoveUpdateApplyInertia::LifetimeMs, m_movementCounter, WorldObject::m_movementInfo, WorldPackets::Movement::MoveApplyInertia::MoverGUID, WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveApplyInertia::SequenceIndex, WorldPackets::Movement::MoveUpdateApplyInertia::Status, WorldPackets::Movement::MoveApplyInertia::Write(), and WorldPackets::Movement::MoveUpdateApplyInertia::Write().
|
inline |
Definition at line 842 of file Unit.h.
References m_unitData, and UF::UnitData::ManaCostModifier.
Referenced by AuraEffect::HandleModPowerCost().
|
inline |
Definition at line 841 of file Unit.h.
References m_unitData, and UF::UnitData::ManaCostMultiplier.
Referenced by AuraEffect::HandleModManaCostPct().
| void Unit::ApplyMovementForce | ( | ObjectGuid | id, |
| Position | origin, | ||
| float | magnitude, | ||
| MovementForceType | type, | ||
| Position | direction = {}, |
||
| ObjectGuid | transportGuid = ObjectGuid::Empty |
||
| ) |
Definition at line 14128 of file Unit.cpp.
References _movementForces, MovementForce::Direction, WorldPackets::Movement::MoveApplyMovementForce::Force, WorldPackets::Movement::MoveUpdateApplyMovementForce::Force, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), GetPlayerMovingMe(), MovementForce::ID, ObjectGuid::IsMOTransport(), m_movementCounter, WorldObject::m_movementInfo, MovementForce::Magnitude, WorldPackets::Movement::MoveApplyMovementForce::MoverGUID, MovementForce::Origin, WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveApplyMovementForce::SequenceIndex, WorldPackets::Movement::MoveUpdateApplyMovementForce::Status, MovementForce::TransportID, MovementForce::Type, WorldPackets::Movement::MoveApplyMovementForce::Write(), and WorldPackets::Movement::MoveUpdateApplyMovementForce::Write().
Referenced by at_leymor_arcane_eruption::OnUnitEnter(), at_azhiccar_devour_force::OnUnitEnter(), and at_aqusirr_undertow::OnUnitEnter().
Definition at line 12490 of file Unit.cpp.
References GetDamageReduction(), WorldObject::GetOwner(), BaseEntity::GetTypeId(), IsVehicle(), and TYPEID_PLAYER.
Referenced by CalculateMeleeDamage(), CalculateSpellDamageTaken(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
| void Unit::ApplySpellHastePercentMod | ( | float | val, |
| bool | apply | ||
| ) |
Definition at line 11073 of file Unit.cpp.
References BaseEntity::ApplyPercentModUpdateFieldValue(), m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), and UF::UnitData::ModSpellHaste.
Referenced by AuraEffect::HandleModCastingSpeed(), AuraEffect::HandleModMeleeRangedCastingHaste(), AuraEffect::HandleModSpellSlowNoStack(), and Player::UpdateRating().
| void Unit::ApplySpellImmune | ( | uint32 | spellId, |
| SpellImmunity | op, | ||
| uint32 | type, | ||
| bool | apply | ||
| ) |
Definition at line 8261 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_gen_comfortable_riders_barding::HandleEffect(), 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 9642 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::HandleAuraModIncreaseBaseManaPercent(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModMaxPowerPct(), and AuraEffect::HandleModPercentStat().
|
inlineprotectedvirtual |
Reimplemented in Creature.
Definition at line 1998 of file Unit.h.
Referenced by Creature::AtDisengage(), and CombatManager::UpdateOwnerCombatState().
| void Unit::AtEndOfEncounter | ( | EncounterType | type | ) |
Definition at line 573 of file Unit.cpp.
References SpellInfo::CategoryId, DIFFICULTY_NONE, DungeonEncounter, EndOfEncounter, EndOfRaidEncounterAndStartOfMythicPlus, WorldObject::GetMap(), GetSpellHistory(), SpellInfo::HasAttribute(), RemoveAurasWithInterruptFlags(), SpellHistory::ResetCooldowns(), ResetCooldownUponEndingEncounter, SPELL_ATTR10_RESET_COOLDOWN_ON_ENCOUNTER_END, SpellHistory::CooldownEntry::SpellId, sSpellCategoryStore, and sSpellMgr.
Referenced by Battleground::RemovePlayerAtLeave(), and InstanceScript::SetBossState().
|
protectedvirtual |
Reimplemented in Creature.
Definition at line 9277 of file Unit.cpp.
References DISTRACT_MOTION_TYPE, GetMotionMaster(), HasUnitState(), MotionMaster::Remove(), and UNIT_STATE_DISTRACTED.
Referenced by Creature::AtEngage(), and CombatManager::UpdateOwnerCombatState().
|
protectedvirtual |
Reimplemented in Player.
Definition at line 9235 of file Unit.cpp.
References Aura::CallScriptEnterLeaveCombatHandlers(), Combat, CURRENT_GENERIC_SPELL, EnteringCombat, AuraApplication::GetBase(), InterruptSpell(), IsInteractionAllowedInCombat(), m_appliedAuras, m_currentSpells, PROC_FLAG_ENTER_COMBAT, PROC_FLAG_NONE, PROC_HIT_NONE, PROC_SPELL_PHASE_NONE, PROC_SPELL_TYPE_MASK_ALL, ProcSkillsAndAuras(), RemoveAurasWithInterruptFlags(), SPELL_ATTR0_NOT_IN_COMBAT_ONLY_PEACEFUL, SPELL_AURA_MOUNTED, SPELL_STATE_PREPARING, and UpdateNearbyPlayersInteractions().
Referenced by Player::AtEnterCombat(), and CombatManager::UpdateOwnerCombatState().
|
protectedvirtual |
Reimplemented in Player.
Definition at line 9259 of file Unit.cpp.
References SpellHistory::AtExitCombat(), Aura::CallScriptEnterLeaveCombatHandlers(), AuraApplication::GetBase(), GetSpellHistory(), IsInteractionAllowedInCombat(), LeavingCombat, m_appliedAuras, RemoveAurasWithInterruptFlags(), and UpdateNearbyPlayersInteractions().
Referenced by Player::AtExitCombat(), and CombatManager::UpdateOwnerCombatState().
| void Unit::AtStartOfEncounter | ( | EncounterType | type | ) |
Definition at line 548 of file Unit.cpp.
References Battleground, ChallengeModeStart, DungeonEncounter, EndOfRaidEncounterAndStartOfMythicPlus, WorldObject::GetMap(), IsAlive(), MythicPlusRun, PROC_FLAG_ENCOUNTER_START, PROC_FLAG_NONE, PROC_HIT_NONE, PROC_SPELL_PHASE_NONE, PROC_SPELL_TYPE_MASK_ALL, ProcSkillsAndAuras(), RemoveAurasWithInterruptFlags(), StartOfEncounter, and StartOfRaidEncounterAndStartOfMythicPlus.
Referenced by InstanceScript::SetBossState().
| bool Unit::Attack | ( | Unit * | victim, |
| bool | meleeAttack | ||
| ) |
Definition at line 5872 of file Unit.cpp.
References _addAttacker(), _removeAttacker(), AddUnitState(), AI_REACTION_HOSTILE, BASE_ATTACK, CalculatePct(), Creature::CallAssistance(), ClearUnitState(), CreateObjectBits::CombatVictim, CURRENT_MELEE_SPELL, EMOTE_ONESHOT_NONE, EngageWithTarget(), getAttackTimer(), GetBaseAttackTime(), BaseEntity::GetGUID(), BaseEntity::GetTypeId(), HasAuraType(), HasUnitState(), haveOffhandWeapon(), InterruptSpell(), IsAlive(), IsControlledByPlayer(), Creature::IsEvadingAttacks(), Player::IsGameMaster(), Creature::IsInEvadeMode(), BaseEntity::IsInWorld(), IsMounted(), m_attacking, m_Controlled, BaseEntity::m_updateFlag, OFF_ATTACK, RemoveAurasByType(), Creature::SendAIReaction(), SendMeleeAttackStart(), SendMeleeAttackStop(), setAttackTimer(), SetEmoteState(), SetStandState(), SetTarget(), SPELL_AURA_MOD_UNATTACKABLE, Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, UNIT_STAND_STATE_STAND, and UNIT_STATE_MELEE_ATTACKING.
Referenced by npc_elwynn_forest_wolf::_ScheduleBeforeChasingEvents(), boss_novos::AttackStart(), npc_gunship_gunner::AttackStart(), UnitAI::AttackStart(), CreatureAI::AttackStart(), boss_tyrannus::AttackStart(), boss_lady_deathwhisper::AttackStart(), TurretAI::AttackStart(), SmartAI::AttackStart(), npc_hearthglen_crusader::AttackStart(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::AttackStart(), boss_veklor::boss_veklorAI::AttackStart(), boss_faction_championsAI::AttackStart(), UnitAI::AttackStartCaster(), ScriptedAI::AttackStartNoMove(), npc_ball_of_flame::DoAction(), PetAI::DoAttack(), Spell::EffectCharge(), WorldSession::HandleAttackSwingOpcode(), WorldSession::HandlePetActionHelper(), npc_pet_dk_ebon_gargoyle::InitializeAI(), npc_devout_follower::npc_devout_followerAI::IsSummonedBy(), npc_silverpine_skitterweb_matriarch::JustSummoned(), npc_necromancer::npc_necromancerAI::JustSummoned(), boss_kologarn::boss_kologarnAI::JustSummoned(), dummy_dragonAI::MovementInform(), TriggerAI::NullCreatureAI(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::OnGossipSelect(), npc_silverpine_skitterweb_matriarch::ScheduleCombatEvents(), and npc_gargoyle::npc_gargoyleAI::UpdateAI().
| void Unit::AttackerStateUpdate | ( | Unit * | victim, |
| WeaponAttackType | attType = BASE_ATTACK, |
||
| bool | extra = false |
||
| ) |
Definition at line 2251 of file Unit.cpp.
References _lastDamagedTargetGuid, _lastExtraAttackSpell, CalcDamageInfo::Absorb, CalcDamageInfo::Attacker, Attacking, AtTargetAttacked(), BASE_ATTACK, CalcDamageInfo::Blocked, CalcMeleeAttackRageGain(), CalculateMeleeDamage(), CastSpell, CURRENT_MELEE_SPELL, CalcDamageInfo::Damage, DealDamageMods(), DealMeleeDamage(), GetAuraEffectsByType(), BaseEntity::GetGUID(), DamageInfo::GetHitMask(), GetMeleeDamageSchoolMask(), GetMeleeHitRedirectTarget(), GetPowerType(), HasAuraType(), HasUnitFlag(), HasUnitState(), CalcDamageInfo::HitInfo, HITINFO_AFFECTS_VICTIM, HITINFO_FAKE_DAMAGE, HITINFO_NO_ANIMATION, HITINFO_OFFHAND, HITINFO_RAGE_GAIN, CalcDamageInfo::HitOutCome, IsAlive(), WorldObject::IsWithinLOSInMap(), m_currentSpells, MELEE_HIT_MISS, OFF_ATTACK, POWER_RAGE, PROC_SPELL_PHASE_NONE, PROC_SPELL_TYPE_NONE, CalcDamageInfo::ProcAttacker, ProcSkillsAndAuras(), CalcDamageInfo::ProcVictim, CalcDamageInfo::RageGained, RemoveAurasWithInterruptFlags(), CalcDamageInfo::Resist, RewardRage(), SendAttackStateUpdate(), SPELL_AURA_DISABLE_ATTACKING_EXCEPT_ABILITIES, SPELL_AURA_DISABLE_AUTOATTACK, SPELL_AURA_OVERRIDE_AUTOATTACK_WITH_MELEE_SPELL, CalcDamageInfo::Target, TC_LOG_DEBUG, Object::ToCreature(), ObjectGuid::ToString(), Position::ToString(), UNIT_FLAG_PACIFIED, UNIT_STATE_CANNOT_AUTOATTACK, and VICTIMSTATE_HIT.
Referenced by DoMeleeAttackIfReady(), and HandleProcExtraAttackFor().
| bool Unit::AttackStop | ( | ) |
Definition at line 5984 of file Unit.cpp.
References _removeAttacker(), ClearUnitState(), CreateObjectBits::CombatVictim, CURRENT_MELEE_SPELL, ObjectGuid::Empty, InterruptSpell(), m_attacking, BaseEntity::m_updateFlag, SendMeleeAttackStop(), SetTarget(), Object::ToCreature(), and UNIT_STATE_MELEE_ATTACKING.
Referenced by spell_the_lich_king_ice_burst_target_search::CheckTargetCount(), CombatStop(), boss_the_lich_king::DamageTaken(), boss_garothi_worldbreaker::DamageTaken(), npc_felblood_kaelthas_phoenix::DamageTaken(), npc_ohgan::DamageTaken(), boss_earthrager_ptah::DamageTaken(), boss_temple_guardian_anhuur::DamageTaken(), HeartsbaneTriadSharedAI::DamageTaken(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), boss_algalon_the_observer::DamageTaken(), npc_feral_defender::DamageTaken(), boss_ymiron::DamageTaken(), boss_essence_of_suffering::DamageTaken(), boss_essence_of_desire::DamageTaken(), boss_felblood_kaelthas::DamageTaken(), npc_death_knight_initiate::npc_death_knight_initiateAI::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_vx_001::boss_vx_001AI::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), boss_shade_of_medivh::DoAction(), boss_professor_putricide::DoAction(), npc_raging_spirit::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_parasitic_shadowfiend::DoAction(), boss_illidan_stormrage::DoAction(), npc_akama_illidan::DoAction(), npc_maiev::DoAction(), ScriptedAI::DoStopAttack(), Player::DuelComplete(), SmartAI::EnterEvadeMode(), boss_icehowl::ExecuteEvent(), boss_xt002::ExposeHeart(), Spell::finish(), boss_thorim::boss_thorimAI::FinishEncounter(), WorldSession::HandleAttackStopOpcode(), HeartsbaneTriadSharedAI::HandleClaimIris(), spell_hun_scatter_shot::HandleDummy(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleModUnattackable(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetStopAttack(), spell_mandokir_devastating_slam::HandleScript(), spell_soulbound_goliath_burning_brush::HandleScript(), npc_enslaved_soul::HandleSoulRelease(), boss_freya::boss_freyaAI::JustDied(), npc_silverpine_skitterweb_matriarch::JustEngagedWith(), PetAI::KilledUnit(), npc_snobold_vassal::MountOnBoss(), SimpleCharmedPlayerAI::OnCharmed(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::OnHealthDepleted(), RemoveCharmedBy(), SetCharmedBy(), npc_zombie_chow::SetData(), boss_hadronox::SetStep(), boss_attumen::boss_attumenAI::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), boss_ionar::SpellHit(), npc_sif::npc_sifAI::SpellHit(), boss_headless_horseman::StartPhase(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), PetAI::StopAttack(), StopAttackFaction(), boss_jormungarAI::Submerge(), SimpleCharmedPlayerAI::UpdateAI(), boss_argaloth::UpdateAI(), boss_felblood_kaelthas::UpdateAI(), boss_kalecgos::UpdateAI(), boss_lockmaw::UpdateAI(), npc_lockmaw_augh_add::UpdateAI(), boss_onyxia::UpdateAI(), npc_qiraj_war_spawn::npc_qiraj_war_spawnAI::UpdateAI(), boss_corborus::boss_corborusAI::UpdateAI(), boss_ozruk::boss_ozrukAI::UpdateAI(), boss_slabhide::boss_slabhideAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_saviana_ragefire::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), boss_garfrost::UpdateAI(), boss_sindragosa::UpdateAI(), npc_rimefang_icc::UpdateAI(), boss_the_lich_king::UpdateAI(), boss_gluth::UpdateAI(), boss_gothik::UpdateAI(), boss_heigan::UpdateAI(), boss_noth::UpdateAI(), boss_sapphiron::UpdateAI(), boss_malygos::UpdateAI(), boss_urom::UpdateAI(), boss_volkhan::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), boss_hodir::UpdateAI(), boss_svala::UpdateAI(), npc_akama_illidan::UpdateAI(), boss_magtheridon::UpdateAI(), boss_kaelthas::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::UpdateAI(), boss_remnant_of_a_fallen_king::UpdateAI(), PossessedAI::UpdateAI(), CreatureAI::UpdateVictim(), npc_pet_mage_mirror_image::UpdateVictim(), and ValidateAttackersAndOwnTarget().
| void Unit::AtTargetAttacked | ( | Unit * | target, |
| bool | canInitialAggro | ||
| ) |
Definition at line 9283 of file Unit.cpp.
References Player::duel, EngageWithTarget(), GetCharmerOrOwner(), WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), IsEngaged(), PvPActive, RemoveAurasWithInterruptFlags(), Player::SetContestedPvP(), and Player::UpdatePvP().
Referenced by AttackerStateUpdate().
Definition at line 6154 of file Unit.cpp.
References BaseEntity::GetGUID(), m_auraStateAuras, m_unitData, and PER_CASTER_AURA_STATE_MASK.
Referenced by UF::ViewerDependentValue< UF::UnitData::AuraStateTag >::GetValue().
|
static |
Definition at line 1866 of file Unit.cpp.
References SpellNonMeleeDamage::absorb, DamageInfo::AbsorbDamage(), WorldPackets::CombatLog::SpellAbsorbLog::Absorbed, WorldPackets::CombatLog::SpellAbsorbLog::AbsorbedSpellID, WorldPackets::CombatLog::SpellAbsorbLog::AbsorbSpellID, WorldPackets::CombatLog::SpellAbsorbLog::Attacker, AURA_REMOVE_BY_ENEMY_SPELL, BASE_ATTACK, CalcSpellResistedDamage(), CalculatePct(), SpellEffectInfo::CalcValueMultiplier(), Aura::CallScriptEffectAbsorbHandlers(), Aura::CallScriptEffectAfterAbsorbHandlers(), Aura::CallScriptEffectAfterManaShieldHandlers(), Aura::CallScriptEffectManaShieldHandlers(), Spell::CallScriptOnResistAbsorbCalculateHandlers(), WorldPackets::CombatLog::SpellAbsorbLog::Caster, AuraEffect::ChangeAmount(), CopyAuraEffectList(), SpellNonMeleeDamage::damage, DealDamage(), DealDamageMods(), DIRECT_DAMAGE, DOT, ObjectGuid::Empty, AuraEffect::GetAmount(), AuraEffect::GetAmountAsInt(), Aura::GetApplicationOfTarget(), DamageInfo::GetAttacker(), GetAuraEffectsByType(), AuraEffect::GetBase(), AuraApplication::GetBase(), AuraEffect::GetCaster(), Aura::GetCasterGUID(), DamageInfo::GetDamage(), DamageInfo::GetDamageType(), BaseEntity::GetGUID(), AuraEffect::GetId(), GetMaxPositiveAuraModifierByMiscMask(), AuraEffect::GetMiscValue(), DamageInfo::GetOriginalDamage(), DamageInfo::GetSchoolMask(), AuraEffect::GetSpellEffectInfo(), DamageInfo::GetSpellInfo(), AuraEffect::GetSpellInfo(), DamageInfo::GetVictim(), SpellInfo::HasAttribute(), SpellNonMeleeDamage::HitInfo, SpellInfo::Id, WorldPackets::Spells::SpellCastLogData::Initialize(), IsAlive(), IsImmunedToDamage(), BaseEntity::IsInWorld(), WorldPackets::CombatLog::CombatLogServerPacket::LogData, MELEE_HIT_NORMAL, DamageInfo::ModifyDamage(), ModifyPower(), SpellNonMeleeDamage::originalDamage, WorldPackets::CombatLog::SpellAbsorbLog::OriginalDamage, SpellNonMeleeDamage::periodicLog, POWER_MANA, PROC_FLAG_NONE, PROC_FLAG_TAKE_HARMFUL_SPELL, PROC_HIT_NONE, PROC_SPELL_PHASE_HIT, PROC_SPELL_TYPE_DAMAGE, ProcSkillsAndAuras(), Aura::Remove(), DamageInfo::ResistDamage(), RoundToInterval(), WorldObject::SendCombatLogMessage(), WorldObject::SendSpellMiss(), SendSpellNonMeleeDamageLog(), SPELL_ATTR6_ABSORB_CANNOT_BE_IGNORE, SPELL_AURA_MANA_SHIELD, SPELL_AURA_MOD_TARGET_ABSORB_SCHOOL, SPELL_AURA_SCHOOL_ABSORB, SPELL_AURA_SPLIT_DAMAGE_PCT, SPELL_HIT_TYPE_SPLIT, SPELL_MISS_IMMUNE, Object::ToCreature(), and WorldPackets::CombatLog::SpellAbsorbLog::Victim.
Referenced by CalculateMeleeDamage(), CalculateSpellDamageTaken(), DealMeleeDamage(), Spell::EffectEnvironmentalDMG(), Spell::EffectHealthLeech(), Player::EnvironmentalDamage(), misc_commandscript::HandleDamageCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
|
static |
Definition at line 1689 of file Unit.cpp.
References AddPct(), ArmorConstant, ArmorItemLevelDiminishing, ASSERT_NOTNULL, AsUnderlyingType(), CalculatePct(), CLASS_NONE, CONFIG_EXPANSION, CR_ARMOR_PENETRATION, EquippedBase, GetArmor(), GetArmorMultiplierForTarget(), GetAuraEffectsByType(), WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), GetClass(), BaseEntity::GetGUID(), GetLevelForTarget(), GetMaxLevelForExpansion(), Player::GetRatingBonusValue(), AuraEffect::GetSpellInfo(), WorldObject::GetSpellModOwner(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), BaseEntity::GetTypeId(), Player::GetWeaponForAttack(), SpellInfo::IsItemFitToSpellRequirements(), RoundToInterval(), sDB2Manager, sItemLevelByLevelTable, SPELL_AURA_BYPASS_ARMOR_FOR_CASTER, SPELL_AURA_MOD_ARMOR_PENETRATION_PCT, SPELL_AURA_MOD_IGNORE_TARGET_RESIST, SPELL_AURA_MOD_TARGET_RESISTANCE, SPELL_SCHOOL_MASK_NORMAL, sWorld, TargetResistance, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by CalcSpellResistedDamage(), CalculateMeleeDamage(), CalculateSpellDamageTaken(), misc_commandscript::HandleDamageCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
|
static |
Definition at line 2099 of file Unit.cpp.
References WorldPackets::CombatLog::SpellHealAbsorbLog::AbsorbCaster, WorldPackets::CombatLog::SpellHealAbsorbLog::Absorbed, WorldPackets::CombatLog::SpellHealAbsorbLog::AbsorbedSpellID, HealInfo::AbsorbHeal(), WorldPackets::CombatLog::SpellHealAbsorbLog::AbsorbSpellID, AURA_REMOVE_BY_ENEMY_SPELL, Aura::CallScriptEffectAbsorbHandlers(), Aura::CallScriptEffectAfterAbsorbHandlers(), AuraEffect::ChangeAmount(), CopyAuraEffectList(), ObjectGuid::Empty, AuraEffect::GetAmount(), AuraEffect::GetAmountAsInt(), Aura::GetApplicationOfTarget(), GetAuraEffectsByType(), AuraEffect::GetBase(), Aura::GetCasterGUID(), BaseEntity::GetGUID(), HealInfo::GetHeal(), HealInfo::GetHealer(), AuraEffect::GetId(), AuraEffect::GetMiscValue(), HealInfo::GetOriginalHeal(), HealInfo::GetSchoolMask(), HealInfo::GetSpellInfo(), HealInfo::GetTarget(), WorldPackets::CombatLog::SpellHealAbsorbLog::Healer, SpellInfo::Id, WorldPackets::Spells::SpellCastLogData::Initialize(), WorldPackets::CombatLog::CombatLogServerPacket::LogData, WorldPackets::CombatLog::SpellHealAbsorbLog::OriginalHeal, Aura::Remove(), RoundToInterval(), WorldObject::SendCombatLogMessage(), SPELL_AURA_SCHOOL_HEAL_ABSORB, and WorldPackets::CombatLog::SpellHealAbsorbLog::Target.
Referenced by AuraEffect::HandlePeriodicHealAurasTick(), and HealBySpell().
|
static |
Definition at line 1780 of file Unit.cpp.
References ApplyPct(), CalcArmorReducedDamage(), CalculateAverageResistReduction(), SpellInfo::GetAttackType(), GetTotalAuraModifierByMiscMask(), BaseEntity::GetTypeId(), SpellInfo::HasAttribute(), rand_norm(), SPELL_ATTR0_CU_SCHOOLMASK_NORMAL_WITH_MAGIC, 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().
Definition at line 12512 of file Unit.cpp.
References GetTotalAuraMultiplierByMiscMask(), 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 1838 of file Unit.cpp.
References GetResistance(), WorldObject::GetSpellModOwner(), SpellInfo::Id, SPELL_AURA_MOD_TARGET_RESISTANCE, SPELL_SCHOOL_MASK_HOLY, SPELLFAMILY_WARLOCK, SpellInfo::SpellFamilyName, and Object::ToUnit().
Referenced by CalcSpellResistedDamage().
| uint32 Unit::CalculateDamage | ( | WeaponAttackType | attType, |
| bool | normalized, | ||
| bool | addTotalPct | ||
| ) | const |
Definition at line 2490 of file Unit.cpp.
References BASE_ATTACK, CalculateMinMaxDamage(), IsInFeralForm(), m_unitData, OFF_ATTACK, RANGED_ATTACK, and urand().
Referenced by spell_dk_rune_weapon_scaling_02::spell_dk_rune_weapon_scaling_02_AuraScript::CalculateDamageDoneAmount(), CalculateMeleeDamage(), Spell::EffectWeaponDmg(), and AuraEffect::HandlePeriodicDamageAurasTick().
| Powers Unit::CalculateDisplayPowerType | ( | ) | const |
Definition at line 5781 of file Unit.cpp.
References ChrClassesEntry::DisplayPower, FORM_BEAR_FORM, FORM_CAT_FORM, FORM_DIRE_BEAR_FORM, FORM_GHOST_WOLF, FORM_GHOUL, FORM_TRAVEL_FORM, GetAuraEffectsByType(), GetClass(), AuraEffect::GetMiscValue(), GetShapeshiftForm(), GetVehicleKit(), IsHunterPet(), MAX_POWERS, POWER_ENERGY, POWER_FOCUS, POWER_MANA, POWER_RAGE, sChrClassesStore, SPELL_AURA_MOD_POWER_DISPLAY, and sPowerDisplayStore.
Referenced by Guardian::InitStatsForLevel(), UpdateDisplayPower(), and Creature::UpdateLevelDependantStats().
| void Unit::CalculateHoverHeight | ( | ) |
Definition at line 14339 of file Unit.cpp.
References DEFAULT_PLAYER_DISPLAY_SCALE, DEFAULT_PLAYER_HOVER_HEIGHT, GetDisplayId(), GetMountDisplayId(), BaseEntity::IsCreature(), IsMounted(), sCreatureDisplayInfoStore, sCreatureModelDataStore, SetHoverHeight(), and Object::ToCreature().
Referenced by Dismount(), Mount(), and SetDisplayId().
| void Unit::CalculateMeleeDamage | ( | Unit * | victim, |
| CalcDamageInfo * | damageInfo, | ||
| WeaponAttackType | attackType = BASE_ATTACK |
||
| ) |
Definition at line 1332 of file Unit.cpp.
References CalcDamageInfo::Absorb, AddPct(), ApplyResilience(), CalcDamageInfo::Attacker, CalcDamageInfo::AttackType, BASE_ATTACK, CalcDamageInfo::Blocked, CalcAbsorbResist(), CalcArmorReducedDamage(), CalculateDamage(), CalculatePct(), CanApplyResilience(), CalcDamageInfo::CleanDamage, CalcDamageInfo::Damage, CalcDamageInfo::DamageSchoolMask, DIRECT_DAMAGE, DamageInfo::GetAbsorb(), GetBlockPercent(), DamageInfo::GetDamage(), GetLevel(), GetMeleeDamageSchoolMask(), DamageInfo::GetResist(), GetTotalAuraMultiplier(), GetTotalAuraMultiplierByMiscMask(), CalcDamageInfo::HitInfo, HITINFO_AFFECTS_VICTIM, HITINFO_BLOCK, HITINFO_CRITICALHIT, HITINFO_CRUSHING, HITINFO_FULL_ABSORB, HITINFO_FULL_RESIST, HITINFO_GLANCING, HITINFO_MISS, HITINFO_NORMALSWING, HITINFO_OFFHAND, HITINFO_PARTIAL_ABSORB, HITINFO_PARTIAL_RESIST, HITINFO_SWINGNOHITSOUND, CalcDamageInfo::HitOutCome, IsAlive(), IsBlockCritical(), IsDamageReducedByArmor(), IsImmunedToDamage(), MECHANIC_NONE, MELEE_HIT_BLOCK, MELEE_HIT_CRIT, MELEE_HIT_CRUSHING, MELEE_HIT_DODGE, MELEE_HIT_EVADE, MELEE_HIT_GLANCING, MELEE_HIT_MISS, MELEE_HIT_NORMAL, MELEE_HIT_PARRY, MeleeDamageBonusDone(), MeleeDamageBonusTaken(), OFF_ATTACK, CalcDamageInfo::OriginalDamage, PROC_FLAG_DEAL_MELEE_SWING, PROC_FLAG_MAIN_HAND_WEAPON_SWING, PROC_FLAG_NONE, PROC_FLAG_OFF_HAND_WEAPON_SWING, PROC_FLAG_TAKE_ANY_DAMAGE, PROC_FLAG_TAKE_MELEE_SWING, CalcDamageInfo::ProcAttacker, CalcDamageInfo::ProcVictim, CalcDamageInfo::RageGained, CalcDamageInfo::Resist, RollMeleeOutcomeAgainst(), SPELL_AURA_MOD_CRIT_DAMAGE_BONUS, SPELL_AURA_MOD_CRITICAL_BLOCK_AMOUNT, sScriptMgr, CalcDamageInfo::Target, CalcDamageInfo::TargetState, VICTIMSTATE_DODGE, VICTIMSTATE_EVADES, VICTIMSTATE_HIT, VICTIMSTATE_INTACT, VICTIMSTATE_IS_IMMUNE, and VICTIMSTATE_PARRY.
Referenced by AttackerStateUpdate().
|
pure virtual |
Implemented in Creature, and Player.
Referenced by CalculateDamage(), 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 1198 of file Unit.cpp.
References SpellNonMeleeDamage::absorb, AddPct(), ApplyResilience(), SpellNonMeleeDamage::attacker, BASE_ATTACK, SpellNonMeleeDamage::blocked, CalcAbsorbResist(), CalcArmorReducedDamage(), CalculatePct(), CanApplyResilience(), CritDamageAndHealing, SpellNonMeleeDamage::damage, SpellInfo::DmgClass, SpellNonMeleeDamage::fullBlock, DamageInfo::GetAbsorb(), GetBlockPercent(), DamageInfo::GetDamage(), GetLevel(), DamageInfo::GetResist(), SpellInfo::GetSchoolMask(), WorldObject::GetSpellModOwner(), GetTotalAuraMultiplier(), GetTotalAuraMultiplierByMiscMask(), SpellInfo::HasAttribute(), SpellNonMeleeDamage::HitInfo, HITINFO_FULL_ABSORB, HITINFO_FULL_RESIST, HITINFO_PARTIAL_ABSORB, HITINFO_PARTIAL_RESIST, IsAlive(), IsBlockCritical(), IsDamageReducedByArmor(), SpellNonMeleeDamage::originalDamage, PROC_HIT_NONE, SpellNonMeleeDamage::resist, SpellNonMeleeDamage::schoolMask, SPELL_ATTR4_IGNORE_DAMAGE_TAKEN_MODIFIERS, SPELL_AURA_MOD_CRIT_DAMAGE_BONUS, SPELL_AURA_MOD_CRITICAL_BLOCK_AMOUNT, SPELL_DAMAGE_CLASS_MAGIC, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_NONE, SPELL_DAMAGE_CLASS_RANGED, SPELL_DIRECT_DAMAGE, SPELL_HIT_TYPE_CRIT, SpellCriticalDamageBonus(), sScriptMgr, and SpellNonMeleeDamage::target.
Referenced by Spell::TargetInfo::DoDamageAndTriggers(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), and AuraEffect::HandleProcTriggerDamageAuraProc().
|
virtual |
Reimplemented in Player.
Definition at line 12485 of file Unit.cpp.
References GetOwnerGUID(), ObjectGuid::IsPlayer(), and IsVehicle().
Referenced by CalculateMeleeDamage(), CalculateSpellDamageTaken(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
| bool Unit::CanCastSpellWhileMoving | ( | SpellInfo const * | spellInfo | ) | const |
Definition at line 3300 of file Unit.cpp.
References SpellInfo::HasAttribute(), HasAuraType(), HasAuraTypeWithAffectMask(), HasAuraTypeWithMiscvalue(), SpellInfo::Labels, SPELL_ATTR13_DO_NOT_ALLOW_DISABLE_MOVEMENT_INTERRUPT, SPELL_AURA_CAST_WHILE_WALKING, SPELL_AURA_CAST_WHILE_WALKING_ALL, and SPELL_AURA_CAST_WHILE_WALKING_BY_SPELL_LABEL.
Referenced by IsInterruptFlagIgnoredForSpell(), and IsMovementPreventedByCasting().
| void Unit::CancelAutoRepeatSpell | ( | ) |
Definition at line 3201 of file Unit.cpp.
References CURRENT_AUTOREPEAT_SPELL, m_currentSpells, SPELL_FAILED_INTERRUPTED, SPELL_STATE_IDLE, SPELL_STATE_LAUNCHED, and Object::ToPlayer().
Referenced by WorldSession::HandleCancelAutoRepeatSpellOpcode().
| void Unit::CancelMountAura | ( | bool | force = false | ) |
Definition at line 8369 of file Unit.cpp.
References AuraApplication::GetBase(), SpellInfo::HasAttribute(), HasAuraType(), SpellInfo::IsPassive(), SpellInfo::IsPositive(), RemoveAurasByType(), SPELL_ATTR0_NO_AURA_CANCEL, and SPELL_AURA_MOUNTED.
Referenced by Scripts::EasternKingdoms::StormwindCity::spell_teleport_prep_alliance::HandleHitTarget(), Scripts::Kalimdor::Durotar::spell_teleport_prep_horde::HandleHitTarget(), Scripts::Pandaria::TheJadeForest::spell_into_the_mists_scene_jf::HandleHitTarget(), and Scripts::Pandaria::TheJadeForest::spell_the_mission_scene_jf::HandleHitTarget().
| void Unit::CancelShapeshiftForm | ( | bool | onlyTravelShapeshiftForm = false, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT, |
||
| bool | force = false |
||
| ) |
Definition at line 9527 of file Unit.cpp.
References CopyAuraEffectList(), FORM_AQUATIC_FORM, FORM_NONE, FORM_TRAVEL_FORM, GetAuraEffectsByType(), GetShapeshiftForm(), SpellInfo::HasAttribute(), SpellInfo::IsPassive(), SpellInfo::IsPositive(), SPELL_ATTR0_NO_AURA_CANCEL, SPELL_AURA_MOD_SHAPESHIFT, and sSpellShapeshiftFormStore.
| void Unit::CancelSpellMissiles | ( | uint32 | spellId, |
| bool | reverseMissile = false, |
||
| bool | abortSpell = false |
||
| ) |
Definition at line 12455 of file Unit.cpp.
References Spell::ExtractSpellFromEvent(), EventProcessor::GetEvents(), BaseEntity::GetGUID(), WorldObject::m_Events, WorldPackets::Spells::MissileCancel::OwnerGUID, WorldPackets::Spells::MissileCancel::Reverse, WorldObject::SendMessageToSet(), WorldPackets::Spells::MissileCancel::SpellID, and WorldPackets::Spells::MissileCancel::Write().
|
inline |
Definition at line 1530 of file Unit.h.
Referenced by Scripts::EasternKingdoms::StormwindCity::spell_teleport_timer_alliance::HandleAfterEffectRemove(), Scripts::Kalimdor::Durotar::spell_teleport_timer_horde::HandleAfterEffectRemove(), and UpdateMountCapability().
|
inline |
Definition at line 715 of file Unit.h.
Referenced by Player::AutoUnequipOffhandIfNeed(), Player::CanEquipItem(), Player::FindEquipSlot(), haveOffhandWeapon(), and Player::UpdateAttackPowerAndDamage().
|
pure virtual |
Implemented in Creature, and Player.
Referenced by _ExitVehicle(), and ChaseMovementGenerator::Update().
| bool Unit::CanFreeMove | ( | ) | const |
Definition at line 10013 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 npc_zombie_chow::UpdateAI().
|
inline |
====================== THREAT & COMBAT ====================
Definition at line 1045 of file Unit.h.
Referenced by Spell::EffectTaunt(), Spell::EffectThreat(), EngageWithTarget(), SmartScript::GetTargets(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModFixate(), spell_omor_the_unscarred_orbital_strike_target::HandleDummy(), AuraEffect::HandleModDetaunt(), AuraEffect::HandleModTaunt(), Spell::HandleThreatSpells(), CreatureAI::JustEnteredCombat(), CriteriaHandler::ModifierSatisfied(), SmartScript::ProcessAction(), and Creature::SelectVictim().
|
inline |
Definition at line 1851 of file Unit.h.
Referenced by WorldObject::ModSpellCastTime().
|
inline |
Definition at line 1574 of file Unit.h.
Referenced by Player::_ApplyWeaponDamage(), HandleAttackPowerModifier(), Player::UpdateBaseModGroup(), Player::UpdateRating(), and UpdateUnitMod().
|
inline |
Definition at line 1070 of file Unit.h.
References UNIT_FLAG2_CANNOT_TURN.
Referenced by Creature::ReacquireSpellFocusTarget(), Creature::ReleaseSpellFocus(), and Creature::SetSpellFocus().
|
inline |
Definition at line 1788 of file Unit.h.
Referenced by Spell::TargetInfo::DoDamageAndTriggers().
|
virtual |
Reimplemented in Creature.
Definition at line 13040 of file Unit.cpp.
References HasUnitFlag(), HasUnitFlag2(), UNIT_FLAG2_AI_WILL_ONLY_SWIM_IF_TARGET_SWIMS, UNIT_FLAG_CAN_SWIM, UNIT_FLAG_CANT_SWIM, UNIT_FLAG_PET_IN_COMBAT, UNIT_FLAG_PLAYER_CONTROLLED, and UNIT_FLAG_RENAME.
Referenced by Creature::CanEnterWater(), Creature::CanSwim(), and Movement::MoveSplineInit::MoveSplineInit().
| bool Unit::CanUseAttackType | ( | uint8 | attacktype | ) | const |
Definition at line 2594 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(), Player::ApplyAllAzeriteEmpoweredItemMods(), Player::ApplyAllAzeriteItemMods(), Creature::CalculateMinMaxDamage(), Player::CalculateMinMaxDamage(), Player::CastItemCombatSpell(), Player::GetUseableItemByPos(), AuraEffect::HandleAuraModShapeshift(), and Player::UpdateEquipSpellsAtFormChange().
| void Unit::CastStop | ( | uint32 | except_spellid = 0 | ) |
Definition at line 1191 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(), spell_husam_bad_intentions::HandleScriptEffect(), SimpleCharmedPlayerAI::OnCharmed(), RemoveCharmedBy(), boss_novos::SetBubbled(), SetCharmedBy(), SetControlled(), SetStunned(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), boss_urom::StartAttack(), SimpleCharmedPlayerAI::UpdateAI(), npc_silverpine_skitterweb_matriarch::UpdateAI(), npc_gnome_goblin_plains_make_copter_private::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 12899 of file Unit.cpp.
References ASSERT, AuraEffect::ChangeAmount(), GetAuraEffectsByType(), Vehicle::GetBase(), BaseEntity::GetGUID(), Vehicle::GetNextEmptySeat(), WorldObject::GetTransSeat(), m_vehicle, Vehicle::Seats, and SPELL_AURA_CONTROL_VEHICLE.
Referenced by WorldSession::HandleMoveChangeVehicleSeats(), WorldSession::HandleRequestVehicleNextSeat(), WorldSession::HandleRequestVehiclePrevSeat(), WorldSession::HandleRequestVehicleSwitchSeat(), and npc_giant_boar_vehicle_q55879::PassengerBoarded().
|
inlinevirtual |
Reimplemented in Player.
Definition at line 1562 of file Unit.h.
Referenced by UpdateDamageDoneMods(), and UpdateDamagePctDoneMods().
| void Unit::CleanupBeforeRemoveFromMap | ( | bool | finalCleanup | ) |
Definition at line 10367 of file Unit.cpp.
References ASSERT, CombatStop(), BaseEntity::GetGUID(), InterruptNonMeleeSpells(), BaseEntity::IsInWorld(), IsVehicle(), m_cleanupDone, RemoveAllAuras(), RemoveAllGameObjects(), RemoveFromWorld(), RemoveVehicleKit(), and SetVignette().
Referenced by CleanupsBeforeDelete().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 10396 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 10931 of file Unit.cpp.
References AURA_STATE_DEFENSIVE, AURA_STATE_DEFENSIVE_2, HasAuraState(), m_reactiveTimer, MAX_REACTIVE, and ModifyAuraState().
Referenced by Player::ActivateTalentGroup(), boss_scarlet_commander_mograine::DamageTaken(), and setDeathState().
| void Unit::ClearBossEmotes | ( | Optional< uint32 > | zoneId = {}, |
| Player const * | target = nullptr |
||
| ) | const |
Clears boss emotes frame.
| zoneId | Only clears emotes for players in that zone id |
| target | Only clears emotes for that player |
Definition at line 14579 of file Unit.cpp.
References WorldObject::GetMap(), Map::GetPlayers(), WorldPackets::Packet::GetRawPacket(), DB2Manager::IsInArea(), Player::SendDirectMessage(), and WorldPackets::Chat::ClearBossEmotes::Write().
| void Unit::ClearChannelObjects | ( | ) |
Definition at line 3063 of file Unit.cpp.
References UF::UnitData::ChannelObjects, BaseEntity::ClearDynamicUpdateFieldValues(), m_unitData, BaseEntity::m_values, and UF::UpdateFieldHolder::ModifyValue().
Referenced by Spell::SendChannelUpdate().
| void Unit::ClearDiminishings | ( | ) |
|
inline |
Definition at line 1076 of file Unit.h.
Referenced by Player::LoadFromDB(), and npc_image_of_medivh::npc_image_of_medivhAI::NextStep().
|
inline |
Definition at line 756 of file Unit.h.
Referenced by Creature::AtDisengage(), Attack(), CreatureAI::AttackStart(), AttackStop(), MotionMaster::ClearBaseUnitState(), MotionMaster::ClearBaseUnitStates(), ChaseMovementGenerator::Deactivate(), FollowMovementGenerator::Deactivate(), SplineChainMovementGenerator::Deactivate(), FleeingMovementGenerator::Deactivate(), PointMovementGenerator::Deactivate(), npc_ball_of_flame::DoAction(), FormationMovementGenerator::DoDeactivate(), HomeMovementGenerator< T >::DoDeactivate(), FormationMovementGenerator::DoFinalize(), HomeMovementGenerator< T >::DoFinalize(), FormationMovementGenerator::DoUpdate(), Spell::EffectResurrectPet(), SmartAI::EnterEvadeMode(), ChaseMovementGenerator::Finalize(), FollowMovementGenerator::Finalize(), SplineChainMovementGenerator::Finalize(), PointMovementGenerator::Finalize(), AssistanceMovementGenerator::Finalize(), FleeingMovementGenerator::Finalize(), Spell::finish(), spell_aqusirr_surging_rush_selector::HandleActionSet(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), AuraEffect::HandleFeignDeath(), npc_commandscript::HandleNpcEvadeCommand(), scene_auchindoun_soulbinder_nyami::HandleScene(), scene_maiden_of_virtue_outro::HandleScene(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadInitializeScript(), boss_shade_of_aran::boss_aranAI::MoveInLineOfSight(), SmartAI::MovementInform(), npc_molten_barrage::npc_molten_barrageAI::MovementInform(), spell_rokmora_emerge_aura::OnRemove(), Creature::ReleaseSpellFocus(), RemoveCharmedBy(), boss_black_knight::boss_black_knightAI::Reset(), Player::ResetContestedPvP(), npc_valkyr_shadowguard::ScheduleHeroicEvents(), SetCharm(), SetControlled(), Creature::setDeathState(), HomeMovementGenerator< T >::SetTargetLocation(), spell_putricide_ooze_channel::StartAttack(), StopMoving(), boss_twinemperorsAI::TryActivateAfterTTelep(), boss_twinemperorsAI::TwinReset(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), SplineChainMovementGenerator::Update(), npc_altar_altercation_ariok::UpdateAI(), boss_mandokir::UpdateAI(), boss_the_lich_king::UpdateAI(), boss_loken::UpdateAI(), npc_living_constellation::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), boss_black_knight::boss_black_knightAI::UpdateAI(), and spell_alysrazor_aggro_closest::spell_alysrazor_aggro_closest_SpellScript::UpdateThreat().
|
overrideprotectedvirtual |
Reimplemented from Object.
Definition at line 14391 of file Unit.cpp.
References UF::UpdateFieldHolder::ClearChangesMask(), Object::ClearValuesChangesMask(), m_unitData, and BaseEntity::m_values.
Referenced by Player::ClearValuesChangesMask().
| void Unit::ClearWorldEffects | ( | ) |
Definition at line 14718 of file Unit.cpp.
References BaseEntity::ClearDynamicUpdateFieldValues(), m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), and UF::UnitData::WorldEffects.
| void Unit::CombatStop | ( | bool | includingCast = false, |
| bool | mutualPvP = true, |
||
| bool(*)(Unit const *otherUnit) | unitFilter = nullptr |
||
| ) |
Definition at line 6031 of file Unit.cpp.
References AttackStop(), CombatManager::EndAllPvECombat(), CombatManager::EndAllPvPCombat(), BaseEntity::GetTypeId(), InterruptNonMeleeSpells(), IsNonMeleeSpellCast(), m_attackers, m_combatManager, RemoveAllAttackers(), Player::SendAttackSwingCancelAttack(), CombatManager::SuppressPvPCombat(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by CreatureAI::_EnterEvadeMode(), Player::ActivateTaxiPathTo(), CleanupBeforeRemoveFromMap(), CombatStopWithPets(), Map::CreatureRespawnRelocation(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), Scripts::Pandaria::TheWanderingIsle::npc_tushui_huojin_trainee::DamageTaken(), npc_kelthuzad_guardian::DoAction(), npc_akama_shade::DoAction(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DoNice(), Spell::EffectSanctuary(), Battleground::EndBattleground(), EscortAI::EnterEvadeMode(), hyjalAI::EnterEvadeMode(), GuardAI::EnterEvadeMode(), npc_sparring_partner_exiles_reach::EnterEvadeMode(), npc_sparring_partner_combat_training::EnterEvadeMode(), gunship_npc_AI::EnterEvadeMode(), npc_high_overlord_saurfang_igb::EnterEvadeMode(), npc_muradin_bronzebeard_igb::EnterEvadeMode(), npc_terenas_menethil::EnterEvadeMode(), boss_hodir::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), npc_pet_pri_lightwell::EnterEvadeMode(), ScriptedAI::ForceCombatStop(), misc_commandscript::HandleCombatStopCommand(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleModUnattackable(), Battlefield::HideNpc(), npc_gunship::npc_gunshipAI::JustDied(), boss_freya::boss_freyaAI::JustDied(), boss_mimiron::boss_mimironAI::JustDied(), boss_eregos::JustSummoned(), boss_urom::LeaveCombat(), WorldSession::LogoutPlayer(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::MovementInform(), quest_ride_of_the_scientifically_enhanced_boar::OnQuestStatusChange(), quest_the_re_deather::OnQuestStatusChange(), SmartScript::ProcessAction(), Player::RemovePet(), Map::RemovePlayerFromMap(), setDeathState(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_venture_co_straggler::SpellHit(), PetAI::StopAttack(), Player::TeleportTo(), Totem::UnSummon(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::UpdateAI(), boss_algalon_the_observer::UpdateAI(), and npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::UpdateAI().
| void Unit::CombatStopWithPets | ( | bool | includingCast = false | ) |
Definition at line 6059 of file Unit.cpp.
References CombatStop(), and m_Controlled.
Referenced by FlightPathMovementGenerator::DoReset(), Battleground::EndBattleground(), WorldSession::HandleDuelCancelled(), Player::SetGameMaster(), and Player::UpdateArea().
|
static |
Definition at line 818 of file Unit.cpp.
Referenced by CalcAbsorbResist(), CalcHealAbsorb(), CancelShapeshiftForm(), DealDamage(), DealMeleeDamage(), TriggerOnHealthChangeAuras(), TriggerOnPowerChangeAuras(), and UpdateMountCapability().
|
inline |
Definition at line 810 of file Unit.h.
References CalculatePct().
Referenced by spell_rajaxx_thundercrash::HandleDamageCalc(), and spell_illidari_council_empyreal_balance::HandleDummy().
|
inline |
Definition at line 809 of file Unit.h.
References CalculatePct().
Referenced by spell_pri_guardian_spirit::Absorb(), spell_dh_consume_soul_vengeance_lesser::CalcHealingFromDamageTaken(), spell_monk_life_cocoon::CalculateAbsorb(), spell_dk_vampiric_blood::CalculateAmount(), spell_pri_ultimate_penitence_aura::CalculateAmount(), AuraEffect::CalculateAmount(), spell_baleroc_decimating_strike::ChangeDamage(), npc_immortal_guardian::npc_immortal_guardianAI::DamageTaken(), spell_pri_shadow_word_death::DetermineKillStatus(), boss_lady_vashj::DoAction(), boss_ichoron::DoAction(), Spell::EffectDamageFromMaxHealthPCT(), Spell::EffectHeal(), Spell::EffectHealPct(), Spell::EffectResurrect(), Spell::EffectResurrectPet(), Spell::EffectResurrectWithAura(), Spell::EffectSelfResurrect(), spell_dh_last_resort::HandleAbsorb(), spell_rog_cheat_death::HandleAbsorb(), AuraEffect::HandleAuraModIncreaseMaxHealth(), spell_rog_cloaked_in_shadows::HandleCloakedInShadows(), spell_aqusirr_erupting_waters::HandleDamage(), spell_q28813_set_health_random::HandleDummyEffect(), spell_dru_yseras_gift::HandleEffectPeriodic(), spell_dh_soulmonger::HandleEffectProc(), spell_lord_and_lady_waycrest_vitality_transfer::HandlePeriodic(), AuraEffect::HandlePeriodicHealAurasTick(), spell_item_swift_hand_justice_dummy::HandleProc(), spell_pri_angelic_bulwark::HandleProc(), spell_stinky_precious_decimate::HandleScript(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), spell_warl_health_funnel::OnPeriodic(), spell_warr_kill_or_be_killed_warrior::OnRemove(), npc_phoenix_the_eye::OnSpellCast(), spell_gen_restoration::PeriodicTick(), npc_wounded_milita::npc_wounded_militaAI::Reset(), npc_draenei_survivor::npc_draenei_survivorAI::Reset(), npc_injured_draenei::npc_injured_draeneiAI::Reset(), boss_murmur::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), Creature::SetSpawnHealth(), TriggerOnHealthChangeAuras(), npc_wounded_milita::npc_wounded_militaAI::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), and npc_crok_scourgebane::UpdateEscortAI().
Definition at line 833 of file Unit.h.
References CalculatePct().
Definition at line 11160 of file Unit.cpp.
References Pet::CreateBaseAtCreature(), GetLevel(), BaseEntity::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 11182 of file Unit.cpp.
References Pet::CreateBaseAtCreatureInfo(), GetLevel(), BaseEntity::GetTypeId(), HUNTER_PET, InitTamedPet(), sObjectMgr, Object::ToPlayer(), and TYPEID_PLAYER.
Definition at line 12169 of file Unit.cpp.
References m_unitTypeMask, BaseEntity::m_updateFlag, m_vehicleKit, SendSetVehicleRecId(), sVehicleStore, UNIT_MASK_VEHICLE, and CreateObjectBits::Vehicle.
Referenced by Creature::CreateFromProto(), npc_ioc_siege_engine::DoAction(), AuraEffect::HandleAuraSetVehicle(), npc_vp_slipstream::InitializeAI(), Mount(), and instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::OnPlayerEnter().
|
static |
Definition at line 825 of file Unit.cpp.
References DamageInfo::AbsorbDamage(), CleanDamage::absorbed_damage, WorldPackets::CombatLog::SpellAbsorbLog::AbsorbedSpellID, Creature::AI(), WorldPackets::CombatLog::SpellAbsorbLog::Attacker, CleanDamage::attackType, BASE_ATTACK, CalculatePct(), WorldPackets::CombatLog::SpellAbsorbLog::Caster, CHEAT_GOD, CopyAuraEffectList(), CREATURE_STATIC_FLAG_UNKILLABLE, CURRENT_GENERIC_SPELL, Damage, DamageAbsorb, DamageDealt, DealDamage(), DealDamageMods(), DOT, Player::duel, ObjectGuid::Empty, GetAI(), Aura::GetApplicationOfTarget(), GetAuraEffectsByType(), Aura::GetCasterGUID(), GetCharmer(), GetControllingPlayer(), DamageInfo::GetDamage(), BaseEntity::GetGUID(), GetHealth(), GetHealthMultiplierForTarget(), GetMaxHealth(), DamageInfo::GetSchoolMask(), SpellInfo::GetSchoolMask(), BaseEntity::GetTypeId(), SpellInfo::HasAttribute(), HasAuraType(), Creature::HasFlag(), HighestDamageDone, HighestDamageTaken, SpellInfo::Id, InterruptNonMeleeSpells(), IsControlledByPlayer(), BaseEntity::IsCreature(), IsVehicle(), Creature::LowerPlayerDamageReq(), m_Controlled, m_currentSpells, NODAMAGE, RemoveAurasWithInterruptFlags(), SCORE_DAMAGE_DONE, SELF_DAMAGE, Creature::SetTappedBy(), SPELL_ATTR4_REACTIVE_DAMAGE_PROC, SPELL_ATTR7_DO_NOT_COUNT_FOR_PVP_SCOREBOARD, SPELL_ATTR9_CANNOT_KILL_TARGET, SPELL_AURA_SCHOOL_ABSORB_OVERKILL, SPELL_AURA_SHARE_DAMAGE_PCT, SPELL_STATE_PREPARING, sScriptMgr, Object::ToCreature(), Object::ToPlayer(), TotalDamageTaken, TYPEID_PLAYER, Player::UpdateCriteria(), and WorldPackets::CombatLog::SpellAbsorbLog::Victim.
Referenced by CalcAbsorbResist(), DealDamage(), DealMeleeDamage(), DealSpellDamage(), Player::EnvironmentalDamage(), misc_commandscript::HandleDamageCommand(), misc_commandscript::HandleDieCommand(), spell_algalon_collapse::HandlePeriodic(), AuraEffect::HandlePeriodicDamageAurasTick(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), spell_dk_dancing_rune_weapon::HandleProc(), npc_phoenix_the_eye::OnSpellCast(), and boss_felmyst::SpellHit().
|
static |
Definition at line 804 of file Unit.cpp.
References GetDamageMultiplierForTarget(), BaseEntity::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::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), and AuraEffect::HandleProcTriggerDamageAuraProc().
|
static |
Definition at line 6543 of file Unit.cpp.
References GetAI(), HealInfo::GetHeal(), HealInfo::GetHealer(), WorldObject::GetOwner(), HealInfo::GetSpellInfo(), HealInfo::GetTarget(), BaseEntity::GetTypeId(), SpellInfo::HasAttribute(), HealingDone, HighestHealCast, HighestHealReceived, IsTotem(), ModifyHealth(), SCORE_HEALING_DONE, HealInfo::SetEffectiveHeal(), SPELL_ATTR7_DO_NOT_COUNT_FOR_PVP_SCOREBOARD, sScriptMgr, Object::ToPlayer(), TotalHealReceived, and TYPEID_UNIT.
Referenced by AuraEffect::HandlePeriodicHealAurasTick(), and HealBySpell().
| void Unit::DealMeleeDamage | ( | CalcDamageInfo * | damageInfo, |
| bool | durabilityLoss | ||
| ) |
Definition at line 1534 of file Unit.cpp.
References CalcDamageInfo::Absorb, WorldPackets::CombatLog::SpellDamageShield::Attacker, CalcDamageInfo::AttackType, BASE_ATTACK, CalcAbsorbResist(), Player::CastItemCombatSpell(), CastSpell, CalcDamageInfo::CleanDamage, CopyAuraEffectList(), CREATURE_FLAG_EXTRA_NO_PARRY_HASTEN, CalcDamageInfo::Damage, CalcDamageInfo::DamageSchoolMask, DealDamage(), DealDamageMods(), WorldPackets::CombatLog::SpellDamageShield::Defender, DIRECT_DAMAGE, CreatureTemplate::flags_extra, DamageInfo::GetAbsorb(), getAttackTimer(), GetAuraEffectsByType(), GetBaseAttackTime(), Creature::GetCreatureTemplate(), DamageInfo::GetDamage(), BaseEntity::GetGUID(), GetHealth(), GetLevel(), GetLevelForTarget(), GetMaxSkillValueForLevel(), DamageInfo::GetOriginalDamage(), SpellInfo::GetSchoolMask(), BaseEntity::GetTypeId(), Position::HasInArc(), HasUnitState(), haveOffhandWeapon(), CalcDamageInfo::HitOutCome, SpellInfo::Id, WorldPackets::Spells::SpellCastLogData::Initialize(), IsAlive(), IsControlledByPlayer(), Creature::IsEvadingAttacks(), IsImmunedToDamage(), IsVehicle(), Creature::isWorldBoss(), WorldPackets::CombatLog::SpellDamageShield::LogAbsorbed, WorldPackets::CombatLog::CombatLogServerPacket::LogData, M_PI, MELEE_HIT_CRIT, MELEE_HIT_CRUSHING, MELEE_HIT_GLANCING, MELEE_HIT_NORMAL, OFF_ATTACK, WorldPackets::CombatLog::SpellDamageShield::OriginalDamage, WorldPackets::CombatLog::SpellDamageShield::OverKill, roll_chance(), RoundToInterval(), WorldPackets::CombatLog::SpellDamageShield::SchoolMask, SpellInfo::SchoolMask, WorldObject::SendCombatLogMessage(), SendSpellDamageImmune(), WorldObject::SendSpellMiss(), setAttackTimer(), SPELL_AURA_DAMAGE_SHIELD, SPELL_DAZED, SPELL_DIRECT_DAMAGE, SPELL_MISS_NONE, SpellDamageBonusTaken(), WorldObject::SpellHitResult(), WorldPackets::CombatLog::SpellDamageShield::SpellID, CalcDamageInfo::Target, CalcDamageInfo::TargetState, Object::ToCreature(), Object::ToPlayer(), WorldPackets::CombatLog::SpellDamageShield::TotalDamage, TYPEID_PLAYER, TYPEID_UNIT, UNIT_STATE_IN_FLIGHT, and VICTIMSTATE_PARRY.
Referenced by AttackerStateUpdate().
| void Unit::DealSpellDamage | ( | SpellNonMeleeDamage const * | damageInfo, |
| bool | durabilityLoss | ||
| ) |
Definition at line 1308 of file Unit.cpp.
References SpellNonMeleeDamage::absorb, BASE_ATTACK, SpellNonMeleeDamage::cleanDamage, SpellNonMeleeDamage::damage, DealDamage(), BaseEntity::GetTypeId(), HasUnitState(), IsAlive(), Creature::IsEvadingAttacks(), MELEE_HIT_NORMAL, SpellNonMeleeDamage::schoolMask, SpellNonMeleeDamage::Spell, SPELL_DIRECT_DAMAGE, 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(), AuraEffect::HandleProcTriggerDamageAuraProc(), and spell_warl_health_funnel::OnPeriodic().
| void Unit::DelayOwnedAuras | ( | uint32 | spellId, |
| ObjectGuid | caster, | ||
| int32 | delaytime | ||
| ) |
Definition at line 4591 of file Unit.cpp.
References Aura::GetCasterGUID(), Aura::GetDuration(), m_ownedAuras, Aura::SetDuration(), and Aura::SetNeedClientUpdateForTargets().
Referenced by Spell::DelayedChannel().
| void Unit::DeleteCharmInfo | ( | ) |
| void Unit::DeMorph | ( | ) |
Definition at line 3400 of file Unit.cpp.
References GetNativeDisplayId(), and SetDisplayId().
Referenced by modify_commandscript::HandleDeMorphCommand(), and SmartScript::ProcessAction().
|
overrideprotectedvirtual |
Reimplemented from BaseEntity.
Definition at line 14376 of file Unit.cpp.
References BaseEntity::DestroyForPlayer(), Player::GetBattleground(), BaseEntity::GetGUID(), Player::GetSession(), WorldPackets::Battleground::DestroyArenaUnit::Guid, WorldSession::SendPacket(), and WorldPackets::Battleground::DestroyArenaUnit::Write().
Referenced by Player::DestroyForPlayer().
|
protected |
Definition at line 664 of file Unit.cpp.
References WorldObject::m_movementInfo, MOVEMENTFLAG_FORWARD, movespline, and MovementInfo::RemoveMovementFlag().
Referenced by NearTeleportTo(), setDeathState(), Player::TeleportTo(), and UpdateSplineMovement().
| void Unit::Dismount | ( | ) |
Definition at line 8336 of file Unit.cpp.
References CalculateHoverHeight(), Dismount, BaseEntity::GetTypeId(), GetVehicleKit(), IsMounted(), WorldPackets::Movement::Mount, RemoveAurasWithInterruptFlags(), RemoveUnitFlag(), RemoveVehicleKit(), SetMountDisplayId(), Object::ToPlayer(), TYPEID_PLAYER, and UNIT_FLAG_MOUNT.
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(), npc_drakkari_invader::MovementInform(), SmartScript::ProcessAction(), npc_troll_volunteer::SpellHit(), npc_magister_aledis::npc_magister_aledisAI::StartFight(), and npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached().
| void Unit::DoMeleeAttackIfReady | ( | ) |
Definition at line 2166 of file Unit.cpp.
References ATTACK_DISPLAY_DELAY, AttackerStateUpdate(), BadFacing, BASE_ATTACK, CantAttack, getAttackTimer(), GetVictim(), Position::HasInArc(), HasUnitState(), haveOffhandWeapon(), isAttackReady(), BaseEntity::IsCreature(), IsInFeralForm(), WorldObject::IsValidAttackTarget(), IsWithinBoundaryRadius(), IsWithinMeleeRange(), M_PI, NotInRange, OFF_ATTACK, resetAttackTimer(), setAttackTimer(), Object::ToCreature(), Object::ToPlayer(), UNIT_STATE_CASTING, UNIT_STATE_CHARGING, and UNIT_STATE_MELEE_ATTACKING.
Referenced by Creature::Update(), and Player::Update().
| void Unit::EnergizeBySpell | ( | Unit * | victim, |
| SpellInfo const * | spellInfo, | ||
| int32 | damage, | ||
| Powers | powerType | ||
| ) |
Definition at line 6817 of file Unit.cpp.
References ThreatManager::ForwardThreatForAssistingMe(), GetThreatManager(), SpellInfo::Id, ModifyPower(), sDB2Manager, SendEnergizeSpellLog(), Object::ToPlayer(), and UseRegenInterrupt.
Referenced by Spell::EffectEnergize(), Spell::EffectEnergizePct(), Spell::EffectPowerDrain(), and spell_gen_restoration::PeriodicTick().
| void Unit::EngageWithTarget | ( | Unit * | who | ) |
Definition at line 8513 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(), Creature::ForcePartyMembersIntoCombat(), npc_suppresser::IsSummonedBy(), npc_blessed_banner::JustSummoned(), boss_anubarak_trial::JustSummoned(), CreatureAI::MoveInLineOfSight(), CreatureAI::OnCharmed(), SmartAI::OnCharmed(), CreatureAI::OnOwnerCombatInteraction(), Trinity::CallOfHelpCreatureInRangeDo::operator()(), FollowerAI::OwnerAttackedBy(), 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 740 of file Unit.h.
References ASSERT.
Referenced by EscortAI::AssistPlayerInCombatAgainst(), SmartAI::AssistPlayerInCombatAgainst(), PetAI::AttackStart(), Creature::CallAssistance(), boss_lady_deathwhisper::DamageTaken(), PetAI::OwnerAttacked(), PetAI::OwnerAttackedBy(), SmartScript::ProcessEvent(), SetConfused(), SetStunned(), CasterAI::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), npc_sinster_reflection::npc_sinster_reflectionAI::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(), and PetAI::UpdateAI().
| void Unit::EnterAreaTrigger | ( | AreaTrigger * | areaTrigger | ) |
Definition at line 5542 of file Unit.cpp.
References m_insideAreaTriggers.
Referenced by AreaTrigger::HandleUnitEnter().
Definition at line 12845 of file Unit.cpp.
References CastSpellExtraArgs::AddSpellMod(), CastSpell, SPELLVALUE_BASE_POINT0, TRIGGERED_IGNORE_CASTER_MOUNTED_OR_ON_VEHICLE, and VEHICLE_SPELL_RIDE_HARDCODED.
Referenced by debug_commandscript::HandleDebugEnterVehicleCommand(), WorldSession::HandleRideVehicleInteract(), spell_putricide_mutated_transformation::HandleSummon(), npc_silverpine_orc_crate::IsSummonedBy(), npc_bg_deephaul_ravine_earthen_mine_cart_horde::JustAppeared(), npc_bg_deephaul_ravine_earthen_mine_cart_alliance::JustAppeared(), npc_husam_tolvir_land_mine::JustAppeared(), npc_snobold_vassal::MountOnBoss(), BattlefieldTB::OnCreatureCreate(), SmartScript::ProcessAction(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), and npc_seismic_shard::npc_seismic_shardAI::UpdateAI().
| void Unit::ExitAllAreaTriggers | ( | ) |
Definition at line 5552 of file Unit.cpp.
References m_insideAreaTriggers.
Referenced by WorldSession::LogoutPlayer(), RemoveFromWorld(), and Player::RemovePet().
| void Unit::ExitAreaTrigger | ( | AreaTrigger * | areaTrigger | ) |
Definition at line 5547 of file Unit.cpp.
References m_insideAreaTriggers.
Referenced by AreaTrigger::HandleUnitExitInternal().
|
virtual |
This function can be called at upper level code to initialize an exit from the passenger's side.
The following call would not even be executed successfully as the SPELL_AURA_CONTROL_VEHICLE unapply handler already calls _ExitVehicle without specifying an exitposition. The subsequent call below would return on if (!m_vehicle).
To do: We need to allow SPELL_AURA_CONTROL_VEHICLE unapply handlers in spellscripts to specify exit coordinates and either store those per passenger, or we need to init spline movement based on those coordinates in unapply handlers, and relocate exiting passengers based on Unit::moveSpline data. Either way, Coming Soon(TM)
Reimplemented in Creature.
Definition at line 12931 of file Unit.cpp.
References BaseEntity::GetGUID(), GetVehicleBase(), m_vehicle, RemoveAurasByType(), and SPELL_AURA_CONTROL_VEHICLE.
Referenced by _EnterVehicle(), Player::ActivateTalentGroup(), Player::ActivateTaxiPathTo(), Vehicle::AddVehiclePassenger(), VehicleJoinEvent::Execute(), spell_seismic_shard_change_seat::spell_seismic_shard_change_seat_SpellScript::ExitVehicle(), spell_ioc_launch_exit_vehicle::ExitVehicle(), Creature::ExitVehicle(), spell_warhead_detonate::HandleDummy(), WorldSession::HandleEjectPassenger(), spell_eject_spirits_of_redemption::HandleHitTarget(), spell_gen_abandon_vehicle::HandleHitTarget(), spell_ulduar_squeezed_lifeless::spell_ulduar_squeezed_lifeless_SpellScript::HandleInstaKill(), WorldSession::HandleMoveDismissVehicle(), WorldSession::HandleRequestVehicleExit(), spell_grizzly_hills_hand_over_reins::HandleScript(), spell_harlan_leave_vehicle::HandleScriptEffect(), Scripts::EasternKingdoms::Westfall::spell_westfall_quest_credit_jangolode_event::HandleScriptEffect(), RemoveFromWorld(), setDeathState(), Player::StopCastingCharm(), and Player::TeleportTo().
Definition at line 3268 of file Unit.cpp.
References m_currentSpells.
Referenced by Player::CastItemCombatSpell(), GetCurrentSpellCastTime(), WorldSession::HandleMissileTrajectoryCollision(), npc_alchemist_adrianna::OnGossipHello(), SpellCritChanceTaken(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::UpdateAI(), boss_thaddius::UpdateAI(), Aura::UpdateOwner(), and boss_hexlord_malacrass::UpdateSpecialEvents().
| void Unit::FinishSpell | ( | CurrentSpellTypes | spellType, |
| SpellCastResult | result = SPELL_CAST_OK |
||
| ) |
Definition at line 3189 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().
| void Unit::FollowerAdded | ( | AbstractFollower * | f | ) |
Definition at line 9164 of file Unit.cpp.
References m_followingMe.
Referenced by AbstractFollower::SetTarget().
| void Unit::FollowerRemoved | ( | AbstractFollower * | f | ) |
Definition at line 9169 of file Unit.cpp.
References m_followingMe.
Referenced by AbstractFollower::SetTarget().
|
inline |
Definition at line 1740 of file Unit.h.
Referenced by BaseEntity::BuildMovementUpdate().
|
inline |
Definition at line 1742 of file Unit.h.
Referenced by BaseEntity::BuildMovementUpdate().
|
inline |
Definition at line 1741 of file Unit.h.
Referenced by BaseEntity::BuildMovementUpdate().
|
inline |
Definition at line 680 of file Unit.h.
Referenced by spell_fel_lord_caza_disarmed::AfterRemove(), Creature::AI(), AIUpdateTick(), spell_marrowgar_bone_spike_graveyard::CheckCast(), spell_algalon_big_bang::CheckTargets(), spell_marrowgar_bone_slice::ClearSpikeImmunities(), DealDamage(), DealHeal(), spell_grip::DummyTick(), spell_yogg_saron_brain_link::spell_yogg_saron_brain_link_AuraScript::DummyTick(), CombatReference::EndCombat(), AqusirrEventHandler::Execute(), CombatStartEvent::Execute(), spell_send_mug_target_picker::FilterTargets(), spell_blood_queen_bloodbolt::FilterTargets(), InstanceScript::GetBossDungeonEncounter(), spell_telash_absolute_zero_damage::HandleAfterCast(), spell_omrogg_beatdown::HandleAfterCast(), spell_thaddius_magnetic_pull::HandleCast(), spell_grip::HandleDrop(), spell_send_mug_target_picker::HandleDummy(), spell_fatal_strike::HandleDummy(), spell_mount_check::HandleEffectPeriodic(), spell_ulduar_random_aggro_periodic::HandleEffectPeriodic(), spell_maiev_down::HandleEffectRemove(), spell_gluth_decimate::HandleEvent(), spell_krick_pursuit_AuraScript::HandleExtraEffect(), spell_guardians_breath::HandleHit(), spell_fel_lord_caza_throwing_axe_selector::HandleHit(), spell_silverpine_release_diseased_mutant_bush_chicken::HandleHit(), spell_headless_horseman_head_periodic::HandleHPCheck(), spell_sapphiron_change_blizzard_target::HandlePeriodic(), spell_ahnkahet_shadow_sickle::HandlePeriodic(), spell_intense_cold::HandlePeriodicTick(), spell_mimiron_self_repair::spell_mimiron_self_repair_SpellScript::HandleScript(), spell_frostwarden_handler_focus_fire::HandleScript(), spell_mimiron_fire_search::spell_mimiron_fire_search_SpellScript::HandleScript(), spell_headless_horseman_send_head::HandleScriptEffect(), spell_headless_horseman_command_head_request_body::HandleScriptEffect(), spell_headless_horseman_return_head::HandleScriptEffect(), spell_headless_horseman_sprouting::HandleScriptEffect(), spell_dreamwalker_summon_suppresser::HandleSummon(), HasScheduledAIChange(), Scripts::Pandaria::TheWanderingIsle::npc_huojin_trainee::InitiateSparring(), npc_coldflame::IsSummonedBy(), CombatManager::NotifyAICombat(), spell_baleroc_inferno_blade::OnApply(), spell_baleroc_decimation_blade::OnApply(), spell_claw_swipe_check::OnApply(), achievement_ohganot_so_fast::OnCheck(), achievement_share_the_pain::OnCheck(), achievement_respect_your_elders::OnCheck(), achievement_twilight_assist::OnCheck(), achievement_twilight_duo::OnCheck(), achievement_twilight_zone::OnCheck(), achievement_bronjahm_soul_power::OnCheck(), achievement_im_on_a_boat::OnCheck(), achievement_all_you_can_eat::OnCheck(), achievement_been_waiting_long_time::OnCheck(), achievement_neck_deep_in_vile::OnCheck(), achievement_portal_jockey::OnCheck(), achievement_momma_said_knock_you_out::OnCheck(), achievement_spore_loser::OnCheck(), achievement_the_hundred_club::OnCheck(), achievement_thaddius_shocking::OnCheck(), achievement_gen_eregos_void::OnCheck(), achievement_assembly_i_choose_you::OnCheck(), achievement_getting_back_to_nature::OnCheck(), achievement_knock_on_wood::OnCheck(), achievement_knock_knock_on_wood::OnCheck(), achievement_knock_knock_knock_on_wood::OnCheck(), achievement_ignis_shattered::OnCheck(), achievement_setup_boom::OnCheck(), achievement_setup_mine::OnCheck(), achievement_setup_rocket::OnCheck(), achievement_firefighter::OnCheck(), achievement_iron_dwarf_medium_rare::OnCheck(), achievement_nerf_engineering::OnCheck(), achievement_heartbreaker::OnCheck(), achievement_nerf_gravity_bombs::OnCheck(), achievement_on_the_rocks::OnCheck(), achievement_incredible_hulk::OnCheck(), achievement_snakes_whyd_it_have_to_be_snakes::OnCheck(), achievement_intense_cold::OnCheck(), achievement_once_bitten_twice_shy_n::OnCheck(), achievement_once_bitten_twice_shy_v::OnCheck(), at_fel_lord_caza_throw_axe_knockback::OnInitialize(), movie_anduin_final::OnMovieComplete(), spell_xt002_gravity_bomb_aura::OnPeriodic(), npc_captain_garrick_beach::OnQuestAccept(), at_guardians_breath< ColorSpellId >::at_guardians_breathAI< ColorSpell >::OnRemove(), spell_baleroc_inferno_blade::OnRemove(), spell_baleroc_decimation_blade::OnRemove(), spell_gormok_jump_to_hand::OnRemove(), spell_icc_siphon_essence::OnRemove(), spell_yogg_saron_brain_link::spell_yogg_saron_brain_link_AuraScript::OnRemove(), spell_remnant_of_a_fallen_king_spawn::OnRemove(), spell_claw_swipe_check::OnRemove(), RemoveCharmedBy(), RemoveFromWorld(), spell_marrowgar_coldflame::SelectTarget(), spell_the_lich_king_valkyr_target_search::SelectTarget(), spell_algalon_trigger_3_adds::SelectTarget(), SetCharmedBy(), spell_marrowgar_bone_slice::SplitDamage(), CombatReference::SuppressFor(), CombatManager::SuppressPvPCombat(), spell_anduin_wrynn_progression_aura::Trigger(), UpdateCharmAI(), and spell_alysrazor_aggro_closest::spell_alysrazor_aggro_closest_SpellScript::UpdateThreat().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
| void Unit::GetAllMinionsByEntry | ( | std::list< TempSummon * > & | Minions, |
| uint32 | entry | ||
| ) |
Definition at line 6439 of file Unit.cpp.
References Object::GetEntry(), IsSummon(), m_Controlled, and ToTempSummon().
Referenced by spell_mage_ring_of_frost::Apply(), 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_redridge_control_ettin_2::HandleScriptEffect().
|
inline |
Definition at line 924 of file Unit.h.
Referenced by MotionMaster::MoveTierTransition(), and boss_blood_queen_lana_thel::UpdateAI().
| float Unit::GetAPMultiplier | ( | WeaponAttackType | attType, |
| bool | normalized | ||
| ) | const |
Definition at line 11122 of file Unit.cpp.
References GetBaseAttackTime(), ItemTemplate::GetDelay(), ItemTemplate::GetSubClass(), Item::GetTemplate(), BaseEntity::GetTypeId(), Player::GetWeaponForAttack(), IsInFeralForm(), ITEM_SUBCLASS_WEAPON_AXE, ITEM_SUBCLASS_WEAPON_AXE2, 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_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, ITEM_SUBCLASS_WEAPON_WARGLAIVES, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Creature::CalculateMinMaxDamage(), Player::CalculateMinMaxDamage(), and MeleeDamageBonusDone().
|
inline |
Definition at line 1315 of file Unit.h.
Referenced by Player::ApplyEquipSpell(), AuraEffect::ApplySpellMod(), spell_thorim_blizzard_effect::spell_thorim_blizzard_effect_AuraScript::CheckAreaTarget(), Player::DuelComplete(), GetProcAurasTriggeredOnEvent(), spell_warl_soul_swap_dot_marker::HandleHit(), spell_gen_break_shield::HandleScriptEffect(), spell_gen_mounted_charge::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), WorldSession::HandleUpdateAuraVisual(), list_commandscript::ListAurasCommand(), ModifyAuraState(), spell_item_mad_alchemists_potion::SecondaryEffect(), and Map::Update().
|
inline |
| AreaTrigger * Unit::GetAreaTrigger | ( | uint32 | spellId | ) | const |
Definition at line 5488 of file Unit.cpp.
References GetAreaTriggers().
Referenced by spell_item_orbital_precision::CheckFrozenOrbActive(), spell_gen_spatial_rift::HandleDummy(), spell_pri_entropic_rift_periodic::HandlePeriodic(), at_warl_bilescourge_bombers::OnCreate(), spell_anduin_wrynn_befouled_barrier_absorb::OnHealAbsorb(), and spell_anduin_wrynn_befouled_barrier_expire::OnRemove().
| std::vector< AreaTrigger * > Unit::GetAreaTriggers | ( | uint32 | spellId | ) | const |
Definition at line 5494 of file Unit.cpp.
References m_areaTrigger.
Referenced by GetAreaTrigger(), spell_warl_rain_of_fire::HandleDummyTick(), spell_pri_divine_word_sanctuary::HandleEffectPeriodic(), spell_ymiron_the_fallen_king_arise_fallen_selector::HandleHit(), spell_sha_earthquake_tick::HandleOnHit(), spell_dh_shattered_souls_devourer::HandleSoulsGathering(), boss_mana_devourer::RemoveAreaTriggers(), and boss_the_curator_rtk::RemoveAreaTriggers().
|
inline |
Definition at line 786 of file Unit.h.
References SPELL_SCHOOL_NORMAL.
Referenced by CalcArmorReducedDamage(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArmorAmount(), spell_dru_thorns_of_iron_damage::HandleEffectHit(), npc_commandscript::HandleNpcInfoCommand(), WorldPackets::Spells::SpellCastLogData::Initialize(), Guardian::InitStatsForLevel(), Player::outDebugValues(), and Guardian::UpdateArmor().
|
inlinevirtual |
Reimplemented in Creature.
Definition at line 821 of file Unit.h.
Referenced by CalcArmorReducedDamage().
| Unit * Unit::getAttackerForHelper | ( | ) | const |
Definition at line 5849 of file Unit.cpp.
References GetCharmerOrOwner(), GetCombatManager(), GetPlayerMovingMe(), CombatManager::GetPvECombatRefs(), CombatManager::GetPvPCombatRefs(), GetVictim(), CombatManager::HasPvECombat(), CombatManager::HasPvPCombat(), IsEngaged(), IsInCombatWith(), and IsPet().
Referenced by npc_skittering_swarmer::InitializeAI(), npc_skittering_infector::InitializeAI(), PetAI::SelectNextTarget(), Creature::SelectVictim(), SetFeared(), PetAI::UpdateAI(), and npc_scarlet_ghoul::UpdateAI().
|
inline |
Definition at line 736 of file Unit.h.
Referenced by Spell::CheckCast(), Spell::EffectForceDeselect(), GetUnitConditionVariable(), StopAttackFaction(), and ValidateAttackersAndOwnTarget().
| float Unit::GetAttackPowerModifierValue | ( | AttackPowerModIndex | index, |
| AttackPowerModType | modifierType | ||
| ) | const |
Definition at line 9790 of file Unit.cpp.
References End, m_attackPowerMods, and TC_LOG_ERROR.
Referenced by Creature::UpdateAttackPowerAndDamage(), Guardian::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 712 of file Unit.h.
Referenced by Attack(), DealMeleeDamage(), DoMeleeAttackIfReady(), and Update().
Definition at line 4730 of file Unit.cpp.
References GetAuraApplication(), and AuraApplication::GetBase().
| Aura * Unit::GetAura | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint32 | reqEffMask = 0 |
||
| ) | const |
Definition at line 4718 of file Unit.cpp.
References GetAuraApplication(), and AuraApplication::GetBase().
Referenced by battleground_eye_of_the_storm::ApplyAssaultDebuffToPlayer(), battleground_twin_peaks::ApplyAssaultDebuffToPlayer(), battleground_warsong_gulch::ApplyAssaultDebuffToPlayer(), Player::ApplyEquipCooldown(), spell_dh_consume_soul_vengeance_lesser::CalcHealingFromDamageTaken(), spell_warr_overpowering_finish::CalculateDamage(), spell_blood_council_shadow_prison_damage::CalculateDamage(), spell_pri_lights_wrath::CalculateDamageBonus(), spell_pri_divine_service::CalculateHealingBonus(), spell_sha_deluge::CalculateHealingBonus(), spell_marrowgar_coldflame_damage::CanBeAppliedOn(), spell_freezing_cloud_damage::CanBeAppliedOn(), spell_monk_stagger_debuff_aura::CastOrChangeTickDamage(), spell_dh_chaos_theory::ChaosTheory(), spell_redridge_control_ettin::CheckCast(), Spell::CheckCast(), spell_sha_elemental_weapons::CheckEnchantments(), spell_sha_swirling_maelstrom::CheckHailstormProc(), spell_sha_mastery_elemental_overload::CheckProc(), spell_sha_maelstrom_weapon_proc::CheckProc(), spell_sha_maelstrom_weapon_base::ConsumeMaelstromWeapon(), spell_dh_blade_dance::DecideFirstTarget(), Player::DisablePvpRules(), boss_deathbringer_saurfang::DoAction(), boss_guarm::DoAction(), Spell::DoTriggersOnSpellHit(), Spell::EffectGiveArtifactPower(), Spell::EffectGiveArtifactPowerNoBonus(), Spell::EffectModifyAuraStacks(), Player::EnablePvpRules(), spell_sha_lava_burst::EnsureLavaSurgeCanBeImmediatelyConsumed(), spell_pri_purge_the_wicked_dummy::FilterTargets(), FindExistingStaggerEffect(), GetModelForForm(), getOrphanGUID(), Player::GiveLevel(), spell_dru_pulverize_thrash::HandleAfterHit(), WorldSession::HandleAreaSpiritHealerQueryOpcode(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraLinked(), Aura::HandleAuraSpecificMods(), npc_bg_silvershard_mines_mine_cart::HandleCapture(), npc_sparring_partner_enhanced_combat_training_priest::HandleClassEvent(), npc_sparring_partner_enhanced_combat_training_warlock::HandleClassEvent(), npc_sparring_partner_enhanced_combat_training_druid::HandleClassEvent(), spell_warr_rumbling_earth::HandleCooldownReduction(), spell_anduin_wrynn_hopebreaker_damage::HandleDamage(), spell_remnant_of_a_fallen_king_remorseless_winter_damage::HandleDamage(), spell_warr_meat_cleaver_damage_bonus::HandleDamageBonus(), spell_warl_deaths_embrace_impl::HandleDamageOrHealingCalculation(), spell_warr_deft_experience::HandleDeftExperience(), spell_pilgrims_bounty_feast_on::HandleDummy(), spell_borean_tundra_nerubar_web_random_unit_not_on_quest_dummy::HandleDummy(), spell_borean_tundra_nerubar_web_random_unit_on_quest_dummy::HandleDummy(), spell_item_pygmy_oil::HandleDummy(), spell_rog_roll_the_bones::HandleDummy(), spell_dru_pulverize::HandleEffectHit(), spell_dru_twin_moonfire::HandleEffectHit(), spell_ruby_life_pools_ice_shield::HandleEffectPeriodic(), spell_pri_eternal_sanctity::HandleEffectProc(), spell_dh_darkglare_boon::HandleEffectRemove(), spell_rog_shadowstrike::HandleEnergize(), spell_pri_empyreal_blaze_extend::HandleHit(), spell_warl_soul_swap_dot_marker::HandleHit(), spell_pri_expiation::HandleHitTarget(), spell_sindragosa_frost_breath::HandleInfusion(), spell_dru_abundance::HandleOnApplyOrReapply(), spell_mage_ice_lance::HandleOnHit(), spell_pri_answered_prayers::HandleOnProc(), spell_dru_abundance::HandleOnRemove(), spell_mana_devourer_energy_void::HandlePeriodic(), spell_heartsbane_triad_aura_of_dread_movement_check::HandlePeriodic(), spell_pri_rhapsody::HandlePeriodic(), spell_torghast_uncontrolled_darkness_proc::HandleProc(), spell_baleroc_torment_AuraScript::HandleProc(), spell_dk_t20_2p_rune_empowered::HandleProc(), spell_item_anger_capacitor< StackAmount >::spell_item_anger_capacitor_AuraScript< Stacks >::HandleProc(), spell_item_trinket_stack::spell_item_trinket_stack_AuraScript::HandleProc(), spell_mage_radiant_spark::HandleProc(), spell_pri_divine_procession::HandleProc(), spell_sha_deeply_rooted_elements::HandleProc(), spell_sha_unlimited_power::HandleProc(), spell_pri_insidious_ire::HandleProc(), spell_dh_shattered_destiny::HandleProc(), spell_sha_stormflurry::HandleProc(), spell_pilgrims_bounty_well_fed::HandleScript(), spell_pilgrims_bounty_turkey_tracker::HandleScript(), spell_festergut_gastric_bloat::HandleScript(), spell_putricide_eat_ooze::HandleScript(), spell_rotface_large_ooze_combine::HandleScript(), spell_rotface_large_ooze_buff_combine::HandleScript(), spell_marrowgar_bone_spike_graveyard::HandleSpikes(), spell_borean_tundra_neural_needle::HandleWhisper(), spell_borean_tundra_prototype_neural_needle::HandleWhisper(), spell_dragonblight_high_executor_branding_iron::HandleWhisper(), npc_underbog_mushroom::InitializeAI(), npc_slad_ran_constrictor::JustEngagedWith(), CriteriaHandler::ModifierSatisfied(), spell_rog_rupture::OnEffectRemoved(), spell_brewfest_ram::OnPeriodic(), spell_pri_lights_wrath::OnPrecast(), spell_dru_eclipse_dummy::OnSpellCast(), areatrigger_sha_arctic_snowstorm::OnUnitEnter(), at_dk_death_and_decay::OnUnitExit(), spell_midsummer_test_ribbon_pole_channel::PeriodicTick(), spell_dru_germination::PickRejuvenationVariant(), SmartScript::ProcessAction(), BattlefieldWG::PromotePlayer(), Player::ResurrectPlayer(), spell_sha_molten_thunder_sundering::RollReset(), spell_sha_stormblast_proc::SaveCastId(), SetAuraStack(), spell_dru_eclipse_common::SetSpellCount(), SceneObject::ShouldBeRemoved(), boss_deathbringer_saurfang::SpellHit(), boss_garfrost::SpellHitTarget(), boss_sindragosa::SpellHitTarget(), spell_sha_unrelenting_storms::Trigger(), WindfuryProcEvent::Trigger(), spell_warl_perpetual_unstability::TriggerExplosion(), spell_warl_volatile_agony::TriggerExplosion(), spell_sha_thorims_invocation_trigger::TriggerLightningSpell(), spell_dh_demonic::TriggerMetamorphosis(), Player::Update(), boss_trollgore::UpdateAI(), boss_lord_marrowgar::UpdateAI(), boss_faerlina::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), boss_elder_brightleaf::boss_elder_brightleafAI::UpdateAI(), npc_tempest_minion::UpdateAI(), npc_tournament_training_dummy::UpdateAI(), npc_iron_construct::npc_iron_constructAI::UpdateAI(), and GameObject::Use().
Definition at line 4724 of file Unit.cpp.
References GetAuraApplication(), and AuraApplication::GetBase().
| AuraApplication * Unit::GetAuraApplication | ( | std::function< bool(Aura const *)> const & | predicate | ) | const |
Definition at line 4709 of file Unit.cpp.
References m_appliedAuras.
| AuraApplication * Unit::GetAuraApplication | ( | std::function< bool(AuraApplication const *)> const & | predicate | ) | const |
Definition at line 4700 of file Unit.cpp.
References m_appliedAuras.
| AuraApplication * Unit::GetAuraApplication | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint32 | reqEffMask = 0, |
||
| AuraApplication * | except = nullptr |
||
| ) | const |
Definition at line 4664 of file Unit.cpp.
References GetAuraApplication(), AuraApplication::GetBase(), Aura::GetCasterGUID(), Aura::GetCastItemGUID(), and Aura::GetEffectMask().
Referenced by Player::ApplyArtifactPowerRank(), GetAura(), GetAura(), GetAura(), GetAuraApplication(), GetAuraApplicationOfRankedSpell(), GetUnitConditionVariable(), spell_dh_monster_rising::HandlePeriodic(), HasAura(), HasAura(), and Spell::UpdateChanneledTargetList().
| AuraApplication * Unit::GetAuraApplication | ( | uint32 | spellId, |
| std::function< bool(Aura const *)> const & | predicate | ||
| ) | const |
Definition at line 4691 of file Unit.cpp.
References m_appliedAuras, and Trinity::Containers::MapEqualRange().
| AuraApplication * Unit::GetAuraApplication | ( | uint32 | spellId, |
| std::function< bool(AuraApplication const *)> const & | predicate | ||
| ) | const |
Definition at line 4682 of file Unit.cpp.
References m_appliedAuras, and Trinity::Containers::MapEqualRange().
| AuraApplication * Unit::GetAuraApplicationOfRankedSpell | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint32 | reqEffMask = 0, |
||
| AuraApplication * | except = nullptr |
||
| ) | const |
Definition at line 4736 of file Unit.cpp.
References GetAuraApplication(), and sSpellMgr.
Referenced by GetAuraOfRankedSpell().
Definition at line 4806 of file Unit.cpp.
References m_appliedAuras.
Referenced by spell_magtheridon_shadow_grasp_visual::AfterApply(), spell_sha_maelstrom_weapon_base::GenerateMaelstromWeapon(), spell_dh_cycle_of_hatred::HandleCycleOfHatred(), spell_the_robodrome_zap_damage::HandleHitTarget(), spell_baleroc_torment_AuraScript::HandleProc(), spell_hallow_end_tricky_treat::HandleScript(), spell_midsummer_fling_torch_catch::HandleScriptEffect(), CriteriaHandler::ModifierSatisfied(), spell_baleroc_vital_flame::OnApply(), SmartScript::ProcessEvent(), and boss_pyroguard_emberseer::SpellHit().
| AuraEffect * Unit::GetAuraEffect | ( | AuraType | type, |
| SpellFamilyNames | family, | ||
| flag128 const & | familyFlag, | ||
| ObjectGuid | casterGUID = ObjectGuid::Empty |
||
| ) | const |
Definition at line 4648 of file Unit.cpp.
References GetAuraEffectsByType(), ObjectGuid::IsEmpty(), SpellInfo::SpellFamilyFlags, and SpellInfo::SpellFamilyName.
| AuraEffect * Unit::GetAuraEffect | ( | uint32 | spellId, |
| uint8 | effIndex, | ||
| ObjectGuid | casterGUID = ObjectGuid::Empty |
||
| ) | const |
Definition at line 4622 of file Unit.cpp.
References AuraEffect::GetBase(), Aura::GetEffect(), and m_appliedAuras.
Referenced by spell_evo_fire_breath_damage::AddBonusUpfrontDamage(), spell_monk_burst_of_life::AfterRemove(), spell_pri_sanctuary_absorb::CalcAbsorbAmount(), spell_dh_consume_soul_vengeance_lesser::CalcHealingFromDamageTaken(), spell_pri_power_word_shield::CalculateAbsorb(), spell_dru_guardian_of_elune_healing::CalculateAmount(), spell_mage_wildfire_crit::CalculateAmount(), spell_dru_matted_fur_absorb::CalculateAmount(), spell_rog_improved_garrote_damage::CalculateBonus(), spell_mage_scald::CalculateDamage(), spell_oculus_shock_lance::CalculateDamage(), spell_monk_open_palm_strikes::CheckProc(), spell_mage_arcane_barrage::ConsumeArcaneCharges(), spell_sha_maelstrom_weapon_base::ConsumeMaelstromWeapon(), spell_pri_shadow_word_death::DetermineKillStatus(), Spell::EffectHeal(), WindfuryProcEvent::Execute(), spell_mage_ethereal_blink_triggered::FilterTargets(), spell_dru_embrace_of_the_dream_effect::FilterTargets(), spell_dru_wild_growth::FilterTargets(), GetAuraEffectOfRankedSpell(), MajorPlayerHealingCooldownHelpers::GetBonusMultiplier(), spell_pri_crystalline_reflection::HandleAfterAbsorb(), AuraEffect::HandleAuraModShapeshift(), spell_rog_cloaked_in_shadows::HandleCloakedInShadows(), spell_evo_causality_pyre::HandleCooldown(), spell_dh_cycle_of_hatred::HandleCycleOfHatred(), spell_warr_deft_experience::HandleDeftExperience(), spell_dk_death_coil::HandleDummy(), spell_dk_death_strike::HandleDummy(), spell_pri_dark_indulgence::HandleEffectHit(), spell_pri_lasting_words::HandleEffectHit(), spell_pri_sanctuary_trigger::HandleEffectHit(), spell_pri_mind_devourer::HandleEffectHitTarget(), spell_pri_assured_safety::HandleEffectHitTarget(), spell_dh_soulmonger::HandleEffectProc(), spell_pri_expiation::HandleHitTarget(), spell_dru_ferocious_bite::HandleLaunchTarget(), spell_evo_living_flame::HandleLaunchTarget(), spell_pri_atonement_effect::HandleOnHitTarget(), spell_pri_atonement_passive::HandleOnProc(), spell_dru_cultivation::HandleOnTick(), spell_soulbound_goliath_burning_brush_aura::HandlePeriodic(), spell_dru_elunes_favored_proc::HandlePeriodic(), spell_item_bracing_chill_proc::HandleProc(), spell_dk_obliteration::HandleProc(), spell_item_blessing_of_ancient_kings::HandleProc(), spell_item_persistent_shield::HandleProc(), spell_sha_t10_elemental_4p_bonus::HandleProc(), spell_dru_power_of_the_archdruid::HandleProc(), spell_hun_focused_aim::HandleProc(), spell_dru_innervate::HandleRank2(), spell_dru_eclipse_aura::HandleRemoved(), spell_warr_raging_blow_cooldown_reset::HandleResetCooldown(), spell_mage_arcane_explosion::HandleReverberate(), spell_sartura_whirlwind::HandleScript(), spell_leotheras_the_blind_whirlwind_effect::HandleScript(), spell_dru_wild_growth_aura::HandleTickUpdate(), spell_dh_soul_fragments_damage_taken_tracker::Load(), spell_evo_essence_burst_trigger::Load(), spell_hun_wilderness_medicine::Load(), MeleeDamageBonusTaken(), CriteriaHandler::ModifierSatisfied(), spell_evo_fire_breath::OnComplete(), spell_pri_mind_devourer_buff::OnPrecast(), at_dk_death_and_decay::OnUnitExit(), spell_dru_shooting_stars::ProcessDoT(), spell_sha_earthquake::SnapshotDamageMultiplier(), SpellDamageBonusTaken(), SpellHealingBonusTaken(), spell_dru_eclipse_ooc::Tick(), WindfuryProcEvent::Trigger(), spell_sha_artifact_gathering_storms::TriggerBuff(), spell_sha_converging_storms::TriggerBuff(), spell_warl_perpetual_unstability::TriggerExplosion(), spell_warl_volatile_agony::TriggerExplosion(), spell_sha_thorims_invocation_trigger::TriggerLightningSpell(), spell_item_amalgams_seventh_spine_mana_restore::TriggerManaRestoration(), spell_dh_demonic::TriggerMetamorphosis(), Player::UpdateInventorySlotCount(), spell_pri_atonement::UpdateSinsOfTheManyValue(), and spell_pri_atonement::UpdateTrinityEffect().
| AuraEffect * Unit::GetAuraEffectOfRankedSpell | ( | uint32 | spellId, |
| uint8 | effIndex, | ||
| ObjectGuid | casterGUID = ObjectGuid::Empty |
||
| ) | const |
Definition at line 4636 of file Unit.cpp.
References GetAuraEffect(), and sSpellMgr.
|
inline |
|
inline |
Definition at line 1362 of file Unit.h.
Referenced by Player::ActivateTalentGroup(), Spell::AddUnitTarget(), AttackerStateUpdate(), CalcAbsorbResist(), CalcArmorReducedDamage(), CalcHealAbsorb(), SpellInfo::CalcPowerCost(), AuraEffect::CalculateAmount(), CalculateDisplayPowerType(), Spell::CanAutoCast(), PlayerAI::CancelAllShapeshifts(), CancelShapeshiftForm(), ChangeSeat(), spell_gen_two_forms::CheckCast(), Spell::CheckCasterAuras(), SpellInfo::CheckLocation(), Spell::CheckSpellCancelsAuraEffect(), DealDamage(), DealMeleeDamage(), Spell::EffectApplyMountEquipment(), Spell::EffectTransmitted(), VehicleJoinEvent::Execute(), GetAuraEffect(), GetCastSpellInfo(), GetCastSpellXSpellVisualId(), SpellHistory::GetChargeRecoveryTime(), GetDoTsByCaster(), GetHighestExclusiveSameEffectSpellGroupValue(), WorldObject::GetMagicHitRedirectTarget(), GetMaxNegativeAuraModifier(), GetMaxPositiveAuraModifier(), GetMeleeHitRedirectTarget(), Player::GetMirrorTimerMaxValue(), GetMountCapability(), Player::GetQuestXPReward(), npc_thorim_trashAI::AIHelper::GetRemainingHealOn(), GetTotalAuraModifier(), GetTotalAuraMultiplier(), GetUnitConditionVariable(), AuraEffect::HandleAuraModSilence(), AuraEffect::HandleAuraTransform(), WorldSession::HandleChatMessage(), AuraEffect::HandleDetectAmore(), WorldSession::HandleMirrorImageDataRequest(), AuraEffect::HandleModCastingSpeed(), AuraEffect::HandleModGravity(), AuraEffect::HandleModOverrideZonePVPType(), AuraEffect::HandleModRequiredMountCapabilityFlags(), AuraEffect::HandleNoReagentUseAura(), spell_dk_glyph_of_scourge_strike_script::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), HasAuraTypeWithAffectMask(), HasAuraTypeWithCaster(), HasAuraTypeWithFamilyFlags(), HasAuraTypeWithMiscvalue(), HasAuraTypeWithTriggerSpell(), HasAuraTypeWithValue(), HasBreakableByDamageAuraType(), Player::HasItemTotemCategory(), Player::InitializeSelfResurrectionSpells(), Player::IsAlwaysDetectableFor(), IsHighestExclusiveAuraEffect(), IsImmunedToSpellEffect(), IsScriptOverriden(), Player::isTotalImmune(), list_commandscript::ListAurasCommand(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), MeleeSpellHitResult(), PhasingHandler::OnConditionChange(), Spell::PrepareTriggersExecutedOnHit(), SceneMgr::RemoveAurasDueToSceneId(), RestoreDisplayId(), RestoreFaction(), Creature::SelectVictim(), Player::SetBattlegroundEntryPoint(), SetFeared(), Player::SetSkill(), SpellBaseDamageBonusDone(), SpellBaseHealingBonusDone(), SpellCritChanceTaken(), SpellDamageBonusTaken(), SpellHealingBonusDone(), SpellHealingPctDone(), SpellHistory::StartCooldown(), ThreatManager::TauntUpdate(), TriggerOnHealthChangeAuras(), TriggerOnPowerChangeAuras(), SimpleCharmedPlayerAI::UpdateAI(), Player::UpdateHealingDonePercentMod(), Player::UpdateMirrorTimers(), UpdateMountCapability(), ThreatManager::UpdateMyTempModifiers(), UpdatePosition(), Player::UpdatePowerRegen(), Player::UpdateRating(), and Player::UpdateSpellDamageAndHealingBonus().
| Aura * Unit::GetAuraOfRankedSpell | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint32 | reqEffMask = 0 |
||
| ) | const |
Definition at line 4748 of file Unit.cpp.
References GetAuraApplicationOfRankedSpell(), and AuraApplication::GetBase().
Referenced by Aura::HandleAuraSpecificMods().
| uint32 Unit::GetBaseAttackTime | ( | WeaponAttackType | att | ) | const |
Definition at line 11007 of file Unit.cpp.
References m_baseAttackSpeed.
Referenced by Attack(), CalcMeleeAttackRageGain(), SpellInfo::CalcPowerCost(), Player::CastItemCombatSpell(), DealMeleeDamage(), GetAPMultiplier(), GetWeaponProcChance(), npc_pet_hunter_snake_trap::JustAppeared(), Player::outDebugValues(), resetAttackTimer(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), and Guardian::UpdateDamagePhysical().
|
inline |
|
inline |
Definition at line 1221 of file Unit.h.
Referenced by Spell::EffectChangeBattlePetQuality(), Spell::EffectGrantBattlePetExperience(), Spell::EffectGrantBattlePetLevel(), WorldSession::HandleDismissCritter(), and Player::UnsummonBattlePetTemporaryIfAny().
|
inline |
Definition at line 1286 of file Unit.h.
Referenced by WorldSession::HandleQueryBattlePetName().
|
inlinevirtual |
Reimplemented in Player.
Definition at line 1003 of file Unit.h.
Referenced by CalculateMeleeDamage(), and CalculateSpellDamageTaken().
|
inline |
Definition at line 794 of file Unit.h.
Referenced by Guardian::UpdateResistances().
|
inline |
Definition at line 719 of file Unit.h.
Referenced by IsWithinBoundaryRadius().
|
inline |
Definition at line 1503 of file Unit.h.
References Unit::GetCastSpellInfoResult::SpellInfo, and Unit::GetCastSpellInfoResult::TriggerFlag.
Referenced by Player::ExecutePendingSpellCastRequest(), GetCastSpellInfo(), Player::GetCastSpellInfo(), and spell_sha_thorims_invocation_trigger::TriggerLightningSpell().
|
virtual |
Reimplemented in Player.
Definition at line 14612 of file Unit.cpp.
References Unit::GetCastSpellInfoContext::AddSpell(), GetAuraEffectsByType(), GetCastSpellInfo(), WorldObject::GetMap(), SpellInfo::Id, SPELL_ATTR11_IGNORE_SPELLCAST_OVERRIDE_SHAPESHIFT_REQUIREMENTS, SPELL_ATTR8_IGNORE_SPELLCAST_OVERRIDE_COST, SPELL_AURA_OVERRIDE_ACTIONBAR_SPELLS, SPELL_AURA_OVERRIDE_ACTIONBAR_SPELLS_TRIGGERED, sSpellMgr, TRIGGERED_IGNORE_CAST_TIME, TRIGGERED_IGNORE_POWER_COST, and TRIGGERED_IGNORE_SHAPESHIFT.
Reimplemented from WorldObject.
Definition at line 14656 of file Unit.cpp.
References GetAuraEffectsByType(), WorldObject::GetCastSpellXSpellVisualId(), WorldObject::GetMap(), SpellInfo::Id, SPELL_AURA_OVERRIDE_SPELL_VISUAL, and sSpellMgr.
Referenced by AuraCreateInfo::CalcSpellVisual(), AreaTrigger::Create(), WorldSession::HandleUpdateAreaTriggerVisual(), WorldSession::HandleUpdateAuraVisual(), and spell_hun_flare::PlayVisual().
|
inline |
Definition at line 1443 of file Unit.h.
Referenced by RecastSpiritHealChannelEvent::Execute(), GetUnitConditionVariable(), WorldSession::HandleUpdateAuraVisual(), and Spell::IsChannelActive().
|
inline |
Definition at line 1232 of file Unit.h.
Referenced by WorldObject::CanDetect(), Spell::finish(), GetFirstControlled(), WorldSession::HandlePetCastSpellOpcode(), WorldSession::HandlePetSpellAutocastOpcode(), WorldSession::HandleRequestPetInfo(), isPossessing(), Player::PossessSpellInitialize(), and Player::StopCastingCharm().
|
inline |
Definition at line 1231 of file Unit.h.
Referenced by spell_hun_tame_beast::CheckCast(), Spell::CheckCast(), GetDebugInfo(), GetUnitConditionVariable(), Guardian::InitSummon(), isPossessing(), OutDebugInfo(), RemoveAllControlled(), RemoveFromWorld(), SetCharm(), SetMinion(), Player::StopCastingCharm(), and lfg::LFGMgr::TeleportPlayer().
|
inline |
Definition at line 1229 of file Unit.h.
Referenced by SimpleCharmedPlayerAI::CanAIAttack(), DealDamage(), spell_gen_break_shield::HandleScriptEffect(), spell_gen_mounted_charge::HandleScriptEffect(), KnockbackFrom(), npc_salanar_the_horseman::npc_salanar_the_horsemanAI::MoveInLineOfSight(), PetAI::NeedToStop(), PetAI::OnCharmed(), SmartAI::OnCharmed(), RemoveCharmedBy(), PlayerAI::SelectAttackTarget(), SimpleCharmedPlayerAI::SelectAttackTarget(), UpdateCharmAI(), UpdateSpeed(), and PlayerAI::VerifySpellCast().
|
inline |
Definition at line 1228 of file Unit.h.
Referenced by Spell::CheckCast(), Spell::CheckEffectTarget(), spell_hun_masters_call::DoCheckCast(), PlayerAI::GetCharmer(), GetDebugInfo(), Player::GetNPCIfCanInteractWith(), GetUnitConditionVariable(), WorldSession::HandlePetActionHelper(), isPossessedByPlayer(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), OutDebugInfo(), RemoveAllControlled(), RemoveFromWorld(), SetCharm(), SetCharmedBy(), Player::SetClientControl(), Player::StopCastingCharm(), Update(), and UpdateCharmAI().
|
inline |
Definition at line 1241 of file Unit.h.
Referenced by ApplyDiminishingToDuration(), AtTargetAttacked(), PetAI::CanAttack(), Creature::CanCreatureAttack(), WorldObject::CanDetect(), SmartAI::EnterEvadeMode(), firelands_bossAI::EnterEvadeMode(), npc_daegarn::EnterEvadeMode(), CreatureAI::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(), BattlefieldTB::OnCreatureCreate(), PetAI::SelectNextTarget(), SetStunned(), npc_wyrmrest_defender::SpellHit(), npc_eye_of_acherus::UpdateAI(), Scripts::EasternKingdoms::Westfall::npc_westfall_overloaded_harvest_golem::UpdateAI(), npc_pet_gen_pandaren_monk::UpdateAI(), PetAI::UpdateAI(), PetAI::UpdateAllies(), and CombatManager::UpdateOwnerCombatState().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 1236 of file Unit.h.
Referenced by Creature::CanAssistTo(), Creature::CanCreatureAttack(), GetControllingPlayer(), SmartScript::GetTargets(), GetUnitConditionVariable(), IsAlwaysVisibleFor(), KillRewarder::KillRewarder(), Spell::PreprocessSpellHit(), Creature::Regenerate(), and Creature::RegenerateHealth().
|
inline |
Definition at line 1262 of file Unit.h.
Referenced by PetAI::_AttackStart(), Pet::AddToWorld(), PetAI::CanAttack(), CanHaveGlobalCooldown(), Player::CharmSpellInitialize(), Spell::CheckCast(), Spell::CheckPetCast(), PetAI::ClearCharmInfoFlags(), Player::DisablePetControlsOnMount(), PetAI::DoAttack(), Spell::EffectResurrectPet(), AuraEffect::HandleModPossessPet(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetRename(), WorldSession::HandlePetSetAction(), PetAI::HandleReturnMovement(), InitTamedPet(), PetAI::MovementInform(), npc_eye_of_acherus::npc_eye_of_acherus(), PetAI::PetAI(), Player::PetSpellInitialize(), Player::PossessSpellInitialize(), RemoveCharmedBy(), Player::RemovePet(), PetAI::SelectNextTarget(), SetCharmedBy(), SpellHistory::PersistenceHelper< Pet >::SetIdentifier(), PetAI::StopAttack(), Player::SummonPet(), Player::UnsummonPetTemporaryIfAny(), and PetAI::UpdateAI().
|
inline |
Definition at line 776 of file Unit.h.
Referenced by Player::_LoadGlyphs(), Player::_LoadHomeBind(), Player::_LoadSkills(), Player::_LoadTraits(), spell_monk_stagger::Absorb(), Player::ActivateTalentGroup(), Player::ActivateTaxiPathTo(), ArenaTeam::AddMember(), Group::AddMember(), Player::AddSpell(), spell_item_dire_brew::AfterApply(), CalcArmorReducedDamage(), CalculateDisplayPowerType(), Creature::CanResetTalents(), Player::CanRollNeedForItem(), Player::CanUseItem(), Spell::CheckCast(), spell_dk_advantage_t10_4p::CheckProc(), Spell::CheckRuneCost(), Player::Create(), Player::CreateCorpse(), Player::DuelComplete(), Spell::EffectCreateTamedPet(), Spell::EffectLearnSkill(), Spell::EffectSkill(), Spell::EffectTameCreature(), Player::EquipItem(), lfg::LFGMgr::FilterClassRoles(), ReputationMgr::GetBaseReputation(), GetDebugInfo(), Player::GetDefaultSpecId(), ReputationMgr::GetFactionDataIndexForRaceAndClass(), SocialMgr::GetFriendInfo(), GetModelForForm(), npc_tournament_mount::npc_tournament_mountAI::GetPennantSpellId(), Player::GetPowerIndex(), Player::GetPowerTypes(), Player::GetPrimaryStat(), GetUnitConditionVariable(), Player::GiveLevel(), WorldSession::HandleAdventureJournalOpenQuest(), WorldSession::HandleAdventureJournalUpdateSuggestions(), WorldSession::HandleAlterAppearance(), spell_gen_battleground_mercenary_shapeshift::HandleApply(), AuraEffect::HandleAuraModShapeshift(), WorldSession::HandleAzeriteEmpoweredItemSelectPower(), spell_malacrass_siphon_soul::HandleDummy(), spell_item_flask_of_the_north::HandleDummy(), WorldSession::HandleEquipmentSetSave(), learn_commandscript::HandleLearnAllTalentsCommand(), learn_commandscript::HandleLearnMySpellsCommand(), WorldSession::HandleMirrorImageDataRequest(), modify_commandscript::HandleModifyGenderCommand(), WorldSession::HandleOpeningCinematic(), AuraEffect::HandleOverridePetSpecs(), spell_dalaran_order_campaign_intro_aura::HandlePeriodic(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), spell_item_aura_of_madness::HandleProc(), spell_item_deathbringers_will< StrengthSpellId, AgilitySpellId, APSpellId, CriticalSpellId, HasteSpellId >::spell_item_deathbringers_will_AuraScript< Strength, Agility, AttackPower, Critical, Haste >::HandleProc(), spell_item_soul_preserver::HandleProc(), spell_pal_t3_6p_bonus::HandleProc(), spell_sha_t3_6p_bonus::HandleProc(), spell_gen_battleground_mercenary_shapeshift::HandleRemove(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsOrLevelHelper(), spell_gen_pet_summoned::HandleScript(), WorldPackets::Query::PlayerGuidLookupData::Initialize(), WorldPackets::Inspect::PlayerModelDisplayInfo::Initialize(), WorldPackets::Spells::SpellCastLogData::Initialize(), npc_stolen_soul::InitializeAI(), Player::InitializeSkillFields(), Player::InitRunes(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), Player::InitTalentForLevel(), Pet::IsPermanentPetFor(), Player::IsSpellFitByClassAndRace(), npc_sparring_partner_combat_training::IsSummonedBy(), boss_archimonde::KilledUnit(), Player::LearnCustomSpells(), Player::LearnDefaultSkill(), Player::LearnDefaultSkills(), Player::LearnPvpTalent(), Player::LearnTalent(), AzeriteEmpoweredItem::LoadAzeriteEmpoweredItemData(), Player::LoadFromDB(), CriteriaHandler::ModifierSatisfied(), DuelResetScript::OnDuelEnd(), at_aggro_radius_check_enhanced_combat_tactics::OnUnitEnter(), Trinity::WorldObjectSpellTargetCheck::operator()(), Player::PrepareGossipMenu(), ProcSkillsAndReactives(), Spell::RefundRunePower(), Player::RegenerateAll(), RemoveCharmedBy(), spell_evo_blessing_of_the_bronze::RemoveInvalidTargets(), Player::RemoveSpecializationSpells(), Player::RemoveSpell(), Player::ResetSpells(), Player::ResetTalents(), Player::ResetTalentSpecialization(), Player::RewardHonor(), Player::SaveToDB(), Spell::SendSpellGo(), Player::SendTalentsInfoData(), SetCharmedBy(), Player::SetSkill(), Guild::Member::SetStats(), SparringPartnerEnhancedCombatTrainingSelector(), quest_brace_for_impact::SpawnPet(), boss_volazj::SpellHitTarget(), Player::StoreNewItemInBestSlots(), Spell::TakeRunePower(), Player::TeleportTo(), npc_sinster_reflection::npc_sinster_reflectionAI::UpdateAI(), Player::UpdateAttackPowerAndDamage(), Player::UpdateDamageDoneMods(), Player::UpdateDodgePercentage(), Player::UpdateParryPercentage(), Player::UpdatePowerRegen(), spell_gen_battleground_mercenary_shapeshift::UpdateRacials(), Player::UpdateSkillsForLevel(), spell_item_amalgams_seventh_spine::UpdateSpecAura(), Guardian::UpdateStats(), and Player::UpdateVersatilityDamageDone().
|
inline |
Definition at line 778 of file Unit.h.
Referenced by Player::BuyItemFromVendorSlot(), SpellInfo::CalcProcPPM(), Player::CanRollNeedForItem(), Player::CanSelectQuestPackageItem(), Player::CanUseItem(), AuraEffect::HandleAuraModRangedAttackPower(), AuraEffect::HandleAuraModRangedAttackPowerPercent(), learn_commandscript::HandleLearnSkillRecipesHelper(), ConditionMgr::IsPlayerMeetingCondition(), Player::IsSpellFitByClassAndRace(), Player::LearnSkillRewardedSpells(), Player::SatisfyQuestClass(), and WorldSession::SendListInventory().
|
overridevirtual |
Dismounting case - use basic default model data
Reimplemented from WorldObject.
Definition at line 14680 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(), AuraEffect::HandleCosmeticMounted(), spell_spawn_blood_pool::SetDest(), Player::SetObjectScale(), and boss_jormungarAI::Submerge().
|
inline |
Definition at line 1053 of file Unit.h.
Referenced by ThreatManager::AddThreat(), Player::AtEnterCombat(), Creature::CallForHelp(), Player::DisablePvpRules(), CombatReference::EndCombat(), Creature::ForcePartyMembersIntoCombat(), 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_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), Player::UpdateArea(), and npc_pet_mage_mirror_image::UpdateVictim().
|
inline |
|
private |
Definition at line 12629 of file Unit.cpp.
References CalculatePct(), and GetCombatRatingReduction().
|
private |
Definition at line 12617 of file Unit.cpp.
References WorldObject::GetOwner(), IsPet(), and Object::ToPlayer().
Referenced by GetCombatRatingDamageReduction().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 717 of file Unit.h.
Referenced by Creature::CanCreatureAttack(), WorldObject::CanDetectStealthOf(), Spell::CheckCast(), Spell::EffectCharge(), Spell::EffectCreateTamedPet(), Spell::EffectResurrectPet(), Spell::EffectSummonPet(), Creature::GetAttackDistance(), GetMeleeRange(), Spell::GetMinMaxRange(), Player::GetNPCIfCanInteractWith(), GetUnitConditionVariable(), 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(), AreaTrigger::SearchUnitInBoundedPlane(), 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 |
Definition at line 768 of file Unit.h.
Referenced by Spell::EffectSkinning().
| Player * Unit::GetControllingPlayer | ( | ) | const |
Definition at line 6221 of file Unit.cpp.
References GetCharmerOrOwnerGUID(), ObjectAccessor::GetUnit(), ObjectGuid::IsEmpty(), and Object::ToPlayer().
Referenced by DealDamage().
|
inline |
Definition at line 1435 of file Unit.h.
Referenced by Creature::GetHealthMultiplierForTarget(), npc_commandscript::HandleNpcInfoCommand(), Guardian::UpdateMaxHealth(), and Player::UpdateMaxHealth().
|
inline |
Definition at line 1437 of file Unit.h.
Referenced by SpellInfo::CalcPowerCost(), GetCreatePowerValue(), and Player::GiveLevel().
Reimplemented in Creature.
Definition at line 90 of file StatSystem.cpp.
References GetCreateMana(), POWER_MANA, and sDB2Manager.
Referenced by Creature::GetCreatePowerValue(), Player::InitStatsForLevel(), and Player::UpdateMaxPower().
| float Unit::GetCreateStat | ( | Stats | stat | ) | const |
Definition at line 5312 of file Unit.cpp.
References AsUnderlyingType(), BASE_VALUE, GetFlatModifierValue(), and UNIT_MOD_STAT_START.
Referenced by Player::GiveLevel(), Player::InitStatsForLevel(), and Guardian::UpdateMaxHealth().
|
inlineoverridevirtual |
Implements WorldObject.
Definition at line 1213 of file Unit.h.
Referenced by SmartScript::GetTargets(), GetUnitConditionVariable(), 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 9478 of file Unit.cpp.
References ChrRacesEntry::CreatureType, SpellShapeshiftFormEntry::CreatureType, Creature::GetCreatureTemplate(), GetRace(), GetShapeshiftForm(), BaseEntity::GetTypeId(), sChrRacesStore, sSpellShapeshiftFormStore, Object::ToCreature(), CreatureTemplate::type, and TYPEID_PLAYER.
Referenced by KillRewarder::_RewardXP(), Creature::CanStartAttack(), spell_utgarde_pinnacle_beast_mark::CheckProc(), GetCreatureTypeMask(), GetUnitConditionVariable(), AuraEffect::HandleAuraEmpathy(), spell_dru_starfall_dummy::HandleDummy(), spell_pal_wake_of_ashes::HandleHitTarget(), spell_item_set_march_of_the_legion::IsDemon(), spell_item_lightblood_elixir::IsDemon(), CriteriaHandler::ModifierSatisfied(), and Trinity::NearestAttackableNoTotemUnitInObjectRangeCheck::operator()().
| uint32 Unit::GetCreatureTypeMask | ( | ) | const |
Definition at line 9496 of file Unit.cpp.
References GetCreatureType().
Referenced by SpellInfo::CheckTargetCreatureType(), MeleeDamageBonusDone(), and SpellDamagePctDone().
|
inline |
Definition at line 1219 of file Unit.h.
Referenced by SpellInfo::CheckExplicitTarget(), Player::GetSummonedBattlePet(), GetUnitConditionVariable(), WorldSession::HandleDismissCritter(), and SetMinion().
|
inline |
Definition at line 1490 of file Unit.h.
Referenced by Player::ActivateTaxiPathTo(), Spell::CancelGlobalCooldown(), Player::CanEquipItem(), Player::CanExecutePendingSpellCastRequest(), Player::CanRequestSpellCast(), spell_monk_crackling_jade_lightning_knockback_proc_aura::CheckProc(), Spell::EffectInterruptCast(), AqusirrEventHandler::Execute(), Player::ExecutePendingSpellCastRequest(), Spell::finish(), GetUnitConditionVariable(), WorldSession::HandleCancelAuraOpcode(), WorldSession::HandleCancelChanneling(), AuraEffect::HandleFeignDeath(), spell_tunk_interrupting_shout::HandleLaunchTarget(), WorldSession::HandlePetActionHelper(), spell_azhiccar_player_detection::HandlePlayerDetection(), WorldSession::HandleSpellEmpowerRelease(), WorldSession::HandleSpellEmpowerRestart(), WorldSession::HandleUpdateMissileTrajectory(), HasBreakableByDamageCrowdControlAura(), InterruptSpellsWithPreventionTypeOnAuraApply(), spell_baleroc_torment_target_search::OnHit(), SmartScript::ProcessEvent(), Player::RemoveItemDependentAurasAndCasts(), Spell::SelectImplicitChannelTargets(), Player::SendAreaSpiritHealerTime(), Update(), npc_harbinger_of_flame::npc_harbinger_of_flameAI::UpdateAI(), boss_temple_guardian_anhuur::UpdateAI(), npc_risen_archmage::UpdateAI(), PetAI::UpdateAI(), and GameObject::Use().
Definition at line 3276 of file Unit.cpp.
References FindCurrentSpellBySpellId(), and Spell::GetCastTime().
Referenced by CasterAI::JustEngagedWith(), and CasterAI::UpdateAI().
| uint32 Unit::GetDamageImmunityMask | ( | ) | const |
Definition at line 7844 of file Unit.cpp.
References IMMUNITY_DAMAGE, and m_spellImmune.
Referenced by IsImmunedToDamage().
|
inlinevirtual |
Definition at line 983 of file Unit.h.
References CR_RESILIENCE_PLAYER_DAMAGE.
Referenced by ApplyResilience().
|
inline |
Definition at line 1208 of file Unit.h.
Referenced by _ExitVehicle(), Spell::finish(), GetDebugInfo(), AuraEffect::HandleModTotalPercentStat(), spell_gen_pet_summoned::HandleScript(), Player::IsInAreaTrigger(), Trinity::NearestCreatureEntryWithLiveStateInObjectRangeCheck::operator()(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), Creature::RemoveCorpse(), Creature::Respawn(), Pet::setDeathState(), SetHealth(), and Creature::SetSpawnHealth().
|
overridevirtual |
Reimplemented from Object.
Definition at line 14738 of file Unit.cpp.
References GetCharmedGUID(), GetCharmerGUID(), GetClass(), getDeathState(), Vehicle::GetDebugInfo(), WorldObject::GetDebugInfo(), GetUnitMovementFlags(), GetVehicleKit(), IsAIEnabled(), m_Controlled, Movement::MovementFlags_ToString(), movespline, and ObjectGuid::ToString().
Referenced by _CreateAuraApplication(), _ExitVehicle(), UnitAI::GetDebugInfo(), AuraApplication::GetDebugInfo(), Creature::GetDebugInfo(), Player::GetDebugInfo(), RemoveAllAuras(), SetMinion(), Player::StopCastingCharm(), and Movement::MoveSplineInitArgs::Validate().
|
virtual |
Reimplemented in Creature.
Definition at line 10748 of file Unit.cpp.
References IDLE_MOTION_TYPE.
Referenced by FactorySelector::SelectMovementGenerator().
| Unit * Unit::GetDemonCreator | ( | ) | const |
Definition at line 6211 of file Unit.cpp.
References GetDemonCreatorGUID(), and ObjectAccessor::GetUnit().
Referenced by npc_sparring_partner_enhanced_combat_training_paladin::HandleClassEvent(), npc_sparring_partner_enhanced_combat_training_rogue::HandleClassEvent(), npc_sparring_partner_enhanced_combat_training_shaman::HandleClassEvent(), npc_sparring_partner_enhanced_combat_training_mage::HandleClassEvent(), npc_sparring_partner_exiles_reach::MovementInform(), npc_sparring_partner_combat_training::MovementInform(), npc_re_sized_boar_q56034::MovementInform(), npc_sparring_partner_exiles_reach::StartPrivateConversation(), npc_sparring_partner_combat_training::UpdateAI(), npc_sparring_partner_exiles_reach::WaypointPathEnded(), and npc_sparring_partner_combat_training::WaypointPathEnded().
|
inline |
Definition at line 1223 of file Unit.h.
Referenced by GetDemonCreator(), GetDemonCreatorPlayer(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), TempSummon::UpdateObjectVisibilityOnCreate(), and TempSummon::UpdateObjectVisibilityOnDestroy().
| Player * Unit::GetDemonCreatorPlayer | ( | ) | const |
Definition at line 6216 of file Unit.cpp.
References GetDemonCreatorGUID(), and ObjectAccessor::GetPlayer().
Referenced by npc_sparring_partner_exiles_reach::DamageTaken(), Scripts::KhazAlgar::CampaignsVisionsOfAShadowedSun::npc_vereesa_windrunner_oztan_isle_private::DoAction(), npc_sparring_partner_combat_training::GetQuestCredits(), npc_jayce_darkweaver_cryptic_hollow_private::JustAppeared(), npc_jayce_darkweaver_cryptic_hollow_private::OnChannelFinished(), npc_sparring_partner_combat_training::StartConversationWithPlayer(), and Scripts::KhazAlgar::CampaignsVisionsOfAShadowedSun::npc_vereesa_windrunner_oztan_isle_private::WaypointPathEnded().
| DiminishingLevels Unit::GetDiminishing | ( | DiminishingGroup | group | ) | const |
Definition at line 9350 of file Unit.cpp.
References DIMINISHING_LEVEL_1, GetMSTimeDiffToNow(), DiminishingReturn::hitCount, DiminishingReturn::hitTime, IN_MILLISECONDS, 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 12246 of file Unit.cpp.
References WorldObject::GetTransport(), and GetVehicle().
Referenced by SmartScript::ProcessAction(), Creature::RemoveCorpse(), CharmInfo::SaveStayPosition(), quest_brace_for_impact::SpawnActor(), and UpdateSplinePosition().
| uint32 Unit::GetDiseasesByCaster | ( | ObjectGuid | casterGUID, |
| bool | remove = false |
||
| ) |
Definition at line 4946 of file Unit.cpp.
References DISPEL_DISEASE, m_modAuras, RemoveAura(), SPELL_AURA_LINKED, and SPELL_AURA_PERIODIC_DAMAGE.
| void Unit::GetDispellableAuraList | ( | WorldObject const * | caster, |
| uint32 | dispelMask, | ||
| DispelChargesList & | dispelList, | ||
| bool | isReflect = false |
||
| ) | const |
Definition at line 4754 of file Unit.cpp.
References Aura::CalcDispelChance(), Aura::GetApplicationOfTarget(), Aura::GetCharges(), SpellInfo::GetDispelMask(), BaseEntity::GetGUID(), GetOwnedAuras(), Aura::GetSpellInfo(), Aura::GetStackAmount(), SpellInfo::HasAttribute(), WorldObject::IsFriendlyTo(), Aura::IsPassive(), AuraApplication::IsPositive(), and SPELL_ATTR7_DISPEL_REMOVES_CHARGES.
Referenced by Spell::EffectDispel(), and HighInquisitorFairbanksDispelMagicTargetSelector::operator()().
|
inline |
Definition at line 1637 of file Unit.h.
Referenced by Player::ActivateTaxiPathTo(), CalculateHoverHeight(), Pet::CreateBaseAtCreature(), AuraEffect::HandleAuraCloneCaster(), WorldSession::HandleMirrorImageDataRequest(), npc_commandscript::HandleNpcInfoCommand(), spell_death_knight_initiate_visual::HandleScriptEffect(), wp_commandscript::HandleWpAddCommand(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), boss_felmyst::InitializeAI(), Guardian::InitStatsForLevel(), IsInDisallowedMountForm(), npc_silverpine_forsaken_trooper_fenris_isle::IsSummonedBy(), boss_devourer_of_souls::KilledUnit(), CriteriaHandler::ModifierSatisfied(), spell_illidan_demon_transform2::OnPeriodic(), MoltenEggCheck::operator()(), and Creature::SetObjectScale().
|
inline |
Definition at line 1638 of file Unit.h.
Referenced by WorldSession::HandleMirrorImageDataRequest(), Creature::SetDisplayId(), and Creature::SetObjectScale().
| uint32 Unit::GetDoTsByCaster | ( | ObjectGuid | casterGUID | ) | const |
Definition at line 4978 of file Unit.cpp.
References GetAuraEffectsByType(), SPELL_AURA_NONE, SPELL_AURA_PERIODIC_DAMAGE, and SPELL_AURA_PERIODIC_DAMAGE_PERCENT.
Referenced by SpellDamagePctDone().
| DynamicObject * Unit::GetDynObject | ( | uint32 | spellId | ) | const |
Definition at line 5332 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 770 of file Unit.h.
Referenced by ConditionMgr::IsPlayerMeetingCondition(), and Player::UpdateAverageItemLevelEquipped().
|
inline |
Definition at line 879 of file Unit.h.
Referenced by WorldSession::HandleMovementOpcode(), and at_auchindoun_npc_reaction::OnUnitEnter().
|
inlineoverridevirtual |
Implements WorldObject.
Definition at line 886 of file Unit.h.
Referenced by Player::ActivateTaxiPathTo(), Creature::CanAssistTo(), Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectTransmitted(), DynamicObject::GetFaction(), UF::ViewerDependentValue< UF::UnitData::FactionTemplateTag >::GetValue(), WorldSession::HandleAuctionBrowseQuery(), WorldSession::HandleAuctionCancelCommoditiesPurchase(), WorldSession::HandleAuctionConfirmCommoditiesPurchase(), WorldSession::HandleAuctionGetCommodityQuote(), WorldSession::HandleAuctionListBiddedItems(), WorldSession::HandleAuctionListBucketsByBucketKeys(), WorldSession::HandleAuctionListItemsByBucketKey(), WorldSession::HandleAuctionListItemsByItemID(), WorldSession::HandleAuctionListOwnedItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionReplicateItems(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleGossipHelloOpcode(), modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcInfoCommand(), EscortAI::InitializeAI(), Minion::InitStats(), InitTamedPet(), go_wg_vehicle_teleporter::IsFriendly(), IsInPartyWith(), IsInRaidWith(), boss_balinda::JustSummoned(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::JustSummoned(), npc_felfire_portal::npc_felfire_portalAI::JustSummoned(), Pet::LoadPetFromDB(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::npc_engineer_spark_overgrindAI(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::npc_taskmaster_fizzuleAI(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::OnGossipSelect(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::ReceiveEmote(), WorldSession::SendAuctionHello(), SetCharmedBy(), Player::SetGameMaster(), Creature::SummonGraveyardTeleporter(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), Player::SummonPet(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_toc_shaman::UpdateAI(), npc_toc_enh_shaman::UpdateAI(), npc_akama_shade::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::UpdateAI(), and npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::WaypointReached().
| Unit * Unit::GetFirstControlled | ( | ) | const |
Definition at line 6618 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 6234 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 9684 of file Unit.cpp.
References m_auraFlatModifiersGroup, MODIFIER_TYPE_FLAT_END, TC_LOG_ERROR, and UNIT_MOD_END.
Referenced by Creature::CalculateMinMaxDamage(), Player::CalculateMinMaxDamage(), GetCreateStat(), GetTotalAuraModValue(), GetTotalStatValue(), Creature::UpdateArmor(), Guardian::UpdateArmor(), Player::UpdateArmor(), Guardian::UpdateDamagePhysical(), Guardian::UpdateMaxHealth(), Player::UpdateMaxHealth(), Creature::UpdateMaxPower(), Guardian::UpdateMaxPower(), Player::UpdateMaxPower(), UpdateResistances(), Guardian::UpdateResistances(), and UpdateStatBuffMod().
|
inline |
Definition at line 1738 of file Unit.h.
Referenced by UpdateAdvFlyingSpeed(), and UpdateAdvFlyingSpeed().
|
inlinevirtual |
Reimplemented in Minion.
Definition at line 1832 of file Unit.h.
References M_PI.
Referenced by firelands_bossAI::EnterEvadeMode(), npc_daegarn::EnterEvadeMode(), CreatureAI::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().
| GameObject * Unit::GetGameObject | ( | uint32 | spellId | ) | const |
Definition at line 5369 of file Unit.cpp.
References GetGameObjects().
Referenced by Spell::cancel(), npc_bg_silvershard_mines_mine_cart::GetControlZone(), battleground_silvershard_mines::OnMineCartCaptured(), Player::TeleportTo(), boss_garaxxas::UpdateAI(), and UpdatePosition().
| std::vector< GameObject * > Unit::GetGameObjects | ( | uint32 | spellId | ) | const |
|
inline |
Definition at line 779 of file Unit.h.
Referenced by spell_item_dire_brew::AfterApply(), GetUnitConditionVariable(), AuraEffect::HandleAuraDummy(), spell_pri_shadowy_apparition_dummy::HandleEffectHit(), lookup_commandscript::HandleLookupTitleCommand(), WorldSession::HandleMirrorImageDataRequest(), modify_commandscript::HandleModifyGenderCommand(), arena_mugambala::HandleReactionLowHealth(), arena_blades_edge_legion::HandleReactionTriggerLowHealth(), spell_silverpine_forsaken_trooper_masterscript_fenris_isle::HandleScriptEffect(), ConditionMgr::IsPlayerMeetingCondition(), npc_silverpine_forsaken_trooper_fenris_isle::IsSummonedBy(), CriteriaHandler::ModifierSatisfied(), Trinity::BroadcastTextBuilder::operator()(), SmartScript::ProcessAction(), CreatureTextMgr::SendChat(), Talk(), Whisper(), and Player::Whisper().
| Guardian * Unit::GetGuardianPet | ( | ) | const |
Definition at line 6250 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_hun_masters_call::DoCheckCast(), GetNextRandomRaidMemberOrPet(), GetPartyMembers(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleModDamageDone(), AuraEffect::HandlePeriodicManaLeechAuraTick(), WorldSession::HandlePetCastSpellOpcode(), WorldSession::HandlePetSpellAutocastOpcode(), SetMinion(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 800 of file Unit.h.
Referenced by spell_pri_guardian_spirit::Absorb(), boss_twilight_halion::boss_twilight_halion(), boss_valithria_dreamwalker::boss_valithria_dreamwalker(), SpellInfo::CalcPowerCost(), Creature::CalculateDamageForSparring(), boss_supremus::CalculateHatefulStrikeTarget(), spell_razorscale_flame_breath::CheckDamage(), Spell::CheckPower(), boss_garothi_worldbreaker::DamageTaken(), npc_volatile_sapling::DamageTaken(), boss_argaloth::DamageTaken(), boss_mother_smolderweb::DamageTaken(), boss_attumen::boss_attumenAI::DamageTaken(), boss_midnight::boss_midnightAI::DamageTaken(), boss_nightbane::boss_nightbaneAI::DamageTaken(), npc_felblood_kaelthas_phoenix::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), boss_apothecary_hummel::DamageTaken(), npc_madrigosa::DamageTaken(), boss_felmyst::DamageTaken(), npc_volatile_felfire_fiend::npc_volatile_felfire_fiendAI::DamageTaken(), boss_muru::DamageTaken(), npc_dark_fiend::DamageTaken(), npc_ohgan::DamageTaken(), npc_sparring_partner_exiles_reach::DamageTaken(), npc_sparring_partner_combat_training::DamageTaken(), npc_captain_garrick_q55879::DamageTaken(), npc_warlord_grimaxe_q59942::DamageTaken(), boss_mal_ganis::boss_mal_ganisAI::DamageTaken(), boss_lockmaw::DamageTaken(), boss_cthun::cthunAI::DamageTaken(), boss_twinemperorsAI::DamageTaken(), boss_lord_waycrest::DamageTaken(), boss_slabhide::boss_slabhideAI::DamageTaken(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::DamageTaken(), boss_baltharus_the_warborn::DamageTaken(), npc_baltharus_the_warborn_clone::DamageTaken(), boss_eadric::boss_eadricAI::DamageTaken(), boss_paletress::boss_paletressAI::DamageTaken(), npc_frost_sphere::DamageTaken(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::DamageTaken(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::DamageTaken(), npc_uther_quel_delar::npc_uther_quel_delarAI::DamageTaken(), boss_drakkari_colossus::DamageTaken(), boss_deathbringer_saurfang::DamageTaken(), npc_gunship::npc_gunshipAI::DamageTaken(), npc_high_overlord_saurfang_igb::DamageTaken(), npc_muradin_bronzebeard_igb::DamageTaken(), npc_crok_scourgebane::DamageTaken(), npc_terenas_menethil::DamageTaken(), boss_valithria_dreamwalker::DamageTaken(), boss_sapphiron::DamageTaken(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), boss_malygos::DamageTaken(), boss_magus_telestra::DamageTaken(), boss_urom::DamageTaken(), boss_volkhan::DamageTaken(), boss_algalon_the_observer::DamageTaken(), npc_collapsing_star::DamageTaken(), npc_feral_defender::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), boss_hodir::DamageTaken(), npc_flash_freeze_init::DamageTaken(), npc_flash_freeze_combat::DamageTaken(), npc_boombot::DamageTaken(), boss_sara::boss_saraAI::DamageTaken(), npc_immortal_guardian::npc_immortal_guardianAI::DamageTaken(), boss_ingvar_the_plunderer::DamageTaken(), npc_frost_tomb::DamageTaken(), boss_ymiron::DamageTaken(), npc_ichor_globule::DamageTaken(), npc_wild_wyrm::DamageTaken(), npc_akama_illidan::DamageTaken(), npc_maiev::DamageTaken(), boss_essence_of_suffering::DamageTaken(), boss_essence_of_desire::DamageTaken(), npc_enslaved_soul::DamageTaken(), boss_vazruden_the_herald::DamageTaken(), boss_alar::DamageTaken(), AdvisorBaseAI::DamageTaken(), npc_phoenix_the_eye::DamageTaken(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), npc_nagrand_banner::npc_kil_sorrow_spellbinderAI::DamageTaken(), npc_nagrand_banner::npc_kil_sorrow_deathswornAI::DamageTaken(), npc_nagrand_banner::npc_giselda_the_croneAI::DamageTaken(), npc_nagrand_banner::npc_warmaul_shamanAI::DamageTaken(), npc_volkaal_reanimation_totem::DamageTaken(), boss_black_knight::boss_black_knightAI::DamageTaken(), boss_majordomo::DamageTaken(), boss_felblood_kaelthas::DamageTaken(), Scripts::Kalimdor::Durotar::npc_durotar_tiki_target::DamageTaken(), boss_halion::DamageTaken(), boss_twilight_halion::DamageTaken(), npc_volkhan_molten_golem::DamageTaken(), npc_vrykul_skeleton::DamageTaken(), npc_scourge_hulk::DamageTaken(), SmartAI::DamageTaken(), npc_death_knight_initiate::npc_death_knight_initiateAI::DamageTaken(), npc_argent_valiant::DamageTaken(), boss_julianne::DamageTaken(), boss_romulo::DamageTaken(), boss_headless_horseman::DamageTaken(), boss_sacrolash::DamageTaken(), boss_alythess::DamageTaken(), boss_kalecgos::DamageTaken(), boss_sathrovarr::DamageTaken(), boss_archimonde::DamageTaken(), boss_freya::boss_freyaAI::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_vx_001::boss_vx_001AI::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), ControllerBaseAI::DamageTaken(), boss_illidan_stormrage::DamageTaken(), IllidariCouncilBossAI::DamageTaken(), npc_warden_mellichar::DamageTaken(), DealDamage(), DealMeleeDamage(), spell_pri_shadow_word_death::DetermineKillStatus(), spell_warr_execute_refund_rage::DetermineKillStatus(), boss_lady_vashj::DoAction(), boss_ichoron::DoAction(), Spell::EffectHeal(), Spell::EffectHealMaxHealth(), Pet::FillPetInfo(), npc_thorim_trashAI::AIHelper::GetHealTarget(), GetHealthGain(), boss_volazj::GetHealthPct(), GetUnitConditionVariable(), AuraEffect::HandleAuraModIncreaseHealth(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModIncreaseMaxHealth(), spell_aqusirr_erupting_waters::HandleDamage(), misc_commandscript::HandleDieCommand(), spell_mandokir_bloodletting::HandleEffectPeriodic(), Player::HandleFall(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcInfoCommand(), spell_lord_and_lady_waycrest_vitality_transfer::HandlePeriodic(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), WorldPackets::Party::PartyMemberFullState::Initialize(), WorldPackets::Spells::SpellCastLogData::Initialize(), boss_attumen::boss_attumenAI::JustSummoned(), boss_baltharus_the_warborn::JustSummoned(), Kill(), CriteriaHandler::ModifierSatisfied(), ModifyHealth(), spell_mage_alter_time_aura::OnApply(), spell_xt002_gravity_bomb_aura::OnPeriodic(), Trinity::MostHPMissingInRange::operator()(), npc_thorim_trashAI::AIHelper::MostHPMissingInRange::operator()(), Trinity::Predicates::HealthPctOrderPred::operator()(), Trinity::Predicates::HealthPctOrderPred::operator()(), Creature::RegenerateHealth(), Player::RegenerateHealth(), Creature::ResetPlayerDamageReq(), Pet::SavePetToDB(), Player::SaveToDB(), SendAttackStateUpdate(), boss_xt002::SetData(), SetHealth(), SetMaxHealth(), boss_felmyst::SpellHit(), boss_twinemperorsAI::SpellHit(), Aura::Update(), boss_priestess_delrissa::UpdateAI(), boss_blood_council_controller::UpdateAI(), boss_patchwerk::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), and Creature::UpdateEntry().
Definition at line 8660 of file Unit.cpp.
References GetHealth(), and GetMaxHealth().
Referenced by Spell::EffectHealthLeech().
|
inlinevirtual |
|
inline |
Definition at line 808 of file Unit.h.
Referenced by spell_mage_firestarter_dots::CalcCritChance(), spell_mage_firestarter::CalcCritChance(), spell_mage_scorch::CalcCritChance(), Creature::CalculateDamageForSparring(), spell_warl_burning_rush::CheckApplyAura(), spell_item_grips_of_forsaken_sanity::CheckHealth(), spell_item_trample_the_weak::CheckHealthPct(), spell_pri_twist_of_fate::CheckProc(), npc_sparring_partner_exiles_reach::DamageDealt(), npc_sparring_partner_combat_training::DamageDealt(), boss_eregos::DamageTaken(), boss_viscidus::boss_viscidusAI::DamageTaken(), boss_hadronox::DamageTaken(), npc_thorim_trashAI::AIHelper::GetHealTarget(), GetUnitConditionVariable(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModIncreaseMaxHealth(), spell_buru_egg_explosion::HandleDummy(), spell_dk_blood_bond_periodic::HandleDummyTick(), AuraEffect::HandleModTotalPercentStat(), spell_dk_soul_reaper::HandleOnTick(), spell_moorabi_mojo_frenzy::HandlePeriodic(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), boss_skeram::boss_skeramAI::JustSummoned(), CriteriaHandler::ModifierSatisfied(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), Trinity::MostHPPercentMissingInRange::operator()(), SmartScript::ProcessEvent(), Creature::SaveToDB(), Creature::ShouldFakeDamageFrom(), SpellHealingPctDone(), boss_viscidus::boss_viscidusAI::SpellHit(), boss_skeram::boss_skeramAI::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), boss_grobbulus::UpdateAI(), boss_malygos::UpdateAI(), npc_ruby_emerald_amber_drake::UpdateAI(), npc_wyrmrest_defender::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::UpdateAI(), and Player::UpdateItemLevelAreaBasedScaling().
| SpellEffectValue Unit::GetHighestExclusiveSameEffectSpellGroupValue | ( | AuraEffect const * | aurEff, |
| AuraType | auraType, | ||
| bool | checkMiscValue = false, |
||
| int32 | miscValue = 0 |
||
| ) | const |
Definition at line 14397 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::HandleModMeleeHaste(), and AuraEffect::HandleModMeleeRangedCastingHaste().
|
inline |
Definition at line 1828 of file Unit.h.
References MOVEMENTFLAG_HOVER.
Referenced by WorldSession::HandleMoveWorldportAck(), MotionMaster::MoveCirclePath(), MotionMaster::MoveFall(), and Creature::UpdateMovementCapabilities().
|
inline |
|
inline |
|
inline |
Definition at line 974 of file Unit.h.
Referenced by AuraEffect::CheckEffectProc().
|
inline |
Definition at line 769 of file Unit.h.
Referenced by KillRewarder::_InitGroupData(), KillRewarder::_RewardPlayer(), KillRewarder::_RewardXP(), Player::_SaveStats(), spell_monk_stagger::Absorb(), Player::AddHonorXP(), AddItemsSetItem(), RestMgr::AddRestBonus(), Player::ApplyEnchantment(), AuctionHouseObject::BuildListBuckets(), SpellEffectInfo::CalcBaseValue(), SpellInfo::CalcPowerCost(), Aura::CalcProcChance(), spell_item_arcane_shroud::CalculateAmount(), spell_item_the_eye_of_diminution::CalculateAmount(), CalculateMeleeDamage(), Player::CalculateReputationGain(), CalculateSpellDamageTaken(), SpellEffectInfo::CalcValue(), Player::CanEquipItem(), ReputationMgr::CanGainParagonReputationForFaction(), Group::CanJoinBattlegroundQueue(), Spell::CanOpenLock(), Creature::CanResetTalents(), Player::CanSeeStartQuest(), Player::CanUseItem(), Player::CanUseItem(), Player::CheckAreaExplore(), spell_hun_tame_beast::CheckCast(), Spell::CheckCast(), spell_ethereal_pet_aura::CheckProc(), Pet::CreateBaseAtTamed(), CreateTamedPetFrom(), CreateTamedPetFrom(), DealMeleeDamage(), Spell::EffectDuel(), Spell::EffectEnergize(), Spell::EffectFeedPet(), Spell::EffectPickPocket(), Spell::EffectSummonObject(), Pet::FillPetInfo(), lfg::LFGMgr::FinishDungeon(), Trinity::XP::Gain(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), Creature::GetArmorMultiplierForTarget(), Player::GetBarberShopCost(), Player::GetBGAccessByLevel(), Creature::GetDamageMultiplierForTarget(), SocialMgr::GetFriendInfo(), Player::GetHealthBonusFromStamina(), Item::GetItemLevel(), lfg::LFGMgr::GetLockedDungeons(), Pet::GetNativeObjectScale(), ConditionMgr::GetPlayerConditionLfgValue(), Player::GetQuestDialogStatus(), Player::GetQuestLevel(), Player::GetRatingMultiplier(), Trainer::Trainer::GetSpellState(), Player::GetsRecruitAFriendBonus(), GetUnitConditionVariable(), Player::GiveLevel(), Pet::GivePetLevel(), Pet::GivePetXP(), Player::GiveXP(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleChatMessage(), group_commandscript::HandleGroupLevelCommand(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleInspectOpcode(), list_commandscript::HandleListMailCommand(), npc_commandscript::HandleNpcInfoCommand(), WorldSession::HandlePartyInviteOpcode(), pet_commandscript::HandlePetLevelCommand(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), WorldSession::HandleRequestBattlefieldStatusOpcode(), reset_commandscript::HandleResetLevelCommand(), spell_item_scroll_of_recall::HandleScript(), WorldSession::HandleSendMail(), WorldSession::HandleSocketGems(), WorldSession::HandleTransmogOutfitUpdateSlots(), WorldPackets::Query::PlayerGuidLookupData::Initialize(), WorldPackets::Party::PartyMemberFullState::Initialize(), Pet::InitLevelupSpellsForLevel(), Guardian::InitStats(), Player::InitStatsForLevel(), Player::InitTalentForLevel(), Battlefield::InvitePlayerToWar(), Player::isHonorOrXPTarget(), Player::IsMaxLevel(), ConditionMgr::IsPlayerMeetingCondition(), ItemTemplate::IsUsableByLootSpecialization(), npc_pet_hunter_snake_trap::JustAppeared(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::JustSummoned(), npc_felfire_portal::npc_felfire_portalAI::JustSummoned(), Player::LearnDefaultSkill(), Player::LearnDefaultSkills(), Player::LearnPvpTalent(), Player::LearnSkillRewardedSpells(), Pet::LearnSpecializationSpells(), Player::LearnSpecializationSpells(), Pet::LoadPetFromDB(), WorldSession::LogoutPlayer(), CriteriaHandler::ModifierSatisfied(), item_generic_limit_chance_above_60::OnCastItemCombatSpell(), at_nearby_scarshield_infiltrator::OnTrigger(), Player::RegenerateHealth(), Player::RemovedInsignia(), Player::ResurrectPlayer(), Player::RewardHonor(), Player::RewardQuest(), Player::Satisfy(), Player::SatisfyQuestMaxLevel(), Player::SatisfyQuestMinLevel(), Pet::SavePetToDB(), Player::SaveToDB(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInvite(), WorldSession::SendLfgPlayerLockInfo(), Group::SendUpdateToPlayer(), RestMgr::SetRestBonus(), Guild::Member::SetStats(), Player::SetXP(), SpellCritChanceTaken(), Player::StoreNewItem(), Player::SummonPet(), Pet::SynchronizeLevelWithOwner(), Player::UpdateAttackPowerAndDamage(), Player::UpdateAverageItemLevelEquipped(), CriteriaHandler::UpdateCriteria(), Creature::UpdateLevelDependantStats(), Player::UpdatePowerRegen(), GameObject::Use(), and Quest::XPValue().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 771 of file Unit.h.
Referenced by KillRewarder::_InitGroupData(), CalcArmorReducedDamage(), Creature::CanStartAttack(), Player::CastItemCombatSpell(), Spell::CheckEffectTarget(), DealMeleeDamage(), Player::ExecutePendingSpellCastRequest(), Trinity::XP::Gain(), Creature::GetAggroRange(), Creature::GetAttackDistance(), Creature::GetLevelForTarget(), GetUnitBlockChance(), GetUnitDodgeChance(), GetUnitParryChance(), Player::isHonorOrXPTarget(), WorldObject::MagicSpellHitResult(), item_generic_limit_chance_above_60::OnCastItemCombatSpell(), Player::RewardHonor(), Player::RewardReputation(), RollMeleeOutcomeAgainst(), and SpellCritChanceTaken().
|
inline |
Definition at line 801 of file Unit.h.
Referenced by Player::_SaveStats(), SpellInfo::CalcPowerCost(), spell_gen_gift_of_naaru::CalculateAmount(), Creature::CalculateDamageForSparring(), boss_twinemperorsAI::DamageTaken(), boss_algalon_the_observer::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), npc_boombot::DamageTaken(), DealDamage(), npc_terenas_menethil::DoAction(), Spell::EffectHeal(), Spell::EffectHealMaxHealth(), Trinity::XP::Gain(), npc_thorim_trashAI::AIHelper::GetHealTarget(), GetHealthGain(), boss_volazj::GetHealthPct(), spell_monk_stagger::GetStaggerSpellId(), AuraEffect::HandleAuraModIncreaseHealthPercent(), spell_buru_egg_explosion::HandleDummy(), spell_dk_death_strike::HandleDummy(), spell_mage_tempest_barrier::HandleEffectProc(), Player::HandleFall(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcInfoCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), spell_dru_bristling_fur::HandleProc(), spell_hun_rejuvenating_wind::HandleProc(), spell_warr_item_t10_prot_4p_bonus::HandleProc(), WorldPackets::Party::PartyMemberFullState::Initialize(), boss_skeram::boss_skeramAI::JustSummoned(), boss_drakkari_colossus::JustSummoned(), spell_dk_anti_magic_shell::Load(), Player::LoadFromDB(), ModifyHealth(), Trinity::MostHPMissingInRange::operator()(), npc_thorim_trashAI::AIHelper::MostHPMissingInRange::operator()(), Trinity::Predicates::HealthPctOrderPred::operator()(), Trinity::Predicates::HealthPctOrderPred::operator()(), Player::outDebugValues(), SmartScript::ProcessEvent(), Creature::RegenerateHealth(), Player::RegenerateHealth(), boss_baltharus_the_warborn::Reset(), Player::ResurrectPlayer(), SetHealth(), boss_felmyst::SpellHit(), boss_twinemperorsAI::SpellHit(), npc_simon_bunny::npc_simon_bunnyAI::SpellHitTarget(), Aura::Update(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), Player::UpdateItemLevelAreaBasedScaling(), and Player::UpdateMirrorTimers().
| float Unit::GetMaxNegativeAuraModifier | ( | AuraType | auraType | ) | const |
Definition at line 5102 of file Unit.cpp.
References GetMaxNegativeAuraModifier().
Referenced by GetMaxNegativeAuraModifier(), GetMaxNegativeAuraModifierByAffectMask(), GetMaxNegativeAuraModifierByMiscMask(), GetMaxNegativeAuraModifierByMiscValue(), AuraEffect::HandleModCastingSlowNoStack(), AuraEffect::HandleModMeleeRangedCastingSlowNoStack(), AuraEffect::HandleModMeleeSlowNoStack(), AuraEffect::HandleModRangedSlowNoStack(), AuraEffect::HandleModSpellSlowNoStack(), WorldObject::ModSpellDuration(), SpellHealingBonusTaken(), UpdateAdvFlyingSpeed(), UpdateAdvFlyingSpeed(), and UpdateSpeed().
| float Unit::GetMaxNegativeAuraModifier | ( | AuraType | auraType, |
| std::function< bool(AuraEffect const *)> const & | predicate | ||
| ) | const |
Definition at line 5071 of file Unit.cpp.
References GetAuraEffectsByType().
| float Unit::GetMaxNegativeAuraModifierByAffectMask | ( | AuraType | auraType, |
| SpellInfo const * | affectedSpell | ||
| ) | const |
Definition at line 5217 of file Unit.cpp.
References GetMaxNegativeAuraModifier(), and AuraEffect::IsAffectingSpell().
Definition at line 5137 of file Unit.cpp.
References GetMaxNegativeAuraModifier(), and AuraEffect::GetMiscValue().
Definition at line 5177 of file Unit.cpp.
References GetMaxNegativeAuraModifier(), and AuraEffect::GetMiscValue().
Referenced by WorldObject::ModSpellDuration().
| float Unit::GetMaxPositiveAuraModifier | ( | AuraType | auraType | ) | const |
Definition at line 5097 of file Unit.cpp.
References GetMaxPositiveAuraModifier().
Referenced by GetMaxPositiveAuraModifier(), GetMaxPositiveAuraModifierByAffectMask(), GetMaxPositiveAuraModifierByMiscMask(), GetMaxPositiveAuraModifierByMiscValue(), Player::RewardHonor(), SpellHealingBonusTaken(), UpdateAdvFlyingSpeed(), UpdateAdvFlyingSpeed(), and UpdateSpeed().
| float Unit::GetMaxPositiveAuraModifier | ( | AuraType | auraType, |
| std::function< bool(AuraEffect const *)> const & | predicate | ||
| ) | const |
Definition at line 5055 of file Unit.cpp.
References GetAuraEffectsByType().
| float Unit::GetMaxPositiveAuraModifierByAffectMask | ( | AuraType | auraType, |
| SpellInfo const * | affectedSpell | ||
| ) | const |
Definition at line 5207 of file Unit.cpp.
References GetMaxPositiveAuraModifier(), and AuraEffect::IsAffectingSpell().
| float Unit::GetMaxPositiveAuraModifierByMiscMask | ( | AuraType | auraType, |
| uint32 | misc_mask, | ||
| AuraEffect const * | except = nullptr |
||
| ) | const |
Definition at line 5127 of file Unit.cpp.
References GetMaxPositiveAuraModifier(), and AuraEffect::GetMiscValue().
Referenced by CalcAbsorbResist(), and Player::RewardHonor().
Definition at line 5167 of file Unit.cpp.
References GetMaxPositiveAuraModifier(), and AuraEffect::GetMiscValue().
Definition at line 10105 of file Unit.cpp.
References GetPowerIndex(), m_unitData, and MAX_POWERS_PER_CLASS.
Referenced by BaseEntity::BuildMovementUpdate(), spell_gen_replenishment_aura::CalculateAmount(), spell_bronjahm_magic_bane::CalculateDamage(), Spell::CheckItems(), spell_dk_advantage_t10_4p::CheckProc(), Spell::CheckRuneCost(), spell_mage_arcane_barrage::ConsumeArcaneCharges(), Spell::EffectEnergize(), Spell::EffectEnergizePct(), Spell::EffectResurrect(), Spell::EffectResurrectWithAura(), Spell::EffectSelfResurrect(), boss_curator::boss_curatorAI::ExecuteEvent(), Player::GetRunesState(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), AuraEffect::HandleAuraModMaxPowerPct(), Aura::HandleAuraSpecificMods(), AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), spell_dru_bristling_fur::HandleProc(), spell_kelthuzad_detonate_mana::HandleScript(), AuraEffect::HandleTriggerSpellOnPowerPercent(), WorldPackets::Party::PartyMemberFullState::Initialize(), Player::InitStatsForLevel(), ConditionMgr::IsPlayerMeetingCondition(), boss_galecaller_faye::JustAppeared(), Player::LoadFromDB(), ModifyPower(), Player::outDebugValues(), spell_gen_restoration::PeriodicTick(), spell_shade_of_medivh_mana_regen::PeriodicTick(), SmartScript::ProcessEvent(), Spell::RefundRunePower(), Creature::Regenerate(), Player::Regenerate(), boss_lady_deathwhisper::Reset(), Player::ResurrectPlayer(), Player::ResyncRunes(), Spell::SendSpellGo(), SetPower(), Player::SetRuneCooldown(), boss_deathbringer_saurfang::SpellHitTarget(), Spell::TakeRunePower(), TriggerOnPowerChangeAuras(), Aura::Update(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_moam::UpdateAI(), and boss_faction_championsAI::UpdatePower().
Definition at line 947 of file Unit.h.
Referenced by Player::_LoadSkills(), Player::AddSpell(), DealMeleeDamage(), Player::LearnDefaultSkill(), Player::RemoveSpell(), spell_gen_battleground_mercenary_shapeshift::UpdateRacials(), and Player::UpdateSkillsForLevel().
| uint64 Unit::GetMechanicImmunityMask | ( | ) | const |
Definition at line 7854 of file Unit.cpp.
References IMMUNITY_MECHANIC, m_spellImmune, and UI64LIT.
Referenced by SpellInfo::CanBeInterrupted(), SpellInfo::GetMechanicImmunityMask(), and Spell::SendChannelStart().
| float Unit::GetMechanicResistChance | ( | SpellInfo const * | spellInfo | ) | const |
Definition at line 2571 of file Unit.cpp.
References SpellInfo::GetEffectMechanic(), SpellInfo::GetEffects(), GetTotalAuraModifierByMiscValue(), and SPELL_AURA_MOD_MECHANIC_RESISTANCE.
Referenced by WorldObject::MagicSpellHitResult(), and MeleeSpellHitResult().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
|
pure virtual |
Implemented in Player, and Creature.
Referenced by AttackerStateUpdate(), CalculateMeleeDamage(), and MeleeDamageBonusTaken().
Definition at line 6601 of file Unit.cpp.
References AURA_REMOVE_BY_EXPIRE, SpellInfo::CheckExplicitTarget(), SpellInfo::CheckTarget(), GetAuraEffectsByType(), WorldObject::IsValidAttackTarget(), SPELL_AURA_INTERCEPT_MELEE_RANGED_ATTACKS, and SPELL_CAST_OK.
Referenced by AttackerStateUpdate(), and Spell::SelectExplicitTargets().
| float Unit::GetMeleeRange | ( | Unit const * | target | ) | const |
Definition at line 706 of file Unit.cpp.
References GetCombatReach(), and NOMINAL_MELEE_RANGE.
Referenced by Spell::GetMinMaxRange(), IsWithinMeleeRangeAt(), and ChaseMovementGenerator::Update().
|
inline |
Definition at line 1215 of file Unit.h.
Referenced by GetFirstControlled(), GetFirstMinion(), GetUnitConditionVariable(), Guardian::InitSummon(), OutDebugInfo(), RemoveAllControlled(), Minion::setDeathState(), and SetMinion().
Definition at line 830 of file Unit.h.
References POWER_LUNAR_POWER.
Referenced by AuraEffect::HandleObsModPowerAuraTick(), and ModifyPower().
| uint32 Unit::GetModelForForm | ( | ShapeshiftForm | form, |
| uint32 | spellId | ||
| ) | const |
Definition at line 12635 of file Unit.cpp.
References ARTIFACTS_ALL_WEAPONS_GENERAL_WEAPON_EQUIPPED_PASSIVE, SpellShapeshiftFormEntry::CreatureDisplayID, FORM_AQUATIC_FORM, FORM_BEAR_FORM, FORM_CAT_FORM, FORM_DIRE_BEAR_FORM, FORM_FLIGHT_FORM, FORM_FLIGHT_FORM_EPIC, FORM_GHOST_WOLF, FORM_TRAVEL_FORM, GetAura(), GetClass(), GetRace(), HasAura, ITEM_MODIFIER_ARTIFACT_APPEARANCE_ID, MakeChrCustomizationChoiceRange(), sArtifactAppearanceStore, sChrCustomizationReqStore, sDB2Manager, Trinity::Containers::SelectRandomContainerElement(), sSpellShapeshiftFormStore, and Object::ToPlayer().
Referenced by AuraEffect::HandleAuraModShapeshift(), and RestoreDisplayId().
|
inline |
Definition at line 1750 of file Unit.h.
Referenced by _ExitVehicle(), npc_elwynn_forest_wolf::_ScheduleAfterChasingEvents(), npc_elwynn_forest_wolf::_ScheduleBeforeChasingEvents(), npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), AtEngage(), Creature::AtEngage(), npc_molten_barrage::npc_molten_barrageAI::AttackStart(), UnitAI::AttackStart(), CreatureAI::AttackStart(), boss_tyrannus::AttackStart(), boss_lady_deathwhisper::AttackStart(), SmartAI::AttackStart(), npc_hearthglen_crusader::AttackStart(), boss_veklor::boss_veklorAI::AttackStart(), UnitAI::AttackStartCaster(), boss_ionar::CallBackSparks(), spell_the_lich_king_valkyr_charge::ChargeDest(), Map::CreatureRespawnRelocation(), boss_the_lich_king::DamageTaken(), boss_amalgam_of_souls::DamageTaken(), npc_inquisitor_baleful_molten_shore::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), boss_ayamiss::DamageTaken(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::DamageTaken(), npc_frost_sphere::DamageTaken(), boss_drakkari_colossus::DamageTaken(), boss_drakkari_elemental::DamageTaken(), boss_ymiron::DamageTaken(), npc_wild_wyrm::DamageTaken(), boss_essence_of_suffering::DamageTaken(), boss_essence_of_desire::DamageTaken(), Scripts::Pandaria::TheWanderingIsle::npc_tushui_huojin_trainee::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::DestroyDoor(), Player::DisablePetControlsOnMount(), npc_inquisitor_baleful_molten_shore::DoAction(), npc_auchindoun_soulbinder_tuulani::DoAction(), boss_nightbane::boss_nightbaneAI::DoAction(), boss_selin_fireheart::DoAction(), npc_apothecary_genericAI::DoAction(), npc_safe_technician_sanitron::DoAction(), npc_silverpine_fallen_human::DoAction(), npc_chained_spirit::DoAction(), boss_infinite_corruptor::boss_infinite_corruptorAI::DoAction(), boss_adarogg::DoAction(), boss_lava_guard_gordoth::DoAction(), boss_slabhide::boss_slabhideAI::DoAction(), npc_twilight_volunteer::DoAction(), npc_hadronox_crusherPackAI::DoAction(), npc_xerestrasza::DoAction(), npc_ball_of_flame::DoAction(), npc_kinetic_bomb::DoAction(), boss_deathbringer_saurfang::DoAction(), npc_high_overlord_saurfang_icc::DoAction(), npc_muradin_bronzebeard_icc::DoAction(), npc_saurfang_event::DoAction(), npc_high_overlord_saurfang_igb::DoAction(), npc_muradin_bronzebeard_igb::DoAction(), boss_professor_putricide::DoAction(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), npc_argent_captainAI::DoAction(), npc_icc_nerubar_broodkeeper::DoAction(), boss_four_horsemen_baseAI::DoAction(), npc_kelthuzad_guardian::DoAction(), boss_malygos::DoAction(), npc_caster_hover_disk::DoAction(), npc_azure_ring_captain::DoAction(), boss_algalon_the_observer::DoAction(), npc_brann_bronzebeard_algalon::DoAction(), boss_flame_leviathan::boss_flame_leviathanAI::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_ominous_cloud::npc_ominous_cloudAI::DoAction(), npc_turned_champion::npc_turned_championAI::DoAction(), boss_leotheras_the_blind::DoAction(), npc_earthen_ring_flamecaller::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), npc_barada::npc_baradaAI::DoAction(), boss_anduin_wrynn::DoAction(), npc_bg_deephaul_ravine_commander< Path1, Path2, Path3, Path4 >::DoAction(), boss_edna::DoAction(), boss_krick::DoAction(), boss_razorscale::DoAction(), npc_expedition_defender::DoAction(), npc_expedition_trapper::DoAction(), boss_illidan_stormrage::DoAction(), npc_akama_shade::DoAction(), boss_headless_horseman::DoAction(), boss_ymiron_the_fallen_king::DoAction(), npc_silverpine_forsaken_bat::DoAction(), npc_silverpine_deathstalker_rane_yorick::DoAction(), npc_briarpatch_prisoner::DoAction(), Scripts::Kalimdor::Durotar::npc_captive_spitescale_scout::DoAction(), npc_martha_goslin::npc_martha_goslinAI::DoAction(), PetAI::DoAttack(), npc_snufflenose_gopher::npc_snufflenose_gopherAI::DoFindNewTubber(), Creature::DoFleeToGetAssistance(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), boss_alar::DoMoveToCenter(), boss_alar::DoMoveToPlatform(), npc_announcer_toc5::npc_announcer_toc5AI::DoStartArgentChampionEncounter(), ScriptedAI::DoStartNoMovement(), Spell::EffectCharge(), Spell::EffectChargeDest(), Spell::EffectDistract(), Spell::EffectJump(), Spell::EffectJumpCharge(), Spell::EffectJumpDest(), boss_jormungarAI::Emerge(), EscortAI::EnterEvadeMode(), SmartAI::EnterEvadeMode(), hyjalAI::EnterEvadeMode(), firelands_bossAI::EnterEvadeMode(), boss_blood_queen_lana_thel::EnterEvadeMode(), npc_argent_captainAI::EnterEvadeMode(), boss_urom::EnterEvadeMode(), npc_daegarn::EnterEvadeMode(), CreatureAI::EnterEvadeMode(), GuardAI::EnterEvadeMode(), boss_alizabal::boss_alizabalAI::EnterEvadeMode(), gunship_npc_AI::EnterEvadeMode(), npc_high_overlord_saurfang_igb::EnterEvadeMode(), npc_muradin_bronzebeard_igb::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), VehicleJoinEvent::Execute(), DelayedMovementEvent::Execute(), DaranavanMoveEvent::Execute(), FrostwyrmLandEvent::Execute(), OrbAirPositionEvent::Execute(), OrbFlyEvent::Execute(), boss_nightbane::boss_nightbaneAI::ExecuteEvent(), boss_icehowl::ExecuteEvent(), boss_twin_baseAI::ExecuteEvent(), AssistanceMovementGenerator::Finalize(), npc_rocket_propelled_warhead::FinishQuest(), Player::FinishTaxiFlight(), ScriptedAI::ForceCombatStop(), SplineChainMovementGenerator::GetResumeInfo(), spell_harlan_blades_of_light::HandleAfterCast(), spell_apothecary_lingering_fumes::HandleAfterCast(), spell_mimiron_fire_search::spell_mimiron_fire_search_SpellScript::HandleAftercast(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), AuraEffect::HandleAuraAllowFlight(), HandleAuraDisableGravity(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), npc_expedition_engineer::HandleBaseMovement(), misc_commandscript::HandleComeToMeCommand(), spell_ragefire_chasm_general_trigger_221_to_self::HandleDummy(), spell_malygos_random_portal::HandleDummy(), spell_sholazar_shoot_rjr::HandleDummy(), spell_swamplord_muselek_move_away_primer::HandleDummy(), spell_lord_stormsong_fixate::HandleFixate(), boss_felmyst::HandleFlightSequence(), npc_expedition_engineer::HandleFourthHarpoonMovement(), npc_expedition_engineer::HandleHarpoonMovement(), spell_headlong_charge_trigger::HandleHit(), spell_azhiccar_devour_selector::HandleHitTarget(), spell_azhiccar_devour_intro_selector::HandleHitTarget(), boss_northrend_beastsAI::HandleInitialMovement(), boss_razorscale::HandleInitialMovement(), AuraEffect::HandleModPossessPet(), misc_commandscript::HandleMovegensCommand(), WorldSession::HandleMoveWorldportAck(), npc_commandscript::HandleNpcFollowCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetWanderDistanceCommand(), npc_commandscript::HandleNpcUnFollowCommand(), spell_sapphiron_change_blizzard_target::HandlePeriodic(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePlayerLogin(), PetAI::HandleReturnMovement(), spell_saviana_conflagration_throwback::HandleScript(), spell_soulbound_goliath_burning_brush::HandleScript(), spell_nexus_lord_align_disk_aggro::HandleScript(), spell_mimiron_fire_search::spell_mimiron_fire_search_SpellScript::HandleScript(), spell_gen_pet_wait::HandleScript(), npc_expedition_engineer::HandleSecondHarpoonMovement(), npc_enslaved_soul::HandleSoulRelease(), npc_headless_horseman_head::HandleStartPhase(), npc_expedition_engineer::HandleThirdHarpoonMovement(), wp_commandscript::HandleWpLoadCommand(), wp_commandscript::HandleWpUnLoadCommand(), npc_troll_volunteer::InitializeAI(), npc_jena_anderson::npc_jena_andersonAI::InitializeAI(), npc_malcolm_moore::npc_malcolm_mooreAI::InitializeAI(), npc_anubarak_anub_ar_assassin::InitializeAI(), npc_molten_flame::InitializeAI(), IsMutualChase(), Creature::IsReturningHome(), boss_gizrul_the_slavener::IsSummonedBy(), Scripts::EasternKingdoms::Gilneas::Chapter1::npc_frightened_citizen::IsSummonedBy(), boss_darkmaster_gandling::IsSummonedBy(), npc_malacrass_blood_worm::IsSummonedBy(), npc_spirit_bomb::IsSummonedBy(), npc_danica_the_reclaimer::IsSummonedBy(), npc_silverpine_orc_sea_pup::IsSummonedBy(), npc_silverpine_orc_sea_dog::IsSummonedBy(), npc_akilzon_amani_kidnapper::IsSummonedBy(), npc_taelia_get_your_bearings::IsSummonedBy(), npc_devout_follower::npc_devout_followerAI::IsSummonedBy(), npc_ruby_emerald_amber_drake::IsSummonedBy(), npc_frostbrood_skytalon::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_min_dimwind_summon::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_aysa_cloudsinger_summon::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_master_li_fei_summon::IsSummonedBy(), npc_spirit_shade::npc_spirit_shadeAI::IsSummonedBy(), npc_bg_deephaul_ravine_earthen_mine_cart_horde::JustAppeared(), npc_bg_deephaul_ravine_earthen_mine_cart_alliance::JustAppeared(), npc_amalgam_of_souls_restless_soul::JustAppeared(), npc_kayn_sunfury_ashtongue_intro_private::JustAppeared(), npc_sevis_brightflame_ashtongue_gateway_private::JustAppeared(), npc_sevis_brightflame_coilskar_gateway_private::JustAppeared(), npc_baleful_beaming_eye::JustAppeared(), npc_cyana_nightglaive_freed_private::JustAppeared(), npc_izal_whitemoon_freed_private::JustAppeared(), npc_belath_dawnblade_freed_private::JustAppeared(), npc_mannethrel_darkstar_freed_private::JustAppeared(), npc_kalecgos::JustAppeared(), ShadowswordBaseAI::JustAppeared(), Scripts::EasternKingdoms::Vashjir::AbyssalDepths::npc_abyssal_depths_whirlpool_vehicle::JustAppeared(), npc_silverpine_agatha_fenris_isle::JustAppeared(), npc_amanishi_hatcher::JustAppeared(), npc_ship_captain_brace_for_impact_private::JustAppeared(), npc_crew_ship_private::JustAppeared(), npc_captain_garrick_q55879::JustAppeared(), npc_prisoner_q55879_private::JustAppeared(), npc_warlord_grimaxe_q59942::JustAppeared(), boss_anetheron::JustAppeared(), npc_doomfire::JustAppeared(), boss_azgalor::JustAppeared(), boss_kazrogal::JustAppeared(), boss_rage_winterchill::JustAppeared(), boss_aeonus::JustAppeared(), npc_lockmaw_augh_boss::JustAppeared(), npc_hive_zara_larva::JustAppeared(), npc_hive_zara_swarmer::JustAppeared(), npc_drustvar_frightend_woodsman_private::JustAppeared(), boss_lord_stormsong_intro_npc< ConvoIntroSpellId, ConvoOutroSpellId >::JustAppeared(), npc_malformed_ooze::JustAppeared(), npc_ingvar_throw_dummy::JustAppeared(), npc_brood_of_anzu::JustAppeared(), npc_void_traveler::JustAppeared(), npc_enchanted_elemental::JustAppeared(), npc_toxic_sporebat::JustAppeared(), npc_coilfang_ambusher::JustAppeared(), npc_coilfang_guardian::JustAppeared(), npc_steamrigger_mechanic::JustAppeared(), npc_nether_vapor::JustAppeared(), npc_anduin_wrynn_anduin_doubt::JustAppeared(), npc_anduin_wrynn_anduin_hope::JustAppeared(), npc_priestess_alun_za_corrupted_gold::JustAppeared(), boss_the_golden_serpent::JustAppeared(), npc_blood_wave_stalker::JustAppeared(), npc_frost_wyrm::npc_frost_wyrmAI::JustDied(), boss_flame_leviathan_safety_container::boss_flame_leviathan_safety_containerAI::JustDied(), npc_mechanolift::npc_mechanoliftAI::JustDied(), boss_kologarn::boss_kologarnAI::JustDied(), boss_mimiron::boss_mimironAI::JustDied(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), npc_gargoyle::npc_gargoyleAI::JustDied(), boss_the_lich_king::JustDied(), boss_high_inquisitor_whitemane::JustEngagedWith(), boss_lord_waycrest::JustEngagedWith(), boss_scarlet_commander_mograine::JustEngagedWith(), npc_murloc_spearhunter_watershaper_higher_ground::JustEngagedWith(), boss_ayamiss::JustEngagedWith(), boss_alar::JustEngagedWith(), FollowerAI::JustReachedHome(), SmartAI::JustReachedHome(), npc_headless_horseman_head::JustReachedHome(), npc_arthas_stratholme::npc_arthas_stratholmeAI::JustReachedHome(), boss_aeonus::JustReachedHome(), boss_razuvious::JustReachedHome(), npc_rocket_propelled_warhead::JustReachedHome(), Scripts::Pandaria::TheWanderingIsle::npc_amberleaf_scamp::JustReachedHome(), boss_felblood_kaelthas::JustSummoned(), boss_hogger::JustSummoned(), boss_randolph_moloch::JustSummoned(), boss_general_husam::JustSummoned(), npc_crystal_channel_target::JustSummoned(), boss_trollgore::JustSummoned(), boss_bronjahm::JustSummoned(), boss_slad_ran::JustSummoned(), boss_prince_valanar_icc::JustSummoned(), boss_the_lich_king::JustSummoned(), boss_eregos::JustSummoned(), boss_algalon_the_observer::JustSummoned(), boss_kologarn::boss_kologarnAI::JustSummoned(), boss_thorim::boss_thorimAI::JustSummoned(), boss_massive_jormungar::JustSummoned(), boss_skadi::JustSummoned(), boss_xevozz::JustSummoned(), npc_daegarn::JustSummoned(), boss_warchief_kargath_bladefist::JustSummoned(), npc_colonel_jules::npc_colonel_julesAI::JustSummoned(), boss_anduin_wrynn::JustSummoned(), boss_vexallus::JustSummoned(), npc_restless_soul::npc_restless_soulAI::JustSummoned(), boss_ionar::JustSummoned(), npc_maghar_captive::npc_maghar_captiveAI::JustSummoned(), npc_kurenai_captive::npc_kurenai_captiveAI::JustSummoned(), Player::KillPlayer(), KnockbackFrom(), spell_alysrazor_turn_monstrosity::spell_alysrazor_turn_monstrosity_SpellScript::KnockBarrage(), spell_svalna_revive_champion::Land(), npc_frogger_trigger_naxx::LaunchSpline(), boss_high_inquisitor_whitemane::MograineResurrected(), MonsterMoveWithSpeed(), Creature::Motion_Initialize(), npc_snobold_vassal::MountOnBoss(), npc_arthas_stratholme::npc_arthas_stratholmeAI::MoveInfiniteOnSpawn(), npc_anubarak_spike::MoveInLineOfSight(), boss_shade_of_aran::boss_aranAI::MoveInLineOfSight(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::MoveInLineOfSight(), npc_ashtongue_sorcerer::MoveInLineOfSight(), npc_spectator::MovementInform(), npc_voljin_zulaman::npc_voljin_zulamanAI::MovementInform(), PetAI::MovementInform(), npc_amanishi_hatcher::MovementInform(), npc_malcolm_moore::npc_malcolm_mooreAI::MovementInform(), boss_onyxia::MovementInform(), boss_slabhide::boss_slabhideAI::MovementInform(), boss_professor_putricide::MovementInform(), boss_malygos::MovementInform(), npc_azure_ring_captain::MovementInform(), npc_malformed_ooze::MovementInform(), npc_wild_wyrm::MovementInform(), npc_barada::npc_baradaAI::MovementInform(), Scripts::Pandaria::TheWanderingIsle::npc_amberleaf_scamp::MovementInform(), boss_ymiron_the_fallen_king::MovementInform(), boss_guarm::MovementInform(), npc_kayn_sunfury_invasion_begins::MovementInform(), npc_jayce_darkweaver_invasion_begins::MovementInform(), npc_allari_the_souleater_invasion_begins::MovementInform(), npc_korvas_bloodthorn_invasion_begins::MovementInform(), npc_sevis_brightflame_invasion_begins::MovementInform(), npc_cyana_nightglaive_invasion_begins::MovementInform(), npc_safe_technician_sanitron::MovementInform(), dummy_dragonAI::MovementInform(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::MovementInform(), boss_razorscale::MovementInform(), npc_grauf::MovementInform(), npc_skadi_trashAI::MovementInform(), Scripts::Pandaria::TheWanderingIsle::npc_aysa_cloudsinger_summon::MovementInform(), npc_malacrass_blood_worm::MovementInform(), npc_sparring_partner_exiles_reach::MovementInform(), npc_sparring_partner_combat_training::MovementInform(), npc_amalgam_of_souls_restless_soul::MovementInform(), npc_valarjar_paying_respect_to_odyn::MovementInform(), boss_gluth::MovementInform(), boss_cragmaw_the_infested::MovementInform(), arena_empyrean_domain::MovePlayerDown(), npc_cameron::MoveTheChildren(), npc_onyx_flamecaller::MoveToGeneral(), npc_power_spark::MoveToMalygos(), npc_unleashed_ballAI::MoveToNextPoint(), NearTeleportTo(), npc_geezle::npc_geezleAI::NextStep(), npc_argent_valiant::npc_argent_valiant(), npc_freya_ward_summon::npc_freya_ward_summonAI::npc_freya_ward_summonAI(), npc_omen::npc_omen(), boss_ymiron_the_fallen_king::OnChannelFinished(), PetAI::OnCharmed(), SimpleCharmedPlayerAI::OnCharmed(), SmartAI::OnCharmed(), conversation_dawnspair_spire_to_ghostlands::OnCreate(), Scripts::EasternKingdoms::StormwindCity::conversation_quest_ancient_curses_accept::OnCreate(), conversation_natalia_pearces_complete_precious_gems::OnCreate(), conversation_boralus_hub_tour::OnCreate(), conversation_boralus_enter_harbormaster_office::OnCreate(), conversation_boralus_cyrus_meets_genn::OnCreate(), npc_tirion_fordring_tft::OnGossipSelect(), npc_7th_legion_magus_sanctum_of_the_sages::OnGossipSelect(), npc_barrett_toc::OnGossipSelect(), npc_thassarian::OnGossipSelect(), npc_akama_illidan::OnGossipSelect(), npc_belnistrasz::npc_belnistraszAI::OnQuestAccept(), spell_soulbound_goliath_burning_brush_aura::OnRemove(), spell_anduin_wrynn_pre_introduction::OnRemove(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), npc_whisperwind_lasher::npc_whisperwind_lasherAI::OnSpellClick(), conversation_dawnspair_spire_followup_to_ghostlands::OnStart(), conversation_natalia_pearces_accept_precious_gems::OnStart(), conversation_drustvar_really_big_problem_complete::OnStart(), Scripts::QuelThalas::Harandar::Chapter1::conversation_the_root_cause_open_portal::OnStart(), Scripts::QuelThalas::Harandar::Chapter1::conversation_to_harathir_talk_to_kupaal::OnStart(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), conversation_rokmora_intro::OnUpdate(), conversation_the_invasion_begins::OnUpdate(), conversation_aberrus_sabellian_intro::OnUpdate(), conversation_aberrus_kazzara_intro::OnUpdate(), conversation_an_unlikely_informant::OnUpdate(), conversation_the_new_classington_estate::OnUpdate(), Scripts::EasternKingdoms::StormwindCity::conversation_start_council_tides_of_war::OnUpdate(), Scripts::EasternKingdoms::StormwindCity::conversation_quest_ancient_curses_accept::OnUpdate(), conversation_waycrest_manor_waycrests_defeated::OnUpdate(), conversation_boralus_hub_tour::OnUpdate(), conversation_cyrus_crestfall_shaking_hands::OnUpdate(), conversation_sylvanas_windrunner_introduction::OnUpdate(), npc_sharpbeak::npc_sharpbeak_AI::PassengerBoarded(), npc_akilzon_amani_kidnapper::PassengerBoarded(), npc_eagle_spirit::npc_eagle_spirit_AI::PassengerBoarded(), npc_wyrmrest_skytalon::PassengerBoarded(), npc_silverpine_horde_hauler::PassengerBoarded(), npc_wild_wyrm::PassengerBoarded(), npc_sanitron_5000::PassengerBoarded(), npc_silverpine_forsaken_bat::PassengerBoarded(), npc_bone_spike::PassengerBoarded(), Scripts::Pandaria::TheJadeForest::npc_rappelling_rope::PassengerBoarded(), npc_bountiful_table::npc_bountiful_tableAI::PassengerBoarded(), npc_grauf::PassengerBoarded(), npc_king_jokkum_vehicle::PassengerBoarded(), PauseMovement(), SmartAI::PausePath(), Spell::prepare(), npc_jungle_punch_target::proceedCwEvent(), SmartScript::ProcessAction(), PropagateSpeedChange(), npc_lake_frog::ReceiveEmote(), RemoveCharmedBy(), boss_prince_taldaram::RemovePrison(), npc_feasting_valarjar::Reset(), npc_valarjar_paying_respect_to_odyn::Reset(), npc_spectating_valarjar::Reset(), npc_valkyr_of_odyn::Reset(), npc_image_of_medivh::npc_image_of_medivhAI::Reset(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::Reset(), npc_silverpine_agatha_fenris_isle::Reset(), npc_frost_sphere::Reset(), npc_mechanolift::npc_mechanoliftAI::Reset(), npc_scrapbot::Reset(), npc_boombot::Reset(), npc_garona::npc_garonaAI::Reset(), npc_released_offspring_harkoa::Reset(), npc_ashtongue_sorcerer::Reset(), npc_doom_blossom::Reset(), npc_infernal_attacker::npc_infernal_attackerAI::Reset(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ResetBossEncounter(), Creature::Respawn(), ResumeMovement(), SmartAI::ReturnToLastOOCPos(), EscortAI::ReturnToLastPoint(), npc_sevis_brightflame_shivarra_gateway::SacrificePlayer(), npc_sinclari_vh::ScheduleIntro(), boss_selin_fireheart::SelectNearestCrystal(), npc_barrett_toc::SendActionToTirion(), Creature::SetCanMelee(), SetCharmedBy(), SmartAI::SetCombatMove(), SetConfused(), npc_zombie_chow::SetData(), gunship_npc_AI::SetData(), npc_enslaved_proto_drake::SetData(), npc_announcer_toc5::npc_announcer_toc5AI::SetData(), setDeathState(), Creature::setDeathState(), EscortAI::SetEscortPaused(), npc_silverpine_agatha_fenris_isle::SetEventNoEscape(), SetFacingTo(), SetFacingToObject(), SetFeared(), SmartAI::SetFollow(), FollowerAI::SetFollowComplete(), FollowerAI::SetFollowPaused(), npc_arthas_stratholme::npc_arthas_stratholmeAI::SetGUID(), npc_shadow_demon::SetGUID(), boss_hadronox::SetStep(), boss_attumen::boss_attumenAI::SpellHit(), npc_garrick_summoned_beach::SpellHit(), npc_grimaxe_summoned_beach::SpellHit(), npc_leader_northbound::SpellHit(), boss_onyxia::SpellHit(), npc_hive_zara_swarmer::SpellHit(), npc_taelia_get_your_bearings::SpellHit(), npc_high_overlord_saurfang_icc::SpellHit(), npc_muradin_bronzebeard_icc::SpellHit(), npc_saurfang_event::SpellHit(), boss_ionar::SpellHit(), boss_vazruden_the_herald::SpellHit(), npc_redridge_subdued_canyon_ettin::SpellHit(), Scripts::Kalimdor::Durotar::npc_lazy_peon::npc_lazy_peonAI::SpellHit(), npc_troll_volunteer::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_ichor_globule::SpellHit(), npc_wounded_skirmisher::SpellHit(), npc_wild_wyrm::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), npc_malformed_ooze::SpellHitTarget(), EscortAI::Start(), conversation_the_invasion_begins::StartCloneMovement(), Creature::StartDefaultCombatMovement(), npc_image_of_medivh::npc_image_of_medivhAI::StartEvent(), FollowerAI::StartFollow(), npc_azure_saboteur::StartMovement(), spell_doomwalker_overrun::StartMovement(), SmartAI::StartPath(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), Player::StartTaxiMovement(), PetAI::StopAttack(), SmartAI::StopFollow(), SmartAI::StopPath(), boss_jormungarAI::Submerge(), Player::TeleportTo(), CreatureAI::TriggerAlert(), npc_rokmora_navarrogg_intro::TriggerRokmoraIntro(), SimpleCharmedPlayerAI::UpdateAI(), EscortAI::UpdateAI(), boss_guarm::UpdateAI(), boss_alizabal::boss_alizabalAI::UpdateAI(), boss_gyth::UpdateAI(), boss_rend_blackhand::UpdateAI(), boss_victor_nefarius::UpdateAI(), Scripts::EasternKingdoms::Gilneas::Chapter1::npc_frightened_citizen::UpdateAI(), boss_felblood_kaelthas::UpdateAI(), boss_selin_fireheart::UpdateAI(), npc_unworthy_initiate::npc_unworthy_initiateAI::UpdateAI(), npc_eye_of_acherus::UpdateAI(), npc_dark_rider_of_acherus::UpdateAI(), npc_koltira_deathweaver::UpdateAI(), npc_scarlet_courier::npc_scarlet_courierAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), npc_headless_horseman_head::UpdateAI(), npc_madrigosa::UpdateAI(), boss_kalecgos::UpdateAI(), npc_shield_orb::npc_shield_orbAI::UpdateAI(), boss_ironaya::UpdateAI(), Scripts::EasternKingdoms::Vashjir::Chapter1::npc_vashjir_drowning_soldier::UpdateAI(), npc_frozen_mountaineer::npc_frozen_mountaineerAI::UpdateAI(), npc_wounded_coldridge_mountaineer::npc_wounded_coldridge_mountaineerAI::UpdateAI(), npc_milos_gyro::npc_milos_gyro_AI::UpdateAI(), npc_cameron::UpdateAI(), npc_partygoer_pather::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), npc_redridge_subdued_canyon_ettin::UpdateAI(), npc_redridge_citizen::npc_redridge_citizenAI::UpdateAI(), npc_silverpine_horde_hauler::UpdateAI(), npc_silverpine_fallen_human::UpdateAI(), npc_silverpine_deathstalker_rane_yorick::UpdateAI(), npc_silverpine_orc_sea_dog_not_sick::UpdateAI(), npc_silverpine_mutant_bush_chicken::UpdateAI(), npc_silverpine_skitterweb_matriarch::UpdateAI(), npc_silverpine_agatha_fenris_isle::UpdateAI(), npc_silverpine_fenris_keep_camera::UpdateAI(), npc_voljin_zulaman::npc_voljin_zulamanAI::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_elder_kekek::npc_elder_kekekAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_ship_captain_warming_up_private::UpdateAI(), npc_sparring_partner_exiles_reach::UpdateAI(), npc_ship_captain_brace_for_impact_private::UpdateAI(), npc_first_mate_brace_for_impact_private::UpdateAI(), npc_pet_ship_private::UpdateAI(), npc_captain_warlord_first_aid_private::UpdateAI(), npc_survivors_healed_by_leader_beach_private< PathId, WaitTime >::UpdateAI(), npc_horde_survivors_beach_q59930_private< PathId >::UpdateAI(), npc_survivors_beach_leave_private< PathId, WaitTime >::UpdateAI(), npc_garrick_summoned_beach::UpdateAI(), npc_grimaxe_summoned_beach::UpdateAI(), npc_sparring_partner_combat_training::UpdateAI(), npc_leader_northbound::UpdateAI(), npc_huxsworth_briarpatch_quest_private::UpdateAI(), npc_dawntracker_briarpatch_quest_private::UpdateAI(), npc_briarpatch_prisoner::UpdateAI(), npc_scoutomatic_5000::UpdateAI(), npc_choppy_booster_scout::UpdateAI(), npc_lindie_springstock_q56034::UpdateAI(), npc_cork_fizzlepop_q59941::UpdateAI(), npc_re_sized_boar_q56034::UpdateAI(), npc_captain_garrick_q55879::UpdateAI(), npc_warlord_grimaxe_q59942::UpdateAI(), npc_bjorn_stouthands_q55965_private::UpdateAI(), npc_lana_jordan_q59948_private::UpdateAI(), npc_companion_q55965_q59948_private< PitPathId >::UpdateAI(), boss_archimonde::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), npc_frost_wyrm::npc_frost_wyrmAI::UpdateAI(), npc_gargoyle::npc_gargoyleAI::UpdateAI(), npc_martha_goslin::npc_martha_goslinAI::UpdateAI(), npc_jena_anderson::npc_jena_andersonAI::UpdateAI(), npc_bartleby_battson::npc_bartleby_battsonAI::UpdateAI(), npc_malcolm_moore::npc_malcolm_mooreAI::UpdateAI(), npc_sergeant_morigan::npc_sergeant_moriganAI::UpdateAI(), npc_roger_owens::npc_roger_owensAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), boss_lieutenant_drake::UpdateAI(), boss_anraphet::UpdateAI(), npc_brann_bronzebeard_anraphet::UpdateAI(), npc_lockmaw_augh_add::UpdateAI(), boss_onyxia::UpdateAI(), npc_andorov::UpdateAI(), boss_veklor::boss_veklorAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_draenei_survivor::npc_draenei_survivorAI::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), Scripts::Kalimdor::Durotar::npc_darkspear_jailor::UpdateAI(), Scripts::Kalimdor::Durotar::npc_echo_isles_class_trainer< PitPos, QuestID >::UpdateAI(), boss_lord_stormsong_intro_npc< ConvoIntroSpellId, ConvoOutroSpellId >::UpdateAI(), boss_high_priestess_azil::boss_high_priestess_azilAI::UpdateAI(), boss_slabhide::boss_slabhideAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), npc_prince_taldaram_flame_sphere::UpdateAI(), boss_hadronox::UpdateAI(), npc_hadronox_foeAI::UpdateAI(), dummy_dragonAI::UpdateAI(), boss_saviana_ragefire::UpdateAI(), boss_jaraxxus::UpdateAI(), npc_unleashed_dark::UpdateAI(), npc_unleashed_light::UpdateAI(), boss_lich_king_toc::UpdateAI(), npc_fizzlebang_toc::UpdateAI(), boss_devourer_of_souls::UpdateAI(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), npc_uther_quel_delar::npc_uther_quel_delarAI::UpdateAI(), npc_quel_delar_sword::npc_quel_delar_swordAI::UpdateAI(), boss_garfrost::UpdateAI(), boss_krick::UpdateAI(), boss_tyrannus::UpdateAI(), boss_rimefang::UpdateAI(), npc_blood_queen_lana_thel::UpdateAI(), npc_kinetic_bomb::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), npc_high_overlord_saurfang_icc::UpdateAI(), npc_muradin_bronzebeard_icc::UpdateAI(), boss_lord_marrowgar::UpdateAI(), boss_professor_putricide::UpdateAI(), boss_sindragosa::UpdateAI(), npc_rimefang_icc::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), npc_valkyr_shadowguard::UpdateAI(), npc_strangulate_vehicle::UpdateAI(), npc_dream_cloud::UpdateAI(), boss_four_horsemen_baseAI::UpdateAI(), boss_gluth::UpdateAI(), npc_zombie_chow::UpdateAI(), boss_noth::UpdateAI(), boss_razuvious::UpdateAI(), boss_sapphiron::UpdateAI(), boss_malygos::UpdateAI(), npc_melee_hover_disk::UpdateAI(), npc_ruby_emerald_amber_drake::UpdateAI(), boss_volkhan::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_brann_bronzebeard_algalon::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_mechanolift::npc_mechanoliftAI::UpdateAI(), npc_saronite_vapors::npc_saronite_vaporsAI::UpdateAI(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::UpdateAI(), boss_razorscale::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), npc_annhylde_the_caller::UpdateAI(), boss_svala::UpdateAI(), npc_thassarian::UpdateAI(), npc_minigob_manabonk::UpdateAI(), npc_commander_eligor_dawnbringer::UpdateAI(), npc_venture_co_straggler::UpdateAI(), npc_frostbrood_skytalon::UpdateAI(), npc_freed_protodrake::UpdateAI(), npc_brann_bronzebeard_keystone::UpdateAI(), npc_crusade_recruit::UpdateAI(), boss_illidan_stormrage::UpdateAI(), npc_akama_illidan::UpdateAI(), npc_akama_shade::UpdateAI(), boss_lady_vashj::UpdateAI(), boss_warlord_kalithresh::UpdateAI(), npc_claw::UpdateAI(), boss_wrath_scryer_soccothrates::UpdateAI(), boss_alar::UpdateAI(), boss_kaelthas::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), npc_colonel_jules::npc_colonel_julesAI::UpdateAI(), npc_barada::npc_baradaAI::UpdateAI(), npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), Scripts::Pandaria::TheWanderingIsle::npc_delivery_cart::UpdateAI(), npc_pet_gen_pandaren_monk::UpdateAI(), npc_elwynn_forest_wolf::UpdateAI(), npc_dream_fog::npc_dream_fogAI::UpdateAI(), npc_priestess_alun_za_spirit_of_gold::UpdateAI(), boss_cragmaw_the_infested::UpdateAI(), boss_eadric::boss_eadricAI::UpdateAI(), boss_paletress::boss_paletressAI::UpdateAI(), boss_ionar::UpdateAI(), npc_spark_of_ionar::UpdateAI(), npc_power_spark::UpdateAI(), npc_tooga::npc_toogaAI::UpdateFollowerAI(), boss_kirtonos_the_herald::UpdateIntroEvents(), npc_millhouse_manastorm::UpdateIntroEvents(), boss_nalorakk::UpdateOutOfCombatEvents(), boss_broggok::UpdateOutOfCombatEvents(), npc_kelthuzad_minionAI::UpdateRandomMovement(), boss_majordomo::UpdateSpecialEvents(), boss_vazruden_the_herald::UpdateSpecialEvents(), UpdateSpeed(), npc_bg_deephaul_ravine_earthen_mine_cart_horde::WaypointPathEnded(), npc_bg_deephaul_ravine_earthen_mine_cart_alliance::WaypointPathEnded(), npc_bg_deephaul_ravine_commander< Path1, Path2, Path3, Path4 >::WaypointPathEnded(), npc_bg_silvershard_mines_mine_cart::WaypointPathEnded(), npc_kayn_sunfury_invasion_begins::WaypointPathEnded(), npc_jayce_darkweaver_invasion_begins::WaypointPathEnded(), npc_allari_the_souleater_invasion_begins::WaypointPathEnded(), npc_korvas_bloodthorn_invasion_begins::WaypointPathEnded(), npc_sevis_brightflame_invasion_begins::WaypointPathEnded(), npc_cyana_nightglaive_invasion_begins::WaypointPathEnded(), npc_danica_the_reclaimer::WaypointPathEnded(), npc_valkyr_of_odyn::WaypointPathEnded(), Scripts::EasternKingdoms::StormwindCity::npc_jaina_proudmoore_tides_of_war::WaypointPathEnded(), Scripts::EasternKingdoms::StormwindCity::npc_arkonarin_starshade_ancient_curses::WaypointPathEnded(), Scripts::EasternKingdoms::StormwindCity::npc_lysande_starshade_ancient_curses::WaypointPathEnded(), boss_anetheron::WaypointPathEnded(), boss_rage_winterchill::WaypointPathEnded(), boss_adarogg::WaypointPathEnded(), boss_the_golden_serpent::WaypointPathEnded(), npc_toxic_sporebat::WaypointPathEnded(), SmartAI::WaypointReached(), npc_cameron::WaypointReached(), npc_silverpine_forsaken_bat::WaypointReached(), Scripts::Pandaria::TheWanderingIsle::npc_min_dimwind_summon::WaypointReached(), npc_emily::WaypointReached(), and npc_7th_legion_magus_sanctum_of_the_sages::WaypointReached().
|
inline |
| MountCapabilityEntry const * Unit::GetMountCapability | ( | uint32 | mountType | ) | const |
Definition at line 8381 of file Unit.cpp.
References AllowFlyingMounts, AllowGroundMounts, AllowSurfaceSwimmingMounts, AllowUnderwaterSwimmingMounts, MapEntry::CosmeticParentMapID, MountCapabilityEntry::Flags, WorldObject::GetAreaId(), GetAuraEffectsByType(), Map::GetEntry(), Map::GetLiquidStatus(), WorldObject::GetMap(), WorldLocation::GetMapId(), WorldObject::GetPhaseShift(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Player::GetSkillValue(), BaseEntity::GetTypeId(), HasAura, HasAuraType(), EnumFlag< T >::HasFlag(), HasSpell(), HasUnitMovementFlag(), DB2Manager::IsInArea(), ConditionMgr::IsPlayerMeetingCondition(), LIQUID_MAP_IN_WATER, LIQUID_MAP_UNDER_WATER, MOUNT_CAPABIILTY_FLAG_IGNORE_RESTRICTIONS, MOUNT_CAPABILITY_FLAG_FLOAT, MOUNT_CAPABILITY_FLAG_FLYING, MOUNT_CAPABILITY_FLAG_GROUND, MOUNT_CAPABILITY_FLAG_UNDERWATER, MOVEMENTFLAG_SWIMMING, None, MapEntry::ParentMapID, MountCapabilityEntry::PlayerConditionID, MountCapabilityEntry::ReqAreaID, MountCapabilityEntry::ReqMapID, MountCapabilityEntry::ReqSpellAuraID, MountCapabilityEntry::ReqSpellKnownID, sAreaTableStore, sDB2Manager, SKILL_RIDING, sMountCapabilityStore, SPELL_AURA_MOUNT_RESTRICTIONS, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by AuraEffect::CalculateAmount(), SpellInfo::CheckLocation(), and UpdateMountCapability().
|
inline |
Definition at line 928 of file Unit.h.
Referenced by CalculateHoverHeight(), GetCollisionHeight(), GetUnitConditionVariable(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), AuraEffect::HandleAuraTransform(), spell_gen_mount_check_aura::OnPeriodic(), and Player::SendMovementSetCollisionHeight().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
|
inline |
Definition at line 1189 of file Unit.h.
Referenced by BaseEntity::BuildMovementUpdate(), and WorldSession::HandleMoveSetModMovementForceMagnitudeAck().
|
inline |
Definition at line 1640 of file Unit.h.
Referenced by Player::ActivateTaxiPathTo(), Player::CreateCorpse(), DeMorph(), Pet::FillPetInfo(), GetCollisionHeight(), AuraEffect::HandleAuraCloneCaster(), npc_commandscript::HandleNpcInfoCommand(), IsDisallowedMountForm(), boss_alar::JustDied(), spell_illidan_demon_transform2::OnPeriodic(), MoltenEggCheck::operator()(), boss_black_knight::boss_black_knightAI::Reset(), Creature::Respawn(), RestoreDisplayId(), Pet::SavePetToDB(), Creature::SaveToDB(), SendPetDismissSound(), netherspite_infernal::netherspite_infernalAI::SpellHit(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), and boss_alar::UpdateAI().
|
inline |
Definition at line 1641 of file Unit.h.
Referenced by Creature::Respawn().
|
inlinevirtual |
Reimplemented in Player.
Definition at line 781 of file Unit.h.
Referenced by spell_love_is_in_the_air_service_uniform::AfterApply(), spell_gen_battleground_mercenary_shapeshift::HandleApply(), 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 1635 of file Unit.h.
Referenced by RecalculateObjectScale().
| Unit * Unit::GetNextRandomRaidMemberOrPet | ( | float | radius | ) |
Definition at line 6677 of file Unit.cpp.
References Player::GetGroup(), GetGuardianPet(), Group::GetMembers(), Group::GetMembersCount(), WorldObject::GetOwner(), BaseEntity::GetTypeId(), IsAlive(), WorldObject::IsHostileTo(), IsPet(), WorldObject::IsWithinDistInMap(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, and urand().
|
inline |
|
inline |
Definition at line 1016 of file Unit.h.
Referenced by modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcInfoCommand(), and Creature::SaveToDB().
| Aura * Unit::GetOwnedAura | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint32 | reqEffMask = 0, |
||
| Aura * | except = nullptr |
||
| ) | const |
Definition at line 3830 of file Unit.cpp.
References m_ownedAuras.
Referenced by _TryStackingOrRefreshingExistingAura(), spell_pri_mental_decay::HandleEffectProc(), spell_pri_painful_punishment::HandleEffectProc(), and spell_dh_enduring_torment::HandlePeriodic().
|
inline |
Definition at line 1305 of file Unit.h.
Referenced by Spell::EffectDispelMechanic(), Spell::EffectStealBeneficialBuff(), GetDispellableAuraList(), AuraEffect::HandleSuppressItemPassiveEffectBySpellLabel(), and Player::UpdateMastery().
|
inlineoverridevirtual |
Implements WorldObject.
Definition at line 1211 of file Unit.h.
Referenced by CanApplyResilience(), ChoppyBoosterSelector(), npc_death_knight_initiate::npc_death_knight_initiateAI::DamageTaken(), npc_scarlet_ghoul::FindMinions(), GetUpdateFieldFlagsFor(), spell_hun_no_hard_feelings::HandleHitTarget(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetRename(), HandleSpellClick(), npc_pet_dk_ebon_gargoyle::InitializeAI(), Kill(), Condition::Meets(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), OutDebugInfo(), PetAI::ReceiveEmote(), RemoveAllControlled(), Pet::SavePetToDB(), SetCharm(), SetMinion(), SetOwnerGUID(), SpellDamagePctDone(), npc_scoutomatic_5000::UpdateAI(), npc_choppy_booster_scout::UpdateAI(), FollowMovementGenerator::UpdatePetSpeed(), UpdateSpeed(), npc_kayn_sunfury_invasion_begins::WaypointPathEnded(), npc_scoutomatic_5000::WaypointPathEnded(), and npc_choppy_booster_scout::WaypointPathEnded().
| void Unit::GetPartyMembers | ( | std::list< Unit * > & | units | ) |
Definition at line 12291 of file Unit.cpp.
References WorldObject::GetCharmerOrOwnerOrSelf(), Player::GetGroup(), GetGuardianPet(), Group::GetMembers(), Player::GetSubGroup(), BaseEntity::GetTypeId(), IsAlive(), WorldObject::IsHostileTo(), WorldObject::IsInMap(), Object::ToPlayer(), and TYPEID_PLAYER.
| float Unit::GetPctModifierValue | ( | UnitMods | unitMod, |
| UnitModifierPctType | modifierType | ||
| ) | const |
Definition at line 9695 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(), GetTotalAuraModValue(), GetTotalStatValue(), AuraEffect::HandleModResistancePercent(), AuraEffect::HandleModTotalPercentStat(), Guardian::UpdateArmor(), Player::UpdateArmor(), Guardian::UpdateDamagePhysical(), Guardian::UpdateMaxHealth(), Player::UpdateMaxHealth(), Creature::UpdateMaxPower(), Guardian::UpdateMaxPower(), Player::UpdateMaxPower(), UpdateResistances(), and UpdateStatBuffMod().
|
inline |
|
inline |
Definition at line 1217 of file Unit.h.
References SUMMON_SLOT_PET.
Referenced by BeforeVisibilityDestroy< Creature >(), Spell::CheckCast(), Spell::EffectCreateTamedPet(), Spell::EffectTameCreature(), UnitAura::FillTargetMap(), GetGuardianPet(), Player::GetPet(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), RemoveAllControlled(), Player::ResummonPetTemporaryUnSummonedIfAny(), SetMinion(), and Pet::Update().
|
inline |
Definition at line 1273 of file Unit.h.
Referenced by ApplyInertia(), ApplyMovementForce(), getAttackerForHelper(), Creature::GetDefaultMovementType(), RemoveInertia(), RemoveMovementForce(), SetAlwaysAllowPitching(), SetCanAdvFly(), SetCanDoubleJump(), SetCanFly(), SetCanTransitionBetweenSwimAndFly(), SetCanTurnWhileFalling(), SetCollision(), SetDisableGravity(), SetDisableInertia(), SetEnableFullSpeedPitching(), SetEnableFullSpeedTurning(), SetFeatherFall(), SetGravityModifier(), SetHover(), SetIgnoreMovementForces(), SetJumpingDisabled(), SetMoveCantSwim(), SetRooted(), SetStrafingDisabled(), SetWaterWalking(), Player::TeleportTo(), and UpdateMovementForcesModMagnitude().
Definition at line 10096 of file Unit.cpp.
References GetPowerIndex(), m_unitData, and MAX_POWERS_PER_CLASS.
Referenced by SpellInfo::CalcPowerCost(), SpellInfo::CalcPowerCost(), SpellEffectInfo::CalcValue(), Spell::CheckItems(), Spell::CheckPower(), boss_lady_deathwhisper::DamageTaken(), boss_curator::boss_curatorAI::ExecuteEvent(), HeartsbaneTriadSharedAI::ExecuteEvent(), boss_priestess_alun_za::ExecuteEvent(), Pet::FillPetInfo(), GetUnitConditionVariable(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), AuraEffect::HandleAuraModMaxPowerPct(), spell_dru_ferocious_bite::HandleLaunchTarget(), AuraEffect::HandleObsModPowerAuraTick(), spell_telash_ice_power_periodic::HandlePeriodic(), spell_cragmaw_power_energize_tantrum::HandlePeriodic(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandleTriggerSpellOnPowerAmount(), AuraEffect::HandleTriggerSpellOnPowerPercent(), WorldPackets::Party::PartyMemberFullState::Initialize(), WorldPackets::Spells::SpellCastLogData::Initialize(), Player::InitStatsForLevel(), ConditionMgr::IsPlayerMeetingCondition(), npc_azhiccar_frenzied_mite::JustAppeared(), Player::LoadFromDB(), ModifyPower(), spell_ymiron_the_fallen_king_power_periodic::OnPeriodic(), spell_mark_of_kazrogal_aura::OnPeriodic(), spell_gen_mark_of_kazrogal_hellfire_aura::OnPeriodic(), spell_deathbringer_blood_power_aura::RecalculateHook(), spell_anduin_wrynn_force_of_will::RecalculateHook(), spell_anduin_wrynn_force_of_will::RecalculateHookDamageTaken(), Creature::Regenerate(), Player::Regenerate(), Pet::SavePetToDB(), SetMaxPower(), Player::SetRuneCooldown(), boss_deathbringer_saurfang::SpellHitTarget(), spell_igb_incinerating_blast::StoreEnergy(), Aura::Update(), boss_king_deepbeard::UpdateAI(), boss_ymiron_the_fallen_king::UpdateAI(), boss_rokmora::UpdateAI(), boss_guarm::UpdateAI(), boss_telash_greywing::UpdateAI(), boss_mana_devourer::UpdateAI(), boss_the_curator_rtk::UpdateAI(), boss_moam::UpdateAI(), boss_azhiccar::UpdateAI(), boss_orator_krix_vizk::UpdateAI(), boss_edna::UpdateAI(), boss_skarmorak::UpdateAI(), boss_lord_stormsong::UpdateAI(), boss_cragmaw_the_infested::UpdateAI(), boss_sporecaller_zancha::UpdateAI(), and Scripts::EasternKingdoms::TwilightHighlands::JulakDoom::worldboss_julak_doom::WorldBossAI().
Implemented in Creature, and Player.
Referenced by spell_mistress_kiss_area::FilterTargets(), GetMaxPower(), GetPower(), AuraEffect::HandleAuraModOverridePowerDisplay(), SetMaxPower(), SetPower(), SpellBaseHealingBonusDone(), and boss_doom_lord_kazzak::UpdateAI().
|
inline |
Definition at line 832 of file Unit.h.
Referenced by boss_brother_ironhull::ExecuteEvent(), boss_galecaller_faye::ExecuteEvent(), GetUnitConditionVariable(), spell_doom_lord_kazzak_mark_of_kazzak::OnPeriodic(), Trinity::Predicates::PowerPctOrderPred::operator()(), Trinity::Predicates::PowerPctOrderPred::operator()(), SmartScript::ProcessEvent(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_selin_fireheart::UpdateAI(), and boss_shade_of_medivh::UpdateAI().
|
inline |
Definition at line 823 of file Unit.h.
Referenced by Player::ActivateTalentGroup(), AttackerStateUpdate(), spell_bronjahm_magic_bane::CalculateDamage(), Spell::CheckCast(), Spell::EffectPowerBurn(), Spell::EffectPowerDrain(), spell_moam_drain_mana::FilterTargets(), Creature::GetPowerIndex(), Creature::GetPowerTypes(), spell_edna_earth_shatterer::HandleAfterCast(), spell_pri_divine_star_shadow::HandleHitTarget(), spell_pri_halo_shadow::HandleHitTarget(), spell_telash_ice_power_periodic::HandlePeriodic(), spell_anduin_wrynn_energize_willpower_lfr::HandlePeriodic(), spell_remnant_of_a_fallen_king_energize_runic_power::HandlePeriodic(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), spell_item_heartpierce< Energy, Mana, Rage, RunicPower >::HandleProc(), spell_gen_pet_summoned::HandleScript(), WorldPackets::Party::PartyMemberFullState::Initialize(), WorldPackets::Spells::SpellCastLogData::Initialize(), boss_king_deepbeard::JustAppeared(), boss_ymiron_the_fallen_king::JustAppeared(), boss_telash_greywing::JustAppeared(), boss_sylvanas_windrunner::JustAppeared(), boss_anduin_wrynn::JustAppeared(), boss_remnant_of_a_fallen_king::JustAppeared(), spell_gen_replenishment_aura::Load(), spell_anduin_wrynn_force_of_will::OnApply(), DuelResetScript::OnDuelEnd(), ValithriaManaVoidSelector::operator()(), PowerUsersSelector::operator()(), ManaUserTargetSelector::operator()(), boss_anduin_wrynn::PhaseEvents(), spell_anduin_wrynn_force_of_will::RecalculateHook(), spell_anduin_wrynn_force_of_will::RecalculateHookDamageTaken(), Player::ResetAllPowers(), spell_item_mad_alchemists_potion::SecondaryEffect(), spell_item_crazy_alchemists_potion::SecondaryEffect(), setDeathState(), SetPowerType(), Creature::SetSpawnHealth(), Pet::Update(), Creature::Update(), boss_king_deepbeard::UpdateAI(), boss_ymiron_the_fallen_king::UpdateAI(), boss_telash_greywing::UpdateAI(), boss_vaelastrasz::UpdateAI(), boss_maleki_the_pallid::UpdateAI(), boss_anzu::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), and boss_faction_championsAI::UpdatePower().
|
pure virtual |
Implemented in Creature, and Player.
Referenced by ApplyHasteRegenPercentMod(), and AuraEffect::HandleAuraPreventRegeneratePower().
Definition at line 8289 of file Unit.cpp.
References WorldObject::GetSpellModOwner(), and ProcFrequency.
Referenced by Player::CastItemCombatSpell().
| void Unit::GetProcAurasTriggeredOnEvent | ( | AuraApplicationProcContainer & | aurasTriggeringProc, |
| AuraApplicationList * | procAuras, | ||
| ProcEventInfo & | eventInfo | ||
| ) |
Definition at line 10591 of file Unit.cpp.
References Aura::AddProcCooldown(), ASSERT, GetAppliedAuras(), AuraApplication::GetBase(), Aura::GetProcEffectMask(), Aura::GetSpellInfo(), AuraApplication::GetTarget(), SpellInfo::HasAttribute(), GameTime::Now(), Aura::PrepareProcChargeDrop(), Aura::PrepareProcToTrigger(), SPELL_ATTR0_PROC_FAILURE_BURNS_CHARGE, SPELL_ATTR2_PROC_COOLDOWN_ON_FAILURE, and sSpellMgr.
Referenced by TriggerAurasProcOnEvent().
|
inline |
Definition at line 1790 of file Unit.h.
Referenced by Spell::Spell().
|
inline |
Definition at line 894 of file Unit.h.
Referenced by SetCharm(), and SetMinion().
|
inline |
Definition at line 773 of file Unit.h.
Referenced by Player::_LoadHomeBind(), Player::_LoadSkills(), Group::AddLeaderInvite(), Group::AddMember(), Player::AddSpell(), SpellInfo::CalcProcPPM(), Player::CanRollNeedForItem(), Player::CanUseItem(), Group::ChangeLeader(), Group::Create(), Player::CreateCorpse(), Spell::EffectLearnSkill(), Spell::EffectSkill(), ReputationMgr::GetBaseReputation(), GetCreatureType(), ReputationMgr::GetFactionDataIndexForRaceAndClass(), GetModelForForm(), Player::GetQuestMinLevel(), GetRaceMask(), GetUnitConditionVariable(), Player::GiveLevel(), WorldSession::HandleAlterAppearance(), spell_gen_battleground_mercenary_shapeshift::HandleApply(), AuraEffect::HandleAuraTransform(), spell_pri_shadowy_apparition_dummy::HandleEffectHit(), WorldSession::HandleMirrorImageDataRequest(), modify_commandscript::HandleModifyGenderCommand(), spell_pal_divine_steed::HandleOnCast(), WorldSession::HandleOpeningCinematic(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), spell_gen_battleground_mercenary_shapeshift::HandleRemove(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsOrLevelHelper(), spell_quest_uther_grom_tribute::HandleScript(), WorldSession::HandleTransmogOutfitUpdateSlots(), Player::InitDisplayIds(), WorldPackets::Query::PlayerGuidLookupData::Initialize(), WorldPackets::Inspect::PlayerModelDisplayInfo::Initialize(), npc_stolen_soul::InitializeAI(), Player::InitializeSkillFields(), Player::InitStatsForLevel(), SpellArea::IsFitToRequirements(), ConditionMgr::IsPlayerMeetingCondition(), Player::IsSpellFitByClassAndRace(), Player::LearnCustomSpells(), Player::LearnDefaultSkills(), Player::LoadFromDB(), PlayerAchievementMgr::LoadFromDB(), CriteriaHandler::ModifierSatisfied(), Player::RemoveSpell(), RestoreFaction(), Player::ResurrectPlayer(), Player::RewardHonor(), Player::SatisfyQuestRace(), Player::SaveToDB(), Player::SetSkill(), Guild::Member::SetStats(), ReputationMgr::SetVisible(), quest_brace_for_impact::SpawnPet(), Player::StoreNewItemInBestSlots(), UpdateCreatureType(), Player::UpdateSkillPro(), and Player::UpdateSkillsForLevel().
| uint64 Unit::GetRaceMask | ( | ) | const |
Definition at line 10036 of file Unit.cpp.
References Trinity::RaceMask< T, N >::GetMaskForRace(), GetRace(), and Trinity::RaceMask< T, N >::RawValue.
| int32 Unit::GetResistance | ( | SpellSchoolMask | mask | ) | const |
Definition at line 13295 of file Unit.cpp.
References GetResistance(), MAX_SPELL_SCHOOL, and SPELL_SCHOOL_NORMAL.
|
inline |
Definition at line 793 of file Unit.h.
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 10285 of file Unit.cpp.
References sCreatureAIRegistry, and Object::ToCreature().
Referenced by ScheduleAIChange().
| uint32 Unit::GetSchoolImmunityMask | ( | ) | const |
Definition at line 7834 of file Unit.cpp.
References IMMUNITY_SCHOOL, and m_spellImmune.
Referenced by IsImmunedToDamage(), and Spell::SendChannelStart().
|
inline |
Definition at line 1527 of file Unit.h.
Referenced by Player::_ApplyWeaponDamage(), Player::ApplyArtifactPowers(), Player::ApplyEquipSpell(), SpellInfo::CalcPowerCost(), CalculateDisplayPowerType(), Player::CalculateMinMaxDamage(), CancelShapeshiftForm(), spell_dru_savage_roar::CheckCast(), spell_dru_forms_trinket::CheckProc(), GetCreatureType(), WorldSession::HandleArtifactSetAppearance(), AuraEffect::HandleAuraModShapeshift(), Player::HandlePassiveSpellLearn(), spell_dru_forms_trinket::HandleProc(), reset_commandscript::HandleResetStatsOrLevelHelper(), Player::InitDataForForm(), IsInDisallowedMountForm(), IsInFeralForm(), RestoreDisplayId(), Player::UpdateAttackPowerAndDamage(), UpdateCreatureType(), and UpdateMountCapability().
|
inline |
Definition at line 1275 of file Unit.h.
Referenced by Trinity::MessageDistDeliverer< PacketSender >::Visit(), Trinity::MessageDistDelivererToHostile< PacketSender >::Visit(), WorldObjectVisibleChangeVisitor< Work >::Visit(), Trinity::MessageDistDeliverer< PacketSender >::Visit(), and Trinity::MessageDistDelivererToHostile< PacketSender >::Visit().
|
inline |
|
inline |
Definition at line 1364 of file Unit.h.
Referenced by _AddAura(), Player::ActivateTalentGroup(), spell_pal_light_s_beacon::HandleProc(), RemoveAurasDueToSpellBySteal(), RemoveNotOwnSingleTargetAuras(), Aura::UnregisterSingleTarget(), and Spell::UpdateSpellHealPrediction().
| float Unit::GetSpeed | ( | UnitMoveType | mtype | ) | const |
Definition at line 8951 of file Unit.cpp.
References baseMoveSpeed, IsControlledByPlayer(), m_speed_rate, and playerBaseMoveSpeed.
Referenced by boss_malygos::boss_malygos(), BaseEntity::BuildMovementUpdate(), npc_kinetic_bomb::DoAction(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), WorldSession::HandleForceSpeedChangeAck(), Movement::MoveSplineInit::Launch(), FormationMovementGenerator::LaunchMovement(), SetSpeedRate(), RotateMovementGenerator::Update(), npc_kinetic_bomb::UpdateAI(), and npc_rimefang_icc::UpdateAI().
|
inline |
Definition at line 1734 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(), WorldSession::HandleForceSpeedChangeAck(), and UpdateSpeed().
|
inline |
Definition at line 1521 of file Unit.h.
Referenced by Aura::_ApplyForTarget(), Spell::_cast(), CreatureAI::_EnterEvadeMode(), Aura::_UnapplyForTarget(), AddGameObject(), spell_mage_alter_time_aura::AfterRemove(), Player::ApplyEquipCooldown(), AtEndOfEncounter(), AtExitCombat(), Spell::cancel(), Spell::CancelGlobalCooldown(), Player::CanExecutePendingSpellCastRequest(), Player::CanRequestSpellCast(), Player::CharmSpellInitialize(), Spell::CheckCast(), Spell::CheckPetCast(), Spell::EffectCastButtons(), Spell::EffectInterruptCast(), Spell::EffectModifyCooldown(), Spell::EffectModifyCooldowns(), Spell::EffectModifyCooldownsByCategory(), Spell::EffectModifySpellCharges(), Spell::EffectStuck(), spell_sha_lava_burst::EnsureLavaSurgeCanBeImmediatelyConsumed(), Player::EquipItem(), spell_torghast_dimensional_blade::FilterTargets(), spell_mage_ethereal_blink_triggered::FilterTargets(), Spell::finish(), boss_the_candle_king::GetCooldownOfSpell(), spell_dh_moment_of_craving::HandleAfterRemove(), Aura::HandleAuraSpecificMods(), WorldSession::HandleAzeriteEssenceActivateEssence(), spell_dh_glide::HandleCast(), spell_evo_glide::HandleCast(), spell_mage_spontaneous_combustion::HandleCharges(), spell_dh_chaotic_transformation::HandleCooldown(), spell_evo_causality_pyre::HandleCooldown(), spell_sha_downpour::HandleCooldown(), spell_warr_strategist::HandleCooldown(), misc_commandscript::HandleCooldownCommand(), spell_sha_chain_lightning_crash_lightning::HandleCooldownReduction(), spell_warr_rumbling_earth::HandleCooldownReduction(), spell_dh_cycle_of_hatred::HandleCycleOfHatred(), spell_item_rocket_boots::HandleDummy(), spell_mage_cold_snap::HandleDummy(), spell_pri_protector_of_the_frail::HandleEffectHit(), spell_pal_grand_crusader::HandleEffectProc(), spell_pal_crusader_might::HandleEffectProc(), spell_pal_fist_of_justice::HandleEffectProc(), spell_pal_righteous_protector::HandleEffectProc(), spell_dh_cycle_of_binding::HandleEffectProc(), spell_hun_scrappy::HandleEffectProc(), spell_warl_cull_the_weak::HandleEffectProc(), spell_pri_heavens_wrath::HandleEffectProc(), spell_dh_darkglare_boon::HandleEffectRemove(), AuraEffect::HandleModChargeRecoveryRate(), AuraEffect::HandleModRecoveryRate(), AuraEffect::HandleModRecoveryRateBySpellLabel(), spell_pal_moment_of_glory::HandleOnHit(), spell_hun_steady_shot::HandleOnHit(), spell_hun_take_aim::HandleOnHit(), spell_warr_victorious_state::HandleOnProc(), spell_dh_unhindered_assault::HandleOnProc(), spell_dh_violent_transformation::HandleOnProc(), spell_pri_epiphany::HandleOnProc(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), spell_dru_gore::HandleProc(), spell_pal_art_of_war::HandleProc(), spell_hun_hunting_party::HandleProc(), spell_rog_restless_blades::HandleProc(), spell_dh_felblade_cooldown_reset_proc::HandleProc(), spell_warr_anger_management_proc::HandleProc(), spell_rog_deepening_shadows::HandleProc(), spell_dk_crimson_scourge::HandleProc(), spell_hun_surging_shots::HandleProc(), spell_warr_tactician::HandleProc(), spell_hun_focused_aim::HandleProc(), spell_warr_raging_blow_cooldown_reset::HandleResetCooldown(), spell_gen_divine_storm_cd_reset::HandleScript(), WorldSession::HandleTraitsCommitConfig(), Spell::HasGlobalCooldown(), Player::InitializeSelfResurrectionSpells(), Player::LearnPvpTalent(), Player::LearnTalent(), Player::LoadFromDB(), spell_pri_holy_words_base::ModifyCooldown(), npc_gunship_boarding_addAI::MovementInform(), DuelResetScript::OnDuelEnd(), DuelResetScript::OnDuelStart(), spell_warr_devastator::OnProc(), spell_dh_restless_hunter::OnRemove(), spell_evo_causality_disintegrate::OnTick(), Player::PetSpellInitialize(), Player::PossessSpellInitialize(), spell_pri_holy_word_salvation_cooldown_reduction::ReduceCooldown(), spell_sha_ashen_catalyst::ReduceLavaLashCooldown(), spell_pri_train_of_thought::ReducePenanceCooldown(), spell_pri_train_of_thought::ReducePowerWordShieldCooldown(), Player::RemoveArenaSpellCooldowns(), RemoveGameObjectImpl(), spell_sha_lava_surge_proc::ResetCooldown(), spell_dru_berserk::ResetCooldowns(), DuelResetScript::ResetSpellCooldowns(), npc_sparring_partner_enhanced_combat_training_warrior::ResetWarrior(), spell_sha_molten_thunder_sundering::RollReset(), Pet::SavePetToDB(), Player::SaveToDB(), Player::SendInitialPacketsBeforeAddToMap(), Spell::SendSpellCooldown(), SetMinion(), gunship_npc_AI::TriggerBurningPitch(), Spell::TriggerGlobalCooldown(), spell_warl_shadowburn::TryEnergize(), Totem::UnSummon(), boss_general_bjarngrim::UpdateAI(), PetAI::UpdateAI(), npc_gunship_rocketeer::UpdateAI(), spell_gen_trainer_heal_cooldown::UpdateReviveBattlePetCooldown(), Player::VehicleSpellInitialize(), and PlayerAI::VerifySpellCast().
|
inline |
| EnumFlag< SpellOtherImmunity > Unit::GetSpellOtherImmunityMask | ( | ) | const |
Definition at line 7864 of file Unit.cpp.
References IMMUNITY_OTHER, and m_spellImmune.
Referenced by SpellInfo::CheckTarget().
| SpellSchools Unit::GetSpellSchoolByAuraGroup | ( | UnitMods | unitMod | ) | const |
Definition at line 9916 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 915 of file Unit.h.
Referenced by _ApplyAura(), WorldSession::HandleAlterAppearance(), npc_nokhudon_proving_grounds_nokhud_combatant::HandleEmoteSequence(), IsEncounterFinished(), IsSitState(), IsStandState(), and spell_love_is_in_the_air_romantic_picnic::OnPeriodic().
|
inline |
Definition at line 784 of file Unit.h.
Referenced by Player::_SaveStats(), spell_monk_stagger::Absorb(), spell_dk_pet_scaling_01::spell_dk_pet_scaling_01_AuraScript::CalculateStrengthAmount(), Pet::CastPetAura(), Player::GetHealthBonusFromStamina(), spell_item_death_choice::HandleProc(), spell_item_darkmoon_card_greatness::HandleProc(), Guardian::InitStatsForLevel(), Player::outDebugValues(), SpellBaseDamageBonusDone(), SpellBaseHealingBonusDone(), Player::UpdateArmor(), Guardian::UpdateAttackPowerAndDamage(), Player::UpdateAttackPowerAndDamage(), Guardian::UpdateMaxHealth(), and Guardian::UpdateStats().
Definition at line 9936 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 1847 of file Unit.h.
Referenced by AddExtraAttacks(), Spell::CheckCast(), spell_pri_t5_heal_2p_bonus::CheckProc(), spell_item_crystal_spire_of_karabor::CheckProc(), spell_dh_blade_dance::DecideFirstTarget(), Spell::EffectTaunt(), MotionMaster::GetMovementGeneratorsInformation(), ChatHandler::getSelectedCreature(), ChatHandler::getSelectedObject(), ChatHandler::getSelectedPlayer(), Player::GetSelectedPlayer(), ChatHandler::getSelectedPlayerOrSelf(), Player::GetSelectedUnit(), GetUnitConditionVariable(), misc_commandscript::HandleDamageCommand(), debug_commandscript::HandleDebugPlaySoundCommand(), misc_commandscript::HandleDieCommand(), misc_commandscript::HandleGUIDCommand(), misc_commandscript::HandleRespawnCommand(), IsMutualChase(), LogCommandUsage(), CriteriaHandler::ModifierSatisfied(), Spell::SelectEffectTypeImplicitTargets(), Creature::SetSpellFocus(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), UpdateSpeed(), and GameObject::Use().
|
inline |
Definition at line 1093 of file Unit.h.
Referenced by boss_four_horsemen_lady::_UpdateAI(), boss_four_horsemen_sir::_UpdateAI(), ThreatManager::AddThreat(), ScriptedAI::AddThreat(), spell_opera_picnic_basket_smell::AfterRemove(), Creature::AtEngage(), boss_four_horsemen_baron::BeginFighting(), boss_four_horsemen_thane::BeginFighting(), boss_supremus::CalculateHatefulStrikeTarget(), ThreatManager::CalculateModifiedThreat(), Creature::CallForHelp(), boss_veknilash::boss_veknilashAI::CastSpellOnBug(), Creature::Create(), Pet::Create(), Player::Create(), npc_dark_nucleus::DamageTaken(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::DeleteAllFromThreatList(), boss_professor_putricide::DoAction(), boss_gothik::DoAction(), boss_ick::DoAction(), boss_guarm::DoAction(), Spell::TargetInfo::DoDamageAndTriggers(), Spell::EffectModifyThreatPercent(), Spell::EffectRedirectThreat(), Spell::EffectSanctuary(), Spell::EffectTaunt(), Spell::EffectThreat(), CombatManager::EndAllPvECombat(), CombatReference::EndCombat(), boss_faction_championsAI::EnemiesInRange(), EnergizeBySpell(), boss_malchezaar::boss_malchezaarAI::EnfeebleHealthEffect(), VehicleJoinEvent::Execute(), boss_the_maker::ExecuteEvent(), spell_gruul_hurtful_strike_primer::FilterTargets(), boss_shade_of_aran::boss_aranAI::FlameWreathEffect(), ThreatManager::ForwardThreatForAssistingMe(), SmartScript::GetTargets(), ScriptedAI::GetThreat(), GetUnitConditionVariable(), spell_rajaxx_thundercrash::HandleAfterCast(), spell_leotheras_the_blind_whirlwind_init::HandleAfterCast(), spell_omrogg_beatdown::HandleAfterCast(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModDmgImmunity(), AuraEffect::HandleAuraModFixate(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleAuraModStun(), AuraEffect::HandleAuraModStunAndDisableGravity(), AuraEffect::HandleAuraModTotalThreat(), spell_thaddius_magnetic_pull::HandleCast(), debug_commandscript::HandleDebugThreatInfoCommand(), debug_commandscript::HandleDebugThreatListCommand(), spell_omor_the_unscarred_orbital_strike_target::HandleDummy(), spell_gen_hate_to_zero::HandleDummy(), spell_gen_hate_to_50::HandleDummy(), spell_gen_hate_to_75::HandleDummy(), spell_auriaya_agro_creator::HandleDummyEffect(), spell_alysrazor_aggro_closest::spell_alysrazor_aggro_closest_SpellScript::HandleEffect(), spell_ulduar_random_aggro_periodic::HandleEffectPeriodic(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleModConfuse(), AuraEffect::HandleModDetaunt(), AuraEffect::HandleModTaunt(), AuraEffect::HandleModThreat(), AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), spell_rog_tricks_of_the_trade_proc::HandleRemove(), spell_frostwarden_handler_focus_fire::HandleScript(), spell_the_lich_king_vile_spirit_move_target_search::HandleScript(), spell_sartura_whirlwind::HandleScript(), spell_toravon_random_aggro::HandleScript(), spell_leotheras_the_blind_whirlwind_effect::HandleScript(), spell_gen_knock_away_threat_reduction::HandleScript(), Spell::HandleThreatSpells(), Vehicle::InstallAccessory(), AdvisorBaseAI::IsEnemyInRange(), npc_suppresser::IsSummonedBy(), boss_attumen::boss_attumenAI::IsSummonedBy(), boss_blackheart_the_inciter_mc_dummy::IsSummonedBy(), CriteriaHandler::ModifierSatisfied(), ScriptedAI::ModifyThreatByPercent(), spell_hun_misdirection::OnRemove(), spell_hun_misdirection_proc::OnRemove(), spell_rog_tricks_of_the_trade_aura::OnRemove(), NonTankTargetSelector::operator()(), DevastatingSlamTargetSelector::operator()(), StoneGripTargetSelector::operator()(), UnitAI::PrepareTargetListSelection(), Spell::PreprocessSpellHit(), SmartScript::ProcessAction(), ScriptedAI::ResetThreat(), ScriptedAI::ResetThreatList(), boss_blood_queen_lana_thel::SelectRandomTarget(), Creature::SelectVictim(), gunship_npc_AI::SelectVictim(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::SpellHit(), spell_putricide_ooze_channel::StartAttack(), npc_anubarak_spike::StartChase(), ThreatReference::UnregisterAndFree(), Creature::Update(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), boss_prince_taldaram::UpdateAI(), boss_patchwerk::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_mimiron_assault_bot::npc_mimiron_assault_botAI::UpdateAI(), boss_blackheart_the_inciter::UpdateAI(), boss_murmur::UpdateAI(), boss_fathomlord_karathress::UpdateAI(), boss_void_reaver::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), Creature::UpdateEntry(), boss_faction_championsAI::UpdateThreat(), and npc_pet_mage_mirror_image::UpdateVictim().
|
inline |
|
inlineprotected |
Definition at line 686 of file Unit.h.
Referenced by RestoreDisabledAI().
| float Unit::GetTotalAttackPowerValue | ( | WeaponAttackType | attType, |
| bool | includeWeapon = true |
||
| ) | const |
Definition at line 9975 of file Unit.cpp.
References BASE_ATTACK, m_unitData, and RANGED_ATTACK.
Referenced by spell_dru_matted_fur_absorb::CalculateAmount(), 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::HandleThreatSpells(), WorldPackets::Spells::SpellCastLogData::Initialize(), Guardian::InitStatsForLevel(), SpellAbsorbBonusDone(), SpellBaseDamageBonusDone(), SpellBaseHealingBonusDone(), SpellDamageBonusDone(), SpellHealingBonusDone(), Guardian::UpdateAttackPowerAndDamage(), and Guardian::UpdateDamagePhysical().
| float Unit::GetTotalAuraModifier | ( | AuraType | auraType | ) | const |
Definition at line 5087 of file Unit.cpp.
References GetTotalAuraModifier().
Referenced by Player::BuyItemFromVendorSlot(), CalcArmorReducedDamage(), spell_sha_lava_crit_chance::CalcCritChance(), SpellInfo::CalcPowerCost(), Player::CalculateMinMaxDamage(), Player::CalculateReputationGain(), Spell::Delayed(), Spell::DelayedChannel(), Creature::GetAggroRange(), Creature::GetAttackDistance(), RestMgr::GetRestBonusFor(), GetTotalAuraModifier(), GetTotalAuraModifierByAffectMask(), GetTotalAuraModifierByMiscMask(), GetTotalAuraModifierByMiscValue(), GetUnitBlockChance(), GetUnitCriticalChanceDone(), GetUnitCriticalChanceTaken(), GetUnitDodgeChance(), GetUnitParryChance(), Player::HandleFall(), IsBlockCritical(), IsWithinMeleeRangeAt(), WorldObject::MagicSpellHitResult(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), MeleeSpellHitResult(), MeleeSpellMissChance(), WorldObject::ModSpellDuration(), RecalculateObjectScale(), Creature::RegenerateHealth(), Player::RegenerateHealth(), DuelResetScript::ResetSpellCooldowns(), RewardRage(), Battleground::RewardReputationToTeam(), RollMeleeOutcomeAgainst(), WorldSession::SendListInventory(), SpellAbsorbBonusDone(), SpellBaseHealingBonusDone(), SpellCritChanceTaken(), SpellCriticalDamageBonus(), SpellDamageBonusDone(), SpellHealingBonusDone(), WorldObject::SpellHitResult(), SpellHistory::StartCooldown(), Player::UpdateArmor(), Player::UpdateBlockPercentage(), UpdateDamageDoneMods(), Player::UpdateDodgePercentage(), Player::UpdateExpertise(), Player::UpdateHealingDonePercentMod(), Player::UpdateMastery(), Player::UpdateParryPercentage(), UpdateSpeed(), Player::UpdateSpellCritChance(), Player::UpdateSpellHitChances(), UpdateStatBuffMod(), and Player::UpdateWeaponDependentCritAuras().
| float Unit::GetTotalAuraModifier | ( | AuraType | auraType, |
| std::function< bool(AuraEffect const *)> const & | predicate | ||
| ) | const |
Definition at line 5001 of file Unit.cpp.
References GetAuraEffectsByType(), and sSpellMgr.
| float Unit::GetTotalAuraModifierByAffectMask | ( | AuraType | auraType, |
| SpellInfo const * | affectedSpell | ||
| ) | const |
Definition at line 5187 of file Unit.cpp.
References GetTotalAuraModifier(), and AuraEffect::IsAffectingSpell().
Definition at line 5107 of file Unit.cpp.
References AuraEffect::GetMiscValue(), and GetTotalAuraModifier().
Referenced by CalcArmorReducedDamage(), CalcSpellResistedDamage(), WorldObject::MagicSpellHitResult(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), SpellAbsorbBonusDone(), SpellBaseDamageBonusDone(), SpellDamageBonusDone(), SpellHealingBonusDone(), and WorldObject::SpellHitResult().
Definition at line 5147 of file Unit.cpp.
References AuraEffect::GetMiscValue(), and GetTotalAuraModifier().
Referenced by Player::CalculateReputationGain(), SpellHistory::GetChargeRecoveryTime(), SpellHistory::GetMaxCharges(), GetMechanicResistChance(), GetTotalStatValue(), GetUnitDodgeChance(), WorldSession::HandleLootMoneyOpcode(), MeleeDamageBonusDone(), WorldObject::ModSpellDuration(), Creature::Regenerate(), Battleground::RewardReputationToTeam(), SpellDamagePctDone(), SpellHistory::StartCooldown(), Player::UpdatePowerRegen(), and UpdateStatBuffMod().
| float Unit::GetTotalAuraModValue | ( | UnitMods | unitMod | ) | const |
Definition at line 9900 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(), and Guardian::UpdateResistances().
| float Unit::GetTotalAuraMultiplier | ( | AuraType | auraType | ) | const |
Definition at line 5092 of file Unit.cpp.
References GetTotalAuraMultiplier().
Referenced by KillRewarder::_RewardXP(), CalculateMeleeDamage(), CalculateSpellDamageTaken(), Player::CheckAreaExplore(), Player::DurabilityLoss(), Player::EnvironmentalDamage(), Player::GetMirrorTimerMaxValue(), GetTotalAuraMultiplier(), GetTotalAuraMultiplierByAffectMask(), GetTotalAuraMultiplierByMiscMask(), GetTotalAuraMultiplierByMiscValue(), BattlePets::BattlePetMgr::GrantBattlePetExperience(), AuraEffect::HandleAuraIncreaseBaseHealthPercent(), AuraEffect::HandleAuraModIncreaseBaseManaPercent(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModMaxPowerPct(), Player::HandleFall(), AuraEffect::HandleModPercentStat(), AuraEffect::HandleModTotalPercentStat(), AuraEffect::HandleShieldBlockValuePercent(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), Creature::RegenerateHealth(), Player::RegenerateHealth(), SpellAbsorbBonusTaken(), SpellAbsorbPctDone(), SpellCriticalHealingBonus(), SpellDamageBonusTaken(), SpellDamagePctDone(), SpellHealingBonusTaken(), SpellHealingPctDone(), Player::UpdateArmor(), UpdateDamagePctDoneMods(), UpdateMovementForcesModMagnitude(), Player::UpdatePowerRegen(), Player::UpdateRating(), and UpdateSpeed().
| float Unit::GetTotalAuraMultiplier | ( | AuraType | auraType, |
| std::function< bool(AuraEffect const *)> const & | predicate | ||
| ) | const |
Definition at line 5028 of file Unit.cpp.
References AddPct(), GetAuraEffectsByType(), and sSpellMgr.
| float Unit::GetTotalAuraMultiplierByAffectMask | ( | AuraType | auraType, |
| SpellInfo const * | affectedSpell | ||
| ) | const |
Definition at line 5197 of file Unit.cpp.
References GetTotalAuraMultiplier(), and AuraEffect::IsAffectingSpell().
Definition at line 5117 of file Unit.cpp.
References AuraEffect::GetMiscValue(), and GetTotalAuraMultiplier().
Referenced by CalculateAOEAvoidance(), CalculateMeleeDamage(), ThreatManager::CalculateModifiedThreat(), CalculateSpellDamageTaken(), AuraEffect::HandleAuraModBaseResistancePCT(), AuraEffect::HandleModResistancePercent(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), SpellCriticalDamageBonus(), SpellDamageBonusTaken(), SpellDamagePctDone(), and ThreatManager::UpdateMySpellSchoolModifiers().
Definition at line 5157 of file Unit.cpp.
References AuraEffect::GetMiscValue(), and GetTotalAuraMultiplier().
Referenced by KillRewarder::_RewardXP(), Loot::BuildLootResponse(), SpellHistory::GetChargeRecoveryTime(), Player::ModifyCurrency(), ModifyPower(), Creature::Regenerate(), and Player::UpdatePowerRegen().
| float Unit::GetTotalStatValue | ( | Stats | stat | ) | const |
Definition at line 9884 of file Unit.cpp.
References AddPct(), AsUnderlyingType(), BASE_PCT, BASE_VALUE, GetFlatModifierValue(), GetPctModifierValue(), GetTotalAuraModifierByMiscValue(), SPELL_AURA_MOD_STAT_BONUS_PCT, TOTAL_PCT, TOTAL_VALUE, and UNIT_MOD_STAT_START.
Referenced by Player::UpdateAllStats(), Guardian::UpdateStats(), and Player::UpdateStats().
|
inline |
Definition at line 1644 of file Unit.h.
Referenced by Player::ActivateTaxiPathTo(), UF::ViewerDependentValue< UF::UnitData::DisplayIDTag >::GetValue(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraTransform(), IsInDisallowedMountForm(), and IsPolymorphed().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 12236 of file Unit.cpp.
References ObjectGuid::Empty, BaseEntity::GetGUID(), WorldObject::GetTransport(), TransportBase::GetTransportGUID(), GetVehicle(), and GetVehicleBase().
Referenced by GetTeleportOptions(), DistractMovementGenerator::Initialize(), Movement::MoveSplineInit::Launch(), Movement::MoveSplineInit::MoveSplineInit(), SceneMgr::PlaySceneByTemplate(), Movement::MoveSplineInit::Stop(), and RotateMovementGenerator::Update().
|
inline |
Definition at line 1271 of file Unit.h.
Referenced by Player::CanAlwaysSee(), Player::CanExecutePendingSpellCastRequest(), WorldSession::HandleCancelChanneling(), WorldSession::HandleCancelModSpeedNoControlAuras(), WorldSession::HandleSetActiveMoverOpcode(), WorldSession::HandleSpellEmpowerRelease(), WorldSession::HandleSpellEmpowerRestart(), KnockbackFrom(), SendTeleportPacket(), SetSpeedRate(), UpdateAdvFlyingSpeed(), UpdateAdvFlyingSpeed(), and WorldSession::ValidateAndGetUnitBeingMoved().
| float Unit::GetUnitBlockChance | ( | WeaponAttackType | attType, |
| Unit const * | victim | ||
| ) | const |
Definition at line 2832 of file Unit.cpp.
References CREATURE_FLAG_EXTRA_NO_BLOCK, EQUIPMENT_SLOT_OFFHAND, CreatureTemplate::flags_extra, Creature::GetCreatureTemplate(), ItemTemplate::GetInventoryType(), GetLevelForTarget(), Item::GetTemplate(), GetTotalAuraModifier(), INVENTORY_SLOT_BAG_0, INVTYPE_SHIELD, Item::IsBroken(), IsTotem(), 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 2929 of file Unit.cpp.
References GetUnitCriticalChanceDone(), and GetUnitCriticalChanceTaken().
Referenced by RollMeleeOutcomeAgainst().
| float Unit::GetUnitCriticalChanceDone | ( | WeaponAttackType | attackType | ) | const |
Definition at line 2863 of file Unit.cpp.
References BASE_ATTACK, CREATURE_FLAG_EXTRA_NO_CRIT, GetTotalAuraModifier(), OFF_ATTACK, RANGED_ATTACK, SPELL_AURA_MOD_CRIT_PCT, SPELL_AURA_MOD_WEAPON_CRIT_PERCENT, Object::ToCreature(), and Object::ToPlayer().
Referenced by spell_dh_critical_chaos::CalcAmount(), spell_dh_know_your_enemy::CalcAmount(), spell_hun_penetrating_shots::CalcAmount(), GetUnitCriticalChanceAgainst(), and SpellCritChanceDone().
| float Unit::GetUnitCriticalChanceTaken | ( | Unit const * | attacker, |
| WeaponAttackType | attackType, | ||
| float | critDone | ||
| ) | const |
Definition at line 2898 of file Unit.cpp.
References AuraEffect::GetCasterGUID(), BaseEntity::GetGUID(), AuraEffect::GetMiscValueB(), GetTotalAuraModifier(), HealthBelowPct(), RANGED_ATTACK, SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_CHANCE, SPELL_AURA_MOD_ATTACKER_SPELL_AND_WEAPON_CRIT_CHANCE, SPELL_AURA_MOD_CRIT_CHANCE_FOR_CASTER, SPELL_AURA_MOD_CRIT_CHANCE_FOR_CASTER_PET, SPELL_AURA_MOD_CRIT_CHANCE_VERSUS_TARGET_HEALTH, and ToTempSummon().
Referenced by GetUnitCriticalChanceAgainst(), and SpellCritChanceTaken().
| float Unit::GetUnitDodgeChance | ( | WeaponAttackType | attType, |
| Unit const * | victim | ||
| ) | const |
Definition at line 2749 of file Unit.cpp.
References Player::GetExpertiseDodgeOrParryReduction(), GetLevelForTarget(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscValue(), BaseEntity::GetTypeId(), IsTotem(), 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().
| float Unit::GetUnitMissChance | ( | ) | const |
Definition at line 2825 of file Unit.cpp.
Referenced by MeleeSpellMissChance().
|
inline |
Definition at line 1762 of file Unit.h.
Referenced by BaseEntity::BuildMovementUpdate(), GetDebugInfo(), debug_commandscript::HandleDebugMoveflagsCommand(), ConditionMgr::IsPlayerMeetingCondition(), and Player::TeleportTo().
| float Unit::GetUnitParryChance | ( | WeaponAttackType | attType, |
| Unit const * | victim | ||
| ) | const |
Definition at line 2785 of file Unit.cpp.
References BASE_ATTACK, CREATURE_FLAG_EXTRA_NO_PARRY, CreatureTemplate::flags_extra, Creature::GetCreatureTemplate(), Player::GetExpertiseDodgeOrParryReduction(), GetLevelForTarget(), GetTotalAuraModifier(), BaseEntity::GetTypeId(), IsTotem(), OFF_ATTACK, SPELL_AURA_MOD_EXPERTISE, SPELL_AURA_MOD_PARRY_PERCENT, Object::ToCreature(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by MeleeSpellHitResult(), and RollMeleeOutcomeAgainst().
|
overrideprotectedvirtual |
Reimplemented from BaseEntity.
Definition at line 14363 of file Unit.cpp.
References UF::Empath, flags, BaseEntity::GetGUID(), GetOwnerGUID(), HasAuraTypeWithCaster(), Object::HasDynamicFlag(), UF::None, UF::Owner, SPELL_AURA_EMPATHY, and UNIT_DYNFLAG_SPECIALINFO.
Referenced by Creature::BuildValuesUpdateForPlayerWithMask(), and Player::GetUpdateFieldFlagsFor().
|
inline |
Definition at line 1800 of file Unit.h.
Referenced by KillRewarder::_InitXP(), boss_flame_leviathan_defense_cannon::boss_flame_leviathan_defense_cannonAI::CanAIAttack(), boss_flame_leviathan_defense_turret::boss_flame_leviathan_defense_turretAI::CanAIAttack(), SpellInfo::CheckVehicle(), firelands_bossAI::EnterEvadeMode(), npc_argent_captainAI::EnterEvadeMode(), npc_daegarn::EnterEvadeMode(), CreatureAI::EnterEvadeMode(), VehicleJoinEvent::Execute(), Creature::ExitVehicle(), spell_putricide_choking_gas_filter::FilterTargets(), GetDirectTransport(), spell_pilgrims_bounty_on_plate::GetTable(), SmartScript::GetTargets(), GetTransGUID(), WorldSession::HandleAttackSwingOpcode(), WorldSession::HandleMoveChangeVehicleSeats(), WorldSession::HandleMovementOpcode(), spell_pilgrims_bounty_a_serving_of::HandlePlate(), WorldSession::HandleRequestVehicleNextSeat(), WorldSession::HandleRequestVehiclePrevSeat(), WorldSession::HandleRequestVehicleSwitchSeat(), spell_ulduar_cancel_stone_grip::spell_ulduar_cancel_stone_gripSpellScript::HandleScript(), WorldPackets::Party::PartyMemberFullState::Initialize(), InterruptMovementBasedAuras(), npc_tiger_matriarch::IsSummonedBy(), WorldObject::IsValidAssistTarget(), achievement_wg_didnt_stand_a_chance::OnCheck(), boss_flame_leviathan_overload_device::boss_flame_leviathan_overload_deviceAI::OnSpellClick(), OutDebugInfo(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), Vehicle::RemovePassenger(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), Creature::SelectVictim(), SetControlled(), setDeathState(), SetDisableGravity(), lfg::LFGMgr::TeleportPlayer(), npc_impaling_spear::UpdateAI(), npc_mechanolift::npc_mechanoliftAI::UpdateAI(), npc_brunnhildar_prisoner::UpdateAI(), Player::UpdateLiquidMirrorTimerFlagsOnPositionChange(), UpdateSpeed(), GameObject::Use(), Trinity::MessageDistDeliverer< PacketSender >::Visit(), and Trinity::MessageDistDelivererToHostile< PacketSender >::Visit().
| Unit * Unit::GetVehicleBase | ( | ) | const |
Definition at line 12206 of file Unit.cpp.
References Vehicle::GetBase(), and m_vehicle.
Referenced by boss_flame_leviathan_defense_cannon::boss_flame_leviathan_defense_cannonAI::CanAIAttack(), boss_flame_leviathan_defense_turret::boss_flame_leviathan_defense_turretAI::CanAIAttack(), WorldObject::CanSeeOrDetect(), spell_dh_glide::CheckCast(), CreatureAI::DoZoneInCombat(), Spell::EffectScriptEffect(), ExitVehicle(), spell_mimiron_magnetic_core::spell_mimiron_magnetic_core_SpellScript::FilterTargets(), spell_pilgrims_bounty_on_plate::GetTable(), GetTransGUID(), GetVehicleCreatureBase(), GetVehicleRoot(), spell_pilgrims_bounty_on_plate::HandleDummy(), WorldSession::HandleMoveDismissVehicle(), WorldSession::HandleRequestVehicleNextSeat(), WorldSession::HandleRequestVehiclePrevSeat(), WorldSession::HandleRequestVehicleSwitchSeat(), spell_svalna_remove_spear::HandleScript(), spell_mimiron_weld::spell_mimiron_weld_AuraScript::HandleTick(), WorldObject::IsValidAssistTarget(), boss_mimiron::boss_mimironAI::JustEngagedWith(), achievement_denyin_the_scion::OnCheck(), BattlefieldTB::OnCreatureCreate(), scene_darkmaul_plains_skeleton_army_alliance::OnSceneTriggerEvent(), boss_flame_leviathan_overload_device::boss_flame_leviathan_overload_deviceAI::OnSpellClick(), OutDebugInfo(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), Player::SetViewpoint(), npc_tournament_training_dummy::SpellHit(), Transport::TeleportTransport(), npc_snobold_vassal::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), and UpdateSpeed().
| Creature * Unit::GetVehicleCreatureBase | ( | ) | const |
Definition at line 12227 of file Unit.cpp.
References GetVehicleBase(), and Object::ToCreature().
Referenced by spell_xt002_energy_orb::HandleSummons(), spell_vp_slipstream::Load(), achievement_three_car_garage_demolisher::OnCheck(), achievement_three_car_garage_chopper::OnCheck(), achievement_three_car_garage_siege::OnCheck(), BattlefieldWG::OnPlayerLeaveWar(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), boss_mimiron::boss_mimironAI::UpdateAI(), and Player::VehicleSpellInitialize().
|
inline |
Definition at line 1798 of file Unit.h.
Referenced by _EnterVehicle(), Creature::AddToWorld(), spell_stable_master_repo::AfterApply(), Creature::AIM_Initialize(), Creature::AtEngage(), boss_deathbringer_saurfang::boss_deathbringer_saurfang(), BaseEntity::BuildMovementUpdate(), CalculateDisplayPowerType(), Aura::CanStackWith(), VehicleAI::CheckConditions(), SmartAI::CheckConditions(), Spell::CheckEffectTarget(), Map::CreatureRelocation(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), instance_ulduar::instance_ulduar_InstanceMapScript::DespawnLeviatanVehicle(), Dismount(), npc_orb_carrier::DoAction(), npc_ioc_siege_engine::DoAction(), npc_melee_hover_disk::DoAction(), HomeMovementGenerator< T >::DoFinalize(), firelands_bossAI::EnterEvadeMode(), npc_daegarn::EnterEvadeMode(), boss_gormok::ExecuteEvent(), npc_sanitron_5000::ForceCastOnPassenger(), GetDebugInfo(), SmartScript::GetTargets(), go_wg_vehicle_teleporter::GetValidVehicle(), AuraEffect::HandleAuraControlVehicle(), spell_elementium_spike_shield::spell_elementium_spike_shield_SpellScript::HandleBouncerSpikes(), spell_icecrown_jump_jets::HandleCast(), spell_pilgrims_bounty_feast_on::HandleDummy(), spell_pilgrims_bounty_on_plate::HandleDummy(), spell_icecrown_illidan_kill_credit_master::HandleDummy(), spell_icecrown_plant_battle_standard::HandleDummy(), WorldSession::HandleEjectPassenger(), spell_eject_spirits_of_redemption::HandleHitTarget(), spell_auto_repair::spell_auto_repair_SpellScript::HandleScript(), spell_zuldrak_gymers_throw::HandleScript(), spell_gen_eject_passengers_3_8::HandleScriptEffect(), HandleSpellClick(), npc_vp_slipstream::InitializeAI(), IsOnVehicle(), boss_ick::JustDied(), npc_iceborn_protodrake::JustEngagedWith(), boss_kologarn::boss_kologarnAI::JustEngagedWith(), boss_rimefang::JustReachedHome(), spell_gal_darah_impaling_charge::Load(), spell_mimiron_plasma_blast::spell_mimiron_plasma_blast_SpellScript::Load(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadResetScript(), Mount(), npc_snobold_vassal::MountOnBoss(), Map::MoveAllCreaturesInMoveList(), npc_melee_hover_disk::MovementInform(), Scripts::Pandaria::TheJadeForest::npc_rappelling_rope::MovementInform(), npc_bone_spike::npc_bone_spike(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfang_icc(), npc_mechanolift::npc_mechanoliftAI::npc_mechanoliftAI(), npc_orb_carrier::npc_orb_carrier(), VehicleAI::OnCharmed(), spell_blood_queen_frenzied_bloodthirst::OnRemove(), spell_lord_stormsong_ancient_mindbender_aura::OnRemove(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), spell_skadi_ride_vehicle::OnRemoveVehicle(), FlameLeviathanPursuedTargetSelector::operator()(), OutDebugInfo(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), npc_bountiful_table::npc_bountiful_tableAI::PassengerBoarded(), Map::PlayerRelocation(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), boss_ignis::boss_ignis_AI::Reset(), spell_malygos_surge_of_power_warning_selector_25::SendThreeTargets(), SetCharmedBy(), boss_flame_leviathan::boss_flame_leviathanAI::SpellHit(), npc_brunnhildar_prisoner::SpellHit(), npc_storm_cloud::SpellHit(), boss_flame_leviathan::boss_flame_leviathanAI::SpellHitTarget(), npc_silverpine_orc_sea_pup::UpdateAI(), npc_mechanolift::npc_mechanoliftAI::UpdateAI(), boss_kologarn::boss_kologarnAI::UpdateAI(), boss_vx_001::boss_vx_001AI::UpdateAI(), npc_freed_protodrake::UpdateAI(), npc_hyldsmeet_protodrake::UpdateAI(), generic_vehicleAI_toc5::generic_vehicleAI_toc5AI::UpdateAI(), UpdateHeight(), UpdateOrientation(), PhasingHandler::ControlledUnitVisitor::VisitControlledOf(), npc_bg_deephaul_ravine_earthen_mine_cart_horde::WaypointPathEnded(), npc_bg_deephaul_ravine_earthen_mine_cart_alliance::WaypointPathEnded(), and npc_silverpine_forsaken_bat::WaypointReached().
|
inline |
Definition at line 1799 of file Unit.h.
Referenced by Vehicle::GetWeakPtr().
| Unit * Unit::GetVehicleRoot | ( | ) | const |
Definition at line 12211 of file Unit.cpp.
References GetVehicleBase().
|
inline |
Definition at line 738 of file Unit.h.
Referenced by EscortAI::AssistPlayerInCombatAgainst(), SmartAI::AssistPlayerInCombatAgainst(), PetAI::AttackStart(), BaseEntity::BuildMovementUpdate(), boss_supremus::CalculateHatefulStrikeTarget(), Creature::CallAssistance(), PetAI::CanAttack(), player_overlord_brandAI::DamageDealt(), boss_lady_deathwhisper::DamageTaken(), boss_selin_fireheart::DoAction(), boss_professor_putricide::DoAction(), boss_leotheras_the_blind::DoAction(), boss_ick::DoAction(), UnitAI::DoCast(), UnitAI::DoCastVictim(), ConfusedMovementGenerator< T >::DoFinalize(), Creature::DoFleeToGetAssistance(), DoMeleeAttackIfReady(), PlayerAI::DoRangedAttackIfReady(), UnitAI::DoSpellAttackIfReady(), ScriptedAI::DoStopAttack(), boss_jormungarAI::Emerge(), boss_malchezaar::boss_malchezaarAI::EnfeebleHealthEffect(), AqusirrEventHandler::Execute(), boss_epoch::boss_epochAI::ExecuteEvent(), boss_nexusprince_shaffar::ExecuteEvent(), spell_occuthar_focused_fire::spell_occuthar_focused_fire_SpellScript::FilterTargets(), spell_baleroc_shards_of_torment_target_search::FilterTargets(), FleeingMovementGenerator::Finalize(), boss_shade_of_aran::boss_aranAI::FlameWreathEffect(), ThreatManager::GetAnyTarget(), getAttackerForHelper(), SmartScript::GetTargets(), boss_moroes::GuestsAttack(), cast_commandscript::HandleCastTargetCommad(), debug_commandscript::HandleDebugThreatListCommand(), AuraEffect::HandleModPossessPet(), WorldSession::HandlePetActionHelper(), spell_dk_dancing_rune_weapon::HandleProc(), spell_nexus_lord_align_disk_aggro::HandleScript(), HasLostTarget(), Spell::InitExplicitTargets(), boss_attumen::boss_attumenAI::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro_hawk::IsSummonedBy(), npc_dark_fiend::JustAppeared(), npc_water_globule::JustAppeared(), npc_acolyte_of_shadron::JustDied(), npc_acolyte_of_vesperon::JustDied(), npc_shadow_image::JustEngagedWith(), npc_ancient_wisp::JustEngagedWith(), npc_anubarak_anub_ar_assassin::JustEngagedWith(), npc_slad_ran_constrictor::JustEngagedWith(), npc_stolen_soul::JustEngagedWith(), npc_angered_soul_fragment::JustEngagedWith(), Scripts::Pandaria::TheWanderingIsle::npc_tushui_huojin_trainee::JustEngagedWith(), npc_dark_nucleus::JustEngagedWith(), boss_emalon::JustEngagedWith(), npc_guard_generic::JustEngagedWith(), boss_midnight::boss_midnightAI::JustSummoned(), npc_silverpine_skitterweb_matriarch::JustSummoned(), boss_black_knight::boss_black_knightAI::JustSummoned(), boss_ignis::boss_ignis_AI::JustSummoned(), boss_warp_splinter::JustSummoned(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::JustSummoned(), boss_emalon::JustSummoned(), npc_emily::JustSummoned(), PetAI::KilledUnit(), boss_high_inquisitor_whitemane::MograineResurrected(), alliance_rifleman::alliance_riflemanAI::MoveInLineOfSight(), boss_twinemperorsAI::MoveInLineOfSight(), npc_tooga::npc_toogaAI::MoveInLineOfSight(), boss_nefarian::MovementInform(), boss_high_priestess_azil::boss_high_priestess_azilAI::MovementInform(), PetAI::NeedToStop(), spell_leotheras_the_blind_demon_link::OnPeriodic(), spell_omor_the_unscarred_orbital_strike_whip::OnPeriodic(), spell_malygos_vortex_visual::OnRemove(), DeathPlagueTargetSelector::operator()(), NonTankTargetSelector::operator()(), WebTargetSelector::operator()(), TargetHandler::VictimCheck::operator()(), SindragosaIcyGripTargetFilter::operator()(), PetAI::OwnerAttacked(), PetAI::OwnerAttackedBy(), Scripts::Pandaria::TheWanderingIsle::spell_feet_of_fury::PeriodicTick(), UnitAI::PrepareTargetListSelection(), SmartScript::ProcessEvent(), npc_darkfallen_noble::ScheduleSpells(), npc_guard_shattrath_faction::ScheduleVanish(), PlayerAI::SelectAttackTarget(), SimpleCharmedPlayerAI::SelectAttackTarget(), Spell::SelectImplicitAreaTargets(), SelectNearbyTarget(), PetAI::SelectNextTarget(), boss_blood_queen_lana_thel::SelectRandomTarget(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::SelectVictim(), gunship_npc_AI::SelectVictim(), Creature::SetCanMelee(), SmartAI::SetCombatMove(), SetConfused(), npc_twisted_visage::SetData(), SetFeared(), SetStunned(), FollowerAI::ShouldAssistPlayerInCombatAgainst(), StopAttackFaction(), CasterAI::UpdateAI(), SimpleCharmedPlayerAI::UpdateAI(), boss_garothi_worldbreaker::UpdateAI(), boss_alizabal::boss_alizabalAI::UpdateAI(), boss_ambassador_flamelash::boss_ambassador_flamelashAI::UpdateAI(), boss_general_angerforge::boss_general_angerforgeAI::UpdateAI(), boss_broodlord::UpdateAI(), boss_firemaw::UpdateAI(), boss_flamegor::UpdateAI(), boss_victor_nefarius::UpdateAI(), boss_vaelastrasz::UpdateAI(), boss_ragnaros::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_garaxxas::UpdateAI(), boss_selin_fireheart::UpdateAI(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), boss_maleki_the_pallid::UpdateAI(), npc_volatile_felfire_fiend::npc_volatile_felfire_fiendAI::UpdateAI(), npc_sinster_reflection::npc_sinster_reflectionAI::UpdateAI(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::UpdateAI(), boss_archimonde::UpdateAI(), npc_frost_wyrm::npc_frost_wyrmAI::UpdateAI(), npc_gargoyle::npc_gargoyleAI::UpdateAI(), alliance_rifleman::alliance_riflemanAI::UpdateAI(), hyjalAI::UpdateAI(), boss_onyxia::UpdateAI(), boss_slagmaw::UpdateAI(), boss_kurinnaxx::UpdateAI(), boss_ossirian::boss_ossirianAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), boss_fankriss::UpdateAI(), boss_skeram::boss_skeramAI::UpdateAI(), boss_veklor::boss_veklorAI::UpdateAI(), npc_muglash::npc_muglashAI::UpdateAI(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::UpdateAI(), boss_ozruk::boss_ozrukAI::UpdateAI(), boss_prince_taldaram::UpdateAI(), boss_hadronox::UpdateAI(), npc_anub_ar_skirmisher::UpdateAI(), npc_toc_hunter::UpdateAI(), npc_toc_warrior::UpdateAI(), npc_toc_dk::UpdateAI(), npc_toc_rogue::UpdateAI(), boss_bronjahm::UpdateAI(), boss_devourer_of_souls::UpdateAI(), npc_raging_ghoul::npc_raging_ghoulAI::UpdateAI(), boss_garfrost::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), npc_high_overlord_saurfang_igb::UpdateAI(), npc_muradin_bronzebeard_igb::UpdateAI(), npc_darnavan::UpdateAI(), boss_lord_marrowgar::UpdateAI(), boss_professor_putricide::UpdateAI(), npc_blazing_skeleton::UpdateAI(), boss_gothik::UpdateAI(), npc_gothik_minion_baseAI::UpdateAI(), boss_noth::UpdateAI(), boss_razuvious::UpdateAI(), boss_thaddius::UpdateAI(), boss_malygos::UpdateAI(), boss_steelbreaker::boss_steelbreakerAI::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_feral_defender::UpdateAI(), npc_detonating_lasher::npc_detonating_lasherAI::UpdateAI(), boss_ignis::boss_ignis_AI::UpdateAI(), boss_kologarn::boss_kologarnAI::UpdateAI(), boss_razorscale::UpdateAI(), npc_scourge_hulk::UpdateAI(), boss_murmur::UpdateAI(), boss_gurtogg_bloodboil::UpdateAI(), npc_maiev::UpdateAI(), boss_essence_of_anger::UpdateAI(), boss_doom_lord_kazzak::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_omor_the_unscarred::UpdateAI(), boss_alar::UpdateAI(), boss_void_reaver::UpdateAI(), boss_nethermancer_sepethrea::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), npc_nagrand_banner::npc_kil_sorrow_spellbinderAI::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), boss_anduin_wrynn::UpdateAI(), npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI(), boss_mage_toc5::boss_mage_toc5AI::UpdateAI(), boss_ionar::UpdateAI(), PossessedAI::UpdateAI(), PetAI::UpdateAI(), npc_hearthglen_crusader::UpdateAI(), npc_felmyst_vapor::UpdateAI(), InstanceScript::UpdateMinionState(), Creature::UpdateMovementCapabilities(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), boss_faction_championsAI::UpdateThreat(), CreatureAI::UpdateVictim(), npc_pet_mage_mirror_image::UpdateVictim(), npc_thorim_trashAI::UseAbility(), ValidateAttackersAndOwnTarget(), PlayerAI::VerifySpellCast(), and instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::VortexHandling().
|
inline |
Definition at line 1892 of file Unit.h.
Referenced by BeforeVisibilityDestroy< Creature >(), BeforeVisibilityDestroy< Player >(), and Kill().
Definition at line 14513 of file Unit.cpp.
References m_unitData, and MAX_EQUIPMENT_ITEMS.
Definition at line 14505 of file Unit.cpp.
References m_unitData, and MAX_EQUIPMENT_ITEMS.
Referenced by SpellInfo::CheckTarget(), GetUnitConditionVariable(), spell_gen_clone_weapon_aura::OnApply(), conversation_an_unlikely_informant::OnCreate(), and conversation_the_new_classington_estate::OnCreate().
|
inline |
Definition at line 1619 of file Unit.h.
Referenced by AuraApplication::AuraApplication(), WorldPackets::Party::PartyMemberFullState::Initialize(), and Player::SendAurasForTarget().
| float Unit::GetWeaponDamageRange | ( | WeaponAttackType | attType, |
| WeaponDamageRange | type | ||
| ) | const |
Definition at line 10005 of file Unit.cpp.
References haveOffhandWeapon(), m_weaponDamage, and OFF_ATTACK.
Referenced by Creature::CalculateMinMaxDamage(), Player::CalculateMinMaxDamage(), and Guardian::UpdateDamagePhysical().
| float Unit::GetWeaponProcChance | ( | ) | const |
Definition at line 8278 of file Unit.cpp.
References BASE_ATTACK, GetBaseAttackTime(), haveOffhandWeapon(), isAttackReady(), and OFF_ATTACK.
Referenced by Player::CastItemCombatSpell().
| void Unit::HandleAttackPowerModifier | ( | AttackPowerModIndex | index, |
| AttackPowerModType | modifierType, | ||
| float | amount, | ||
| bool | apply | ||
| ) |
Definition at line 9766 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, |
| Player * | target = nullptr, |
||
| Trinity::IteratorPair< int32 const * > | spellVisualKitIds = {}, |
||
| int32 | sequenceVariation = 0 |
||
| ) |
Definition at line 1662 of file Unit.cpp.
References ANIM_MOUNT_SELF_SPECIAL, ANIM_MOUNT_SPECIAL, Trinity::IteratorPair< iterator, end_iterator >::begin(), WorldPackets::Chat::Emote::EmoteID, Trinity::IteratorPair< iterator, end_iterator >::end(), BaseEntity::GetGUID(), WorldPackets::Chat::Emote::Guid, sEmotesStore, Player::SendDirectMessage(), WorldObject::SendMessageToSet(), WorldPackets::Chat::Emote::SequenceVariation, WorldPackets::Chat::Emote::SpellVisualKitIDs, and WorldPackets::Chat::Emote::Write().
Referenced by npc_elwynn_forest_wolf::_ScheduleBeforeChasingEvents(), spell_ahune_summoning_rhyme_aura::AfterApply(), spell_pet_gen_lich_pet_emote::AfterApply(), Scripts::Pandaria::TheWanderingIsle::npc_huojin_trainee::BeginSparring(), npc_frost_sphere::DamageTaken(), Scripts::Pandaria::TheWanderingIsle::npc_li_fei_combat::DamageTaken(), CoolestFriendBaseAI::DoAction(), Scripts::Pandaria::TheWanderingIsle::npc_huojin_trainee::DoAction(), boss_illidan_stormrage::DoAction(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), npc_guard_generic::DoReplyToTextEmote(), StandUpEvent::Execute(), PartyTimeEmoteEvent::Execute(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), spell_icecrown_plant_battle_standard::HandleDummy(), spell_gen_spectator_cheer_trigger::HandleDummy(), spell_defender_of_azeroth_speak_with_mograine::HandleDummy(), npc_nokhudon_proving_grounds_nokhud_combatant::HandleEmoteSequence(), boss_felmyst::HandleFlightSequence(), npc_commandscript::HandleNpcSayCommand(), npc_commandscript::HandleNpcYellCommand(), spell_operation_gnomeregan_basic_orders_emote::HandlePeriodic(), spell_wintergrasp_activate_robotic_arms::HandleScript(), spell_gen_stand::HandleScript(), WorldSession::HandleTextEmoteOpcode(), npc_raging_ghoul::npc_raging_ghoulAI::IsSummonedBy(), npc_risen_witch_doctor::npc_risen_witch_doctorAI::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_instructor_zhi::JustAppeared(), boss_svala::JustDied(), boss_the_lich_king::JustSummoned(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::JustSummoned(), boss_slabhide::boss_slabhideAI::MovementInform(), npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::MovementInform(), boss_nightbane::boss_nightbaneAI::MovementInform(), npc_kalecgos::MovementInform(), npc_turned_champion::npc_turned_championAI::MovementInform(), npc_valarjar_paying_respect_to_odyn::MovementInform(), boss_ulgrax_the_devourer::MovementInform(), conversation_the_new_classington_estate::OnUpdate(), Scripts::Pandaria::TheWanderingIsle::npc_tushui_huojin_trainee::PlayRandomEmote(), npc_spectral_ghostly_citizen::npc_spectral_ghostly_citizenAI::ReceiveEmote(), npc_dancing_flames::ReceiveEmote(), PetAI::ReceiveEmote(), npc_feasting_valarjar::Reset(), npc_spectating_valarjar::Reset(), DarkFallenAI::Reset(), boss_sapphiron::Reset(), npc_sinclari_vh::ScheduleIntro(), npc_giant_boar_vehicle_q55879::SpellHit(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), boss_jormungarAI::Submerge(), boss_rend_blackhand::UpdateAI(), boss_vaelastrasz::UpdateAI(), boss_felblood_kaelthas::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), npc_madrigosa::UpdateAI(), boss_kalecgos::UpdateAI(), npc_vanessa_vancleef_human_heritage_lions_pride_inn_basement::UpdateAI(), npc_partygoer_pather::UpdateAI(), npc_partygoer::UpdateAI(), npc_redridge_citizen::npc_redridge_citizenAI::UpdateAI(), npc_silverpine_fallen_human::UpdateAI(), npc_silverpine_generic_actor_fenris_keep::UpdateAI(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::UpdateAI(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_ship_captain_warming_up_private::UpdateAI(), npc_survivors_healed_by_leader_beach_private< PathId, WaitTime >::UpdateAI(), npc_survivors_beach_leave_private< PathId, WaitTime >::UpdateAI(), npc_bartleby_battson::npc_bartleby_battsonAI::UpdateAI(), npc_roger_owens::npc_roger_owensAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), boss_mordresh_fire_eye::UpdateAI(), boss_ouro::boss_ouroAI::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), Scripts::Kalimdor::Durotar::npc_lazy_peon::npc_lazy_peonAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::UpdateAI(), boss_lich_king_toc::UpdateAI(), npc_tirion_toc::UpdateAI(), npc_fizzlebang_toc::UpdateAI(), npc_uther_quel_delar::npc_uther_quel_delarAI::UpdateAI(), boss_professor_putricide::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), npc_highlord_tirion_fordring_lh::UpdateAI(), boss_sapphiron::UpdateAI(), npc_valiance_keep_cannoneer::UpdateAI(), npc_minigob_manabonk::UpdateAI(), boss_illidan_stormrage::UpdateAI(), npc_akama_illidan::UpdateAI(), npc_maiev::UpdateAI(), npc_akama_shade::UpdateAI(), npc_warden_mellichar::UpdateAI(), npc_barada::npc_baradaAI::UpdateAI(), npc_watch_commander_leonus::UpdateAI(), npc_pet_gen_pandaren_monk::UpdateAI(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::UpdateEscortAI(), boss_kirtonos_the_herald::UpdateIntroEvents(), npc_millhouse_manastorm::UpdateIntroEvents(), boss_vazruden_the_herald::UpdateSpecialEvents(), Scripts::Kalimdor::Durotar::npc_darkspear_jailor::WaypointPathEnded(), boss_the_black_stalker::WaypointReached(), npc_nagrand_banner::npc_nagrand_bannerAI::WaypointReached(), npc_rocknot::npc_rocknotAI::WaypointReached(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), npc_thrall_old_hillsbrad::WaypointReached(), and npc_taretha::WaypointReached().
Definition at line 2354 of file Unit.cpp.
References AttackerStateUpdate(), and BASE_ATTACK.
Referenced by Update().
| bool Unit::HandleSpellClick | ( | Unit * | clicker, |
| int8 | seatId, | ||
| uint32 | spellId, | ||
| TriggerCastFlags | flags = TRIGGERED_NONE, |
||
| SpellClickInfo const * | spellClickInfo = nullptr |
||
| ) |
Definition at line 12759 of file Unit.cpp.
References CastSpellExtraArgs::AddSpellMod(), SpellClickInfo::castFlags, WorldObject::CastSpell(), flags, Map::GetDifficultyID(), SpellInfo::GetEffects(), BaseEntity::GetGUID(), WorldObject::GetMap(), WorldLocation::GetMapId(), GetOwnerGUID(), SpellInfo::Id, WorldObject::IsInMap(), MAX_EFFECT_MASK, NPC_CLICK_CAST_CASTER_CLICKER, NPC_CLICK_CAST_ORIG_CASTER_OWNER, NPC_CLICK_CAST_TARGET_CLICKER, CastSpellExtraArgsInit::OriginalCaster, AuraCreateInfo::SetBaseAmount(), AuraCreateInfo::SetCaster(), AuraCreateInfo::SetCasterGUID(), SPELL_AURA_CONTROL_VEHICLE, SPELL_CAST_SOURCE_NORMAL, SPELL_FAILED_SUCCESS, SPELLVALUE_BASE_POINT0, sSpellMgr, TC_LOG_ERROR, and Aura::TryRefreshStackOrCreate().
First check simple relations from clicker to clickee
Check database conditions
Definition at line 12732 of file Unit.cpp.
References Creature::AI(), flags, Vehicle::GetCreatureEntry(), Object::GetEntry(), GetVehicleKit(), HandleSpellClick(), IsAIEnabled(), CreatureAI::OnSpellClick(), sConditionMgr, sObjectMgr, Object::ToCreature(), TRIGGERED_IGNORE_CASTER_MOUNTED_OR_ON_VEHICLE, and TRIGGERED_NONE.
Referenced by HandleSpellClick(), WorldSession::HandleSpellClick(), and Vehicle::InstallAccessory().
| void Unit::HandleStatFlatModifier | ( | UnitMods | unitMod, |
| UnitModifierFlatType | modifierType, | ||
| float | amount, | ||
| bool | apply | ||
| ) |
Definition at line 9618 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::HandleAuraModMaxPower(), AuraEffect::HandleAuraModResistance(), AuraEffect::HandleAuraModStat(), AuraEffect::HandleModBaseResistance(), AuraEffect::HandleModBonusArmor(), and Player::UpdateDamageDoneMods().
| bool Unit::HasAura | ( | std::function< bool(Aura const *)> const & | predicate | ) | const |
Definition at line 4827 of file Unit.cpp.
References GetAuraApplication().
| bool Unit::HasAura | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint32 | reqEffMask = 0 |
||
| ) | const |
Definition at line 4822 of file Unit.cpp.
References GetAuraApplication().
Referenced by spell_magus_telestra_clone_dies::AfterApply(), spell_alar_ashtongue_ruse_master::AfterApply(), spell_mage_alter_time_aura::AfterRemove(), spell_warl_health_funnel::ApplyEffect(), boss_leotheras_the_blind::AttackStart(), spell_sha_lava_crit_chance::CalcCritChance(), SpellInfo::CalcPowerCost(), SpellInfo::CalcProcPPM(), spell_mage_scald::CalculateDamage(), gunship_npc_AI::CanAIAttack(), npc_high_overlord_saurfang_igb::CanAIAttack(), npc_muradin_bronzebeard_igb::CanAIAttack(), npc_gunship_boarding_addAI::CanAIAttack(), boss_the_lich_king::CanAIAttack(), npc_anduin_wrynn_sylvanas::CanAIAttack(), npc_anduin_wrynn_jaina::CanAIAttack(), npc_anduin_wrynn_uther::CanAIAttack(), boss_gurtogg_bloodboil::CanAIAttack(), spell_marrowgar_coldflame_damage::CanBeAppliedOn(), Group::CanJoinBattlegroundQueue(), boss_veras_darkshadow::CanSeeAlways(), Spell::CheckCast(), spell_item_seal_of_darkshire_nobility::CheckCooldownAura(), spell_item_blur_of_talons::CheckCoordinatedAssaultActive(), spell_dru_umbral_embrace::CheckEclipse(), spell_sha_elemental_weapons::CheckEnchantments(), spell_warr_bloodthirst_enrage::CheckEnrageProc(), spell_dh_shattered_destiny::CheckFurySpent(), spell_mage_radiant_spark::CheckProc(), spell_rog_kingsbane::CheckProc(), spell_soulbind_sulfuric_emission::CheckProc(), spell_sha_hot_hand::CheckProc(), spell_dk_crimson_scourge::CheckProc(), spell_pri_holy_mending::CheckProc(), spell_mage_improved_scorch::CheckProc(), spell_sha_natures_guardian::CheckProc(), spell_pri_eternal_sanctity::CheckProc(), spell_eredar_twins_dark_flame_aura_shadow::CheckProc(), spell_eredar_twins_dark_flame_aura_fire::CheckProc(), spell_illidan_parasitic_shadowfiend_proc::CheckProc(), spell_item_conflict_rank3::CheckProc(), spell_dru_moonless_night::CheckProc(), spell_item_shadowmourne::CheckProc(), spell_item_infurious_crafted_gear_mettle::CheckProc(), spell_monk_crackling_jade_lightning_knockback_proc_aura::CheckProc(), spell_pal_light_s_beacon::CheckProc(), spell_evo_permeating_chill::CheckProc(), spell_pri_angelic_bulwark::CheckProc(), spell_mage_hot_streak::CheckProc(), SpellInfo::CheckTarget(), spell_sha_maelstrom_weapon_base::ConsumeMaelstromWeapon(), boss_king_deepbeard::DamageTaken(), boss_mandokir::DamageTaken(), boss_ozruk::boss_ozrukAI::DamageTaken(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::DamageTaken(), boss_anub_arak::DamageTaken(), npc_high_overlord_saurfang_igb::DamageTaken(), npc_muradin_bronzebeard_igb::DamageTaken(), npc_terenas_menethil::DamageTaken(), npc_feral_defender::DamageTaken(), npc_iron_construct::npc_iron_constructAI::DamageTaken(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), boss_pathaleon_the_calculator::DamageTaken(), boss_elder_stonebark::boss_elder_stonebarkAI::DamageTaken(), npc_kinetic_bomb::DoAction(), npc_nerubian_burrower::DoAction(), boss_ambassador_hellmaw::DoAction(), boss_ambassador_hellmaw::DoIntro(), Spell::EffectHeal(), Spell::EffectResurrectWithAura(), Spell::EffectScriptEffect(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::EnterEvadeMode(), npc_phantom_mage::npc_phantom_mageAI::EnterEvadeMode(), npc_phantom_hallucination::npc_phantom_hallucinationAI::EnterEvadeMode(), boss_kalecgos::EnterEvadeMode(), PartyTimeEmoteEvent::Execute(), spell_item_bracing_chill_search_jump_target::FilterTarget(), spell_mixed_elements< SpellId1, SpellId2 >::FilterTargets(), spell_volatile_foam_selector< ExcludeSpellId >::FilterTargets(), spell_the_candle_king_darkflame_pickaxe_cast::FilterTargets(), spell_frost_giant_death_plague::FilterTargets(), spell_anduin_wrynn_wicked_star_selector::FilterTargets(), spell_gen_bloodlust::FilterTargets(), spell_mage_ring_of_frost_freeze::FilterTargets(), spell_pri_purge_the_wicked_dummy::FilterTargets(), spell_warl_channel_demonfire_selector::FilterTargets(), spell_sha_maelstrom_weapon_base::GenerateMaelstromWeapon(), npc_bg_silvershard_mines_mine_cart::GetControlZone(), instance_sunwell_plateau::instance_sunwell_plateau_InstanceMapScript::GetPlayerInMap(), go_wind_stone::go_wind_stoneAI::GetPlayerTwilightSetRank(), spell_pri_power_word_radiance::GetRadianceRules(), GetUnitConditionVariable(), go_wg_vehicle_teleporter::GetValidVehicle(), spell_dh_last_resort::HandleAbsorb(), spell_rog_cheat_death::HandleAbsorb(), spell_warr_kill_or_be_killed::HandleAbsorb(), spell_item_shiver_venom_weapon_proc::HandleAdditionalProc(), spell_shade_of_medivh_vo_controller_cast::HandleAfterCast(), spell_pri_holy_word_chastise::HandleAfterHit(), OutdoorPvPSI::HandleAreaTrigger(), battleground_seething_shore::HandleAssaultPoint(), Aura::HandleAuraSpecificMods(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinOpcode(), spell_warr_charge_effect::HandleCharge(), WorldSession::HandleChatMessage(), WorldSession::HandleChatMessageAFKOpcode(), WorldSession::HandleChatMessageDNDOpcode(), spell_rog_shadowstrike::HandleCheckCast(), spell_heartsbane_triad_aura_of_thorns::HandleCheckProc(), spell_warr_rampaging_ruin::HandleCone(), spell_capacitus_polarity_charge::HandleDamage(), spell_dh_eradicate::HandleDamage(), spell_impale::HandleDamageCalc(), spell_borean_tundra_signal_alliance::HandleDummy(), spell_dk_death_strike::HandleDummy(), spell_dk_birth::HandleDummy(), spell_pal_judgment_of_justice::HandleDummy(), spell_pri_purge_the_wicked::HandleDummy(), spell_hun_trailblazer::HandleDummyTick(), spell_midsummer_braziers_hit::HandleEffectApply(), spell_storm_peaks_flaming_arrow_triggered_effect::HandleEffectApply(), spell_pri_prayer_of_mending_dummy::HandleEffectDummy(), spell_pri_holy_10_1_class_set_2pc_chooser::HandleEffectDummy(), spell_pri_shadow_mend::HandleEffectHit(), spell_pri_harsh_discipline::HandleEffectHit(), spell_warr_tenderize::HandleEffectProc(), spell_rog_shadowstrike::HandleEnergize(), spell_putricide_gaseous_bloat::HandleExtraEffect(), gm_commandscript::HandleGMVisibleCommand(), spell_warr_colossus_smash::HandleHit(), spell_garothi_annihilation_triggered::HandleHit(), spell_blades_edge_arena_game_event::HandleHit(), spell_undermine_arena_reaction_trigger_low_health::HandleHit(), spell_enigma_arena_reaction_trigger_low_health::HandleHit(), spell_zandalar_arena_reaction_trigger_low_health::HandleHit(), spell_nokhudon_proving_grounds_trigger_low_health::HandleHit(), spell_rog_poisoned_knife::HandleHit(), spell_sindragosa_frost_breath::HandleInfusion(), spell_rog_deadly_poison::HandleInstantDamage(), lookup_commandscript::HandleLookupSpellCommand(), lookup_commandscript::HandleLookupSpellIdCommand(), AuraEffect::HandleModAdvFlying(), spell_pri_crystalline_reflection::HandleOnApply(), spell_pri_power_word_shield::HandleOnApply(), spell_dru_abundance::HandleOnApplyOrReapply(), spell_hun_steady_shot::HandleOnHit(), spell_mage_ice_lance::HandleOnHit(), spell_dh_violent_transformation::HandleOnProc(), spell_pri_power_leech_passive::HandleOnProc(), spell_rog_leeching_poison::HandleOnRemove(), OPvPCapturePointZM_Graveyard::HandleOpenGo(), spell_give_me_sight_beyond_sight_periodic::HandlePeriodic(), spell_dru_barkskin::HandlePeriodic(), spell_dru_thrash_bear_bleed::HandlePeriodic(), spell_dh_enduring_torment::HandlePeriodic(), spell_dh_monster_rising::HandlePeriodic(), spell_azhiccar_player_detection::HandlePlayerDetection(), WorldSession::HandlePlayerLogin(), spell_torghast_uncontrolled_darkness_proc::HandleProc(), spell_dru_omen_of_clarity::HandleProc(), spell_baleroc_torment_AuraScript::HandleProc(), spell_eredar_twins_dark_flame_aura_shadow::HandleProc(), spell_eredar_twins_dark_flame_aura_fire::HandleProc(), spell_mage_hot_streak::HandleProc(), spell_undermine_arena_warning_countdown::HandleRemove(), spell_enigma_arena_warning_countdown::HandleRemove(), spell_warr_raging_blow_cooldown_reset::HandleResetCooldown(), spell_festergut_blighted_spores::HandleResidue(), spell_rotface_slime_spray::HandleResidue(), spell_brutallus_burn_primer::HandleScript(), spell_brutallus_burn_ally::HandleScript(), spell_hallow_end_tricky_treat::HandleScript(), spell_pilgrims_bounty_turkey_tracker::HandleScript(), spell_winter_veil_px_238_winter_wondervolt::HandleScript(), spell_freya_attuned_to_nature_dose_reduction::spell_freya_attuned_to_nature_dose_reduction_SpellScript::HandleScript(), spell_borean_tundra_magnataur_on_death_1::HandleScript(), spell_sholazar_deathbolt::HandleScript(), spell_illidari_council_judgement::HandleScript(), spell_magtheridon_shadow_grasp_cube::HandleScript(), spell_shadowmoon_quest_credit_crazed_colossus::HandleScript(), spell_hun_pet_heart_of_the_phoenix::HandleScript(), spell_warl_seduction::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), spell_warr_rampaging_ruin::HandleSingleTarget(), spell_priestess_alun_za_transfusion::HandleTransfusion(), spell_warl_soul_fire::HandleTriggers(), spell_pal_execution_sentence::HandleVisual(), SpellHistory::HasCooldown(), SpellArea::IsFitToRequirements(), npc_coldflame::IsSummonedBy(), npc_pet_pri_shadowfiend_mindbender::IsSummonedBy(), IsVampire(), lfg::LFGMgr::JoinLfg(), npc_pet_hunter_snake_trap::JustAppeared(), npc_acolyte_of_shadron::JustDied(), npc_acolyte_of_vesperon::JustDied(), boss_blood_queen_lana_thel::JustDied(), boss_professor_putricide::JustDied(), boss_sindragosa::JustDied(), boss_ymiron_the_fallen_king::JustEngagedWith(), boss_elder_brightleaf::boss_elder_brightleafAI::JustEngagedWith(), boss_elder_stonebark::boss_elder_stonebarkAI::JustEngagedWith(), boss_elder_ironbranch::boss_elder_ironbranchAI::JustEngagedWith(), npc_arthas_stratholme::npc_arthas_stratholmeAI::JustReachedHome(), npc_silverpine_sylvanas_windrunner_high_command::JustSummoned(), boss_leotheras_the_blind::KilledUnit(), spell_dh_army_unto_oneself::Load(), spell_dh_calcified_spikes::Load(), spell_dh_chaos_theory::Load(), spell_dh_chaotic_transformation::Load(), spell_dh_collective_anguish::Load(), spell_dh_darkglare_boon::Load(), spell_dh_demonic_appetite_energize::Load(), spell_dh_feast_of_souls::Load(), spell_dh_fel_flame_fortification::Load(), spell_dh_furious_gaze::Load(), spell_dh_inner_demon::Load(), spell_dh_moment_of_craving::Load(), spell_dh_repeat_decree_conduit::Load(), spell_dh_restless_hunter::Load(), spell_dh_retaliation::Load(), spell_dh_swallowed_anger::Load(), spell_dh_student_of_suffering::Load(), spell_dh_tactical_retreat::Load(), spell_dh_voidglare_boon::Load(), spell_dh_wave_of_debilitation::Load(), spell_dk_heartbreaker::Load(), spell_dk_ice_prison::Load(), spell_dk_subduing_grasp::Load(), spell_dk_vestigial_shell::Load(), spell_dk_voracious::Load(), spell_dru_astral_communion_celestial_alignment::Load(), spell_dru_flower_walk::Load(), spell_dru_mangle::Load(), spell_dru_twin_moonfire::Load(), spell_dru_umbral_embrace_damage::Load(), spell_dru_umbral_inspiration::Load(), spell_evo_call_of_ysera::Load(), spell_evo_causality_disintegrate::Load(), spell_evo_causality_pyre::Load(), spell_evo_panacea::Load(), spell_evo_ruby_embers::Load(), spell_evo_snapfire::Load(), spell_hun_aspect_of_the_fox::Load(), spell_hun_emergency_salve::Load(), spell_hun_no_hard_feelings::Load(), spell_hun_no_scope::Load(), spell_hun_posthaste::Load(), spell_hun_scouts_instincts::Load(), spell_hun_streamline::Load(), spell_mage_flame_patch::Load(), spell_mage_ignition_burst::Load(), spell_mage_improved_combustion::Load(), spell_mage_scald::Load(), spell_mage_spontaneous_combustion::Load(), spell_monk_pressure_points::Load(), spell_monk_rising_sun_kick::Load(), spell_pal_blade_of_vengeance::Load(), spell_pal_divine_auxiliary::Load(), spell_pal_holy_ritual::Load(), spell_pri_archangel::Load(), spell_pri_atonement_effect::Load(), spell_pri_auspicious_spirits::Load(), spell_pri_empyreal_blaze_extend::Load(), spell_pri_entropic_rift::Load(), spell_pri_expiation::Load(), spell_pri_harsh_discipline::Load(), spell_pri_inescapable_torment::Load(), spell_pri_mind_devourer::Load(), spell_pri_pain_transformation::Load(), spell_pri_assured_safety::Load(), spell_pri_shadow_covenant::Load(), spell_pri_translucent_image::Load(), spell_rog_airborne_irritant::Load(), spell_rog_improved_garrote::Load(), spell_rog_improved_shiv::Load(), spell_rog_leeching_poison::Load(), spell_rog_night_terrors::Load(), spell_rog_premeditation::Load(), spell_rog_shadow_focus::Load(), spell_rog_shot_in_the_dark::Load(), spell_rog_soothing_darkness::Load(), spell_sha_deluge_healing_rain::Load(), spell_sha_feral_lunge::Load(), spell_sha_molten_assault::Load(), spell_sha_molten_thunder_sundering::Load(), spell_sha_stormblast_proc::Load(), spell_sha_stormflurry::Load(), spell_sha_stormweaver::Load(), spell_sha_thorims_invocation_trigger::Load(), spell_sha_unrelenting_storms::Load(), spell_warl_absolute_corruption::Load(), spell_warl_backdraft::Load(), spell_warl_roaring_blaze::Load(), spell_warr_brutal_finish::Load(), spell_warr_cold_steel_hot_blood_bloodthirst::Load(), spell_warr_deft_experience::Load(), spell_warr_execute_refund_rage::Load(), spell_warr_frenzied_enrage::Load(), spell_warr_overpowering_finish::Load(), spell_warr_powerful_enrage::Load(), spell_warr_heroic_leap_damage::Load(), spell_warr_improved_whirlwind::Load(), spell_warr_improved_whirlwind_cleave::Load(), spell_warr_invigorating_fury::Load(), spell_warr_meat_cleaver_damage_bonus::Load(), spell_warr_meat_cleaver_damage_bonus_thunder_clap::Load(), spell_warr_raging_blow_cooldown_reset::Load(), spell_warr_rumbling_earth::Load(), spell_warr_storm_bolts::Load(), spell_warr_surge_of_adrenaline::Load(), spell_warr_vicious_contempt::Load(), CriteriaHandler::ModifierSatisfied(), WorldObject::ModSpellCastTime(), WorldObject::ModSpellDuration(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::MoveInLineOfSight(), npc_scorch_ground::npc_scorch_groundAI::MoveInLineOfSight(), npc_mageguard_dalaran::MoveInLineOfSight(), npc_guardian_pavilion::MoveInLineOfSight(), boss_ambassador_hellmaw::MoveInLineOfSight(), boss_doomwalker::MoveInLineOfSight(), npc_priestess_alun_za_spirit_of_gold::MovementInform(), spell_amanitar_potent_fungus::OnApply(), spell_dru_glyph_of_stars::OnApply(), spell_sha_spirit_wolf::OnApply(), spell_brewfest_giddyup::OnChange(), achievement_flirt_with_disaster_perf_check::OnCheck(), at_hun_binding_shot::OnCreate(), spell_warl_soul_swap_exhale::OnEffectHit(), go_gauntlet_gate::go_gauntlet_gateAI::OnGossipHello(), go_kalecgos_spectral_rift::go_kalecgos_spectral_riftAI::OnGossipHello(), go_blackfathom_altar::OnGossipHello(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::OnGossipHello(), npc_alchemist_adrianna::OnGossipHello(), npc_wg_demolisher_engineer::OnGossipHello(), npc_argent_squire_gruntling::npc_argent_squire_gruntlingAI::OnGossipSelect(), spell_rog_vanish::OnLaunchTarget(), battleground_silvershard_mines::OnMineCartCaptured(), spell_love_is_in_the_air_romantic_picnic::OnPeriodic(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), spell_brewfest_ram::OnPeriodic(), spell_hodir_flash_freeze::OnPeriodic(), spell_hodir_biting_cold_area_aura::OnPeriodic(), spell_fetch_ingredient_aura::OnRemove(), spell_dru_eclipse_dummy::OnSpellCast(), arena_cage_of_carnage::OnStart(), arena_empyrean_domain::OnStart(), arena_enigma_crucible::OnStart(), at_hor_intro_start::OnTrigger(), at_commander_dawnforge::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_cave_of_meditation::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_inside_of_cave_of_meditation::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_singing_pools_transform_base< CurseSpellID >::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_singing_pools_transform_frog::OnTrigger(), AreaTrigger_at_nats_landing::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), at_enter_the_illidari_shivarra_conversation::OnUnitEnter(), at_telash_greywing_vault_rune::OnUnitEnter(), areatrigger_find_the_lost_expedition_follower::OnUnitEnter(), at_northbound_linger::OnUnitEnter(), at_azhiccar_devour::OnUnitEnter(), at_waycrest_manor_wildfire::OnUnitEnter(), at_anduin_wrynn_blasphemy::OnUnitEnter(), at_anduin_wrynn_hopelessness::OnUnitEnter(), at_dk_death_and_decay::OnUnitEnter(), at_hun_binding_shot::OnUnitEnter(), at_priestess_alun_za_tainted_blood::OnUnitEnter(), at_shade_of_medivh_flame_wreath::OnUnitExit(), at_anduin_wrynn_hopelessness::OnUnitExit(), at_hun_binding_shot::OnUnitExit(), item_gor_dreks_ointment::OnUse(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), npc_thorim_trashAI::AIHelper::MostHPMissingInRange::operator()(), Trinity::FriendlyMissingBuffInRange::operator()(), CorruptingPlagueSearcher::operator()(), StasisFieldSearcher::operator()(), Trinity::UnitAuraCheck::operator()(), SnobolledTargetSelector::operator()(), BoneSpikeTargetSelector::operator()(), NecroticPlagueTargetCheck::operator()(), DeathPlagueTargetSelector::operator()(), FireNovaTargetCheck::operator()(), DefaultTargetSelector::operator()(), KelThuzadCharmedPlayerAI::CharmedPlayerTargetSelectPred::operator()(), WebTargetSelector::operator()(), SindragosaIcyGripTargetFilter::operator()(), spell_midsummer_test_ribbon_pole_channel::PeriodicTick(), spell_midsummer_ribbon_pole_periodic_visual::PeriodicTick(), spell_dru_germination::PickRejuvenationVariant(), BattlefieldTB::PromotePlayer(), npc_lake_frog::ReceiveEmote(), npc_dancing_flames::ReceiveEmote(), boss_najentus::RemoveImpalingSpine(), spell_sha_maelstrom_weapon_proc::RemoveMaelstromAuras(), boss_keristrasza::RemovePrison(), npc_dumpy_and_keeshan::npc_dumpy_and_keeshanAI::Reset(), npc_belnistrasz::npc_belnistraszAI::Reset(), npc_tomb_creature::npc_tomb_creatureAI::Reset(), boss_sartharion::Reset(), npc_shadron::Reset(), boss_magus_telestra::Reset(), boss_elder_brightleaf::boss_elder_brightleafAI::Reset(), boss_elder_stonebark::boss_elder_stonebarkAI::Reset(), boss_elder_ironbranch::boss_elder_ironbranchAI::Reset(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::SelectVictim(), npc_omen::SpellHit(), npc_pool_of_tar::npc_pool_of_tarAI::SpellHit(), boss_najentus::SpellHit(), npc_animated_gold::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), boss_sister_svalna::SpellHit(), npc_tournament_training_dummy::SpellHit(), npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::SpellHit(), boss_apothecary_hummel::SummonedCreatureDies(), lfg::LFGMgr::TeleportPlayer(), spell_dru_eclipse_ooc::Tick(), spell_sha_unrelenting_storms::Trigger(), spell_sha_elemental_blast::TriggerBuff(), spell_sha_molten_assault::TriggerFlameShocks(), spell_pri_unfurling_darkness::TriggerUnfurlingDarkness(), Aura::Update(), boss_garothi_worldbreaker::UpdateAI(), boss_vaelastrasz::UpdateAI(), boss_majordomo::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), boss_kirtonos_the_herald::UpdateAI(), boss_boss_ras_frostwhisper::UpdateAI(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::UpdateAI(), npc_redridge_citizen::npc_redridge_citizenAI::UpdateAI(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::UpdateAI(), boss_mandokir::UpdateAI(), npc_abomination::npc_abominationAI::UpdateAI(), boss_ossirian::boss_ossirianAI::UpdateAI(), npc_eye_tentacle::eye_tentacleAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), npc_giant_eye_tentacle::giant_eye_tentacleAI::UpdateAI(), boss_elder_nadox::UpdateAI(), boss_prince_taldaram::UpdateAI(), npc_shadron::UpdateAI(), boss_anubarak_trial::UpdateAI(), npc_nerubian_burrower::UpdateAI(), npc_toc_shaman::UpdateAI(), npc_toc_paladin::UpdateAI(), npc_toc_enh_shaman::UpdateAI(), npc_toc_retro_paladin::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), npc_gunship_boarding_leader::UpdateAI(), npc_cult_fanatic::UpdateAI(), npc_cult_adherent::UpdateAI(), boss_lord_marrowgar::UpdateAI(), npc_putricide_oozeAI::UpdateAI(), npc_ice_tomb::UpdateAI(), boss_faerlina::UpdateAI(), boss_maexxna::UpdateAI(), boss_anomalus::UpdateAI(), npc_chaotic_rift::UpdateAI(), boss_sjonnir::UpdateAI(), npc_mimirons_inferno::npc_mimirons_infernoAI::UpdateAI(), npc_freyas_ward::npc_freyas_wardAI::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), boss_elder_brightleaf::boss_elder_brightleafAI::UpdateAI(), boss_elder_stonebark::boss_elder_stonebarkAI::UpdateAI(), boss_elder_ironbranch::boss_elder_ironbranchAI::UpdateAI(), CoolestFriendBaseAI::UpdateAI(), npc_mimiron_proximity_mine::npc_mimiron_proximity_mineAI::UpdateAI(), boss_sara::boss_saraAI::UpdateAI(), npc_corruptor_tentacle::npc_corruptor_tentacleAI::UpdateAI(), npc_crusher_tentacle::npc_crusher_tentacleAI::UpdateAI(), boss_ichoron::UpdateAI(), npc_lake_frog::UpdateAI(), npc_tournament_training_dummy::UpdateAI(), boss_doom_lord_kazzak::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::UpdateAI(), npc_priestess_alun_za_spirit_of_gold::UpdateAI(), npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI(), boss_paletress::boss_paletressAI::UpdateAI(), generic_vehicleAI_toc5::generic_vehicleAI_toc5AI::UpdateAI(), npc_scorch_ground::npc_scorch_groundAI::UpdateAI(), npc_portal_eoe::UpdateAI(), npc_thorims_hammer::npc_thorims_hammerAI::UpdateAI(), npc_hodirs_fury::npc_hodirs_furyAI::UpdateAI(), npc_snaplasher::npc_snaplasherAI::UpdateAI(), npc_iron_construct::npc_iron_constructAI::UpdateAI(), battleground_silvershard_mines::UpdateCartWorldStates(), boss_ambassador_hellmaw::UpdateEscortAI(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), spell_item_amalgams_seventh_spine::UpdateSpecAura(), Spell::UpdateSpellHealPrediction(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), and violet_hold_trashAI::WaypointReached().
| bool Unit::HasAuraEffect | ( | uint32 | spellId, |
| uint8 | effIndex, | ||
| ObjectGuid | caster = ObjectGuid::Empty |
||
| ) | const |
Definition at line 4792 of file Unit.cpp.
References m_appliedAuras.
Referenced by spell_dru_power_of_the_archdruid::CheckProc(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), spell_dh_cycle_of_hatred::Load(), spell_dh_demonic::Load(), spell_dru_galactic_guardian_moonfire::Load(), spell_dru_natures_grace_eclipse::Load(), spell_monk_burst_of_life::Load(), spell_monk_mists_of_life::Load(), spell_pri_lasting_words::Load(), spell_pri_prayerful_litany::Load(), spell_rog_cloaked_in_shadows::Load(), spell_sha_artifact_gathering_storms::Load(), spell_sha_chain_lightning_energize::Load(), spell_sha_chain_lightning_overload::Load(), spell_sha_converging_storms::Load(), spell_warr_raging_blow_cooldown_reset::Load(), PlayerAchievementMgr::ModifierTreeSatisfied(), and WindfuryProcEvent::Trigger().
| bool Unit::HasAuraState | ( | AuraStateType | flag, |
| SpellInfo const * | spellProto = nullptr, |
||
| Unit const * | Caster = nullptr |
||
| ) | const |
Definition at line 6165 of file Unit.cpp.
References Caster, m_auraStateAuras, m_unitData, PER_CASTER_AURA_STATE_MASK, and SPELL_AURA_ABILITY_IGNORE_AURASTATE.
Referenced by Pet::addSpell(), spell_dru_mangle::CalculateDamage(), spell_warr_vicious_contempt::CalculateDamage(), spell_item_divine_right::CheckHealthPct(), SpellInfo::CheckTarget(), ClearAllReactives(), UnitAura::FillTargetMap(), spell_mage_ice_lance::HandleOnHit(), Player::HandlePassiveSpellLearn(), spell_warr_sweeping_strikes::HandleProc(), MeleeDamageBonusDone(), CriteriaHandler::ModifierSatisfied(), SpellCritChanceTaken(), SpellDamagePctDone(), SpellHealingPctDone(), and UpdateReactives().
| bool Unit::HasAuraType | ( | AuraType | auraType | ) | const |
Definition at line 4832 of file Unit.cpp.
References m_modAuras.
Referenced by _UpdateAutoRepeatSpell(), Player::AddPvpTalent(), Spell::AddUnitTarget(), ApplyControlStatesIfNeeded(), Player::ApplySpellPowerBonus(), Attack(), AttackerStateUpdate(), SpellInfo::CanBeUsedInCombat(), CanCastSpellWhileMoving(), CancelMountAura(), Creature::CanCreatureAttack(), spell_rog_turn_the_tables_periodic_check::CheckForStun(), boss_erekem::CheckGuardAuras(), SpellInfo::CheckLocation(), spell_bem_check_fly_mount::CheckRequirement(), SpellInfo::CheckTarget(), SpellInfo::CheckTargetCreatureType(), npc_valkyr_shadowguard::DamageTaken(), DealDamage(), Creature::DoFleeToGetAssistance(), Player::DurabilityPointLossForEquipSlot(), Player::DurabilityPointsLoss(), Battleground::EndBattleground(), Player::GetBarberShopCost(), SpellHistory::GetChargeRecoveryTime(), GetMountCapability(), Player::GetPowerRegen(), GetUnitConditionVariable(), AuraEffect::HandleAllowUsingGameobjectsWhileMounted(), AuraEffect::HandleArenaPreparation(), AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraAllowTalentSwapping(), AuraEffect::HandleAuraCanTurnWhileFalling(), HandleAuraDisableGravity(), AuraEffect::HandleAuraEmpathy(), AuraEffect::HandleAuraFeatherFall(), AuraEffect::HandleAuraGhost(), AuraEffect::HandleAuraHover(), AuraEffect::HandleAuraModDmgImmunity(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), AuraEffect::HandleAuraModNoActions(), AuraEffect::HandleAuraModPacify(), AuraEffect::HandleAuraModPacifyAndSilence(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraModStalked(), AuraEffect::HandleAuraTrackStealthed(), AuraEffect::HandleAuraUntrackable(), AuraEffect::HandleAuraWaterWalk(), AuraEffect::HandleComprehendLanguage(), AuraEffect::HandleDetectAmore(), AuraEffect::HandleDisableInertia(), spell_brewfest_mount_transformation::HandleDummy(), spell_winter_veil_reindeer_transformation::HandleDummy(), Player::HandleFall(), AuraEffect::HandleForceMoveForward(), spell_eject_spirits_of_redemption::HandleHitTarget(), AuraEffect::HandleIgnoreMovementForces(), WorldSession::HandleMirrorImageDataRequest(), AuraEffect::HandleModAlternativeDefaultLanguage(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleModInvisibilityDetect(), AuraEffect::HandleModOverrideZonePVPType(), AuraEffect::HandleModStealthDetect(), AuraEffect::HandleModUnattackable(), AuraEffect::HandlePhaseAlwaysVisible(), AuraEffect::HandlePreventFleeing(), reset_commandscript::HandleResetStatsOrLevelHelper(), WorldSession::HandleSelfResOpcode(), AuraEffect::HandleSetCantSwim(), spell_gen_two_forms::HandleTransform(), WorldSession::HandleTransmogOutfitUpdateSlots(), WorldSession::HandleTransmogrifyItems(), SpellArea::IsFitToRequirements(), Player::KillPlayer(), Pet::LoadPetFromDB(), WorldSession::LogoutPlayer(), WorldObject::MagicSpellHitResult(), MeleeSpellHitResult(), MeleeSpellMissChance(), CriteriaHandler::ModifierSatisfied(), Trinity::AnyDeadUnitObjectInRangeCheck::operator()(), Player::RegenerateAll(), Player::RegenerateHealth(), Battleground::RemovePlayerAtLeave(), RestoreFaction(), Player::RewardHonor(), RollMeleeOutcomeAgainst(), Player::SendInitialPacketsAfterAddToMap(), Map::SendZoneWeather(), SetControlled(), Player::SetGameMaster(), Creature::SetSpellFocus(), ThreatReference::ShouldBeSuppressed(), TriggerOnHealthChangeAuras(), Player::Update(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), Player::UpdateAttackPowerAndDamage(), Creature::UpdateFloatingMovementFlags(), Player::UpdateLiquidMirrorTimerFlagsOnPositionChange(), Player::UpdateMirrorTimers(), Player::UpdatePvPState(), Creature::UpdateSessileMovementFlags(), Player::UpdateSpellDamageAndHealingBonus(), Player::UpdateTriggerVisibility(), and WorldSession::ValidateMovementInfo().
Definition at line 4854 of file Unit.cpp.
References GetAuraEffectsByType().
Referenced by SpellInfo::CanBeInterrupted(), CanCastSpellWhileMoving(), SpellHistory::HandleCooldowns(), SpellHistory::HasCooldown(), SpellHistory::StartCooldown(), and Spell::TriggerGlobalCooldown().
| bool Unit::HasAuraTypeWithCaster | ( | AuraType | auraType, |
| ObjectGuid | caster | ||
| ) | const |
Definition at line 4837 of file Unit.cpp.
References GetAuraEffectsByType().
Referenced by GetUpdateFieldFlagsFor(), AuraEffect::HandleAuraControlVehicle(), IsAlwaysDetectableFor(), and Player::StopCastingCharm().
| bool Unit::HasAuraTypeWithFamilyFlags | ( | AuraType | auraType, |
| uint32 | familyName, | ||
| flag128 | familyFlags | ||
| ) | const |
Definition at line 766 of file Unit.cpp.
References GetAuraEffectsByType().
Definition at line 4845 of file Unit.cpp.
References GetAuraEffectsByType().
Referenced by Aura::CanBeAppliedOn(), SpellInfo::CanBeInterrupted(), CanCastSpellWhileMoving(), WorldObject::CanDetectStealthOf(), Player::CanUnderstandLanguage(), Spell::CheckCast(), SpellHistory::ConsumeCharge(), SpellHistory::GetChargeRecoveryTime(), WorldSession::HandleChatMessage(), WorldSession::HandleKeyboundOverride(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleModStealth(), and ConditionMgr::IsPlayerMeetingCondition().
Definition at line 4872 of file Unit.cpp.
References GetAuraEffectsByType().
Referenced by Player::ExecutePendingSpellCastRequest(), and WorldSession::HandlePetCastSpellOpcode().
Definition at line 4863 of file Unit.cpp.
References GetAuraEffectsByType().
| bool Unit::HasAuraWithMechanic | ( | uint64 | mechanicMask | ) | const |
Definition at line 4897 of file Unit.cpp.
References SpellInfo::GetEffects(), m_appliedAuras, SpellInfo::Mechanic, and UI64LIT.
Referenced by boss_erekem::CheckGuardAuras(), MeleeDamageBonusDone(), and SpellDamagePctDone().
Definition at line 774 of file Unit.cpp.
References AnyDamageMask, and GetAuraEffectsByType().
Referenced by ThreatReference::ShouldBeSuppressed().
| bool Unit::HasBreakableByDamageCrowdControlAura | ( | Unit const * | excludeCasterChannel = nullptr | ) | const |
Definition at line 783 of file Unit.cpp.
References AnyDamageMask, CURRENT_CHANNELED_SPELL, GetCurrentSpell(), HasInterruptFlag(), and m_interruptableAuras.
Referenced by SimpleCharmedPlayerAI::CanAIAttack(), npc_pet_mage_mirror_image::CanAIAttack(), PetAI::CanAttack(), SpellInfo::CheckTarget(), spell_pri_purge_the_wicked_dummy::FilterTargets(), spell_dru_twin_moonfire::HandleEffectHit(), KelThuzadCharmedPlayerAI::CharmedPlayerTargetSelectPred::operator()(), CasterAI::UpdateAI(), boss_faction_championsAI::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), and PetAI::UpdateAI().
|
inline |
Definition at line 1626 of file Unit.h.
References flags.
Referenced by HasBreakableByDamageCrowdControlAura(), HasNegativeAuraWithInterruptFlag(), and RemoveAurasWithInterruptFlags().
|
inline |
|
inline |
Definition at line 1104 of file Unit.h.
References SPELL_AURA_MOD_INVISIBILITY.
Referenced by Player::CanCaptureTowerPoint(), Player::GetNextRandomRaidMember(), and Player::IsOutdoorPvPActive().
| template TC_GAME_API bool Unit::HasNegativeAuraWithInterruptFlag | ( | InterruptFlags | flag, |
| ObjectGuid | guid = ObjectGuid::Empty |
||
| ) | const |
Definition at line 4881 of file Unit.cpp.
References HasInterruptFlag(), and m_interruptableAuras.
Referenced by GetUnitConditionVariable().
|
inline |
Definition at line 1011 of file Unit.h.
References flags.
Referenced by Player::CanSeeGossipOn(), Player::CanSeeSpellClickOn(), Player::GetNPCIfCanInteractWith(), WorldSession::HandleBankerActivateOpcode(), npc_commandscript::HandleNpcInfoCommand(), IsServiceProvider(), NullCreatureAI::Permissible(), Player::SendQuestGiverStatusMultiple(), WorldSession::SendTaxiStatus(), npc_chicken_cluck::npc_chicken_cluckAI::UpdateAI(), Creature::UpdateEntry(), and Player::UpdateVisibleObjectInteractions().
|
inline |
Definition at line 1017 of file Unit.h.
References flags.
Referenced by Player::GetNPCIfCanInteractWith(), npc_commandscript::HandleNpcInfoCommand(), and Movement::MoveSplineInit::MoveSplineInit().
|
inline |
Definition at line 906 of file Unit.h.
References flags.
Referenced by Pet::FillPetInfo(), WorldSession::HandlePetRename(), and Pet::SavePetToDB().
|
inline |
Definition at line 895 of file Unit.h.
References flags.
Referenced by WorldObject::IsValidAttackTarget().
|
inline |
Definition at line 1106 of file Unit.h.
References SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_ROOT_2, and SPELL_AURA_MOD_ROOT_DISABLE_GRAVITY.
Referenced by Trinity::FriendlyCCedInRange::operator()().
|
protected |
|
inline |
|
inlinevirtual |
Reimplemented in Pet, Player, and Creature.
Definition at line 1099 of file Unit.h.
Referenced by GetMountCapability(), GetUnitConditionVariable(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), spell_dru_galactic_guardian::HandleProc(), spell_dru_pulverize_thrash::Load(), spell_pal_judgment::Load(), spell_pri_holy_word_salvation_cooldown_reduction::Load(), spell_sha_chain_lightning_crash_lightning::Load(), spell_warr_thunder_clap_rend::Load(), and WorldObject::ModSpellDuration().
|
inlinevirtual |
Reimplemented in Creature.
Definition at line 1513 of file Unit.h.
Referenced by WorldSession::HandlePetActionHelper().
|
inline |
Definition at line 1103 of file Unit.h.
References SPELL_AURA_MOD_STEALTH.
Referenced by Player::CanCaptureTowerPoint(), CreatureUnitRelocationWorker(), Player::IsOutdoorPvPActive(), and spell_dru_rake::Load().
Definition at line 4914 of file Unit.cpp.
References ApplyDiminishingToDuration(), GetDiminishing(), SpellInfo::GetDiminishingReturnsGroupForSpell(), SpellInfo::GetDuration(), SpellInfo::GetMaxDuration(), and m_appliedAuras.
|
inline |
Definition at line 860 of file Unit.h.
References 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(), Spell::EffectOpenLock(), spell_mimiron_magnetic_core::spell_mimiron_magnetic_core_SpellScript::FilterTargets(), ThreatReference::FlagsAllowFighting(), WorldObject::GetReactionTo(), GetUnitConditionVariable(), npc_commandscript::HandleNpcInfoCommand(), CombatManager::InheritCombatStatesFrom(), isInAccessiblePlaceFor(), isTargetableForAttack(), Player::IsUseEquipedWeapon(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), npc_nether_drake::npc_nether_drakeAI::MoveInLineOfSight(), Spell::prepare(), Spell::PreprocessSpellHit(), Creature::SetCanMelee(), and Creature::SetSpellFocus().
|
inline |
Definition at line 865 of file Unit.h.
References flags.
Referenced by Creature::_IsTargetAcceptable(), CanSwim(), CanUseAttackType(), Spell::CheckCast(), Spell::CheckCasterAuras(), WorldObject::GetFactionReactionTo(), WorldObject::GetReactionTo(), WorldSession::HandleAzeriteEssenceActivateEssence(), npc_commandscript::HandleNpcInfoCommand(), Player::LearnPvpTalent(), Player::LearnTalent(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), Creature::Regenerate(), Creature::SetSpellFocus(), Creature::UpdateMovementCapabilities(), and Player::UpdateTriggerVisibility().
|
inline |
Definition at line 870 of file Unit.h.
References flags.
Referenced by npc_commandscript::HandleNpcInfoCommand().
|
inline |
Definition at line 1761 of file Unit.h.
Referenced by BaseEntity::BuildMovementUpdate(), Creature::CanFly(), Spell::CanIncreaseRangeByMovement(), spell_dk_death_grip_initial::CheckCast(), SpellInfo::CheckTarget(), VehicleJoinEvent::Execute(), spell_the_lurker_below_spout_damage::FilterTargets(), GetMountCapability(), GetUnitConditionVariable(), Player::IsOutdoorPvPActive(), Player::IsPetNeedBeTemporaryUnsummoned(), Movement::MoveSplineInit::MoveSplineInit(), spell_serpent_shrine_frenzy_water::OnPeriodic(), SetAlwaysAllowPitching(), SetCanAdvFly(), SetCanDoubleJump(), SetCanFly(), SetCanTransitionBetweenSwimAndFly(), SetCollision(), SetDisableInertia(), SetEnableFullSpeedPitching(), SetEnableFullSpeedTurning(), Movement::MoveSplineInit::SetFall(), SetFall(), SetHover(), SetIgnoreMovementForces(), SetJumpingDisabled(), SetMoveCantSwim(), SetStrafingDisabled(), SetSwim(), and SetWaterWalking().
|
inline |
Definition at line 755 of file Unit.h.
Referenced by Creature::_IsTargetAcceptable(), boss_four_horsemen_lady::_UpdateAI(), boss_four_horsemen_sir::_UpdateAI(), npc_gothik_minion_spectralrider::_UpdateAI(), Player::ActivateTaxiPathTo(), ApplyControlStatesIfNeeded(), AtEngage(), Attack(), AttackerStateUpdate(), CreatureAI::AttackStart(), boss_baleroc::boss_baleroc(), Player::BuildPlayerRepop(), PathGenerator::CalculatePath(), CombatManager::CanBeginCombat(), Player::CanEquipItem(), Player::CanExecutePendingSpellCastRequest(), CanFreeMove(), spell_dk_death_grip_initial::CheckCast(), Spell::CheckCast(), Spell::CheckPetCast(), SpellInfo::CheckTarget(), CreatureUnitRelocationWorker(), boss_professor_putricide::DamageTaken(), boss_drakkari_elemental::DamageTaken(), boss_viscidus::boss_viscidusAI::DamageTaken(), DealDamageMods(), DealMeleeDamage(), DealSpellDamage(), PetAI::DoAttack(), UnitAI::DoCast(), FormationMovementGenerator::DoInitialize(), DoMeleeAttackIfReady(), PlayerAI::DoRangedAttackIfReady(), UnitAI::DoSpellAttackIfReady(), FormationMovementGenerator::DoUpdate(), Spell::EffectDistract(), Spell::EffectKnockBack(), SmartAI::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), Spell::finish(), ThreatManager::ForwardThreatForAssistingMe(), spell_pal_justicars_vengeance::HandleDamage(), spell_dru_starfall_dummy::HandleDummy(), spell_mistress_kiss::HandleDummyTick(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandlePlayerLogin(), PetAI::HandleReturnMovement(), WorldSession::HandleTextEmoteOpcode(), boss_lady_deathwhisper::Initialize(), boss_skadi::Initialize(), PointMovementGenerator::Initialize(), MalacrassCompanionBaseAI::InitializeAI(), CoolestFriendBaseAI::InitializeAI(), AdvisorBaseAI::InitializeAI(), isAttackingPlayer(), Creature::IsInEvadeMode(), isPossessedByPlayer(), isTargetableForAttack(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), ShadowswordBaseAI::JustAppeared(), npc_focus_fire::JustAppeared(), npc_tainted_elemental::JustAppeared(), boss_harbinger_skyriss_illusion::JustAppeared(), npc_coren_direbrew_sisters::JustEngagedWith(), boss_dorothee::JustEngagedWith(), boss_strawman::JustEngagedWith(), boss_tinhead::JustEngagedWith(), boss_roar::JustEngagedWith(), npc_greyheart_spellbinder::JustEngagedWith(), npc_shadowmoon_channeler::JustEngagedWith(), npc_hellfire_channeler::JustEngagedWith(), npc_solarium_priest::JustEngagedWith(), WorldObject::MagicSpellHitResult(), MeleeSpellHitResult(), MotionMaster::MoveFall(), npc_erekem_guard::npc_erekem_guard(), npc_firelands_flame_archon::npc_firelands_flame_archon(), npc_firelands_molten_flamefather::npc_firelands_molten_flamefather(), npc_guard_generic::npc_guard_generic(), npc_guard_shattrath_faction::npc_guard_shattrath_faction(), npc_nagrand_banner::npc_nagrand_bannerAI::npc_nagrand_bannerAI(), npc_skadi_trashAI::npc_skadi_trashAI(), ICCOrbControllerMinionSearch::operator()(), Trinity::FriendlyCCedInRange::operator()(), JumpCheck::operator()(), Spell::PreprocessSpellHit(), RemoveCharmedBy(), GuestBaseAI::Reset(), npc_twisted_visage::Reset(), npc_fel_infernal::Reset(), npc_cult_fanatic::Reset(), npc_cult_adherent::Reset(), DarkFallenAI::Reset(), OgreBaseAI::Reset(), Player::ResurrectPlayer(), RollMeleeOutcomeAgainst(), Player::SendInitialPacketsAfterAddToMap(), boss_novos::SetBubbled(), Player::SetClientControl(), Player::SetContestedPvP(), SetControlled(), Creature::setDeathState(), SetDisableGravity(), FollowerAI::SetFollowComplete(), FollowerAI::SetFollowPaused(), SetHover(), SetInFront(), SetStunned(), HomeMovementGenerator< T >::SetTargetLocation(), FleeingMovementGenerator::SetTargetLocation(), boss_vx_001::boss_vx_001AI::SpellHit(), lfg::LFGMgr::TeleportPlayer(), CreatureAI::TriggerAlert(), gunship_npc_AI::TriggerBurningPitch(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), FleeingMovementGenerator::Update(), PointMovementGenerator::Update(), boss_high_inquisitor_whitemane::UpdateAI(), npc_thorim_trashAI::UpdateAI(), CombatAI::UpdateAI(), CasterAI::UpdateAI(), SimpleCharmedPlayerAI::UpdateAI(), BossAI::UpdateAI(), WorldBossAI::UpdateAI(), boss_garothi_worldbreaker::UpdateAI(), npc_av_marshal_or_warmaster::UpdateAI(), boss_balinda::UpdateAI(), boss_drekthar::UpdateAI(), boss_galvangar::UpdateAI(), boss_ioc_horde_alliance::UpdateAI(), boss_amalgam_of_souls::UpdateAI(), boss_king_deepbeard::UpdateAI(), boss_ymiron_the_fallen_king::UpdateAI(), boss_rokmora::UpdateAI(), boss_guarm::UpdateAI(), npc_illidari_fighting_invasion_begins::UpdateAI(), npc_inquisitor_baleful_molten_shore::UpdateAI(), npc_fel_lord_caza_cryptic_hollow::UpdateAI(), boss_leymor::UpdateAI(), npc_arcane_tender::UpdateAI(), boss_telash_greywing::UpdateAI(), boss_argaloth::UpdateAI(), boss_occuthar::boss_occutharAI::UpdateAI(), boss_ascendant_lord_obsidius::boss_ascendant_lord_obsidiusAI::UpdateAI(), boss_beauty::boss_beautyAI::UpdateAI(), boss_karsh_steelbender::boss_karsh_steelbenderAI::UpdateAI(), boss_romogg_bonecrusher::boss_romogg_bonecrusherAI::UpdateAI(), boss_coren_direbrew::UpdateAI(), boss_drakkisath::UpdateAI(), boss_gizrul_the_slavener::UpdateAI(), boss_gyth::UpdateAI(), boss_halycon::UpdateAI(), boss_highlord_omokk::UpdateAI(), boss_lord_valthalak::UpdateAI(), boss_mother_smolderweb::UpdateAI(), boss_overlord_wyrmthalak::UpdateAI(), boss_pyroguard_emberseer::UpdateAI(), quartermaster_zigris::UpdateAI(), boss_rend_blackhand::UpdateAI(), boss_shadow_hunter_voshgajin::UpdateAI(), boss_the_beast::boss_thebeastAI::UpdateAI(), boss_urok_doomhowl::UpdateAI(), boss_warmaster_voone::UpdateAI(), boss_chromaggus::UpdateAI(), boss_ebonroc::UpdateAI(), boss_firemaw::UpdateAI(), boss_flamegor::UpdateAI(), boss_victor_nefarius::UpdateAI(), boss_nefarian::UpdateAI(), boss_razorgore::UpdateAI(), boss_vaelastrasz::UpdateAI(), boss_baron_geddon::UpdateAI(), boss_garr::UpdateAI(), boss_gehennas::UpdateAI(), boss_golemagg::UpdateAI(), boss_lucifron::UpdateAI(), boss_magmadar::UpdateAI(), boss_majordomo::UpdateAI(), boss_ragnaros::UpdateAI(), boss_shazzrah::UpdateAI(), boss_sulfuron::UpdateAI(), npc_flamewaker_priest::UpdateAI(), boss_maiden_of_virtue::UpdateAI(), boss_moroes::UpdateAI(), boss_nightbane::boss_nightbaneAI::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), boss_felblood_kaelthas::UpdateAI(), npc_felblood_kaelthas_phoenix::UpdateAI(), boss_selin_fireheart::UpdateAI(), boss_vexallus::UpdateAI(), boss_maiden_of_virtue_rtk::UpdateAI(), boss_mana_devourer::UpdateAI(), boss_shade_of_medivh::UpdateAI(), boss_shade_of_medivh_guardians_image::UpdateAI(), boss_the_curator_rtk::UpdateAI(), boss_arcanist_doan::UpdateAI(), boss_azshir_the_sleepless::UpdateAI(), npc_headless_horseman_head::UpdateAI(), boss_headless_horseman::UpdateAI(), boss_high_inquisitor_fairbanks::UpdateAI(), boss_scarlet_commander_mograine::UpdateAI(), boss_armsmaster_harlan::UpdateAI(), boss_darkmaster_gandling::UpdateAI(), boss_death_knight_darkreaver::UpdateAI(), boss_doctor_theolen_krastinov::UpdateAI(), boss_illucia_barov::UpdateAI(), boss_instructor_malicia::UpdateAI(), boss_jandice_barov::UpdateAI(), boss_kirtonos_the_herald::UpdateAI(), boss_kormok::UpdateAI(), boss_lord_alexei_barov::UpdateAI(), boss_lorekeeper_polkelt::UpdateAI(), boss_boss_ras_frostwhisper::UpdateAI(), boss_the_ravenian::UpdateAI(), boss_vectus::UpdateAI(), boss_apothecary_hummel::UpdateAI(), npc_apothecary_baxter::UpdateAI(), boss_baron_rivendare::UpdateAI(), boss_baroness_anastari::UpdateAI(), boss_cannon_master_willey::UpdateAI(), boss_dathrohan_balnazzar::UpdateAI(), boss_magistrate_barthilas::UpdateAI(), boss_maleki_the_pallid::UpdateAI(), boss_nerubenkan::UpdateAI(), boss_postmaster_malown::UpdateAI(), boss_ramstein_the_gorger::UpdateAI(), boss_timmy_the_cruel::UpdateAI(), boss_brutallus::UpdateAI(), boss_sacrolash::UpdateAI(), boss_alythess::UpdateAI(), boss_kalecgos::UpdateAI(), boss_kalecgos_human::UpdateAI(), boss_muru::UpdateAI(), boss_entropius::UpdateAI(), Scripts::EasternKingdoms::TwilightHighlands::JulakDoom::worldboss_julak_doom::UpdateAI(), boss_archaedas::UpdateAI(), boss_ironaya::UpdateAI(), Scripts::EasternKingdoms::Vashjir::Mobus::worldboss_mobus::UpdateAI(), npc_milos_gyro::npc_milos_gyro_AI::UpdateAI(), boss_twilight_corrupter::boss_twilight_corrupterAI::UpdateAI(), npc_silverpine_agatha_fenris_isle::UpdateAI(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::UpdateAI(), boss_akilzon::UpdateAI(), boss_daakara::boss_daakaraAI::UpdateAI(), boss_halazzi::UpdateAI(), boss_hexlord_malacrass::UpdateAI(), boss_janalai::UpdateAI(), boss_nalorakk::UpdateAI(), boss_grilek::UpdateAI(), boss_hazzarah::UpdateAI(), boss_jindo_the_godbreaker::boss_jindo_the_godbreakerAI::UpdateAI(), boss_kilnara::UpdateAI(), boss_mandokir::UpdateAI(), boss_renataki::UpdateAI(), boss_venoxis::UpdateAI(), boss_wushoolay::UpdateAI(), boss_zanzil::boss_zanzilAI::UpdateAI(), boss_doomwalker_anniversary::UpdateAI(), boss_lord_kazzak_anniversary::UpdateAI(), boss_tunk::UpdateAI(), npc_blackfathom_deeps_event::UpdateAI(), boss_kelris::UpdateAI(), boss_anetheron::UpdateAI(), boss_archimonde::UpdateAI(), boss_azgalor::UpdateAI(), boss_kazrogal::UpdateAI(), boss_rage_winterchill::UpdateAI(), boss_mal_ganis::boss_mal_ganisAI::UpdateAI(), boss_captain_skarloc::UpdateAI(), boss_epoch_hunter::UpdateAI(), boss_lieutenant_drake::UpdateAI(), boss_aeonus::UpdateAI(), boss_chrono_lord_deja::UpdateAI(), boss_temporus::UpdateAI(), npc_harbinger_of_flame::npc_harbinger_of_flameAI::UpdateAI(), npc_egg_pile::npc_egg_pileAI::UpdateAI(), boss_anraphet::UpdateAI(), boss_earthrager_ptah::UpdateAI(), boss_temple_guardian_anhuur::UpdateAI(), boss_general_husam::UpdateAI(), boss_lockmaw::UpdateAI(), npc_lockmaw_augh_boss::UpdateAI(), boss_onyxia::UpdateAI(), boss_adarogg::UpdateAI(), boss_dark_shaman_koranthal::UpdateAI(), boss_lava_guard_gordoth::UpdateAI(), boss_slagmaw::UpdateAI(), boss_amnennar_the_coldbringer::UpdateAI(), boss_glutton::UpdateAI(), boss_mordresh_fire_eye::UpdateAI(), boss_tuten_kash::UpdateAI(), npc_belnistrasz::npc_belnistraszAI::UpdateAI(), boss_ayamiss::UpdateAI(), boss_buru::UpdateAI(), boss_kurinnaxx::UpdateAI(), boss_moam::UpdateAI(), boss_rajaxx::UpdateAI(), npc_andorov::UpdateAI(), boss_kri::UpdateAI(), boss_vem::UpdateAI(), boss_yauj::UpdateAI(), boss_fankriss::UpdateAI(), boss_huhuran::UpdateAI(), boss_sartura::UpdateAI(), npc_sartura_royal_guard::UpdateAI(), npc_cairne_bloodhoof::UpdateAI(), boss_azhiccar::UpdateAI(), boss_orator_krix_vizk::UpdateAI(), boss_the_candle_king::UpdateAI(), boss_edna::UpdateAI(), boss_skarmorak::UpdateAI(), npc_helena_gentle_witch_hunt::UpdateAI(), boss_aqusirr::UpdateAI(), boss_aqusirr_aqualing::UpdateAI(), boss_lord_stormsong::UpdateAI(), boss_lord_stormsong_intro_npc< ConvoIntroSpellId, ConvoOutroSpellId >::UpdateAI(), TidesageCouncilSharedAI::UpdateAI(), HeartsbaneTriadSharedAI::UpdateAI(), boss_lord_waycrest::UpdateAI(), boss_lady_waycrest::UpdateAI(), boss_soulbound_goliath::UpdateAI(), npc_matron_bryndle::UpdateAI(), boss_corborus::boss_corborusAI::UpdateAI(), npc_rock_borer::npc_rock_borerAI::UpdateAI(), boss_high_priestess_azil::boss_high_priestess_azilAI::UpdateAI(), boss_ozruk::boss_ozrukAI::UpdateAI(), boss_slabhide::boss_slabhideAI::UpdateAI(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::UpdateAI(), boss_amanitar::UpdateAI(), boss_elder_nadox::UpdateAI(), npc_ahnkahar_nerubian::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_prince_taldaram::UpdateAI(), boss_anub_arak::UpdateAI(), boss_hadronox::UpdateAI(), boss_krik_thir::UpdateAI(), npc_watcher_gashra::UpdateAI(), npc_watcher_narjil::UpdateAI(), npc_watcher_silthik::UpdateAI(), npc_anub_ar_warrior::UpdateAI(), npc_anub_ar_skirmisher::UpdateAI(), npc_anub_ar_shadowcaster::UpdateAI(), boss_baltharus_the_warborn::UpdateAI(), npc_baltharus_the_warborn_clone::UpdateAI(), boss_general_zarithrian::UpdateAI(), npc_onyx_flamecaller::UpdateAI(), boss_halion::UpdateAI(), boss_twilight_halion::UpdateAI(), npc_orb_carrier::UpdateAI(), boss_saviana_ragefire::UpdateAI(), boss_anubarak_trial::UpdateAI(), npc_nerubian_burrower::UpdateAI(), npc_toc_druid::UpdateAI(), npc_toc_shaman::UpdateAI(), npc_toc_paladin::UpdateAI(), npc_toc_priest::UpdateAI(), npc_toc_shadow_priest::UpdateAI(), npc_toc_warlock::UpdateAI(), npc_toc_mage::UpdateAI(), npc_toc_hunter::UpdateAI(), npc_toc_boomkin::UpdateAI(), npc_toc_warrior::UpdateAI(), npc_toc_dk::UpdateAI(), npc_toc_rogue::UpdateAI(), npc_toc_enh_shaman::UpdateAI(), npc_toc_retro_paladin::UpdateAI(), npc_toc_pet_warlock::UpdateAI(), boss_jaraxxus::UpdateAI(), npc_mistress_of_pain::UpdateAI(), boss_northrend_beastsAI::UpdateAI(), npc_snobold_vassal::UpdateAI(), boss_jormungarAI::UpdateAI(), boss_twin_baseAI::UpdateAI(), boss_king_dred::UpdateAI(), boss_novos::UpdateAI(), boss_tharon_ja::UpdateAI(), boss_trollgore::UpdateAI(), boss_bronjahm::UpdateAI(), boss_devourer_of_souls::UpdateAI(), boss_falric::boss_falricAI::UpdateAI(), boss_marwyn::boss_marwynAI::UpdateAI(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::UpdateAI(), npc_ghostly_priest::npc_ghostly_priestAI::UpdateAI(), npc_phantom_mage::npc_phantom_mageAI::UpdateAI(), npc_shadowy_mercenary::npc_shadowy_mercenaryAI::UpdateAI(), npc_spectral_footman::npc_spectral_footmanAI::UpdateAI(), npc_tortured_rifleman::npc_tortured_riflemanAI::UpdateAI(), npc_frostsworn_general::npc_frostsworn_generalAI::UpdateAI(), npc_spiritual_reflection::npc_spiritual_reflectionAI::UpdateAI(), npc_raging_ghoul::npc_raging_ghoulAI::UpdateAI(), npc_risen_witch_doctor::npc_risen_witch_doctorAI::UpdateAI(), npc_lumbering_abomination::npc_lumbering_abominationAI::UpdateAI(), npc_quel_delar_sword::npc_quel_delar_swordAI::UpdateAI(), boss_garfrost::UpdateAI(), boss_ick::UpdateAI(), boss_tyrannus::UpdateAI(), npc_ymirjar_flamebearer::UpdateAI(), boss_drakkari_colossus::UpdateAI(), boss_drakkari_elemental::UpdateAI(), boss_moorabi::UpdateAI(), boss_blood_council_controller::UpdateAI(), boss_prince_keleseth_icc::UpdateAI(), boss_prince_taldaram_icc::UpdateAI(), boss_prince_valanar_icc::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), boss_deathbringer_saurfang::UpdateAI(), boss_festergut::UpdateAI(), npc_stinky_icc::UpdateAI(), npc_gunship_boarding_leader::UpdateAI(), npc_darnavan::UpdateAI(), boss_lord_marrowgar::UpdateAI(), boss_professor_putricide::UpdateAI(), boss_rotface::UpdateAI(), npc_precious_icc::UpdateAI(), boss_sindragosa::UpdateAI(), npc_spinestalker::UpdateAI(), npc_rimefang_icc::UpdateAI(), npc_sindragosa_trash::UpdateAI(), boss_sister_svalna::UpdateAI(), npc_captain_arnath::UpdateAI(), npc_captain_brandon::UpdateAI(), npc_captain_grondel::UpdateAI(), npc_captain_rupert::UpdateAI(), npc_frostwing_ymirjar_vrykul::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), npc_shambling_horror_icc::UpdateAI(), npc_raging_spirit::UpdateAI(), npc_valkyr_shadowguard::UpdateAI(), boss_valithria_dreamwalker::UpdateAI(), npc_the_lich_king_controller::UpdateAI(), npc_risen_archmage::UpdateAI(), npc_blazing_skeleton::UpdateAI(), npc_suppresser::UpdateAI(), npc_gluttonous_abomination::UpdateAI(), npc_rotting_frost_giant::UpdateAI(), npc_icc_nerubar_broodkeeper::UpdateAI(), boss_faerlina::UpdateAI(), boss_gluth::UpdateAI(), boss_kelthuzad::UpdateAI(), boss_noth::UpdateAI(), boss_thaddius::UpdateAI(), boss_malygos::UpdateAI(), boss_keristrasza::UpdateAI(), boss_magus_telestra::UpdateAI(), boss_ormorok::UpdateAI(), boss_drakos::UpdateAI(), boss_eregos::UpdateAI(), boss_urom::UpdateAI(), boss_varos::UpdateAI(), boss_general_bjarngrim::UpdateAI(), npc_bjarngrim_stormforged_lieutenant::UpdateAI(), boss_volkhan::UpdateAI(), npc_volkhan_molten_golem::UpdateAI(), boss_krystallus::UpdateAI(), boss_maiden_of_grief::UpdateAI(), boss_sjonnir::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_steelbreaker::boss_steelbreakerAI::UpdateAI(), boss_runemaster_molgeim::boss_runemaster_molgeimAI::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), boss_auriaya::UpdateAI(), npc_sanctum_sentry::UpdateAI(), npc_feral_defender::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), boss_elder_brightleaf::boss_elder_brightleafAI::UpdateAI(), boss_elder_stonebark::boss_elder_stonebarkAI::UpdateAI(), boss_elder_ironbranch::boss_elder_ironbranchAI::UpdateAI(), boss_general_vezax::boss_general_vezaxAI::UpdateAI(), boss_saronite_animus::boss_saronite_animusAI::UpdateAI(), boss_hodir::UpdateAI(), boss_ignis::boss_ignis_AI::UpdateAI(), boss_kologarn::boss_kologarnAI::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::UpdateAI(), boss_vx_001::boss_vx_001AI::UpdateAI(), boss_aerial_command_unit::boss_aerial_command_unitAI::UpdateAI(), npc_mimiron_assault_bot::npc_mimiron_assault_botAI::UpdateAI(), boss_razorscale::UpdateAI(), npc_darkrune_watcher::UpdateAI(), npc_darkrune_guardian::UpdateAI(), npc_darkrune_sentinel::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), npc_runic_colossus::npc_runic_colossusAI::UpdateAI(), npc_ancient_rune_giant::npc_ancient_rune_giantAI::UpdateAI(), npc_sif::npc_sifAI::UpdateAI(), boss_xt002::UpdateAI(), npc_life_spark::UpdateAI(), boss_sara::boss_saraAI::UpdateAI(), boss_yogg_saron::boss_yogg_saronAI::UpdateAI(), npc_guardian_of_yogg_saron::npc_guardian_of_yogg_saronAI::UpdateAI(), npc_corruptor_tentacle::npc_corruptor_tentacleAI::UpdateAI(), npc_crusher_tentacle::npc_crusher_tentacleAI::UpdateAI(), npc_immortal_guardian::npc_immortal_guardianAI::UpdateAI(), npc_yogg_saron_keeper::npc_yogg_saron_keeperAI::UpdateAI(), boss_ingvar_the_plunderer::UpdateAI(), boss_keleseth::UpdateAI(), npc_vrykul_skeleton::UpdateAI(), npc_enslaved_proto_drake::UpdateAI(), npc_ritual_channeler::UpdateAI(), boss_archavon::UpdateAI(), boss_emalon::UpdateAI(), npc_tempest_minion::UpdateAI(), boss_koralon::UpdateAI(), boss_toravon::UpdateAI(), npc_tournament_training_dummy::UpdateAI(), boss_exarch_maladaar::UpdateAI(), boss_shirrak_the_dead_watcher::UpdateAI(), npc_ethereal_beacon::UpdateAI(), npc_ethereal_apprentice::UpdateAI(), boss_anzu::UpdateAI(), boss_blackheart_the_inciter::UpdateAI(), boss_grandmaster_vorpil::UpdateAI(), boss_murmur::UpdateAI(), npc_angered_soul_fragment::UpdateAI(), boss_gurtogg_bloodboil::UpdateAI(), boss_illidan_stormrage::UpdateAI(), npc_akama_illidan::UpdateAI(), npc_flame_of_azzinoth::UpdateAI(), npc_maiev::UpdateAI(), boss_illidari_council::UpdateAI(), boss_high_nethermancer_zerevor::UpdateAI(), boss_lady_malande::UpdateAI(), boss_reliquary_of_souls::UpdateAI(), boss_essence_of_suffering::UpdateAI(), boss_essence_of_desire::UpdateAI(), boss_essence_of_anger::UpdateAI(), boss_teron_gorefiend::UpdateAI(), npc_doom_blossom::UpdateAI(), npc_shadowy_construct::UpdateAI(), boss_doom_lord_kazzak::UpdateAI(), boss_doomwalker::UpdateAI(), boss_fathomlord_karathress::UpdateAI(), FathomGuardBaseAI::UpdateAI(), boss_hydross_the_unstable::UpdateAI(), boss_lady_vashj::UpdateAI(), boss_leotheras_the_blind::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_morogrim_tidewalker::UpdateAI(), boss_mekgineer_steamrigger::UpdateAI(), boss_mennu_the_betrayer::UpdateAI(), boss_quagmirran::UpdateAI(), boss_rokmar_the_crackler::UpdateAI(), boss_swamplord_muselek::UpdateAI(), npc_claw::UpdateAI(), boss_the_black_stalker::UpdateAI(), boss_broggok::UpdateAI(), boss_kelidan_the_breaker::UpdateAI(), boss_omor_the_unscarred::UpdateAI(), boss_vazruden_the_herald::UpdateAI(), boss_vazruden::UpdateAI(), boss_watchkeeper_gargolmar::UpdateAI(), boss_magtheridon::UpdateAI(), boss_grand_warlock_nethekurse::UpdateAI(), boss_warbringer_omrogg::UpdateAI(), npc_millhouse_manastorm::UpdateAI(), boss_dalliah_the_doomsayer::UpdateAI(), boss_harbinger_skyriss::UpdateAI(), boss_wrath_scryer_soccothrates::UpdateAI(), boss_zereketh_the_unbound::UpdateAI(), boss_commander_sarannis::UpdateAI(), boss_high_botanist_freywinn::UpdateAI(), boss_laj::UpdateAI(), boss_thorngrin_the_tender::UpdateAI(), boss_warp_splinter::UpdateAI(), boss_alar::UpdateAI(), boss_high_astromancer_solarian::UpdateAI(), boss_kaelthas::UpdateAI(), boss_void_reaver::UpdateAI(), boss_gatewatcher_gyrokill::UpdateAI(), boss_gatewatcher_iron_hand::UpdateAI(), boss_mechano_lord_capacitus::UpdateAI(), boss_nethermancer_sepethrea::UpdateAI(), boss_pathaleon_the_calculator::UpdateAI(), npc_maghar_captive::npc_maghar_captiveAI::UpdateAI(), npc_kurenai_captive::npc_kurenai_captiveAI::UpdateAI(), npc_nagrand_banner::npc_kil_sorrow_spellbinderAI::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::UpdateAI(), Scripts::Pandaria::TheWanderingIsle::npc_li_fei_combat::UpdateAI(), npc_pet_mage_mirror_image::UpdateAI(), npc_pet_shaman_fire_elemental::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::UpdateAI(), boss_anduin_wrynn::UpdateAI(), npc_anduin_wrynn_lost_soul::UpdateAI(), npc_anduin_wrynn_fiendish_soul::UpdateAI(), npc_anduin_wrynn_monstrous_soul::UpdateAI(), boss_remnant_of_a_fallen_king::UpdateAI(), npc_anduin_wrynn_grim_reflection::UpdateAI(), npc_anduin_wrynn_sylvanas::UpdateAI(), npc_anduin_wrynn_jaina::UpdateAI(), npc_anduin_wrynn_uther::UpdateAI(), emerald_dragonAI::UpdateAI(), npc_priestess_alun_za_spirit_of_gold::UpdateAI(), boss_volkaal::UpdateAI(), boss_the_golden_serpent::UpdateAI(), npc_kings_rest_animated_guardian::UpdateAI(), npc_kings_rest_shadow_borne_warrior::UpdateAI(), npc_kings_rest_shadow_borne_witch_doctor::UpdateAI(), npc_kings_rest_shadow_borne_champion::UpdateAI(), boss_cragmaw_the_infested::UpdateAI(), npc_cragmaw_blood_tick::UpdateAI(), boss_elder_leaxa::UpdateAI(), npc_blood_effigy::UpdateAI(), boss_sporecaller_zancha::UpdateAI(), npc_sporecaller_zancha_musashitake::UpdateAI(), PetAI::UpdateAI(), npc_gunship_rocketeer::UpdateAI(), npc_faerlina_add::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAICombat(), npc_crok_scourgebane::UpdateEscortAI(), boss_ambassador_hellmaw::UpdateEscortAI(), UpdateSplinePosition(), SmartScript::UpdateTimer(), npc_pet_mage_mirror_image::UpdateVictim(), and violet_hold_trashAI::violet_hold_trashAI().
Definition at line 759 of file Unit.h.
Referenced by _ExitVehicle(), VehicleJoinEvent::Abort(), ThreatManager::CanHaveThreatList(), Spell::EffectSummonType(), VehicleJoinEvent::Execute(), WorldSession::HandlePetActionHelper(), Guardian::InitStats(), CritterAI::Permissible(), PetAI::Permissible(), RestoreFaction(), SetCharm(), SetMinion(), SpellAbsorbBonusDone(), SpellDamageBonusDone(), SpellHealingBonusDone(), Player::StopCastingCharm(), and Spell::SummonGuardian().
|
inline |
Definition at line 1620 of file Unit.h.
Referenced by AuraApplication::BuildUpdatePacket().
| bool Unit::haveOffhandWeapon | ( | ) | const |
Definition at line 530 of file Unit.cpp.
References CanDualWield(), OFF_ATTACK, and Object::ToPlayer().
Referenced by Attack(), Creature::CalculateMinMaxDamage(), DealMeleeDamage(), DoMeleeAttackIfReady(), GetWeaponDamageRange(), GetWeaponProcChance(), MeleeSpellMissChance(), and Spell::ResetCombatTimers().
Definition at line 6795 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 806 of file Unit.h.
Referenced by boss_randolph_moloch::DamageTaken(), boss_lady_vashj::DoAction(), spell_mage_molten_fury::HandleEffectProc(), AuraEffect::HandleTriggerSpellOnHealthPercent(), ScriptedAI::HealthAbovePct(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), and Update().
|
inline |
Definition at line 807 of file Unit.h.
Referenced by spell_dh_soulmonger::CheckProc(), npc_anduin_wrynn_anduin_hope::HealReceived(), and boss_valithria_dreamwalker::HealReceived().
|
inline |
Definition at line 804 of file Unit.h.
Referenced by spell_warl_shadowburn::CalcCritChance(), spell_warl_drain_soul::CalculateDamage(), spell_mage_scald::CalculateDamage(), spell_warr_overpowering_finish::CalculateDamage(), spell_hun_bullseye::CheckEffectProc(), spell_soulbind_sulfuric_emission::CheckProc(), spell_mage_improved_scorch::CheckProc(), spell_sha_natures_guardian::CheckProc(), Scripts::EasternKingdoms::TwilightHighlands::JulakDoom::spell_julak_doom_dark_whisper::CheckProc(), spell_warr_t3_prot_8p_bonus::CheckProc(), spell_monk_save_them_all::CheckProc(), npc_akama_shade::DamageTaken(), boss_hadronox::DamageTaken(), boss_illidan_stormrage::DamageTaken(), boss_houndmaster_loksey::ExecuteEvent(), GetUnitCriticalChanceTaken(), spell_pri_shadow_word_death::HandleDamageCalculation(), spell_warl_deaths_embrace_impl::HandleDamageOrHealingCalculation(), spell_warr_colossus_smash::HandleHit(), spell_headless_horseman_head_periodic::HandleHPCheck(), spell_dru_cultivation::HandleOnTick(), AuraEffect::HandleTriggerSpellOnHealthPercent(), ScriptedAI::HealthBelowPct(), npc_guard_generic::JustEngagedWith(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipHello(), spell_warr_kill_or_be_killed_warrior::OnRemove(), Trinity::FriendlyBelowHpPctEntryInRange::operator()(), npc_wild_wyrm::PassengerBoarded(), SpellCritChanceTaken(), Update(), boss_elder_nadox::UpdateAI(), boss_krik_thir::UpdateAI(), boss_xt002::UpdateAI(), npc_akama_illidan::UpdateAI(), and npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI().
|
inline |
Definition at line 805 of file Unit.h.
Referenced by spell_item_highfathers_machination::CheckHealth(), spell_gen_proc_below_pct_damaged::CheckProc(), spell_pri_angelic_bulwark::CheckProc(), boss_garothi_worldbreaker::DamageTaken(), boss_balinda::DamageTaken(), boss_amalgam_of_souls::DamageTaken(), boss_king_deepbeard::DamageTaken(), npc_inquisitor_baleful_molten_shore::DamageTaken(), boss_argaloth::DamageTaken(), boss_coren_direbrew::DamageTaken(), boss_general_angerforge::boss_general_angerforgeAI::DamageTaken(), boss_magmus::boss_magmusAI::DamageTaken(), boss_nefarian::DamageTaken(), boss_baron_geddon::DamageTaken(), boss_golemagg::DamageTaken(), npc_core_rager::DamageTaken(), boss_magmadar::DamageTaken(), boss_attumen::boss_attumenAI::DamageTaken(), boss_midnight::boss_midnightAI::DamageTaken(), boss_moroes::DamageTaken(), boss_azshir_the_sleepless::DamageTaken(), boss_bloodmage_thalnos::DamageTaken(), boss_herod::DamageTaken(), boss_high_inquisitor_fairbanks::DamageTaken(), boss_interrogator_vishas::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), boss_armsmaster_harlan::DamageTaken(), boss_doctor_theolen_krastinov::DamageTaken(), boss_kormok::DamageTaken(), boss_dathrohan_balnazzar::DamageTaken(), boss_hogger::DamageTaken(), boss_randolph_moloch::DamageTaken(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::DamageTaken(), boss_halazzi::DamageTaken(), boss_hexlord_malacrass::DamageTaken(), boss_janalai::DamageTaken(), boss_mandokir::DamageTaken(), boss_doomwalker_anniversary::DamageTaken(), boss_lord_kazzak_anniversary::DamageTaken(), npc_sparring_partner_exiles_reach::DamageTaken(), npc_sparring_partner_combat_training::DamageTaken(), npc_blackfathom_deeps_event::DamageTaken(), boss_aku_mai::DamageTaken(), boss_earthrager_ptah::DamageTaken(), boss_temple_guardian_anhuur::DamageTaken(), boss_lockmaw::DamageTaken(), boss_landslide::DamageTaken(), boss_lava_guard_gordoth::DamageTaken(), boss_ayamiss::DamageTaken(), boss_buru::DamageTaken(), boss_kurinnaxx::DamageTaken(), boss_rajaxx::DamageTaken(), boss_huhuran::DamageTaken(), boss_sartura::DamageTaken(), npc_helena_gentle_witch_hunt::DamageTaken(), boss_aqusirr::DamageTaken(), HeartsbaneTriadSharedAI::DamageTaken(), boss_lord_waycrest::DamageTaken(), boss_ozruk::boss_ozrukAI::DamageTaken(), boss_anub_arak::DamageTaken(), npc_anub_ar_crusher::DamageTaken(), boss_baltharus_the_warborn::DamageTaken(), boss_drakkari_colossus::DamageTaken(), boss_drakkari_elemental::DamageTaken(), boss_eck::DamageTaken(), npc_gunship::npc_gunshipAI::DamageTaken(), npc_high_overlord_saurfang_igb::DamageTaken(), npc_muradin_bronzebeard_igb::DamageTaken(), npc_gunship_boarding_addAI::DamageTaken(), npc_shambling_horror_icc::DamageTaken(), npc_valkyr_shadowguard::DamageTaken(), boss_valithria_dreamwalker::DamageTaken(), boss_keristrasza::DamageTaken(), boss_magus_telestra::DamageTaken(), boss_loken::DamageTaken(), boss_volkhan::DamageTaken(), boss_sjonnir::DamageTaken(), boss_algalon_the_observer::DamageTaken(), boss_razorscale::DamageTaken(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), npc_immortal_guardian::npc_immortal_guardianAI::DamageTaken(), boss_ymiron::DamageTaken(), boss_exarch_maladaar::DamageTaken(), boss_mother_shahraz::DamageTaken(), boss_fathomlord_karathress::DamageTaken(), boss_lady_vashj::DamageTaken(), boss_leotheras_the_blind::DamageTaken(), boss_morogrim_tidewalker::DamageTaken(), boss_mekgineer_steamrigger::DamageTaken(), boss_rokmar_the_crackler::DamageTaken(), boss_hungarfen::DamageTaken(), npc_claw::DamageTaken(), boss_high_king_maulgar::DamageTaken(), boss_omor_the_unscarred::DamageTaken(), boss_vazruden_the_herald::DamageTaken(), boss_vazruden::DamageTaken(), boss_watchkeeper_gargolmar::DamageTaken(), boss_magtheridon::DamageTaken(), boss_grand_warlock_nethekurse::DamageTaken(), npc_millhouse_manastorm::DamageTaken(), boss_dalliah_the_doomsayer::DamageTaken(), boss_wrath_scryer_soccothrates::DamageTaken(), boss_commander_sarannis::DamageTaken(), boss_high_astromancer_solarian::DamageTaken(), boss_kaelthas::DamageTaken(), boss_pathaleon_the_calculator::DamageTaken(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), npc_nagrand_banner::npc_kil_sorrow_spellbinderAI::DamageTaken(), npc_nagrand_banner::npc_kil_sorrow_deathswornAI::DamageTaken(), npc_nagrand_banner::npc_giselda_the_croneAI::DamageTaken(), npc_nagrand_banner::npc_warmaul_shamanAI::DamageTaken(), npc_anduin_wrynn_monstrous_soul::DamageTaken(), npc_kings_rest_animated_guardian::DamageTaken(), boss_felblood_kaelthas::DamageTaken(), boss_halion::DamageTaken(), boss_twilight_halion::DamageTaken(), boss_thorim::boss_thorimAI::DamageTaken(), Scripts::Pandaria::TheWanderingIsle::npc_tushui_huojin_trainee::DamageTaken(), Scripts::Pandaria::TheWanderingIsle::npc_li_fei_combat::DamageTaken(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), npc_dumpy_and_keeshan::npc_dumpy_and_keeshanAI::DamageTaken(), npc_big_earl::npc_big_earlAI::DamageTaken(), boss_archimonde::DamageTaken(), and boss_hadronox::DamageTaken().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 507 of file Unit.cpp.
References WorldObject::Heartbeat(), m_vignette, SendFlightSplineSyncUpdate(), TriggerAuraHeartbeat(), and Vignettes::Update().
Referenced by Creature::Heartbeat(), and Player::Heartbeat().
| void Unit::IncrDiminishing | ( | SpellInfo const * | auraSpellInfo | ) |
Definition at line 9363 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 10447 of file Unit.cpp.
References m_charmInfo.
Referenced by Guardian::Guardian(), Minion::Minion(), Pet::Pet(), and SetCharmedBy().
| void Unit::InitStatBuffMods | ( | ) |
Definition at line 5227 of file Unit.cpp.
References m_floatStatNegBuff, m_floatStatPosBuff, MAX_STATS, STAT_STRENGTH, and UpdateStatBuffModForClient().
Referenced by Player::InitStatsForLevel().
Definition at line 11202 of file Unit.cpp.
References PetStable::ActivePets, Player::AddPetToUpdateFields(), Pet::FillPetInfo(), GetCharmInfo(), PetStable::GetCurrentActivePetIndex(), Object::GetEntry(), GetFaction(), BaseEntity::GetGUID(), Player::GetOrInitPetStable(), PhasingHandler::InheritPhaseShift(), Pet::InitPetCreateSpells(), Guardian::InitStatsForLevel(), PET_STABLE_ACTIVE, SetCreatedBySpell(), SetCreatorGUID(), PetStable::SetCurrentActivePetIndex(), SetFaction(), SetFullHealth(), CharmInfo::SetPetNumber(), SetUnitFlag(), sObjectMgr, TC_LOG_ERROR, Object::ToPlayer(), and UNIT_FLAG_PLAYER_CONTROLLED.
Referenced by CreateTamedPetFrom(), and CreateTamedPetFrom().
|
private |
Definition at line 654 of file Unit.cpp.
References _positionUpdateInfo, GetVehicle(), Moving, PositionUpdateInfo::Relocated, RemoveAurasWithInterruptFlags(), PositionUpdateInfo::Turned, and Turning.
Referenced by Update().
| void Unit::InterruptNonMeleeSpells | ( | bool | withDelayed, |
| uint32 | spellid = 0, |
||
| bool | withInstant = true |
||
| ) |
Definition at line 3253 of file Unit.cpp.
References CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, InterruptSpell(), and m_currentSpells.
Referenced by Player::ActivateTalentGroup(), spell_magtheridon_shadow_grasp::AfterRemove(), CleanupBeforeRemoveFromMap(), CombatStop(), boss_the_lich_king::DamageTaken(), boss_taerar::boss_taerarAI::DamageTaken(), boss_garothi_worldbreaker::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), boss_temple_guardian_anhuur::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), HeartsbaneTriadSharedAI::DamageTaken(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::DamageTaken(), boss_volazj::DamageTaken(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), boss_ingvar_the_plunderer::DamageTaken(), boss_ymiron::DamageTaken(), boss_essence_of_suffering::DamageTaken(), boss_essence_of_desire::DamageTaken(), boss_felblood_kaelthas::DamageTaken(), boss_sacrolash::DamageTaken(), boss_alythess::DamageTaken(), boss_illidan_stormrage::DamageTaken(), DealDamage(), boss_maiden_of_virtue_rtk::DoAction(), npc_raging_spirit::DoAction(), boss_leotheras_the_blind::DoAction(), npc_earthen_ring_flamecaller::DoAction(), boss_razorscale::DoAction(), npc_expedition_trapper::DoAction(), boss_illidan_stormrage::DoAction(), npc_sironas::npc_sironasAI::DoAction(), npc_ranshalla::npc_ranshallaAI::DoContinueEscort(), LightningFieldEvent::Execute(), boss_curator::boss_curatorAI::ExecuteEvent(), boss_illidan_stormrage::ExecuteSpecialEvents(), boss_thorim::boss_thorimAI::FinishEncounter(), WorldSession::HandleCancelCastOpcode(), HeartsbaneTriadSharedAI::HandleClaimIris(), AuraEffect::HandleFeignDeath(), boss_felmyst::HandleFlightSequence(), WorldSession::HandleLootOpcode(), boss_lady_waycrest::HealLordWaycrest(), npc_kayn_sunfury_ashtongue_intro_private::JustAppeared(), npc_sevis_brightflame_ashtongue_gateway_private::JustAppeared(), boss_freya::boss_freyaAI::JustDied(), npc_greyheart_spellbinder::JustEngagedWith(), npc_shadowmoon_channeler::JustEngagedWith(), npc_hellfire_channeler::JustEngagedWith(), SmartAI::JustEngagedWith(), boss_ymiron_the_fallen_king::JustEngagedWith(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::JustEngagedWith(), boss_baltharus_the_warborn::JustEngagedWith(), boss_gal_darah::JustEngagedWith(), npc_frostwing_ymirjar_vrykul::JustEngagedWith(), boss_algalon_the_observer::JustEngagedWith(), boss_kelidan_the_breaker::JustEngagedWith(), npc_risen_archmage::JustEnteredCombat(), PetAI::KilledUnit(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::OnHealthDepleted(), dummy_dragonAI::OpenPortal(), SmartScript::ProcessAction(), boss_twinemperorsAI::SetAfterTeleport(), setDeathState(), boss_shade_of_aran::boss_aranAI::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), conversation_the_invasion_begins::StartCloneMovement(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), PetAI::StopAttack(), StopAttackFaction(), boss_garothi_worldbreaker::SummonedCreatureDies(), Player::TeleportTo(), boss_aqusirr::ToggleSplit(), CasterAI::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_madrigosa::UpdateAI(), boss_kalecgos::UpdateAI(), hyjalAI::UpdateAI(), boss_onyxia::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_devourer_of_souls::UpdateAI(), boss_malygos::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), boss_svala::UpdateAI(), npc_warden_mellichar::UpdateAI(), boss_kaelthas::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::UpdateAI(), boss_remnant_of_a_fallen_king::UpdateAI(), boss_eadric::boss_eadricAI::UpdateAI(), boss_paletress::boss_paletressAI::UpdateAI(), boss_mage_toc5::boss_mage_toc5AI::UpdateAI(), boss_hunter_toc5::boss_hunter_toc5AI::UpdateAI(), boss_ionar::UpdateAI(), PetAI::UpdateAI(), boss_vazruden_the_herald::UpdateSpecialEvents(), and npc_pet_mage_mirror_image::UpdateVictim().
| void Unit::InterruptSpell | ( | CurrentSpellTypes | spellType, |
| bool | withDelayed = true, |
||
| bool | withInstant = true, |
||
| SpellCastResult | result = SPELL_FAILED_INTERRUPTED, |
||
| Optional< SpellCastResult > | resultOther = {}, |
||
| ObjectGuid const & | interrupter = ObjectGuid::Empty |
||
| ) |
Definition at line 3158 of file Unit.cpp.
References Creature::AI(), Spell::cancel(), CURRENT_AUTOREPEAT_SPELL, Spell::GetCastTime(), Spell::GetSpellInfo(), Spell::getState(), BaseEntity::GetTypeId(), IsAIEnabled(), Spell::IsInterruptable(), m_currentSpells, CreatureAI::OnSpellFailed(), Player::SendAutoRepeatCancel(), Spell::SetReferencedFromCurrent(), SPELL_STATE_CHANNELING, SPELL_STATE_FINISHED, SPELL_STATE_LAUNCHED, Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by _UpdateAutoRepeatSpell(), Player::ActivateTaxiPathTo(), AtEnterCombat(), Attack(), AttackStop(), CastStop(), Spell::EffectInterruptCast(), VehicleJoinEvent::Execute(), WorldSession::HandleCancelAuraOpcode(), WorldSession::HandleCancelChanneling(), spell_hun_scatter_shot::HandleDummy(), WorldSession::HandlePetActionHelper(), spell_yogg_saron_diminsh_power::spell_yogg_saron_diminsh_power_AuraScript::HandleProc(), InterruptNonMeleeSpells(), InterruptSpellsWithPreventionTypeOnAuraApply(), npc_harbinger_of_flame::npc_harbinger_of_flameAI::JustEngagedWith(), boss_archimonde::JustEngagedWith(), npc_pet_gen_pandaren_monk::ReceiveEmote(), RemoveAurasWithInterruptFlags(), Player::RemoveItemDependentAurasAndCasts(), SetCurrentCastSpell(), boss_flame_leviathan::boss_flame_leviathanAI::SpellHit(), npc_sif::npc_sifAI::SpellHit(), boss_high_botanist_freywinn::SpellHit(), boss_corla::boss_corlaAI::UpdateAI(), npc_belnistrasz::npc_belnistraszAI::UpdateAI(), npc_pet_gen_pandaren_monk::UpdateAI(), Scripts::EasternKingdoms::StormwindCity::npc_jaina_proudmoore_tides_of_war::WaypointPathEnded(), and npc_7th_legion_magus_sanctum_of_the_sages::WaypointReached().
|
inlinevirtual |
Reimplemented in Creature.
Definition at line 698 of file Unit.h.
Referenced by ApplyDiminishingToDuration(), Creature::IsAffectedByDiminishingReturns(), and Spell::PreprocessSpellHit().
|
inline |
Definition at line 678 of file Unit.h.
Referenced by _RegisterAreaTrigger(), _RegisterDynObject(), _UnregisterAreaTrigger(), _UnregisterDynObject(), AddGameObject(), Creature::AtEngage(), Creature::CanAlwaysSee(), spell_icehowl_trample::CheckTargets(), spell_baleroc_blades_of_baleroc::ChooseBlade(), CreatureUnitRelocationWorker(), SummonList::DoActionImpl(), Spell::TargetInfo::DoDamageAndTriggers(), Spell::GOTargetInfo::DoTargetSpellHit(), SummonList::DoZoneInCombat(), GetDebugInfo(), debug_commandscript::HandleDebugBoundaryCommand(), spell_headless_horseman_head_is_dead::HandleDummy(), spell_garothi_cannon_chooser::HandleDummyEffect(), spell_auriaya_agro_creator::HandleDummyEffect(), spell_ulduar_random_aggro_periodic::HandleEffectPeriodic(), spell_guardians_breath::HandleHit(), spell_silverpine_release_diseased_mutant_bush_chicken::HandleHit(), npc_commandscript::HandleNpcEvadeCommand(), spell_ahnkahet_shadow_sickle::HandlePeriodic(), WorldSession::HandlePetActionHelper(), spell_headless_horseman_send_head::HandleScriptEffect(), spell_headless_horseman_command_head_request_body::HandleScriptEffect(), spell_headless_horseman_return_head::HandleScriptEffect(), spell_headless_horseman_sprouting::HandleScriptEffect(), HandleSpellClick(), spell_dreamwalker_summon_suppresser::HandleSummon(), spell_garothi_fel_bombardment_selector::HandleWarningEffect(), TempSummon::InitSummon(), InterruptSpell(), npc_kayn_sunfury_ashtongue_intro_private::JustAppeared(), npc_cragmaw_blood_tick::JustAppeared(), npc_ley_line_sprouts::JustSummoned(), Kill(), spell_marrowgar_bone_spike_graveyard::Load(), npc_animated_gold::MovementInform(), spell_headless_horseman_yell_timer::OnApply(), instance_azure_vault::instance_azure_vault_InstanceMapScript::OnCreatureGroupDepleted(), at_guardians_breath< ColorSpellId >::at_guardians_breathAI< ColorSpell >::OnRemove(), SmartScript::ProcessAction(), RemoveGameObjectImpl(), Vehicle::RemovePassenger(), Creature::Update(), and boss_malygos::UpdateAI().
|
inline |
Definition at line 1205 of file Unit.h.
References ALIVE.
Referenced by _CreateAuraApplication(), CreatureAI::_EnterEvadeMode(), _EnterVehicle(), KillRewarder::_InitGroupData(), Player::_LoadItem(), BossAI::_Reset(), WorldBossAI::_Reset(), KillRewarder::_RewardHonor(), KillRewarder::_RewardKillCredit(), KillRewarder::_RewardXP(), AddAura(), Map::AddPlayerToMap(), Spell::AddUnitTarget(), spell_sunken_temple_hex_of_jammalan::AfterRemove(), boss_janalai::AllEggsWereHatched(), npc_amanishi_hatcher::AreEggsHatchedA(), npc_amanishi_hatcher::AreEggsHatchedB(), Creature::AtDisengage(), AtStartOfEncounter(), Attack(), AttackerStateUpdate(), PetAI::AttackStart(), npc_snobold_vassal::AttackStart(), boss_malchezaar::boss_malchezaarAI::AxesCleanup(), boss_four_horsemen_baseAI::boss_four_horsemen_baseAI(), Player::BuyCurrencyFromVendorSlot(), Player::BuyItemFromVendorSlot(), CalcAbsorbResist(), CalculateMeleeDamage(), CalculateSpellDamageTaken(), boss_ionar::CallBackSparks(), Creature::CallForHelp(), npc_pet_mage_mirror_image::CanAIAttack(), Creature::CanAssistTo(), PetAI::CanAttack(), CombatManager::CanBeginCombat(), Player::CanCaptureTowerPoint(), Player::CanInteractWithQuestGiver(), CreatureGroup::CanLeaderStartMoving(), boss_thorim::boss_thorimAI::CanStartPhase2(), Player::CanUseBattlegroundObject(), Player::CanUseItem(), Player::CastItemCombatSpell(), Player::CheckAreaExplore(), spell_redridge_control_ettin::CheckCast(), Spell::CheckCast(), spell_razorscale_flame_breath::CheckDamage(), spell_devourer_of_souls_mirrored_soul_proc::CheckProc(), spell_item_necrotic_touch::CheckProc(), spell_item_shadowmourne::CheckProc(), spell_putricide_mutation_init::CheckRequirementInternal(), Map::CheckRespawn(), SpellInfo::CheckTarget(), instance_violet_hold::instance_violet_hold_InstanceMapScript::CheckWipe(), netherspite_infernal::netherspite_infernalAI::Cleanup(), CreatureUnitRelocationWorker(), instance_dire_maul::instance_dire_maul_InstanceMapScript::CrystalCreatureCheck(), boss_prince_taldaram::DamageTaken(), DealDamageMods(), DealMeleeDamage(), DealSpellDamage(), npc_brann_hos::DespawnDwarf(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::DestroyDoor(), boss_dorothee::DoAction(), boss_archaedas::DoAction(), npc_vault_warder::DoAction(), boss_ossirian::boss_ossirianAI::DoAction(), boss_rajaxx::DoAction(), npc_andorov::DoAction(), boss_krik_thir::DoAction(), boss_sister_svalna::DoAction(), npc_crok_scourgebane::DoAction(), boss_gluth::DoAction(), boss_teron_gorefiend::DoAction(), boss_lady_vashj::DoAction(), npc_greyheart_spellbinder::DoAction(), boss_high_king_maulgar::DoAction(), boss_grand_warlock_nethekurse::DoAction(), npc_expedition_trapper::DoAction(), npc_expedition_engineer::DoAction(), boss_erekem::DoAction(), boss_ichoron::DoAction(), spell_hun_masters_call::DoCheckCast(), WorldSession::DoLootRelease(), Spell::TargetInfo::DoTargetSpellHit(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomcheck(), Spell::EffectAddExtraAttacks(), Spell::EffectEnergize(), Spell::EffectEnergizePct(), Spell::EffectEnvironmentalDMG(), Spell::EffectFeedPet(), Spell::EffectHeal(), Spell::EffectHealMaxHealth(), Spell::EffectHealMechanical(), Spell::EffectHealPct(), Spell::EffectHealthLeech(), Spell::EffectInstaKill(), Spell::EffectInterruptCast(), Spell::EffectPowerBurn(), Spell::EffectPowerDrain(), Spell::EffectResurrect(), Spell::EffectResurrectNew(), Spell::EffectResurrectPet(), Spell::EffectResurrectWithAura(), Spell::EffectSchoolDMG(), Spell::EffectScriptEffect(), Spell::EffectSelfResurrect(), Spell::EffectSkinPlayerCorpse(), Spell::EffectThreat(), Spell::EffectWeaponDmg(), Battleground::EndBattleground(), Arena::EndBattleground(), boss_malchezaar::boss_malchezaarAI::EnfeebleHealthEffect(), boss_malchezaar::boss_malchezaarAI::EnfeebleResetHealth(), hyjalAI::EnterEvadeMode(), boss_thaddius::EnterEvadeMode(), GuardAI::EnterEvadeMode(), npc_sparring_partner_exiles_reach::EnterEvadeMode(), npc_sparring_partner_combat_training::EnterEvadeMode(), gunship_npc_AI::EnterEvadeMode(), npc_high_overlord_saurfang_igb::EnterEvadeMode(), npc_muradin_bronzebeard_igb::EnterEvadeMode(), npc_terenas_menethil::EnterEvadeMode(), boss_kelthuzad::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), npc_pet_pri_lightwell::EnterEvadeMode(), Player::EnvironmentalDamage(), Player::EquipItem(), npc_wild_wyrm::EvadeCheck(), Battleground::EventPlayerLoggedOut(), BattleExperienceEvent::Execute(), VehicleJoinEvent::Execute(), DelayedMovementEvent::Execute(), Creature::ExitVehicle(), UnitAura::FillTargetMap(), spell_anduin_wrynn_wicked_star_selector::FilterTargets(), AssistanceMovementGenerator::Finalize(), Creature::ForcedDespawn(), CreatureGroup::FormationReset(), OPvPCapturePointNA::GetAliveGuardsCount(), Battleground::GetAlivePlayersCountByTeam(), FollowerAI::GetLeaderForFollower(), GetNextRandomRaidMemberOrPet(), Player::GetNPCIfCanInteractWith(), GetPartyMembers(), Pet::GivePetXP(), Player::GiveXP(), boss_moroes::GuestsAttack(), WorldSession::HandleAreaTriggerOpcode(), AuraEffect::HandleAuraModFixate(), AuraEffect::HandleAuraModTotalThreat(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleChatMessage(), misc_commandscript::HandleDamageCommand(), debug_commandscript::HandleDebugThreatListCommand(), misc_commandscript::HandleDieCommand(), Player::HandleFall(), WorldSession::HandleInitiateTradeOpcode(), AuraEffect::HandleModDetaunt(), AuraEffect::HandleModTaunt(), AuraEffect::HandleModTotalPercentStat(), WorldSession::HandleMovementOpcode(), WorldSession::HandleMoveWorldportAck(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetWanderDistanceCommand(), AuraEffect::HandleObsModPowerAuraTick(), WorldSession::HandleOpenItemOpcode(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), WorldSession::HandlePetAction(), WorldSession::HandlePetCancelAuraOpcode(), WorldSession::HandlePetStopAttack(), misc_commandscript::HandlePInfoCommand(), spell_item_mana_drain::HandleProc(), spell_warr_kill_or_be_killed_target::HandleProc(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleReclaimCorpse(), spell_rotface_large_ooze_combine::HandleScript(), spell_marrowgar_bone_spike_graveyard::HandleSpikes(), AuraEffect::HandleSpiritOfRedemption(), WorldSession::HandleSummonResponseOpcode(), WorldSession::HandleTextEmoteOpcode(), CreatureGroup::HasAliveMembers(), WorldPackets::Party::PartyMemberFullState::Initialize(), FleeingMovementGenerator::Initialize(), boss_priestess_delrissa::InitializeLackeys(), Player::IsAtGroupRewardDistance(), Player::IsAtRecruitAFriendDistance(), Creature::IsInvisibleDueToDespawn(), Player::IsOutdoorPvPActive(), Player::IsPetNeedBeTemporaryUnsummoned(), isTargetableForAttack(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), Spell::IsValidDeadOrAliveTarget(), AELootCreatureCheck::IsValidLootTarget(), npc_joren_ironstock::JustAppeared(), boss_priestess_lackey_commonAI::JustDied(), npc_fel_crystal::JustDied(), npc_chained_spirit::JustDied(), npc_watcher_gashra::JustDied(), npc_watcher_narjil::JustDied(), npc_watcher_silthik::JustDied(), npc_acolyte_of_shadron::JustDied(), npc_acolyte_of_vesperon::JustDied(), boss_freya::boss_freyaAI::JustDied(), boss_emalon::JustEngagedWith(), npc_green_dragon_combat_trigger::JustExitedCombat(), Kill(), CreatureGroup::LeaderStartedMoving(), Player::LoadCorpse(), Player::LoadFromDB(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadInitializeScript(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadResetScript(), WorldObject::MagicSpellHitResult(), CriteriaHandler::ModifierSatisfied(), npc_snobold_vassal::MountOnBoss(), npc_twiggy_flathead::npc_twiggy_flatheadAI::MoveInLineOfSight(), boss_selin_fireheart::MovementInform(), npc_guard_generic::npc_guard_generic(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::OnCreatureCreate(), instance_gundrak::instance_gundrak_InstanceMapScript::OnCreatureCreate(), instance_oculus::instance_oculus_InstanceMapScript::OnCreatureCreate(), instance_shadow_labyrinth::instance_shadow_labyrinth_InstanceMapScript::OnCreatureCreate(), Scripts::Pandaria::TheWanderingIsle::at_inside_of_cave_of_meditation::OnExit(), go_prince_taldaram_sphere::OnGossipHello(), containment_sphere::OnGossipHello(), CreatureAI::OnOwnerCombatInteraction(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::OnPlayerLeave(), npc_daegarn::OnQuestAccept(), spell_illidari_council_seal::OnRemove(), at_dragonspire_hall::OnTrigger(), at_blackrock_stadium::OnTrigger(), at_nearby_scarshield_infiltrator::OnTrigger(), at_silverpine_forsaken_rear_guard::OnTrigger(), at_silverpine_no_escape::OnTrigger(), Scripts::EasternKingdoms::Westfall::at_westfall_two_shoed_lou_thugs::OnTrigger(), Scripts::EasternKingdoms::Westfall::at_westfall_small_time_hustler::OnTrigger(), at_commander_dawnforge::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_cave_of_meditation::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_inside_of_cave_of_meditation::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_singing_pools_transform_base< CurseSpellID >::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_singing_pools_transform_frog::OnTrigger(), AreaTrigger_at_legion_teleporter::OnTrigger(), AreaTrigger_at_nats_landing::OnTrigger(), AreaTrigger_at_area_52_entrance::OnTrigger(), at_sylvanas_windrunner_z_check::OnUnitEnter(), at_anduin_wrynn_blasphemy::OnUnitEnter(), at_anduin_wrynn_hopelessness::OnUnitEnter(), at_sporecaller_zancha_intro::OnUnitEnter(), at_anduin_wrynn_hopelessness::OnUnitExit(), TrashRespawnWorker::operator()(), ICCOrbControllerMinionSearch::operator()(), Trinity::AnyDeadUnitObjectInRangeCheck::operator()(), Trinity::NearestCreatureEntryWithLiveStateInObjectRangeCheck::operator()(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), Trinity::PlayerAtMinimumRangeAway::operator()(), Trinity::AnyDeadUnitObjectInRangeCheck::operator()(), Trinity::AnyPlayerInPositionRangeCheck::operator()(), Trinity::NearestPlayerInObjectRangeCheck::operator()(), Trinity::MostHPMissingInRange::operator()(), Trinity::MostHPPercentMissingInRange::operator()(), Trinity::FriendlyBelowHpPctEntryInRange::operator()(), Trinity::NearestAttackableNoTotemUnitInObjectRangeCheck::operator()(), npc_thorim_trashAI::AIHelper::MostHPMissingInRange::operator()(), Trinity::FriendlyCCedInRange::operator()(), Trinity::FriendlyMissingBuffInRange::operator()(), Trinity::AnyUnfriendlyUnitInObjectRangeCheck::operator()(), Trinity::AnyFriendlyUnitInObjectRangeCheck::operator()(), Trinity::AnyGroupedUnitInObjectRangeCheck::operator()(), Trinity::AnyUnitInObjectRangeCheck::operator()(), Trinity::AnyDeadUnitCheck::operator()(), Trinity::AllFriendlyCreaturesInGrid::operator()(), FrostwingVrykulSearcher::operator()(), Trinity::WorldObjectSpellTargetCheck::operator()(), PetAI::OwnerAttacked(), PetAI::OwnerAttackedBy(), SmartScript::ProcessEvent(), FormationMgr::RemoveCreatureFromGroup(), Group::RemoveMember(), Battleground::RemovePlayerAtLeave(), Player::RepopAtGraveyard(), boss_moroes::Reset(), npc_frostwing_ymirjar_vrykul::Reset(), boss_four_horsemen_baseAI::Reset(), boss_kelthuzad::Reset(), npc_dragonflayer_forge_master::Reset(), boss_ambassador_hellmaw::Reset(), Creature::Respawn(), Player::RewardPlayerAndGroupAtEvent(), boss_erekem::ScheduleTasks(), SendMeleeAttackStop(), SetConfused(), Player::setDeathState(), SetDisableGravity(), SetFeared(), SetHover(), Player::SetPetSlot(), Creature::SetSpellFocus(), SetStunned(), FleeingMovementGenerator::SetTargetLocation(), Battlefield::ShowNpc(), npc_pet_dk_ebon_gargoyle::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), boss_volazj::SpellHitTarget(), npc_malformed_ooze::SpellHitTarget(), PetAI::StopAttack(), PassengerController::SummonCreatures(), Player::SwapItem(), lfg::LFGMgr::TeleportPlayer(), Player::TeleportTo(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadResetScript(), TempSummon::Update(), Totem::Update(), Creature::Update(), Puppet::Update(), Player::Update(), Update(), ChaseMovementGenerator::Update(), TimedFleeingMovementGenerator::Update(), FollowMovementGenerator::Update(), FleeingMovementGenerator::Update(), TotemAI::UpdateAI(), SmartAI::UpdateAI(), npc_grimstone::npc_grimstoneAI::UpdateAI(), boss_selin_fireheart::UpdateAI(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), hyjalAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_hadronox_foeAI::UpdateAI(), npc_risen_archmage::UpdateAI(), boss_gluth::UpdateAI(), boss_emalon::UpdateAI(), boss_void_reaver::UpdateAI(), npc_spark_of_ionar::UpdateAI(), PetAI::UpdateAI(), npc_air_force_bots::npc_air_force_botsAI::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), npc_tooga::npc_toogaAI::UpdateFollowerAI(), InstanceScript::UpdateMinionState(), Player::UpdateMirrorTimers(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), CreatureAI::UpdateVictim(), Player::UpdateZone(), GameObject::Use(), Trinity::CreatureRelocationNotifier::Visit(), npc_giant_infernal::npc_giant_infernalAI::WaypointReached(), npc_abomination::npc_abominationAI::WaypointReached(), npc_ghoul::npc_ghoulAI::WaypointReached(), npc_necromancer::npc_necromancerAI::WaypointReached(), npc_banshee::npc_bansheeAI::WaypointReached(), npc_crypt_fiend::npc_crypt_fiendAI::WaypointReached(), npc_fel_stalker::npc_fel_stalkerAI::WaypointReached(), npc_frost_wyrm::npc_frost_wyrmAI::WaypointReached(), npc_gargoyle::npc_gargoyleAI::WaypointReached(), and npc_demolitionist_legoso::npc_demolitionist_legosoAI::WaypointReached().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 8771 of file Unit.cpp.
References BaseEntity::GetGUID(), HasAuraTypeWithCaster(), WorldObject::IsAlwaysDetectableFor(), and SPELL_AURA_MOD_STALKED.
Referenced by Player::IsAlwaysDetectableFor().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 8751 of file Unit.cpp.
References GetCharmerOrOwnerGUID(), BaseEntity::GetGUID(), WorldObject::GetOwner(), WorldObject::IsAlwaysVisibleFor(), ObjectGuid::IsEmpty(), and Object::ToPlayer().
|
inline |
Definition at line 1032 of file Unit.h.
References UNIT_NPC_FLAG_AREA_SPIRIT_HEALER.
Referenced by Creature::Create(), WorldSession::HandleAreaSpiritHealerQueryOpcode(), WorldSession::HandleAreaSpiritHealerQueueOpcode(), WorldSession::HandleGossipHelloOpcode(), RemoveFromWorld(), Player::SetAreaSpiritHealer(), Creature::SummonGraveyardTeleporter(), and Creature::Update().
|
inline |
Definition at line 1039 of file Unit.h.
References UNIT_NPC_FLAG_2_AREA_SPIRIT_HEALER_INDIVIDUAL.
Referenced by WorldSession::HandleAreaSpiritHealerQueryOpcode(), and Creature::Update().
|
inline |
Definition at line 1035 of file Unit.h.
References UNIT_NPC_FLAG_REPAIR.
| bool Unit::isAttackingPlayer | ( | ) | const |
Definition at line 6067 of file Unit.cpp.
References Map::GetCreature(), WorldObject::GetMap(), HasUnitState(), m_Controlled, m_SummonSlot, MAX_SUMMON_SLOT, and UNIT_STATE_ATTACK_PLAYER.
Referenced by npc_illidari_fighting_invasion_begins::GetNextTarget().
|
inline |
Definition at line 713 of file Unit.h.
Referenced by _UpdateAutoRepeatSpell(), Spell::CheckCast(), boss_flame_leviathan::boss_flame_leviathanAI::DoBatteringRamIfReady(), DoMeleeAttackIfReady(), PlayerAI::DoRangedAttackIfReady(), UnitAI::DoSpellAttackIfReady(), GetWeaponProcChance(), npc_guard_generic::JustEngagedWith(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::UpdateAI(), npc_high_overlord_saurfang_igb::UpdateAI(), npc_muradin_bronzebeard_igb::UpdateAI(), boss_thaddius::UpdateAI(), and boss_murmur::UpdateAI().
|
inline |
Definition at line 1034 of file Unit.h.
References UNIT_NPC_FLAG_AUCTIONEER.
|
inline |
Definition at line 1029 of file Unit.h.
References UNIT_NPC_FLAG_BANKER.
|
inline |
Definition at line 1028 of file Unit.h.
References UNIT_NPC_FLAG_BATTLEMASTER.
Referenced by Creature::isCanInteractWithBattleMaster().
| bool Unit::IsBlockCritical | ( | ) | const |
Definition at line 2564 of file Unit.cpp.
References GetTotalAuraModifier(), roll_chance(), and SPELL_AURA_MOD_BLOCK_CRIT_CHANCE.
Referenced by CalculateMeleeDamage(), and CalculateSpellDamageTaken().
|
inline |
Definition at line 1256 of file Unit.h.
Referenced by Creature::CallAssistance(), Creature::CallForHelp(), Player::CanEquipItem(), Player::CanUnequipItem(), Spell::CheckCasterAuras(), WorldSession::HandleCancelCastOpcode(), WorldSession::HandleGameobjectReportUse(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleTotemDestroyed(), PetAI::NeedToStop(), VehicleAI::OnCharmed(), PetAI::OnCharmed(), CreatureAI::OnCharmed(), SimpleCharmedPlayerAI::OnCharmed(), SmartAI::OnCharmed(), npc_dk_understudy::OnCharmed(), BlackheartCharmedPlayerAI::OnCharmed(), Trinity::FriendlyCCedInRange::operator()(), SmartScript::ProcessAction(), SmartScript::ProcessEvent(), RemoveCharmedBy(), RemoveFromWorld(), ScheduleAIChange(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadResetScript(), Update(), and UpdateCharmAI().
|
inline |
Definition at line 1237 of file Unit.h.
Referenced by Creature::CalculateDamageForSparring(), spell_gen_mounted_charge::HandleScriptEffect(), npc_harbinger_of_flame::npc_harbinger_of_flameAI::MoveInLineOfSight(), instance_azjol_nerub::instance_azjol_nerub_InstanceScript::OnUnitDeath(), Spell::TargetInfo::PreprocessTarget(), RemoveAurasOnEvade(), and Creature::ShouldFakeDamageFrom().
|
inline |
Definition at line 1884 of file Unit.h.
Referenced by CombatManager::CanBeginCombat().
| bool Unit::IsContestedGuard | ( | ) | const |
Definition at line 12328 of file Unit.cpp.
References WorldObject::GetFactionTemplateEntry().
|
inline |
Definition at line 1234 of file Unit.h.
Referenced by Attack(), SpellInfo::CalcPowerCost(), boss_hadronox::CanAIAttack(), SpellInfo::CheckTarget(), npc_death_knight_initiate::npc_death_knight_initiateAI::DamageTaken(), boss_hadronox::DamageTaken(), DealDamage(), DealMeleeDamage(), Spell::DoEffectOnLaunchTarget(), GetSpeed(), UF::ViewerDependentValue< UF::UnitData::FactionTemplateTag >::GetValue(), UF::ViewerDependentValue< UF::UnitData::PvpFlagsTag >::GetValue(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), Trinity::AnyAoETargetUnitInObjectRangeCheck::operator()(), Spell::prepare(), RollMeleeOutcomeAgainst(), CombatManager::SetInCombatWith(), SetSpeed(), BossAI::TeleportCheaters(), UpdateLiquidStatusOnPositionChange(), and UpdateSpeed().
|
inline |
Definition at line 1040 of file Unit.h.
References CREATURE_TYPE_CRITTER.
Referenced by Creature::ApplyLevelScaling(), spell_item_unsated_craving::CheckProc(), Creature::InitializeReactState(), Kill(), Pet::LoadPetFromDB(), instance_azjol_nerub::instance_azjol_nerub_InstanceScript::OnUnitDeath(), and CritterAI::Permissible().
|
static |
Definition at line 1680 of file Unit.cpp.
References SpellInfo::HasAttribute(), SPELL_ATTR0_CU_IGNORE_ARMOR, and SPELL_SCHOOL_MASK_NORMAL.
Referenced by CalculateMeleeDamage(), CalculateSpellDamageTaken(), misc_commandscript::HandleDamageCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
|
inline |
Definition at line 1207 of file Unit.h.
Referenced by npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), boss_flame_leviathan::boss_flame_leviathanAI::DoAction(), Spell::EffectStuck(), Spell::EffectSummonPet(), YmironSoulSiphonVisual::Execute(), WorldSession::HandleAzeriteEssenceActivateEssence(), Player::HandleFall(), npc_commandscript::HandleNpcShowLootCommand(), misc_commandscript::HandleRespawnCommand(), Creature::HasSpellFocus(), UnitAI::InitializeAI(), npc_troll_volunteer::InitializeAI(), BloodPrincesBossAI::InitializeAI(), npc_spinestalker::InitializeAI(), npc_rimefang_icc::InitializeAI(), npc_sindragosa_trash::InitializeAI(), boss_sister_svalna::InitializeAI(), boss_anubrekhan::InitializeAI(), boss_faerlina::InitializeAI(), boss_razuvious::InitializeAI(), boss_flame_leviathan::boss_flame_leviathanAI::InitializeAI(), Player::isAllowedToLoot(), SmartAI::JustAppeared(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), Player::LearnPvpTalent(), Player::LearnTalent(), CriteriaHandler::ModifierSatisfied(), at_tidesage_council_reinforcing_ward::OnCreate(), at_guardians_breath< ColorSpellId >::at_guardians_breathAI< ColorSpell >::OnRemove(), at_telash_greywing_vault_rune::OnRemove(), Scripts::Pandaria::TheWanderingIsle::at_min_dimwind_captured::OnTrigger(), AreaTrigger_at_scent_larkorwi::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), AreaTrigger_at_sholazar_waygate::OnTrigger(), at_fel_lord_caza_intro::OnUnitEnter(), at_telash_greywing_vault_rune::OnUnitExit(), Scripts::Pandaria::TheWanderingIsle::HuojinTraineePartnerSearch::operator()(), Scripts::Pandaria::TheWanderingIsle::TushuiTraineeSearch::operator()(), Map::PlayerCannotEnter(), Player::PrepareGossipMenu(), SmartScript::ProcessAction(), Player::RepopAtGraveyard(), npc_anubisath_sentinel::aqsentinelAI::Reset(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ResetBossEncounter(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), npc_grimstone::npc_grimstoneAI::UpdateAI(), npc_ice_tomb::UpdateAI(), and boss_anomalus::UpdateAI().
| bool Unit::IsDisallowedMountForm | ( | uint32 | spellId, |
| ShapeshiftForm | form, | ||
| uint32 | displayId | ||
| ) | const |
Definition at line 9570 of file Unit.cpp.
References CanMount, CanMountWhileTransformedAsThis, CreatureDisplayInfoExtraEntry::DisplayRaceID, CreatureDisplayInfoEntry::ExtendedDisplayInfoID, ChrRacesEntry::GetFlags(), CreatureModelDataEntry::GetFlags(), SpellShapeshiftFormEntry::GetFlags(), WorldObject::GetMap(), GetNativeDisplayId(), CreatureDisplayInfoEntry::ModelID, sChrRacesStore, sCreatureDisplayInfoExtraStore, sCreatureDisplayInfoStore, sCreatureModelDataStore, SPELL_ATTR0_ALLOW_WHILE_MOUNTED, sSpellMgr, sSpellShapeshiftFormStore, and Stance.
Referenced by Player::ActivateTaxiPathTo(), IsInDisallowedMountForm(), and RestoreDisplayId().
|
inline |
Definition at line 1836 of file Unit.h.
Referenced by _AddAura(), and Aura::CanBeAppliedOn().
|
inline |
Definition at line 1206 of file Unit.h.
References JUST_DIED.
Referenced by Creature::IsInvisibleDueToDespawn(), and SetHover().
|
inlinevirtual |
Reimplemented in Creature.
Definition at line 1049 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 1050 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 13035 of file Unit.cpp.
References MovementInfo::HasMovementFlag(), WorldObject::m_movementInfo, MOVEMENTFLAG_FALLING, MOVEMENTFLAG_FALLING_FAR, and movespline.
Referenced by spell_dh_glide::CheckCast(), spell_evo_glide::CheckCast(), spell_omor_the_unscarred_orbital_strike_whip::OnPeriodic(), JumpCheck::operator()(), Creature::RemoveCorpse(), lfg::LFGMgr::TeleportPlayer(), spell_gen_saddlechute::TriggerParachute(), and UpdatePosition().
|
inline |
Definition at line 1105 of file Unit.h.
References SPELL_AURA_MOD_FEAR.
Referenced by Trinity::FriendlyCCedInRange::operator()().
|
inline |
Definition at line 902 of file Unit.h.
References UNIT_BYTE2_FLAG_FFA_PVP.
Referenced by WorldObject::GetReactionTo(), WorldPackets::Party::PartyMemberFullState::Initialize(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), Player::RewardHonor(), and Player::UpdatePvPState().
|
inline |
Definition at line 1823 of file Unit.h.
References MOVEMENTFLAG_DISABLE_GRAVITY, and MOVEMENTFLAG_FLYING.
Referenced by npc_hearthglen_crusader::AttackStart(), Creature::CanFly(), GetUnitConditionVariable(), HandleAuraDisableGravity(), Player::KillPlayer(), CriteriaHandler::ModifierSatisfied(), MotionMaster::MoveCirclePath(), npc_air_force_bots::npc_air_force_botsAI::MoveInLineOfSight(), spell_kaelthas_gravity_lapse_periodic::OnPeriodic(), spell_gen_mount_check_aura::OnPeriodic(), Vehicle::RemovePassenger(), Creature::setDeathState(), spell_gen_saddlechute::TriggerParachute(), and UpdatePosition().
|
inline |
Definition at line 1108 of file Unit.h.
References AURA_STATE_FROZEN.
|
inline |
Definition at line 803 of file Unit.h.
Referenced by Spell::CheckItems(), AuraEffect::HandlePeriodicHealAurasTick(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipHello(), and spell_pri_ultimate_penitence_channel::TryHealing().
|
inline |
Definition at line 1025 of file Unit.h.
References UNIT_NPC_FLAG_GOSSIP.
Referenced by Player::SendQuestReward().
|
inline |
Definition at line 1164 of file Unit.h.
References MOVEMENTFLAG_DISABLE_GRAVITY.
Referenced by AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), SetDisableGravity(), and SetHover().
|
inline |
Definition at line 762 of file Unit.h.
References UNIT_MASK_GUARDIAN.
Referenced by Creature::AtDisengage(), Creature::AtEngage(), TempSummon::InitStats(), npc_pet_pri_divine_image::IsSummonedBy(), spell_dk_army_transform::Load(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), RemoveCharmedBy(), Spell::SummonGuardian(), Creature::UpdateEntry(), and UpdateStatBuffMod().
|
inline |
Definition at line 1027 of file Unit.h.
References UNIT_NPC_FLAG_PETITIONER.
| bool Unit::IsHighestExclusiveAura | ( | Aura const * | aura, |
| bool | removeOtherAuraApplications = false |
||
| ) |
Definition at line 14421 of file Unit.cpp.
References Aura::GetAuraEffects(), Aura::GetEffectMask(), Aura::GetSpellInfo(), and IsHighestExclusiveAuraEffect().
Referenced by _RemoveNoStackAurasDueToAura().
| bool Unit::IsHighestExclusiveAuraEffect | ( | SpellInfo const * | spellInfo, |
| AuraType | auraType, | ||
| SpellEffectValue | effectAmount, | ||
| uint32 | auraEffectMask, | ||
| bool | removeOtherAuraApplications = false |
||
| ) |
Definition at line 14430 of file Unit.cpp.
References AuraEffect::GetAmount(), Aura::GetApplicationOfTarget(), GetAuraEffectsByType(), AuraEffect::GetBase(), Aura::GetEffectMask(), BaseEntity::GetGUID(), Aura::GetOwner(), AuraEffect::GetSpellInfo(), Aura::HasMoreThanOneEffectForType(), Aura::IsArea(), m_removedAurasCount, RemoveAura(), SPELL_GROUP_STACK_RULE_EXCLUSIVE_HIGHEST, and sSpellMgr.
Referenced by IsHighestExclusiveAura().
|
inline |
Definition at line 1166 of file Unit.h.
References MOVEMENTFLAG_HOVER.
Referenced by GetUnitConditionVariable(), boss_sapphiron::Reset(), Creature::setDeathState(), SetDisableGravity(), SetHover(), and ChaseMovementGenerator::Update().
|
inline |
Definition at line 764 of file Unit.h.
References UNIT_MASK_HUNTER_PET.
Referenced by CalculateDisplayPowerType(), Guardian::InitStatsForLevel(), Creature::Regenerate(), Guardian::UpdateArmor(), Guardian::UpdateAttackPowerAndDamage(), Player::UpdateAttackPowerAndDamage(), and UpdateSpeed().
| bool Unit::IsImmunedToAuraPeriodicTick | ( | WorldObject const * | caster, |
| AuraEffect const * | auraEffect | ||
| ) | const |
Definition at line 8005 of file Unit.cpp.
References SpellEffectInfo::EffectAttributes, Aura::GetApplicationOfTarget(), AuraEffect::GetBase(), Map::GetDifficultyID(), BaseEntity::GetGUID(), WorldObject::GetMap(), SpellInfo::GetSchoolMask(), AuraEffect::GetSpellEffectInfo(), AuraEffect::GetSpellInfo(), SpellInfo::HasAttribute(), EnumFlag< T >::HasFlag(), IMMUNITY_SCHOOL, m_spellImmune, NoImmunity, SPELL_ATTR0_NO_IMMUNITIES, SPELL_ATTR1_IMMUNITY_TO_HOSTILE_AND_FRIENDLY_EFFECTS, SPELL_ATTR2_NO_SCHOOL_IMMUNITIES, and sSpellMgr.
Referenced by AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), and AuraEffect::HandlePeriodicManaLeechAuraTick().
| bool Unit::IsImmunedToDamage | ( | SpellSchoolMask | meleeSchoolMask | ) | const |
Definition at line 7874 of file Unit.cpp.
References GetDamageImmunityMask(), GetSchoolImmunityMask(), and SPELL_SCHOOL_MASK_NONE.
Referenced by CalcAbsorbResist(), CalculateMeleeDamage(), DealMeleeDamage(), Spell::TargetInfo::DoDamageAndTriggers(), Player::HandleFall(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), AuraEffect::HandleProcTriggerDamageAuraProc(), ThreatReference::ShouldBeSuppressed(), WorldObject::SpellHitResult(), and npc_darnavan::UpdateAI().
| bool Unit::IsImmunedToDamage | ( | WorldObject const * | caster, |
| SpellInfo const * | spellInfo, | ||
| SpellEffectInfo const * | spellEffectInfo = nullptr |
||
| ) | const |
Definition at line 7892 of file Unit.cpp.
References SpellInfo::CanPierceImmuneAura(), SpellEffectInfo::EffectAttributes, Map::GetDifficultyID(), WorldObject::GetMap(), SpellInfo::GetSchoolMask(), SpellInfo::HasAttribute(), EnumFlag< T >::HasFlag(), IMMUNITY_DAMAGE, IMMUNITY_SCHOOL, SpellInfo::IsPositive(), m_spellImmune, NoImmunity, SPELL_ATTR0_NO_IMMUNITIES, SPELL_ATTR1_IMMUNITY_TO_HOSTILE_AND_FRIENDLY_EFFECTS, SPELL_ATTR2_NO_SCHOOL_IMMUNITIES, and sSpellMgr.
| bool Unit::IsImmunedToSpell | ( | SpellInfo const * | spellInfo, |
| uint32 | effectMask, | ||
| WorldObject const * | caster, | ||
| bool | requireImmunityPurgesEffectAttribute = false |
||
| ) | const |
Definition at line 7742 of file Unit.cpp.
References Trinity::IteratorPair< iterator, end_iterator >::begin(), SpellInfo::CanPierceImmuneAura(), DIFFICULTY_NONE, SpellInfo::Dispel, Trinity::IteratorPair< iterator, end_iterator >::end(), Map::GetDifficultyID(), SpellInfo::GetEffects(), WorldObject::GetMap(), SpellInfo::GetSchoolMask(), SpellInfo::HasAttribute(), SpellInfo::Id, IMMUNITY_DISPEL, IMMUNITY_ID, IMMUNITY_MECHANIC, IMMUNITY_SCHOOL, IsImmunedToSpellEffect(), m_spellImmune, Trinity::Containers::MapEqualRange(), Trinity::Containers::MapValue, SpellInfo::Mechanic, SpellInfo::NegativeEffects, SPELL_ATTR0_NO_IMMUNITIES, SPELL_ATTR1_IMMUNITY_PURGES_EFFECT, SPELL_ATTR1_IMMUNITY_TO_HOSTILE_AND_FRIENDLY_EFFECTS, SPELL_ATTR4_NO_PARTIAL_IMMUNITY, and sSpellMgr.
Referenced by AddAura(), Spell::PreprocessSpellHit(), Spell::PreprocessSpellLaunch(), and WorldObject::SpellHitResult().
|
virtual |
Reimplemented in Creature, Player, and Totem.
Definition at line 7936 of file Unit.cpp.
References SpellEffectInfo::ApplyAuraName, Trinity::IteratorPair< iterator, end_iterator >::begin(), DIFFICULTY_NONE, SpellEffectInfo::Effect, SpellEffectInfo::EffectAttributes, SpellEffectInfo::EffectIndex, Trinity::IteratorPair< iterator, end_iterator >::end(), GetAuraEffectsByType(), SpellInfo::GetSchoolMask(), SpellInfo::HasAttribute(), EnumFlag< T >::HasFlag(), IMMUNITY_EFFECT, IMMUNITY_MECHANIC, IMMUNITY_STATE, SpellInfo::IsPositiveEffect(), m_spellImmune, Trinity::Containers::MapEqualRange(), Trinity::Containers::MapValue, SpellEffectInfo::Mechanic, NoImmunity, SPELL_ATTR0_NO_IMMUNITIES, SPELL_ATTR1_IMMUNITY_PURGES_EFFECT, SPELL_ATTR1_IMMUNITY_TO_HOSTILE_AND_FRIENDLY_EFFECTS, SPELL_ATTR2_NO_SCHOOL_IMMUNITIES, SPELL_ATTR3_ALWAYS_HIT, SPELL_AURA_MOD_IMMUNE_AURA_APPLY_SCHOOL, and sSpellMgr.
Referenced by AddAura(), Spell::AddUnitTarget(), IsImmunedToSpell(), Creature::IsImmunedToSpellEffect(), and Player::IsImmunedToSpellEffect().
|
inline |
Definition at line 1063 of file Unit.h.
References UNIT_FLAG_IMMUNE_TO_NPC.
Referenced by CombatManager::InheritCombatStatesFrom(), WorldObject::IsValidAssistTarget(), and WorldObject::IsValidAttackTarget().
|
inline |
Definition at line 1060 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 3328 of file Unit.cpp.
References Creature::CanEnterWater(), Creature::CannotPenetrateWater(), HasUnitFlag(), Creature::IsAquatic(), IsInWater(), IsOnOceanFloor(), IsUnderWater(), and UNIT_FLAG_CANT_SWIM.
Referenced by EscortAI::AssistPlayerInCombatAgainst(), SmartAI::AssistPlayerInCombatAgainst(), Creature::CanCreatureAttack(), FindEligibleTarget(), FollowerAI::ShouldAssistPlayerInCombatAgainst(), and ChaseMovementGenerator::Update().
Definition at line 3323 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 1073 of file Unit.h.
References UNIT_FLAG_IN_COMBAT.
Referenced by boss_four_horsemen_lady::_UpdateAI(), boss_four_horsemen_sir::_UpdateAI(), Player::ActivateTaxiPathTo(), npc_anubisath_sentinel::aqsentinelAI::CallBuddiesToAttack(), Player::CanEquipItem(), Player::CanUnequipItem(), Spell::CheckCast(), spell_icc_teleport_check::CheckCombat(), SpellInfo::CheckTarget(), boss_krik_thir::DoAction(), boss_hodir::DoAction(), npc_greyheart_spellbinder::DoAction(), boss_grand_warlock_nethekurse::DoAction(), gunship_npc_AI::EnterEvadeMode(), Player::EquipItem(), ScriptedAI::ForceCombatStop(), spell_dru_travel_form::GetFormSpellId(), Player::GetNPCIfCanInteractWith(), Player::GetPowerRegen(), Player::GetQuestDialogStatus(), GetUnitConditionVariable(), UF::ViewerDependentValue< UF::UnitData::NpcFlagsTag >::GetValue(), UF::ViewerDependentValue< UF::UnitData::NpcFlags2Tag >::GetValue(), spell_apothecary_lingering_fumes::HandleAfterCast(), WorldSession::HandleAzeriteEssenceActivateEssence(), WorldSession::HandleBattlefieldLeaveOpcode(), WorldSession::HandleChatMessageAFKOpcode(), WorldSession::HandleChatMessageDNDOpcode(), SpellHistory::HandleCooldowns(), debug_commandscript::HandleDebugCombatListCommand(), spell_dru_twin_moonfire::HandleEffectHit(), WorldSession::HandleLogoutRequestOpcode(), spell_monk_jade_walk::HandlePeriodicTick(), WorldSession::HandleSummonResponseOpcode(), tele_commandscript::HandleTeleCommand(), WorldSession::HandleTraitsCommitConfig(), misc_commandscript::HandleUnstuckCommand(), WorldSession::HandleUseEquipmentSet(), boss_twinemperorsAI::JustEngagedWith(), boss_prince_valanar_icc::JustSummoned(), boss_professor_putricide::JustSummoned(), boss_anubrekhan::JustSummoned(), boss_gothik::JustSummoned(), Player::LearnPvpTalent(), Player::LearnTalent(), npc_harbinger_of_flame::npc_harbinger_of_flameAI::MoveInLineOfSight(), boss_shade_of_aran::boss_aranAI::MoveInLineOfSight(), boss_malygos::MoveInLineOfSight(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::MoveInLineOfSight(), Scripts::Pandaria::TheWanderingIsle::npc_amberleaf_scamp::MovementInform(), Movement::MoveSplineInit::MoveSplineInit(), SmartAI::OnCharmed(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipHello(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipSelect(), spell_gen_mount_check_aura::OnPeriodic(), AreaTrigger_at_legion_teleporter::OnTrigger(), at_waycrest_manor_wildfire::OnUnitEnter(), at_rezan_pile_of_bones_spawn_raptor::OnUnitEnter(), at_rezan_pile_of_bones_slow::OnUnitEnter(), Scripts::Pandaria::TheWanderingIsle::HuojinTraineePartnerSearch::operator()(), Scripts::Pandaria::TheWanderingIsle::TushuiTraineeSearch::operator()(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), Trinity::MostHPMissingInRange::operator()(), Trinity::MostHPPercentMissingInRange::operator()(), Trinity::FriendlyBelowHpPctEntryInRange::operator()(), Trinity::FriendlyCCedInRange::operator()(), Trinity::FriendlyMissingBuffInRange::operator()(), Spell::PreprocessSpellHit(), Spell::TargetInfo::PreprocessTarget(), SmartScript::ProcessEvent(), Player::ProcessItemCast(), Creature::Regenerate(), Player::RegenerateAll(), Player::RegenerateHealth(), npc_dumpy_and_keeshan::npc_dumpy_and_keeshanAI::Reset(), npc_swarm_scarab::Reset(), npc_nerubian_burrower::Reset(), spell_item_crazy_alchemists_potion::SecondaryEffect(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::SelectVictim(), SetFeared(), SetInteractionAllowedInCombat(), SetSpeedRate(), Player::SetWarModeDesired(), boss_the_lich_king::SpellHit(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), npc_fel_lord_caza_cryptic_hollow::SpellHitTarget(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::SpellHitTarget(), spell_dru_eclipse_ooc::Tick(), TempSummon::Update(), Map::Update(), CritterAI::UpdateAI(), npc_scarlet_courier::npc_scarlet_courierAI::UpdateAI(), npc_scarlet_trainee::UpdateAI(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::UpdateAI(), boss_mal_ganis::boss_mal_ganisAI::UpdateAI(), npc_harbinger_of_flame::npc_harbinger_of_flameAI::UpdateAI(), npc_andorov::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), npc_whisperwind_lasher::npc_whisperwind_lasherAI::UpdateAI(), npc_risen_archmage::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), boss_sara::boss_saraAI::UpdateAI(), npc_yogg_saron_keeper::npc_yogg_saron_keeperAI::UpdateAI(), boss_taerar::boss_taerarAI::UpdateAI(), PassiveAI::UpdateAI(), PetAI::UpdateAI(), npc_scarlet_ghoul::UpdateAI(), Player::UpdateContestedPvP(), Creature::UpdateEntry(), InstanceScript::UpdateMinionState(), CombatManager::UpdateOwnerCombatState(), SmartAI::UpdatePath(), UpdateSpeed(), CreatureAI::UpdateVictim(), npc_pet_mage_mirror_image::UpdateVictim(), and boss_ymiron_the_fallen_king::WaypointPathEnded().
|
inline |
Definition at line 1074 of file Unit.h.
References IsInCombatWith().
Referenced by npc_pet_dk_bloodworm::CanAIAttack(), npc_pet_dk_risen_ghoul::CanAIAttack(), npc_pet_mage_mirror_image::CanAIAttack(), getAttackerForHelper(), IsInCombatWith(), Trinity::NearestAttackableUnitInObjectRangeCheck::operator()(), and areatrigger_pri_entropic_rift::UpdateTarget().
| bool Unit::IsInDisallowedMountForm | ( | ) | const |
Definition at line 9565 of file Unit.cpp.
References GetDisplayId(), GetShapeshiftForm(), GetTransformSpell(), and IsDisallowedMountForm().
Referenced by Spell::CheckCast().
| bool Unit::IsInFeralForm | ( | ) | const |
Definition at line 9559 of file Unit.cpp.
References FORM_BEAR_FORM, FORM_CAT_FORM, FORM_DIRE_BEAR_FORM, FORM_GHOST_WOLF, and GetShapeshiftForm().
Referenced by Player::_ApplyWeaponDamage(), CalculateDamage(), Player::CastItemCombatSpell(), DoMeleeAttackIfReady(), GetAPMultiplier(), Aura::GetProcEffectMask(), AuraEffect::HandleAuraModDisarm(), Player::IsUseEquipedWeapon(), and MeleeSpellMissChance().
|
inline |
Definition at line 1042 of file Unit.h.
References UNIT_STATE_IN_FLIGHT.
Referenced by Player::CheckAreaExplore(), Spell::CheckCast(), CreatureUnitRelocationWorker(), go_commandscript::DoTeleport(), Spell::EffectJump(), Spell::EffectJumpCharge(), Spell::EffectJumpDest(), Spell::EffectLeap(), Spell::EffectStuck(), Spell::EffectTeleportUnits(), Spell::EffectTeleUnitsFaceCaster(), Player::FinishTaxiFlight(), Player::GetGameObjectIfCanInteractWith(), Player::GetNPCIfCanInteractWith(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), misc_commandscript::HandleDismountCommand(), go_commandscript::HandleGoBossCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoInstanceCommand(), go_commandscript::HandleGoQuestCommand(), go_commandscript::HandleGoTicketCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleLogoutRequestOpcode(), WorldSession::HandleMovementOpcode(), WorldSession::HandleMoveWorldportAck(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), misc_commandscript::HandleUnstuckCommand(), Battlefield::InvitePlayerToWar(), Player::IsOutdoorPvPActive(), item_only_for_flight::OnUse(), and Player::UpdateLiquidMirrorTimerFlagsOnPositionChange().
Definition at line 3318 of file Unit.cpp.
References Position::HasInArc(), and WorldObject::IsWithinDistInMap().
|
inline |
Definition at line 1030 of file Unit.h.
References UNIT_NPC_FLAG_INNKEEPER.
| bool Unit::IsInPartyWith | ( | Unit const * | unit | ) | const |
Definition at line 12253 of file Unit.cpp.
References WorldObject::GetCharmerOrOwnerOrSelf(), GetFaction(), BaseEntity::GetTypeId(), Player::IsInSameGroupWith(), Creature::IsTreatedAsRaidUnit(), Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by SpellInfo::CheckExplicitTarget(), SpellClickInfo::IsFitToRequirements(), Condition::Meets(), Trinity::AnyGroupedUnitInObjectRangeCheck::operator()(), Trinity::WorldObjectSpellTargetCheck::operator()(), and UnitFitToActionRequirement().
| bool Unit::IsInRaidWith | ( | Unit const * | unit | ) | const |
Definition at line 12272 of file Unit.cpp.
References WorldObject::GetCharmerOrOwnerOrSelf(), GetFaction(), BaseEntity::GetTypeId(), Player::IsInSameRaidWith(), Creature::IsTreatedAsRaidUnit(), Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by SpellInfo::CheckExplicitTarget(), spell_dru_t10_restoration_4p_bonus::FilterTargets(), WorldObject::GetReactionTo(), UF::ViewerDependentValue< UF::UnitData::FactionTemplateTag >::GetValue(), UF::ViewerDependentValue< UF::UnitData::PvpFlagsTag >::GetValue(), WorldSession::HandleLootMasterGiveOpcode(), SpellClickInfo::IsFitToRequirements(), Condition::Meets(), Trinity::AnyGroupedUnitInObjectRangeCheck::operator()(), RaidCheck::operator()(), Trinity::WorldObjectSpellTargetCheck::operator()(), Spell::SelectImplicitAreaTargets(), and UnitFitToActionRequirement().
|
inline |
Definition at line 900 of file Unit.h.
References UNIT_BYTE2_FLAG_SANCTUARY.
Referenced by WorldObject::IsValidAssistTarget(), and WorldObject::IsValidAttackTarget().
|
inline |
Definition at line 1082 of file Unit.h.
References UNIT_FLAG3_ALLOW_INTERACTION_WHILE_IN_COMBAT.
Referenced by AtEnterCombat(), AtExitCombat(), Player::GetNPCIfCanInteractWith(), Player::GetQuestDialogStatus(), UF::ViewerDependentValue< UF::UnitData::NpcFlagsTag >::GetValue(), and UF::ViewerDependentValue< UF::UnitData::NpcFlags2Tag >::GetValue().
|
inline |
Definition at line 1079 of file Unit.h.
References UNIT_FLAG2_INTERACT_WHILE_HOSTILE.
Referenced by Player::GetNPCIfCanInteractWith(), Player::GetQuestDialogStatus(), UF::ViewerDependentValue< UF::UnitData::NpcFlagsTag >::GetValue(), and UF::ViewerDependentValue< UF::UnitData::NpcFlags2Tag >::GetValue().
| bool Unit::IsInWater | ( | ) | const |
Definition at line 3349 of file Unit.cpp.
References WorldObject::GetLiquidStatus(), LIQUID_MAP_IN_WATER, and LIQUID_MAP_UNDER_WATER.
Referenced by spell_dru_travel_form_dummy::CheckCast(), Spell::CheckCast(), spell_dru_travel_form::GetFormSpellId(), isInAccessiblePlaceFor(), Scripts::EasternKingdoms::Vashjir::spell_vashjir_sea_legs_aura::OnUpdate(), npc_iron_construct::npc_iron_constructAI::UpdateAI(), UpdateLiquidStatusOnPositionChange(), Creature::UpdateMovementCapabilities(), and UpdatePosition().
|
inlinevirtual |
Reimplemented in Pet, and Player.
Definition at line 1835 of file Unit.h.
Referenced by UpdateMountCapability().
| bool Unit::IsMagnet | ( | ) | const |
Definition at line 6592 of file Unit.cpp.
References m_unitData.
Referenced by SpellInfo::CheckTargetCreatureType().
|
inline |
Definition at line 927 of file Unit.h.
References UNIT_FLAG_MOUNT.
Referenced by Attack(), CalculateHoverHeight(), spell_dh_glide::CheckCast(), Spell::CheckCast(), Spell::CheckEffectTarget(), Dismount(), GetCollisionHeight(), WorldSession::HandleArtifactSetAppearance(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraTransform(), WorldSession::HandleCanDuel(), 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(), WorldSession::HandlePetAction(), WorldObject::IsValidAttackTarget(), npc_thrall_old_hillsbrad::JustEngagedWith(), Pet::LoadPetFromDB(), spell_gen_mount_check_aura::OnPeriodic(), Player::SetBattlegroundEntryPoint(), SetStunned(), and UpdateSpeed().
|
virtual |
Reimplemented in Creature.
Definition at line 3283 of file Unit.cpp.
References CanCastSpellWhileMoving(), CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, m_currentSpells, Movement, SPELL_STATE_CHANNELING, and SPELL_STATE_PREPARING.
Referenced by PointMovementGenerator::Initialize(), Creature::IsMovementPreventedByCasting(), FleeingMovementGenerator::SetTargetLocation(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), FleeingMovementGenerator::Update(), and PointMovementGenerator::Update().
|
inline |
Definition at line 1820 of file Unit.h.
References MOVEMENTFLAG_MASK_MOVING.
Referenced by _UpdateAutoRepeatSpell(), PartyTimeEmoteEvent::Execute(), spell_shade_of_medivh_ceaseless_winter_periodic::HandleEffectPeriodic(), spell_rokmora_crystalline_ground_periodic::HandleEffectPeriodic(), spell_heartsbane_triad_aura_of_dread_movement_check::HandlePeriodic(), 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, |
||
| bool | skipChanneledAllowingActions = false |
||
| ) | const |
Definition at line 3219 of file Unit.cpp.
References Action, ActionDelayed, CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, SpellInfo::HasAttribute(), SpellInfo::HasChannelInterruptFlag(), m_currentSpells, SPELL_ATTR2_DO_NOT_RESET_COMBAT_TIMERS, SPELL_ATTR5_ALLOW_ACTIONS_DURING_CHANNEL, SPELL_STATE_FINISHED, and SPELL_STATE_LAUNCHED.
Referenced by _UpdateAutoRepeatSpell(), Player::ActivateTalentGroup(), Player::ActivateTaxiPathTo(), boss_twinemperorsAI::CheckEnrage(), CombatStop(), boss_high_inquisitor_fairbanks::DamageTaken(), ScriptedAI::DoCastSpell(), 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::IsOnOceanFloor | ( | ) | const |
Definition at line 3359 of file Unit.cpp.
References WorldObject::GetLiquidStatus(), and LIQUID_MAP_OCEAN_FLOOR.
Referenced by isInAccessiblePlaceFor(), and Creature::UpdateMovementCapabilities().
| bool Unit::IsOnVehicle | ( | Unit const * | vehicle | ) | const |
Definition at line 12201 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 763 of file Unit.h.
References UNIT_MASK_PET.
Referenced by Creature::AtDisengage(), Creature::AtEngage(), BeforeVisibilityDestroy< Creature >(), Creature::CallAssistance(), Creature::CallForHelp(), ThreatManager::CanHaveThreatList(), Creature::CanSwim(), Creature::CreateFromProto(), hyjal_trashAI::DamageTaken(), spell_hun_masters_call::DoCheckCast(), Spell::EffectDismissPet(), Spell::EffectRenamePet(), Spell::EffectTameCreature(), Creature::GetAggroRange(), getAttackerForHelper(), GetCombatRatingReduction(), GetNextRandomRaidMemberOrPet(), FactorySelector::GetSelectedAIId(), WorldObject::GetSpellModOwner(), AuraEffect::HandleAuraModBaseResistancePCT(), AuraEffect::HandleAuraModStat(), spell_buru_egg_explosion::HandleDummy(), spell_hun_no_hard_feelings::HandleHitTarget(), AuraEffect::HandleModBaseResistance(), AuraEffect::HandleModPossessPet(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcDeleteCommand(), npc_commandscript::HandleNpcEvadeCommand(), npc_commandscript::HandleNpcSetLevelCommand(), npc_commandscript::HandleNpcSetModelCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetPhaseCommand(), npc_commandscript::HandleNpcSetPhaseGroup(), npc_commandscript::HandleNpcShowLootCommand(), npc_commandscript::HandleNpcTameCommand(), WorldSession::HandlePetActionHelper(), pet_commandscript::HandlePetCreateCommand(), WorldSession::HandlePetRename(), misc_commandscript::HandleRespawnCommand(), Creature::InitEntry(), TempSummon::InitStats(), Guardian::InitStatsForLevel(), DisableMgr::IsDisabledFor(), Creature::IsElite(), Minion::IsGuardianPet(), WorldObject::IsValidAttackTarget(), Creature::isWorldBoss(), Kill(), spell_dk_pet_geist_transform::Load(), Map::MoveAllCreaturesInMoveList(), PetAI::ReceiveEmote(), Creature::ReleaseSpellFocus(), RemoveAllControlled(), RollMeleeOutcomeAgainst(), FactorySelector::SelectAI(), Spell::SendSpellGo(), Spell::SendSpellStart(), Creature::setDeathState(), SetDisplayId(), Creature::SetDisplayId(), SetMinion(), Creature::SetObjectScale(), SpellDamagePctDone(), TempSummon::UnSummon(), ChaseMovementGenerator::Update(), boss_vaelastrasz::UpdateAI(), Guardian::UpdateArmor(), Guardian::UpdateAttackPowerAndDamage(), UpdateAuraForGroup(), Creature::UpdateLevelDependantStats(), UpdatePetCombatState(), Guardian::UpdateResistances(), and ObjectGridEvacuator::Visit().
|
inline |
Definition at line 1159 of file Unit.h.
Referenced by SetPlayHoverAnim().
| bool Unit::IsPolymorphed | ( | ) | const |
Definition at line 10831 of file Unit.cpp.
References WorldObject::GetMap(), 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 1257 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 6659 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 6669 of file Unit.cpp.
References GetCharmed().
Referenced by Player::ExecutePendingSpellCastRequest(), misc_commandscript::HandleUnbindSightCommand(), and WorldSession::HandleUseToy().
| bool Unit::isPossessing | ( | Unit * | u | ) | const |
Definition at line 6664 of file Unit.cpp.
References GetCharmedGUID(), BaseEntity::GetGUID(), and isPossessed().
|
inline |
Definition at line 901 of file Unit.h.
References UNIT_BYTE2_FLAG_PVP.
Referenced by Player::DuelComplete(), spell_warl_absolute_corruption::HandleApply(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAck(), WorldPackets::Party::PartyMemberFullState::Initialize(), Player::IsOutdoorPvPActive(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), Spell::TargetInfo::PreprocessTarget(), Player::UpdatePvPFlag(), and Player::UpdatePvPState().
|
inline |
Definition at line 1024 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_brann_hos::OnGossipHello(), npc_wg_demolisher_engineer::OnGossipHello(), npc_wg_spirit_guide::OnGossipHello(), npc_wg_queue::OnGossipHello(), Player::PrepareGossipMenu(), Player::SendQuestReward(), Creature::UpdateNearbyPlayersInteractions(), and Player::UpdateVisibleObjectInteractions().
| AuraEffect * Unit::IsScriptOverriden | ( | SpellInfo const * | spell, |
| int32 | script | ||
| ) | const |
Definition at line 4934 of file Unit.cpp.
References GetAuraEffectsByType(), and SPELL_AURA_OVERRIDE_CLASS_SCRIPTS.
Referenced by Spell::EffectWeaponDmg().
| bool Unit::IsServiceProvider | ( | ) | const |
Definition at line 8504 of file Unit.cpp.
References HasNpcFlag(), UNIT_NPC_FLAG_AREA_SPIRIT_HEALER, 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_SPIRIT_HEALER, UNIT_NPC_FLAG_TABARDDESIGNER, UNIT_NPC_FLAG_TRAINER, and UNIT_NPC_FLAG_VENDOR.
|
inline |
Definition at line 1517 of file Unit.h.
Referenced by Spell::CheckCasterAuras(), and ScriptedAI::SelectSpell().
| bool Unit::IsSitState | ( | ) | const |
Definition at line 10789 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 1031 of file Unit.h.
References UNIT_NPC_FLAG_SPIRIT_HEALER.
Referenced by Creature::Create(), and Spell::SendResurrectRequest().
|
inline |
Definition at line 1038 of file Unit.h.
References UNIT_NPC_FLAG_AREA_SPIRIT_HEALER, and UNIT_NPC_FLAG_SPIRIT_HEALER.
Referenced by Creature::InitializeReactState().
| bool Unit::IsSplineEnabled | ( | ) | const |
Definition at line 14358 of file Unit.cpp.
References movespline.
Referenced by BaseEntity::BuildMovementUpdate(), and spell_warr_charge_drop_fire_periodic::DropFireVisual().
| bool Unit::IsStandState | ( | ) | const |
Definition at line 10798 of file Unit.cpp.
References GetStandState(), IsSitState(), UNIT_STAND_STATE_KNEEL, and UNIT_STAND_STATE_SLEEP.
Referenced by Spell::TargetInfo::DoDamageAndTriggers(), Aura::GetProcEffectMask(), WorldSession::HandlePlayerLogin(), AuraEffect::HandleSpiritOfRedemption(), DistractMovementGenerator::Initialize(), Player::RegenerateHealth(), RollMeleeOutcomeAgainst(), and npc_wounded_skirmisher::SpellHit().
|
inline |
Definition at line 1754 of file Unit.h.
References UNIT_STATE_MOVING.
Referenced by SetFacingTo(), SetFacingToObject(), SetFacingToPoint(), and SimpleCharmedPlayerAI::UpdateAI().
|
inline |
Definition at line 761 of file Unit.h.
References UNIT_MASK_SUMMON.
Referenced by spell_item_unsated_craving::CheckProc(), SpellInfo::CheckTarget(), npc_tiger_matriarch::DamageTaken(), Spell::EffectScriptEffect(), boss_skeram::boss_skeramAI::EnterEvadeMode(), Scripts::Pandaria::TheWanderingIsle::npc_master_li_fei_summon::FaceToPlayer(), Spell::finish(), GetAllMinionsByEntry(), WorldSession::HandleDismissCritter(), WorldSession::HandleQueryBattlePetName(), npc_steamrigger_mechanic::InitializeAI(), TempSummon::InitStats(), SpellClickInfo::IsFitToRequirements(), npc_husam_tolvir_land_mine::JustAppeared(), boss_grubbis::boss_grubbisAI::JustDied(), npc_blackfathom_deeps_event::JustDied(), boss_skeram::boss_skeramAI::JustDied(), npc_tiger_matriarch::KilledUnit(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), Trinity::WorldObjectSpellTargetCheck::operator()(), RemoveAllControlled(), RemoveAllMinionsByEntry(), npc_silverpine_worgen_renegade::Reset(), Creature::SaveRespawnTime(), Creature::SearchFormation(), Creature::SelectVictim(), boss_grubbis::boss_grubbisAI::SetDataSummoner(), Creature::StartDefaultCombatMovement(), Player::UnsummonBattlePetTemporaryIfAny(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), boss_skeram::boss_skeramAI::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), Player::VehicleSpellInitialize(), and Scripts::Pandaria::TheWanderingIsle::npc_min_dimwind_summon::WaypointReached().
|
inline |
Definition at line 1033 of file Unit.h.
References UNIT_NPC_FLAG_TABARDDESIGNER.
| bool Unit::isTargetableForAttack | ( | bool | checkFakeDeath = true | ) | const |
Definition at line 8604 of file Unit.cpp.
References BaseEntity::GetTypeId(), HasUnitFlag(), HasUnitState(), IsAlive(), IsUninteractible(), Object::ToPlayer(), TYPEID_PLAYER, UNIT_FLAG_NON_ATTACKABLE, 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 1026 of file Unit.h.
References UNIT_NPC_FLAG_FLIGHTMASTER.
Referenced by npc_silverpine_bat_handler_maggotbreath::OnGossipHello(), and Creature::UpdateEntry().
| bool Unit::IsThreatened | ( | ) | const |
Definition at line 8599 of file Unit.cpp.
References ThreatManager::IsThreatListEmpty(), and m_threatManager.
Referenced by boss_noth::EnterPhaseGround().
|
inline |
Definition at line 1089 of file Unit.h.
References IsThreatenedBy().
Referenced by IsThreatenedBy().
|
inline |
Definition at line 765 of file Unit.h.
References UNIT_MASK_TOTEM.
Referenced by _UnapplyAura(), ThreatManager::CanHaveThreatList(), DealHeal(), Spell::EffectDestroyAllTotems(), Spell::EffectSummonPet(), Spell::EffectSummonType(), Spell::EffectTaunt(), WorldObject::GetSpellModOwner(), GetUnitBlockChance(), GetUnitDodgeChance(), GetUnitParryChance(), npc_commandscript::HandleNpcDeleteCommand(), WorldSession::HandleTotemDestroyed(), Creature::InitEntry(), 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(), SetMinion(), SpellAbsorbBonusDone(), SpellAbsorbPctDone(), SpellDamageBonusDone(), SpellDamagePctDone(), SpellHealingBonusDone(), SpellHealingPctDone(), and Spell::SummonGuardian().
|
inline |
Definition at line 1023 of file Unit.h.
References UNIT_NPC_FLAG_TRAINER.
|
inline |
Definition at line 1821 of file Unit.h.
References MOVEMENTFLAG_MASK_TURNING.
| bool Unit::IsUnderWater | ( | ) | const |
Definition at line 3354 of file Unit.cpp.
References WorldObject::GetLiquidStatus(), and LIQUID_MAP_UNDER_WATER.
Referenced by isInAccessiblePlaceFor(), and Creature::setDeathState().
|
inline |
Definition at line 1067 of file Unit.h.
References UNIT_FLAG_UNINTERACTIBLE.
Referenced by Creature::CanAssistTo(), boss_volazj::DamageTaken(), npc_vrykul_skeleton::DamageTaken(), VehicleJoinEvent::Execute(), isTargetableForAttack(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), and Player::UpdateTriggerVisibility().
|
inline |
Definition at line 766 of file Unit.h.
References UNIT_MASK_VEHICLE.
Referenced by Creature::AddToWorld(), ApplyResilience(), CanApplyResilience(), CleanupBeforeRemoveFromMap(), Map::CreatureRelocation(), DealDamage(), DealMeleeDamage(), HomeMovementGenerator< T >::DoFinalize(), Spell::EffectSummonType(), firelands_bossAI::EnterEvadeMode(), npc_daegarn::EnterEvadeMode(), SmartScript::GetTargets(), AuraEffect::HandleAuraControlVehicle(), spell_icecrown_jump_jets::HandleCast(), debug_commandscript::HandleDebugEnterVehicleCommand(), spell_icecrown_illidan_kill_credit_master::HandleDummy(), spell_icecrown_plant_battle_standard::HandleDummy(), WorldSession::HandlePetActionHelper(), spell_zuldrak_gymers_throw::HandleScript(), spell_putricide_mutated_transformation::HandleSummon(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustDied(), KillRewarder::KillRewarder(), spell_igb_overheat::Load(), Map::MoveAllCreaturesInMoveList(), npc_salanar_the_horseman::npc_salanar_the_horsemanAI::MoveInLineOfSight(), npc_thorims_hammer::npc_thorims_hammerAI::MoveInLineOfSight(), npc_hodirs_fury::npc_hodirs_furyAI::MoveInLineOfSight(), SmartAI::OnCharmed(), BattlefieldWG::OnUnitDeath(), battleground_isle_of_conquest::OnUnitKilled(), OutDebugInfo(), VehicleAI::Permissible(), Map::PlayerRelocation(), RemoveCharmedBy(), RemoveFromWorld(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), Creature::SetTappedBy(), boss_ioc_horde_alliance::SpellHit(), Player::StopCastingCharm(), UpdateCharmAI(), Creature::UpdateEntry(), UpdateHeight(), and UpdateOrientation().
|
inline |
Definition at line 1022 of file Unit.h.
References UNIT_NPC_FLAG_VENDOR.
Referenced by npc_commandscript::HandleNpcDeleteVendorItemCommand(), npc_lokhtos_darkbargainer::npc_lokhtos_darkbargainerAI::OnGossipHello(), and Creature::UpdateEntry().
| bool Unit::IsVisible | ( | ) | const |
Definition at line 8782 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(), Player::IsVisibleGloballyFor(), Trinity::AllFriendlyCreaturesInGrid::operator()(), boss_ionar::Reset(), and boss_ionar::UpdateAI().
|
inline |
Definition at line 1165 of file Unit.h.
References MOVEMENTFLAG_WALKING.
Referenced by Spell::CanIncreaseRangeByMovement(), SpellTargetSelector::operator()(), SetCharm(), SetWalk(), ChaseMovementGenerator::Update(), and FollowMovementGenerator::Update().
|
inline |
Definition at line 1036 of file Unit.h.
References UNIT_NPC_FLAG_WILD_BATTLE_PET.
Referenced by Creature::SelectWildBattlePetLevel().
| bool Unit::IsWithinBoundaryRadius | ( | const Unit * | obj | ) | const |
Definition at line 712 of file Unit.cpp.
References GetBoundingRadius(), WorldObject::InSamePhase(), Position::IsInDist(), WorldObject::IsInMap(), and MIN_MELEE_REACH.
Referenced by Spell::CheckRange(), DoMeleeAttackIfReady(), and Trinity::WorldObjectSpellConeTargetCheck::operator()().
| bool Unit::IsWithinCombatRange | ( | Unit const * | obj, |
| float | dist2compare | ||
| ) | const |
Definition at line 675 of file Unit.cpp.
References GetCombatReach(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), WorldObject::InSamePhase(), and WorldObject::IsInMap().
Referenced by npc_hearthglen_crusader::AttackStart(), TurretAI::CanAIAttack(), boss_flame_leviathan::boss_flame_leviathanAI::DoBatteringRamIfReady(), UnitAI::DoSpellAttackIfReady(), SmartScript::GetTargets(), spell_warr_intervene::HandleDummy(), DefaultTargetSelector::operator()(), PowerUsersSelector::operator()(), FarthestTargetSelector::operator()(), npc_twisted_visage::SetData(), and npc_hearthglen_crusader::UpdateAI().
|
inline |
Definition at line 722 of file Unit.h.
Referenced by boss_supremus::CalculateHatefulStrikeTarget(), boss_thaddius::CanAIAttack(), PetAI::CanAttack(), DoMeleeAttackIfReady(), AqusirrEventHandler::Execute(), boss_nexusprince_shaffar::ExecuteEvent(), spell_baleroc_shards_of_torment_target_search::FilterTargets(), spell_dh_felblade::HandleCharge(), spell_dh_voidblade::HandleCharge(), npc_shadow_image::JustEngagedWith(), npc_angered_soul_fragment::JustEngagedWith(), npc_guard_generic::JustEngagedWith(), ThreatManager::ReselectVictim(), npc_scrapbot::Reset(), npc_boombot::Reset(), npc_shadow_demon::Reset(), boss_garothi_worldbreaker::UpdateAI(), boss_ragnaros::UpdateAI(), npc_sinster_reflection::npc_sinster_reflectionAI::UpdateAI(), boss_archimonde::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), boss_skeram::boss_skeramAI::UpdateAI(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::UpdateAI(), boss_bronjahm::UpdateAI(), npc_high_overlord_saurfang_igb::UpdateAI(), npc_muradin_bronzebeard_igb::UpdateAI(), npc_darnavan::UpdateAI(), npc_blazing_skeleton::UpdateAI(), boss_noth::UpdateAI(), boss_thaddius::UpdateAI(), boss_steelbreaker::boss_steelbreakerAI::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), boss_kologarn::boss_kologarnAI::UpdateAI(), boss_murmur::UpdateAI(), npc_maiev::UpdateAI(), boss_doom_lord_kazzak::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_omor_the_unscarred::UpdateAI(), and boss_alar::UpdateAI().
Definition at line 691 of file Unit.cpp.
References GetMeleeRange(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetTotalAuraModifier(), WorldObject::InSamePhase(), WorldObject::IsInMap(), and SPELL_AURA_MOD_AUTOATTACK_RANGE.
|
static |
Definition at line 11311 of file Unit.cpp.
References Creature::AI(), Creature::AllLootRemovedFromCorpse(), ASSERT_NODEBUGINFO, ASSERT_NOTNULL, Creature::CanHaveLoot(), CONFIG_DURABILITY_LOSS_IN_PVP, DeliveredKillingBlow, DUEL_INTERRUPTED, Loot::FillLoot(), GenerateDungeonEncounterPersonalLoot(), Loot::generateMoneyLoot(), WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), ItemBonusMgr::GetContextForPlayer(), Creature::GetCreatureDifficulty(), Pet::GetDebugInfo(), Player::GetEffectiveTeam(), Object::GetEntry(), BaseEntity::GetGUID(), GetHealth(), WorldObject::GetInstanceScript(), Group::GetLooterGuid(), Creature::GetLootId(), Creature::GetLootMode(), WorldObject::GetMap(), Map::GetMapDifficulty(), Player::GetOutdoorPvP(), WorldObject::GetOwner(), GetOwnerGUID(), ObjectAccessor::GetPlayer(), WorldPackets::Packet::GetRawPacket(), Creature::GetTapList(), BaseEntity::GetTypeId(), GetVignette(), WorldObject::GetZoneId(), CreatureDifficulty::GoldMax, CreatureDifficulty::GoldMin, LootStore::HaveLootFor(), DungeonEncounterEntry::ID, Player::InBattleground(), IsAIEnabled(), IsAlive(), Pet::isControlled(), IsCritter(), Map::IsDungeon(), Creature::IsFullyLooted(), WorldObject::IsInMap(), Loot::isLooted(), IsPet(), ObjectGuid::IsPlayer(), IsTotem(), Item, JUST_DIED, KilledByCreature, KilledByPlayer, CreatureAI::KilledUnit(), LOOT_CORPSE, LootTemplates_Creature, LootTemplates_Skinning, Creature::m_personalLoot, Loot::NotifyLootList(), WorldPackets::Party::PartyKillLog::Player, PROC_FLAG_2_TARGET_DIES, PROC_FLAG_DEATH, PROC_FLAG_KILL, PROC_FLAG_NONE, PROC_HIT_NONE, PROC_SPELL_PHASE_NONE, PROC_SPELL_TYPE_MASK_ALL, ProcSkillsAndAuras(), RATE_DURABILITY_LOSS_ON_DEATH, KillRewarder::Reward(), sBattlefieldMgr, setDeathState(), Loot::SetDungeonEncounterId(), Object::SetDynamicFlag(), SetUnitFlag(), CreatureDifficulty::SkinLootID, sObjectMgr, SPELL_AURA_MOD_DURABILITY_LOSS, sScriptMgr, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, Map::ToBattlegroundMap(), Object::ToCreature(), Object::ToPlayer(), ToTempSummon(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_DYNFLAG_CAN_SKIN, UNIT_DYNFLAG_LOOTABLE, UNIT_FLAG_SKINNABLE, Player::UpdateCriteria(), WorldPackets::Party::PartyKillLog::Victim, and WorldPackets::Party::PartyKillLog::Write().
Referenced by Spell::EffectInstaKill(), AuraEffect::HandleAuraControlVehicle(), misc_commandscript::HandleDieCommand(), spell_stratholme_crusader_strike::HandleDummy(), spell_yogg_saron_titanic_storm::spell_yogg_saron_titanic_storm_SpellScript::HandleScript(), IsEncounterFinished(), npc_glob_of_viscidus::npc_glob_of_viscidusAI::JustDied(), boss_yogg_saron::boss_yogg_saronAI::JustDied(), npc_baltharus_the_warborn_clone::JustDied(), boss_twilight_halion::JustDied(), boss_drakkari_elemental::JustDied(), boss_blood_council_controller::JustDied(), KillSelf(), boss_onyxia::MovementInform(), boss_shattered_executioner::SetData(), boss_valithria_dreamwalker::SpellHit(), boss_ioc_horde_alliance::SpellHit(), boss_sathrovarr::SpellHit(), boss_faerlina::SpellHit(), boss_sister_svalna::SpellHitTarget(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::Update(), and npc_emily::WaypointReached().
|
inline |
Definition at line 951 of file Unit.h.
References Kill().
Referenced by boss_malchezaar::boss_malchezaarAI::AxesCleanup(), npc_stalagg::DoAction(), npc_feugen::DoAction(), npc_vrykul_skeleton::DoAction(), boss_reliquary_of_souls::DoAction(), npc_reliquary_combat_trigger::DoAction(), Spell::EffectStuck(), npc_raging_flames::EnterEvadeMode(), spell_ooze_zap_channel_end::HandleDummy(), spell_headless_horseman_head_is_dead::HandleDummy(), spell_sholazar_shoot_rjr::HandleDummy(), spell_sappy_burst::HandleHitTarget(), npc_enslaved_soul::HandleSoulRelease(), npc_shadow_image::JustAppeared(), boss_kalecgos::MovementInform(), npc_mortimer_moloch::MovementInform(), npc_wild_wyrm::MovementInform(), spell_kings_rest_pit_of_despair::OnApply(), spell_consuming_stomp::OnRemove(), spell_yogg_saron_insane::spell_yogg_saron_insane_AuraScript::OnRemove(), spell_teron_gorefiend_spiritual_vengeance::OnRemove(), spell_kings_rest_bound_by_shadow::OnRemove(), spell_anduin_wrynn_lost_soul::OnRemove(), npc_volatile_sapling::OnSpellFailed(), SmartScript::ProcessAction(), npc_vengeful_shade::Reset(), npc_sevis_brightflame_shivarra_gateway::SacrificeSelf(), npc_twilight_eggs::SpawnWhelps(), npc_ley_line_sprouts::SpellHit(), npc_drustvar_charging_familiar::SpellHit(), npc_vengeful_shade::SpellHitTarget(), SimpleCharmedPlayerAI::UpdateAI(), boss_selin_fireheart::UpdateAI(), npc_restless_soul::npc_restless_soulAI::UpdateAI(), npc_spectral_ghostly_citizen::npc_spectral_ghostly_citizenAI::UpdateAI(), npc_volatile_felfire_fiend::npc_volatile_felfire_fiendAI::UpdateAI(), npc_eye_tentacle::eye_tentacleAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), npc_twilight_fissure::UpdateAI(), npc_kayn_sunfury_invasion_begins::WaypointPathEnded(), and npc_sanitron_5000::WaypointReached().
| void Unit::KnockbackFrom | ( | Position const & | origin, |
| float | speedXY, | ||
| float | speedZ, | ||
| float | angle = M_PI, |
||
| Movement::SpellEffectExtraData const * | spellEffectExtraData = nullptr |
||
| ) |
Definition at line 12587 of file Unit.cpp.
References Position::GetAbsoluteAngle(), GetCharmer(), GetMotionMaster(), Position::GetOrientation(), Position::GetPosition(), GetUnitBeingMoved(), M_PI, MotionMaster::MoveKnockbackFrom(), SendMoveKnockBack(), and Object::ToPlayer().
Referenced by Spell::EffectKnockBack(), Spell::EffectLeapBack(), Spell::EffectPullTowards(), Spell::EffectPullTowardsDest(), StartLaunchEvent::Execute(), spell_warhead_detonate::HandleDummy(), and spell_arena_dalaran_sewers_flush_knock_back_effect::HandleDummy().
| int32 Unit::MeleeDamageBonusDone | ( | Unit * | pVictim, |
| int32 | damage, | ||
| WeaponAttackType | attType, | ||
| DamageEffectType | damagetype, | ||
| SpellInfo const * | spellProto = nullptr, |
||
| SpellEffectInfo const * | spellEffectInfo = nullptr, |
||
| Mechanics | mechanic = MECHANIC_NONE, |
||
| SpellSchoolMask | damageSchoolMask = SPELL_SCHOOL_MASK_NORMAL, |
||
| Spell * | spell = nullptr, |
||
| AuraEffect const * | aurEff = nullptr |
||
| ) |
Definition at line 8040 of file Unit.cpp.
References AddPct(), Aura::CallScriptCalcDamageAndHealingHandlers(), Spell::CallScriptCalcDamageHandlers(), DOT, GetAPMultiplier(), Aura::GetApplicationOfTarget(), GetAuraEffectsByType(), AuraEffect::GetBase(), GetCreatureTypeMask(), BaseEntity::GetGUID(), AuraEffect::GetMiscValue(), SpellInfo::GetSchoolMask(), WorldObject::GetSpellModOwner(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), GetTotalAuraModifierByMiscValue(), GetTotalAuraMultiplier(), GetTotalAuraMultiplierByMiscMask(), SpellInfo::HasAttribute(), HasAuraState(), HasAuraWithMechanic(), SpellInfo::HasEffect(), HealingAndDamage, MAX_SPELL_SCHOOL, SpellInfo::Mechanic, MECHANIC_NONE, PeriodicHealingAndDamage, RANGED_ATTACK, SPELL_ATTR6_IGNORE_CASTER_DAMAGE_MODIFIERS, SPELL_AURA_MELEE_ATTACK_POWER_ATTACKER_BONUS, SPELL_AURA_MOD_AUTOATTACK_DAMAGE, 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_DAMAGE_PERCENT_DONE_BY_TARGET_AURA_MECHANIC, SPELL_AURA_MOD_MELEE_ATTACK_POWER_VERSUS, SPELL_AURA_MOD_RANGED_ATTACK_POWER_VERSUS, SPELL_AURA_RANGED_ATTACK_POWER_ATTACKER_BONUS, SPELL_EFFECT_NORMALIZED_WEAPON_DMG, SPELL_SCHOOL_HOLY, SPELL_SCHOOL_MASK_NORMAL, Object::ToPlayer(), and UI64LIT.
Referenced by CalculateMeleeDamage(), Spell::EffectWeaponDmg(), and AuraEffect::HandlePeriodicDamageAurasTick().
| int32 Unit::MeleeDamageBonusTaken | ( | Unit * | attacker, |
| int32 | pdamage, | ||
| WeaponAttackType | attType, | ||
| DamageEffectType | damagetype, | ||
| SpellInfo const * | spellProto = nullptr, |
||
| SpellSchoolMask | damageSchoolMask = SPELL_SCHOOL_MASK_NORMAL |
||
| ) |
Definition at line 8152 of file Unit.cpp.
References AddPct(), CR_VERSATILITY_DAMAGE_TAKEN, DOT, EFFECT_0, SpellInfo::GetAllEffectsMechanicMask(), GetAuraEffect(), GetAuraEffectsByType(), AuraEffect::GetCasterGUID(), BaseEntity::GetGUID(), GetMeleeDamageSchoolMask(), AuraEffect::GetMiscValue(), SpellInfo::GetSchoolMask(), WorldObject::GetSpellModOwner(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), GetTotalAuraMultiplier(), GetTotalAuraMultiplierByMiscMask(), AuraEffect::IsAffectingSpell(), MECHANIC_BLEED, RANGED_ATTACK, 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_FROM_CASTER, SPELL_AURA_MOD_MELEE_DAMAGE_TAKEN, SPELL_AURA_MOD_MELEE_DAMAGE_TAKEN_PCT, SPELL_AURA_MOD_PERIODIC_DAMAGE_TAKEN, SPELL_AURA_MOD_RANGED_DAMAGE_TAKEN, SPELL_AURA_MOD_RANGED_DAMAGE_TAKEN_PCT, SPELL_AURA_MOD_SCHOOL_MASK_DAMAGE_FROM_CASTER, SPELL_AURA_MOD_SPELL_DAMAGE_FROM_CASTER, SPELL_AURA_MOD_VERSATILITY, SPELLFAMILY_DRUID, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, and UI64LIT.
Referenced by CalculateMeleeDamage(), Spell::EffectWeaponDmg(), and AuraEffect::HandlePeriodicDamageAurasTick().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 2610 of file Unit.cpp.
References BASE_ATTACK, SpellInfo::DmgClass, GetAuraEffectsByType(), GetMechanicResistChance(), GetTotalAuraModifier(), BaseEntity::GetTypeId(), GetUnitBlockChance(), GetUnitDodgeChance(), GetUnitParryChance(), SpellInfo::HasAttribute(), HasAuraType(), Position::HasInArc(), HasUnitState(), IsNonMeleeSpellCast(), M_PI, MELEE_HIT_BLOCK, MELEE_HIT_DODGE, MELEE_HIT_PARRY, MeleeSpellMissChance(), RANGED_ATTACK, SPELL_ATTR0_CU_REQ_CASTER_BEHIND_TARGET, SPELL_ATTR0_NO_ACTIVE_DEFENSE, SPELL_ATTR3_NO_AVOIDANCE, SPELL_ATTR7_NO_ATTACK_DODGE, SPELL_ATTR7_NO_ATTACK_PARRY, SPELL_ATTR8_NO_ATTACK_BLOCK, 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 12523 of file Unit.cpp.
References CURRENT_MELEE_SPELL, WorldObject::GetSpellModOwner(), GetTotalAuraModifier(), GetUnitMissChance(), SpellInfo::HasAttribute(), HasAuraType(), haveOffhandWeapon(), HitChance, IsInFeralForm(), m_currentSpells, m_modMeleeHitChance, m_modRangedHitChance, RANGED_ATTACK, SPELL_ATTR7_NO_ATTACK_MISS, SPELL_AURA_IGNORE_DUAL_WIELD_HIT_PENALTY, SPELL_AURA_MOD_ATTACKER_MELEE_HIT_CHANCE, SPELL_AURA_MOD_ATTACKER_RANGED_HIT_CHANCE, and SPELL_AURA_MOD_HIT_CHANCE.
Referenced by MeleeSpellHitResult(), and RollMeleeOutcomeAgainst().
| void Unit::ModifyAuraState | ( | AuraStateType | flag, |
| bool | apply | ||
| ) |
Definition at line 6098 of file Unit.cpp.
References AURA_STATE_ENRAGED, UF::UnitData::AuraState, SpellInfo::CasterAuraState, CastSpell, DIFFICULTY_NONE, GetAppliedAuras(), BaseEntity::GetGUID(), Player::GetSpellMap(), BaseEntity::GetTypeId(), SpellInfo::IsPassive(), m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), PETSPELL_REMOVED, PLAYERSPELL_REMOVED, RemoveAura(), BaseEntity::RemoveUpdateFieldFlagValue(), BaseEntity::SetUpdateFieldFlagValue(), sSpellMgr, Object::ToCreature(), ToPet(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by _ApplyAura(), _UnapplyAura(), ClearAllReactives(), AuraEffect::HandleArenaPreparation(), debug_commandscript::HandleDebugSetAuraStateCommand(), boss_professor_putricide::JustSummoned(), ProcSkillsAndReactives(), boss_twin_baseAI::Reset(), Update(), and UpdateReactives().
Definition at line 8618 of file Unit.cpp.
References WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), BaseEntity::GetGUID(), GetHealth(), GetMaxHealth(), WorldPackets::Combat::HealthUpdate::Guid, WorldPackets::Combat::HealthUpdate::Health, SetHealth(), and WorldPackets::Combat::HealthUpdate::Write().
Referenced by DealHeal(), boss_ichoron::DoAction(), AuraEffect::HandleAuraModIncreaseHealth(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), spell_gluth_zombiechow_search::HealForEachTargetHit(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), Spell::RefundPower(), Creature::RegenerateHealth(), boss_xt002::SetData(), Spell::TakePower(), Aura::Update(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), and npc_crok_scourgebane::UpdateEscortAI().
Definition at line 8716 of file Unit.cpp.
References GetMaxPower(), GetMinPower(), GetPower(), GetTotalAuraMultiplierByMiscValue(), SetPower(), and SPELL_AURA_MOD_POWER_GAIN_PCT.
Referenced by CalcAbsorbResist(), spell_mage_arcane_barrage::ConsumeArcaneCharges(), spell_warr_execute_refund_rage::DetermineKillStatus(), Spell::EffectPowerBurn(), Spell::EffectPowerDrain(), EnergizeBySpell(), boss_curator::boss_curatorAI::ExecuteEvent(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), AuraEffect::HandleAuraModMaxPowerPct(), spell_evo_living_flame::HandleLaunchTarget(), AuraEffect::HandleObsModPowerAuraTick(), spell_anduin_wrynn_energize_willpower_lfr::HandlePeriodic(), spell_remnant_of_a_fallen_king_energize_runic_power::HandlePeriodic(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), spell_rog_venomous_wounds::HandleProc(), spell_rog_ruthlessness::HandleProc(), spell_kelthuzad_detonate_mana::HandleScript(), boss_anduin_wrynn::JustAppeared(), boss_remnant_of_a_fallen_king::JustAppeared(), spell_rog_rupture::OnEffectRemoved(), spell_priestess_alun_za_energy_regen::OnPeriodic(), spell_gen_nitrous_boost::PeriodicTick(), spell_shade_of_medivh_mana_regen::PeriodicTick(), spell_azhiccar_energy_controller::PeriodicTick(), spell_edna_energize::PeriodicTick(), spell_skarmorak_fortified_shell_energize::PeriodicTick(), spell_lord_stormsong_energize::PeriodicTick(), spell_sporecaller_zancha_festering_harvest::PeriodicTick(), boss_anduin_wrynn::PhaseEvents(), Spell::RefundPower(), Creature::Regenerate(), RewardRage(), Spell::TakePower(), Aura::Update(), and boss_faction_championsAI::UpdatePower().
| void Unit::MonsterMoveWithSpeed | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | speed, | ||
| bool | generatePath = false, |
||
| bool | forceDestination = false |
||
| ) |
Definition at line 538 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 8303 of file Unit.cpp.
References CalculateHoverHeight(), COMMAND_FOLLOW, CreateVehicleKit(), GetVehicleKit(), Vehicle::InstallAllAccessories(), WorldPackets::Movement::Mount, Mount, REACT_PASSIVE, RemoveAurasByType(), RemoveAurasWithInterruptFlags(), SetMountDisplayId(), SetUnitFlag(), SPELL_AURA_COSMETIC_MOUNTED, Object::ToPlayer(), and UNIT_FLAG_MOUNT.
Referenced by npc_thrall_old_hillsbrad::DoMount(), AuraEffect::HandleAuraMounted(), spell_mount_check::HandleEffectPeriodic(), spell_gen_pony_mount_check::HandleEffectPeriodic(), modify_commandscript::HandleModifyMountCommand(), spell_gen_running_wild_aura::HandleMount(), npc_koltira_deathweaver::MovementInform(), SmartScript::ProcessAction(), npc_scarlet_courier::npc_scarlet_courierAI::Reset(), and npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::Reset().
|
inline |
Definition at line 1146 of file Unit.h.
References NearTeleportTo().
Referenced by NearTeleportTo().
| void Unit::NearTeleportTo | ( | Position const & | pos, |
| bool | casting = false |
||
| ) |
Definition at line 13068 of file Unit.cpp.
References WorldLocation::GetMapId(), TeleportLocation::Location, and NearTeleportTo().
| void Unit::NearTeleportTo | ( | TeleportLocation const & | target, |
| bool | casting = false |
||
| ) |
Definition at line 13054 of file Unit.cpp.
References DisableSpline(), GetMotionMaster(), MotionMaster::InterruptOnTeleport(), TeleportLocation::Location, SendTeleportPacket(), TELE_TO_NONE, TELE_TO_NOT_LEAVE_COMBAT, TELE_TO_NOT_LEAVE_TRANSPORT, TELE_TO_SPELL, Object::ToPlayer(), UpdateObjectVisibility(), and UpdatePosition().
Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), spell_mage_alter_time_aura::AfterRemove(), boss_urom::DamageTaken(), boss_malygos::DoAction(), boss_anduin_wrynn::DoAction(), ScriptedAI::DoTeleportTo(), Spell::EffectLeap(), Spell::EffectResurrectPet(), Spell::EffectSummonPet(), Spell::EffectTeleportUnits(), Spell::EffectTeleUnitsFaceCaster(), boss_gothik::EnterEvadeMode(), boss_urom::EnterEvadeMode(), DelayedSpellTeleportEvent::Execute(), spell_boralus_find_cyrus_objective_complete::HandleHitTarget(), spell_pri_divine_image::HandleProc(), spell_headless_horseman_head_reposition::HandleScriptEffect(), spell_freya_iron_roots::spell_freya_iron_roots_SpellScript::HandleSummon(), spell_lich_king_teleport_corpse::HandleTeleport(), spell_undermine_arena_warning_teleport::HandleTeleport(), spell_enigma_arena_warning_teleport::HandleTeleport(), npc_coldflame::IsSummonedBy(), npc_bg_deephaul_ravine_earthen_mine_cart_horde::JustAppeared(), npc_bg_deephaul_ravine_earthen_mine_cart_alliance::JustAppeared(), npc_doomfire_spirit::JustAppeared(), boss_prince_keleseth_icc::JustSummoned(), npc_arthas_stratholme::npc_arthas_stratholmeAI::MovementInform(), NearTeleportTo(), spell_anduin_wrynn_pre_introduction::OnApply(), go_master_surveyor::OnGossipHello(), npc_baros_alexston::OnGossipSelect(), quest_ride_of_the_scientifically_enhanced_boar::OnQuestStatusChange(), quest_the_re_deather::OnQuestStatusChange(), spell_anduin_wrynn_lost_soul::OnRemove(), spell_anduin_wrynn_severed_soul::OnRemove(), conversation_sylvanas_windrunner_introduction::OnUpdate(), Map::ScriptsProcess(), npc_simon_bunny::npc_simon_bunnyAI::SetUpPreGame(), BossAI::TeleportCheaters(), battleground_strand_of_the_ancients::TeleportToEntrancePosition(), boss_rend_blackhand::UpdateAI(), boss_shade_of_medivh::UpdateAI(), npc_silverpine_deathstalker_rane_yorick::UpdateAI(), npc_silverpine_skitterweb_matriarch::UpdateAI(), boss_viscidus::boss_viscidusAI::UpdateAI(), npc_coldflame::UpdateAI(), boss_urom::UpdateAI(), npc_minigob_manabonk::UpdateAI(), boss_alar::UpdateAI(), boss_high_astromancer_solarian::UpdateAI(), boss_majordomo::UpdateSpecialEvents(), and GameObject::Use().
|
virtual |
Reimplemented in Player.
Definition at line 12559 of file Unit.cpp.
Referenced by PhasingHandler::OnConditionChange(), and Player::OnPhaseChange().
| void Unit::OutDebugInfo | ( | ) | const |
Definition at line 13246 of file Unit.cpp.
References GetCharmedGUID(), GetCharmerGUID(), Object::GetEntry(), BaseEntity::GetGUID(), WorldLocation::GetMapId(), GetMinionGUID(), WorldObject::GetName(), GetOwnerGUID(), ObjectAccessor::GetUnit(), GetVehicle(), GetVehicleBase(), GetVehicleKit(), BaseEntity::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 10768 of file Unit.cpp.
References GetMotionMaster(), IsInvalidMovementSlot(), and StopMoving().
Referenced by SmartAI::AttackStart(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::DoAction(), boss_grand_warlock_nethekurse::DoAction(), npc_silverpine_forsaken_bat::DoAction(), npc_silverpine_deathstalker_rane_yorick::DoAction(), npc_silverpine_forest_ettin::DoAction(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), SmartAI::PausePath(), WorldSession::SendListInventory(), SetCharmedBy(), FollowerAI::StartFollow(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::UpdateAI(), and SmartAI::WaypointReached().
| void Unit::PlayOneShotAnimKitId | ( | uint16 | animKitId | ) |
Definition at line 11246 of file Unit.cpp.
References WorldPackets::Misc::PlayOneShotAnimKit::AnimKitID, BaseEntity::GetGUID(), sAnimKitStore, WorldObject::SendMessageToSet(), TC_LOG_ERROR, WorldPackets::Misc::PlayOneShotAnimKit::Unit, and WorldPackets::Misc::PlayOneShotAnimKit::Write().
Referenced by boss_azhiccar::DoAction(), boss_soulbound_goliath::DoAction(), spell_aqusirr_surging_rush::HandleScript(), boss_azhiccar::JustAppeared(), npc_azhiccar_frenzied_mite::JustAppeared(), npc_blazing_monstrosity::npc_blazing_monstrosityAI::JustEngagedWith(), npc_silverpine_skitterweb_matriarch::JustEngagedWith(), npc_valarjar_paying_respect_to_odyn::MovementInform(), npc_sevis_brightflame_shivarra_gateway::SacrificeSelf(), boss_garothi_worldbreaker::SummonedCreatureDies(), and spell_alysrazor_turn_monstrosity::spell_alysrazor_turn_monstrosity_SpellScript::TurnBird().
| bool Unit::PopAI | ( | ) |
Definition at line 10244 of file Unit.cpp.
References i_AIs.
Referenced by Creature::AIM_Destroy(), spell_tyrannus_overlord_brand::OnRemove(), and RestoreDisabledAI().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 3364 of file Unit.cpp.
References PositionFullTerrainStatus::areaId, UF::UnitData::CurrentAreaID, PositionFullTerrainStatus::liquidInfo, m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), WorldObject::ProcessPositionDataChanged(), BaseEntity::SetUpdateFieldValue(), and UpdateLiquidStatusOnPositionChange().
Referenced by Creature::Create(), and Player::ProcessPositionDataChanged().
|
static |
Definition at line 5589 of file Unit.cpp.
References BASE_ATTACK, DamageInfo::GetAttackType(), Spell::GetDebugInfo(), Spell::GetProcChainLength(), DamageInfo::GetSpellInfo(), HealInfo::GetSpellInfo(), Spell::GetSpellInfo(), SpellInfo::HasAttribute(), ProcSkillsAndReactives(), SPELL_ATTR3_SUPPRESS_CASTER_PROCS, SPELL_ATTR3_SUPPRESS_TARGET_PROCS, TC_LOG_ERROR, and TriggerAurasProcOnEvent().
Referenced by Spell::_cast(), Spell::_handle_finish_phase(), AtEnterCombat(), AtStartOfEncounter(), AttackerStateUpdate(), Player::AutoStoreLoot(), CalcAbsorbResist(), Spell::TargetInfo::DoDamageAndTriggers(), Spell::EffectDispel(), Spell::EffectDispelMechanic(), Spell::EffectKnockBack(), ProcReflectDelayed::Execute(), Spell::finish(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleMovementOpcode(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), Kill(), and TriggerAuraHeartbeat().
|
private |
Definition at line 10549 of file Unit.cpp.
References AURA_STATE_DEFENSIVE, CLASS_ROGUE, GetClass(), BaseEntity::GetTypeId(), MELEE_BASED_TRIGGER_MASK, ModifyAuraState(), PROC_HIT_BLOCK, PROC_HIT_CRITICAL, PROC_HIT_DODGE, PROC_HIT_PARRY, REACTIVE_DEFENSE, StartReactiveTimer(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by ProcSkillsAndAuras().
| void Unit::PropagateSpeedChange | ( | ) |
-------—End of Pet responses methods-------—
Definition at line 10743 of file Unit.cpp.
References GetMotionMaster(), and MotionMaster::PropagateSpeedChange().
Referenced by SetSpeedRate().
| void Unit::PushAI | ( | UnitAI * | newAI | ) |
Definition at line 10233 of file Unit.cpp.
References i_AIs.
Referenced by spell_tyrannus_overlord_brand::OnApply(), ScheduleAIChange(), and SetAI().
|
virtual |
Definition at line 10844 of file Unit.cpp.
References CalculatePct(), GetNativeObjectScale(), GetTotalAuraModifier(), BaseEntity::GetTypeId(), Object::SetObjectScale(), SPELL_AURA_MOD_SCALE, SPELL_AURA_MOD_SCALE_2, and TYPEID_PLAYER.
Referenced by AuraEffect::HandleAuraModScale().
|
protected |
Definition at line 10255 of file Unit.cpp.
References ASSERT, i_AI, i_AIs, and m_aiLocked.
Referenced by Creature::AIM_Destroy(), SetAI(), Update(), and UpdateCharmAI().
| void Unit::RemoveAllAreaTriggers | ( | AreaTriggerRemoveReason | reason = AreaTriggerRemoveReason::Default | ) |
Definition at line 5531 of file Unit.cpp.
References DontDespawnWithCreator, m_areaTrigger, and UnitDespawn.
Referenced by boss_maiden_of_virtue_rtk::EnterEvadeMode(), boss_shade_of_medivh::EnterEvadeMode(), boss_azhiccar::EnterEvadeMode(), boss_maiden_of_virtue_rtk::JustDied(), boss_shade_of_medivh::JustDied(), boss_azhiccar::JustDied(), RemoveFromWorld(), and Player::TeleportTo().
| void Unit::RemoveAllAttackers | ( | ) |
Definition at line 6085 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 4400 of file Unit.cpp.
References _UnapplyAura(), ABORT_MSG, AURA_REMOVE_BY_DEFAULT, GetDebugInfo(), m_appliedAuras, m_ownedAuras, RemoveOwnedAura(), and TC_LOG_ERROR.
Referenced by CleanupBeforeRemoveFromMap(), npc_felblood_kaelthas_phoenix::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), boss_ingvar_the_plunderer::DamageTaken(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), spell_rotface_unstable_ooze_explosion_suicide::DespawnSelf(), npc_kelthuzad_guardian::DoAction(), npc_briarpatch_prisoner::DoAction(), boss_razorgore::DoChangePhase(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DoNice(), EscortAI::EnterEvadeMode(), hyjalAI::EnterEvadeMode(), GuardAI::EnterEvadeMode(), boss_randolph_moloch::ExecuteEvent(), npc_rocket_propelled_warhead::FinishQuest(), spell_icecrown_plant_battle_standard::HandleDummy(), spell_garothi_annihilation_triggered::HandleHit(), misc_commandscript::HandleUnAuraCommand(), npc_prisoner_q55879_private::JustAppeared(), npc_husam_shockwave_visual::JustAppeared(), npc_gunship::npc_gunshipAI::JustDied(), boss_freya::boss_freyaAI::JustDied(), boss_urom::LeaveCombat(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::MovementInform(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::OnHealthDepleted(), npc_melee_hover_disk::PassengerBoarded(), npc_caster_hover_disk::PassengerBoarded(), spell_pursuing_spikes::PeriodicTick(), SmartScript::ProcessAction(), Creature::RemoveCorpse(), npc_koltira_deathweaver::Reset(), npc_twilight_whelp::Reset(), boss_paletress::boss_paletressAI::Reset(), boss_steelbreaker::boss_steelbreakerAI::Reset(), boss_runemaster_molgeim::boss_runemaster_molgeimAI::Reset(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::Reset(), boss_thorim::boss_thorimAI::Reset(), boss_sara::boss_saraAI::Reset(), npc_yogg_saron_keeper::npc_yogg_saron_keeperAI::Reset(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), Pet::SavePetToDB(), npc_frozen_mountaineer::npc_frozen_mountaineerAI::SetData(), npc_twilight_eggs::SpawnWhelps(), Scripts::Kalimdor::Durotar::npc_lazy_peon::npc_lazy_peonAI::SpellHit(), npc_felblood_kaelthas_phoenix::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), boss_kalecgos::UpdateAI(), npc_milos_gyro::npc_milos_gyro_AI::UpdateAI(), npc_sparring_partner_combat_training::UpdateAI(), npc_giant_boar_vehicle_q55879::UpdateAI(), boss_corborus::boss_corborusAI::UpdateAI(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::UpdateAI(), npc_twilight_fissure::UpdateAI(), npc_phantom_mage::npc_phantom_mageAI::UpdateAI(), npc_spirit_bomb::UpdateAI(), boss_noth::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_svala::UpdateAI(), boss_the_lurker_below::UpdateAI(), and boss_alar::UpdateAI().
| void Unit::RemoveAllAurasExceptType | ( | AuraType | type | ) |
Definition at line 4535 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(), and boss_ragnaros::UpdateAI().
Definition at line 4556 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 4491 of file Unit.cpp.
References _UnapplyAura(), AURA_REMOVE_BY_DEATH, Aura::IsDeathPersistent(), Aura::IsPassive(), m_appliedAuras, m_ownedAuras, and RemoveOwnedAura().
Referenced by spell_clear_all::HandleScript(), Player::LoadFromDB(), and setDeathState().
| void Unit::RemoveAllAurasRequiringDeadTarget | ( | ) |
Definition at line 4514 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 6632 of file Unit.cpp.
References GetCharmedGUID(), GetCharmerGUID(), Object::GetEntry(), BaseEntity::GetGUID(), GetMinionGUID(), GetOwnerGUID(), GetPetGUID(), BaseEntity::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 5363 of file Unit.cpp.
References m_dynObj.
Referenced by RemoveFromWorld(), and Player::TeleportTo().
| void Unit::RemoveAllFollowers | ( | ) |
Definition at line 9174 of file Unit.cpp.
References m_followingMe, and SetTarget().
Referenced by RemoveFromWorld().
| void Unit::RemoveAllGameObjects | ( | ) |
Definition at line 5463 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 4577 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 6449 of file Unit.cpp.
References Object::GetEntry(), BaseEntity::GetTypeId(), IsSummon(), m_Controlled, Object::ToCreature(), 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 3919 of file Unit.cpp.
References m_appliedAuras, and RemoveAura().
Referenced by _RemoveNoStackAurasDueToAura(), SpellInfo::ApplyAllSpellImmunitiesTo(), Spell::TargetInfo::DoDamageAndTriggers(), Spell::EffectRemoveAuraBySpellLabel(), RemoveArenaAuras(), RemoveAurasOnEvade(), and RemoveAurasWithMechanic().
| void Unit::RemoveAppliedAuras | ( | uint32 | spellId, |
| std::function< bool(AuraApplication const *)> const & | check, | ||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3945 of file Unit.cpp.
References m_appliedAuras, and RemoveAura().
| void Unit::RemoveAreaAurasDueToLeaveWorld | ( | ) |
Definition at line 4367 of file Unit.cpp.
References Aura::GetApplicationMap(), AuraApplication::GetTarget(), m_appliedAuras, m_ownedAuras, and RemoveAura().
Referenced by RemoveFromWorld().
| void Unit::RemoveAreaTrigger | ( | AuraEffect const * | aurEff | ) |
Definition at line 5519 of file Unit.cpp.
References m_areaTrigger.
| void Unit::RemoveAreaTrigger | ( | uint32 | spellId | ) |
Definition at line 5504 of file Unit.cpp.
References AreaTrigger::GetSpellId(), m_areaTrigger, and AreaTrigger::Remove().
Referenced by spell_dru_efflorescence::RemoveOldAreaTrigger().
| void Unit::RemoveArenaAuras | ( | ) |
Definition at line 4447 of file Unit.cpp.
References AuraApplication::GetBase(), Aura::GetSpellInfo(), SpellInfo::HasAttribute(), Aura::IsPassive(), AuraApplication::IsPositive(), RemoveAppliedAuras(), SPELL_ATTR3_ALLOW_AURA_WHILE_DEAD, SPELL_ATTR4_ALLOW_ENTERING_ARENA, and SPELL_ATTR5_REMOVE_ENTERING_ARENA.
Referenced by Player::TeleportTo().
| void Unit::RemoveAura | ( | Aura * | aur, |
| AuraRemoveMode | mode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3911 of file Unit.cpp.
References Aura::GetApplicationOfTarget(), BaseEntity::GetGUID(), Aura::IsRemoved(), and RemoveAura().
| void Unit::RemoveAura | ( | AuraApplication * | aurApp, |
| AuraRemoveMode | mode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3876 of file Unit.cpp.
References AuraApplication::_HandleEffect(), Aura::GetApplicationOfTarget(), Aura::GetAuraEffects(), AuraApplication::GetBase(), BaseEntity::GetGUID(), Aura::GetId(), AuraApplication::GetRemoveMode(), AuraApplication::HasEffect(), Aura::IsRemoved(), m_appliedAuras, and RemoveAura().
| void Unit::RemoveAura | ( | AuraApplicationMap::iterator & | i, |
| AuraRemoveMode | mode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3846 of file Unit.cpp.
References _UnapplyAura(), AuraApplication::GetBase(), Aura::GetOwner(), AuraApplication::GetRemoveMode(), and Aura::Remove().
Referenced by _EnterVehicle(), spell_monk_stagger::AddAndRefreshStagger(), spell_dru_travel_form_dummy_aura::AfterRemove(), spell_dru_travel_form::AfterRemove(), Player::ApplyArtifactPowerRank(), boss_viscidus::boss_viscidusAI::DamageTaken(), boss_drakkari_colossus::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), Player::DuelComplete(), Spell::EffectDispelMechanic(), Spell::EffectForceCast(), Spell::EffectHeal(), Battleground::EndBattleground(), GetDiseasesByCaster(), AuraEffect::HandleAuraLinked(), Aura::HandleAuraSpecificMods(), AuraEffect::HandleBreakableCCAuraProc(), deserter_commandscript::HandleDeserterRemove(), spell_rog_roll_the_bones::HandleDummy(), spell_valanar_kinetic_bomb_aura::HandleDummyTick(), spell_warl_demonic_circle_summon::HandleDummyTick(), spell_sindragosa_frost_breath::HandleInfusion(), spell_pri_sins_of_the_many::HandleOnRemove(), spell_pri_power_word_shield::HandleOnRemove(), spell_hallows_end_childrens_custome_aura::HandlePeriodic(), spell_dh_monster_rising::HandlePeriodic(), spell_torghast_uncontrolled_darkness_proc::HandleProc(), spell_gen_blood_reserve::HandleProc(), spell_mage_hot_streak::HandleProc(), quest_resizing_the_situation::HandleQuestStatusChange(), quest_northbound::HandleQuestStatusChange(), quest_finding_the_lost_expedition::HandleQuestStatusChange(), spell_warl_demonic_circle_summon::HandleRemove(), spell_dru_eclipse_dummy::HandleRemove(), spell_brewfest_dismount_ram::HandleScript(), spell_putricide_eat_ooze::HandleScript(), spell_ulduar_cancel_stone_grip::spell_ulduar_cancel_stone_gripSpellScript::HandleScript(), spell_midsummer_fling_torch_catch::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), spell_midsummer_fling_torch_triggered::HandleTriggerMissile(), IsHighestExclusiveAuraEffect(), npc_quilboar_warrior::JustEngagedWith(), npc_quilboar_geomancer::JustEngagedWith(), ModifyAuraState(), spell_brewfest_ram_fatigue::OnApply(), spell_brewfest_apple_trap::OnApply(), spell_baleroc_vital_flame::OnApply(), spell_bg_deephaul_ravine_earthen_mine_cart_ride::OnApply(), spell_riding_giant_boar_q55879::OnAuraRemoveHandler(), spell_blood_queen_vampiric_bite::OnCast(), spell_brewfest_giddyup::OnChange(), Scripts::Pandaria::TheWanderingIsle::at_cave_of_meditation::OnExit(), spell_love_is_in_the_air_romantic_picnic::OnPeriodic(), spell_anduin_wrynn_dark_zeal::OnProc(), quest_awaken_dracthyr::OnQuestStatusChange(), quest_enhanced_combat_tactics::OnQuestStatusChange(), quest_ride_of_the_scientifically_enhanced_boar::OnQuestStatusChange(), quest_the_re_deather::OnQuestStatusChange(), spell_monk_stagger_debuff_aura::OnRemove(), spell_silverpine_bond_of_the_valkyr::OnRemove(), spell_fetch_ingredient_aura::OnRemove(), spell_dh_glide_AuraScript::OnRemove(), spell_dh_glide_timer::OnRemove(), Scripts::EasternKingdoms::Vashjir::spell_vashjir_sea_legs_aura::OnRemove(), spell_dru_eclipse_dummy::OnSpellCast(), Scripts::Pandaria::TheWanderingIsle::at_singing_pools_transform_frog::OnTrigger(), at_maiden_of_virtue_rtk_sacred_ground::OnUnitExit(), at_anduin_wrynn_befouled_barrier::OnUnitExit(), areatrigger_dh_darkness::OnUnitExit(), areatrigger_pal_ashen_hallow::OnUnitExit(), BattlefieldWG::PromotePlayer(), spell_mage_alter_time_active::RemoveAlterTimeAura(), RemoveAppliedAuras(), RemoveAppliedAuras(), RemoveAreaAurasDueToLeaveWorld(), RemoveAura(), RemoveAura(), RemoveAura(), RemoveAurasByShapeShift(), RemoveAurasByType(), RemoveAurasByType(), RemoveAurasDueToItemSpell(), SceneMgr::RemoveAurasDueToSceneId(), RemoveAurasDueToSpell(), RemoveAurasWithAttribute(), RemoveAurasWithFamily(), RemoveAurasWithInterruptFlags(), spell_zuldrak_scourge_disguise::RemoveEffect(), Battleground::RemovePlayerAtLeave(), boss_pyroguard_emberseer::Reset(), boss_victor_nefarius::Reset(), npc_raz_the_crazed::npc_raz_the_crazedAI::SetData(), boss_paletress::boss_paletressAI::SetData(), boss_pyroguard_emberseer::SpellHit(), boss_viscidus::boss_viscidusAI::SpellHit(), npc_sparring_partner_enhanced_combat_training_warrior::SpellHit(), npc_sparring_partner_enhanced_combat_training_priest::SpellHit(), npc_sparring_partner_enhanced_combat_training_shaman::SpellHit(), npc_sparring_partner_enhanced_combat_training_mage::SpellHit(), npc_sparring_partner_enhanced_combat_training_warlock::SpellHit(), npc_sparring_partner_enhanced_combat_training_druid::SpellHit(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), spell_pal_hand_of_sacrifice::Split(), boss_alizabal::boss_alizabalAI::UpdateAI(), boss_gyth::UpdateAI(), boss_pyroguard_emberseer::UpdateAI(), boss_kirtonos_the_herald::UpdateAI(), npc_voljin_zulaman::npc_voljin_zulamanAI::UpdateAI(), npc_garrick_summoned_beach::UpdateAI(), npc_grimaxe_summoned_beach::UpdateAI(), Scripts::Kalimdor::Durotar::npc_voljin_garrosh_vision::UpdateAI(), Scripts::Kalimdor::Durotar::npc_voljin_thrall_vision::UpdateAI(), boss_thaddius::UpdateAI(), npc_barada::npc_baradaAI::UpdateAI(), npc_portal_eoe::UpdateAI(), npc_iron_construct::npc_iron_constructAI::UpdateAI(), Spell::UpdateChanneledTargetList(), and Player::UpdateCorruption().
| void Unit::RemoveAura | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| uint32 | reqEffMask = 0, |
||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3859 of file Unit.cpp.
References Aura::GetCasterGUID(), Aura::GetEffectMask(), m_appliedAuras, and RemoveAura().
| void Unit::RemoveAuraFromStack | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT, |
||
| uint16 | num = 1 |
||
| ) |
Definition at line 4008 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_shade_of_medivh_ceaseless_winter_periodic::HandleEffectPeriodic(), spell_putricide_gaseous_bloat::HandleExtraEffect(), spell_heartsbane_triad_aura_of_dread_movement_check::HandlePeriodic(), spell_oculus_evasive_maneuvers::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(), boss_archimonde::OnSpellCast(), at_shade_of_medivh_ceaseless_winter_jump_check::OnUnitExit(), and spell_sha_stormblast_proc::SaveCastId().
| void Unit::RemoveAurasByShapeShift | ( | ) |
Definition at line 4352 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 4145 of file Unit.cpp.
References ASSERT, Aura::GetApplicationOfTarget(), Aura::GetCasterGUID(), BaseEntity::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 3973 of file Unit.cpp.
References ASSERT, Aura::GetApplicationOfTarget(), BaseEntity::GetGUID(), m_modAuras, m_removedAurasCount, and RemoveAura().
Referenced by _EnterVehicle(), VehicleJoinEvent::Abort(), Player::ActivateTaxiPathTo(), Battleground::AddPlayer(), SpellInfo::ApplyAllSpellImmunitiesTo(), Attack(), CancelMountAura(), spell_gen_summon_tournament_mount::CheckIfLanceEquiped(), Spell::EffectTriggerSpell(), Battleground::EndBattleground(), VehicleJoinEvent::Execute(), ExitVehicle(), WorldSession::HandleAuctionBrowseQuery(), WorldSession::HandleAuctionCancelCommoditiesPurchase(), WorldSession::HandleAuctionConfirmCommoditiesPurchase(), WorldSession::HandleAuctionGetCommodityQuote(), WorldSession::HandleAuctionHelloOpcode(), WorldSession::HandleAuctionListBiddedItems(), WorldSession::HandleAuctionListBucketsByBucketKeys(), WorldSession::HandleAuctionListItemsByBucketKey(), WorldSession::HandleAuctionListItemsByItemID(), WorldSession::HandleAuctionListOwnedItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionReplicateItems(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), AuraEffect::HandleAuraModOverridePowerDisplay(), AuraEffect::HandleAuraModPowerDisplay(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraMounted(), AuraEffect::HandleAuraTransform(), WorldSession::HandleBankerActivateOpcode(), WorldSession::HandleBinderActivateOpcode(), WorldSession::HandleBlackMarketOpen(), WorldSession::HandleBuybackItem(), WorldSession::HandleCancelGrowthAuraOpcode(), WorldSession::HandleCancelModSpeedNoControlAuras(), WorldSession::HandleCancelMountAuraOpcode(), WorldSession::HandleConfirmRespecWipeOpcode(), misc_commandscript::HandleDismountCommand(), spell_brewfest_mount_transformation::HandleDummy(), spell_winter_veil_reindeer_transformation::HandleDummy(), WorldSession::HandleGossipSelectOptionOpcode(), spell_algalon_remove_phase::HandlePeriodic(), WorldSession::HandlePetitionBuy(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleRequestStabledPets(), WorldSession::HandleSaveGuildEmblem(), spell_jormungars_burning_bile::HandleScriptEffect(), WorldSession::HandleSellAllJunkItems(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSpiritHealerActivate(), WorldSession::HandleTabardVendorActivateOpcode(), WorldSession::HandleTaxiQueryAvailableNodesOpcode(), WorldSession::HandleTrainerBuySpellOpcode(), spell_gen_two_forms::HandleTransform(), WorldSession::LogoutPlayer(), Mount(), spell_rog_vanish::OnLaunchTarget(), Vehicle::RemoveAllPassengers(), RemoveBindSightAuras(), boss_faction_championsAI::RemoveCC(), RemoveCharmAuras(), Battleground::RemovePlayerAtLeave(), WorldSession::SendListInventory(), WorldSession::SendTrainerList(), SetCharmedBy(), npc_gothik_minion_baseAI::UpdateAI(), and GameObject::Use().
| void Unit::RemoveAurasDueToItemSpell | ( | uint32 | spellId, |
| ObjectGuid | castItemGuid | ||
| ) |
Definition at line 4131 of file Unit.cpp.
References m_appliedAuras, and RemoveAura().
Referenced by Player::ApplyAzeriteEssencePower(), Player::ApplyAzeriteItemMilestonePower(), Player::ApplyAzeritePower(), Player::ApplyEnchantment(), Player::ApplyEquipSpell(), and Player::ApplyItemLootedSpell().
| void Unit::RemoveAurasDueToSpell | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| uint32 | reqEffMask = 0, |
||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3992 of file Unit.cpp.
References Aura::GetCasterGUID(), Aura::GetEffectMask(), m_appliedAuras, and RemoveAura().
Referenced by Player::ActivateTalentGroup(), spell_midsummer_torch_tossing_training_practice::AfterApply(), spell_twin_valkyr_dark_essence::AfterApply(), spell_twin_valkyr_light_essence::AfterApply(), spell_zuldrak_akalis_stun::AfterApply(), spell_zuldrak_summon_escort_aura::AfterApply(), spell_exarch_maladaar_stolen_soul_dispel::AfterApply(), spell_commander_sarannis_arcane_devastation::AfterApply(), spell_sunken_temple_hex_of_jammalan_transform::AfterRemove(), spell_love_is_in_the_air_service_uniform::AfterRemove(), spell_midsummer_torch_tossing_training_practice::AfterRemove(), spell_azuremyst_isle_shadow_of_the_forest_player::AfterRemove(), spell_bjarngrim_stance_dummy::AfterRemove(), spell_thorim_aura_of_celerity::AfterRemove(), spell_fjord_worg_disguise::AfterRemove(), spell_fjord_worg_disguise_dummy::AfterRemove(), spell_zuldrak_scourge_disguise_expiring::AfterRemove(), spell_leotheras_the_blind_insidious_whisper_aura::AfterRemove(), spell_serpent_shrine_coilfang_water::AfterRemove(), spell_magtheridon_shadow_grasp_visual::AfterRemove(), spell_kaelthas_mind_control_aura::AfterRemove(), spell_bem_apexis_swiftness::AfterRemove(), spell_shadowmoon_illidari_agent_illusion::AfterRemove(), spell_terokkar_shadowy_disguise::AfterRemove(), spell_dru_lunar_inspiration::AfterRemove(), spell_dru_savage_roar_aura::AfterRemove(), spell_dru_survival_instincts::AfterRemove(), spell_item_thrallmar_and_honor_hold_favor::AfterRemove(), spell_mage_fiery_rush_aura::AfterRemove(), battleground_eye_of_the_storm::ApplyAssaultDebuffToPlayer(), battleground_twin_peaks::ApplyAssaultDebuffToPlayer(), battleground_warsong_gulch::ApplyAssaultDebuffToPlayer(), Player::ApplyAzeriteEssence(), Player::ApplyEquipSpell(), Player::ApplyItemObtainSpells(), boss_supremus::ChangePhase(), spell_sha_flame_shock_fire_nova_enabler::CheckFlameShocks(), Player::CheckTitanGripPenalty(), spell_sha_maelstrom_weapon_base::ConsumeMaelstromWeapon(), boss_apothecary_hummel::DamageTaken(), boss_muru::DamageTaken(), npc_dark_fiend::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), npc_frost_sphere::DamageTaken(), boss_lady_deathwhisper::DamageTaken(), boss_sjonnir::DamageTaken(), npc_feral_defender::DamageTaken(), boss_ingvar_the_plunderer::DamageTaken(), npc_wild_wyrm::DamageTaken(), npc_phoenix_the_eye::DamageTaken(), boss_anduin_wrynn::DamageTaken(), boss_felblood_kaelthas::DamageTaken(), Scripts::Pandaria::TheWanderingIsle::npc_li_fei_combat::DamageTaken(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::DestroyIceWall(), Player::DisablePvpRules(), boss_leymor::DoAction(), npc_barnes::DoAction(), boss_shade_of_medivh::DoAction(), npc_stone_keeper::DoAction(), npc_fire_bomb_zulaman::DoAction(), boss_temple_guardian_anhuur::DoAction(), npc_husam_tolvir_land_mine::DoAction(), npc_aqusirr_intro_lord_stormsong::DoAction(), npc_twilight_volunteer::DoAction(), boss_anub_arak::DoAction(), npc_halion_controller::DoAction(), boss_jaraxxus::DoAction(), BloodPrincesBossAI::DoAction(), npc_high_overlord_saurfang_icc::DoAction(), npc_muradin_bronzebeard_icc::DoAction(), boss_general_bjarngrim::DoAction(), npc_volkhan_molten_golem::DoAction(), boss_general_vezax::boss_general_vezaxAI::DoAction(), boss_vx_001::boss_vx_001AI::DoAction(), npc_mimiron_computer::npc_mimiron_computerAI::DoAction(), boss_yogg_saron::boss_yogg_saronAI::DoAction(), boss_anzu::DoAction(), npc_volcano::DoAction(), boss_lady_vashj::DoAction(), boss_leotheras_the_blind::DoAction(), boss_warlord_kalithresh::DoAction(), npc_frozen_core::DoAction(), npc_earthen_ring_flamecaller::DoAction(), npc_shaman_bonfire_bunny::DoAction(), boss_edna::DoAction(), boss_razorscale::DoAction(), boss_palehoof::DoAction(), PalehoofMinionsBossAI::DoAction(), boss_illidan_stormrage::DoAction(), boss_reliquary_of_souls::DoAction(), npc_headless_horseman_head::DoAction(), boss_headless_horseman::DoAction(), npc_pulsing_pumpkin::DoAction(), boss_ymiron_the_fallen_king::DoAction(), boss_ambassador_hellmaw::DoIntro(), InstanceScript::DoRemoveAurasDueToSpellOnPlayer(), Spell::DoTriggersOnSpellHit(), Spell::EffectApplyGlyph(), Spell::EffectHeal(), Spell::EffectRemoveAura(), boss_jormungarAI::Emerge(), HeartsbaneTriadSharedAI::EnterEvadeMode(), boss_felmyst::EnterPhase(), npc_unworthy_initiate::npc_unworthy_initiateAI::EventStart(), BattleExperienceEvent::Execute(), EmpyreanDomain::PlayerMoveDownEvent::Execute(), SummonScarab::Execute(), FrostBombExplosion::Execute(), ValithriaAuraRemoveEvent::Execute(), boss_terestian_illhoof::boss_terestianAI::ExecuteEvent(), boss_lady_waycrest::ExecuteEvent(), spell_sha_maelstrom_weapon_proc::ExpireMaelstromAuras(), lfg::LFGMgr::FinishDungeon(), spell_item_disco_ball_listening_to_music_check::HandleAfterCast(), spell_warr_impending_victory::HandleAfterCast(), Scripts::Pandaria::TheJadeForest::spell_cancel_blackout::HandleAfterEffectRemove(), Scripts::Pandaria::TheJadeForest::spell_rappelling_rope_aura::HandleAfterEffectRemove(), spell_dh_retaliation::HandleAfterRemove(), spell_pri_divine_image_spell_triggered::HandleAfterRemove(), spell_off_the_leash::HandleApply(), spell_illidan_remove_parasitic_shadowfiend::HandleApply(), OutdoorPvPSI::HandleAreaTrigger(), spell_mimiron_proximity_explosion::spell_mimiron_proximity_explosion_SpellScript::HandleAura(), AuraEffect::HandleAuraControlVehicle(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraMounted(), Aura::HandleAuraSpecificMods(), spell_rog_improved_garrote::HandleBuff(), boss_sister_briar::HandleClaimIris(), boss_sister_malady::HandleClaimIris(), boss_sister_solena::HandleClaimIris(), spell_putricide_choking_gas_filter::HandleDispel(), boss_sister_briar::HandleDropIris(), boss_sister_malady::HandleDropIris(), boss_sister_solena::HandleDropIris(), spell_midsummer_remove_torches::HandleDummy(), spell_pilgrims_bounty_feast_on::HandleDummy(), spell_buru_cancel_creeping_plague::HandleDummy(), spell_ahn_kahet_swarm::HandleDummy(), spell_putricide_ooze_eruption_searcher::HandleDummy(), spell_borean_tundra_magnataur_on_death_2::HandleDummy(), spell_dru_starfall_dummy::HandleDummy(), spell_item_hourglass_sand::HandleDummy(), spell_warl_random_sayaad::HandleDummy(), spell_mistress_kiss::HandleDummyTick(), spell_pri_prayer_of_mending_dummy::HandleEffectDummy(), spell_dru_pulverize::HandleEffectHit(), spell_zuldrak_quenching_mist::HandleEffectPeriodic(), spell_mage_molten_fury::HandleEffectProc(), spell_rog_shadow_focus::HandleEffectRemove(), spell_rog_stealth::HandleEffectRemove(), spell_rog_shot_in_the_dark_buff::HandleEffectRemove(), boss_felmyst::HandleFlightSequence(), boss_skarmorak::HandleFortifiedShellEnded(), gm_commandscript::HandleGMVisibleCommand(), spell_warr_victory_rush::HandleHeal(), spell_mage_heat_shimmer_remove::HandleHit(), spell_ymiron_the_fallen_king_arise_fallen_selector::HandleHit(), spell_sha_feral_lunge_damage::HandleHit(), spell_telash_absolute_zero_damage::HandleHitTarget(), Scripts::Pandaria::TheJadeForest::spell_the_mission_scene_end::HandleHitTarget(), boss_anduin_wrynn::HandleIntroduction(), spell_rog_leeching_poison::HandleOnRemove(), spell_hun_trailblazer::HandleOnRemove(), OPvPCapturePointZM_Graveyard::HandleOpenGo(), spell_give_me_sight_beyond_sight_periodic::HandlePeriodic(), spell_algalon_phase_punch::HandlePeriodic(), spell_volkhan_cool_down::HandlePeriodicDummyEffect(), spell_monk_jade_walk::HandlePeriodicTick(), OutdoorPvPHP::HandlePlayerLeaveZone(), OutdoorPvPNA::HandlePlayerLeaveZone(), OutdoorPvPSI::HandlePlayerLeaveZone(), OutdoorPvPTF::HandlePlayerLeaveZone(), OutdoorPvPZM::HandlePlayerLeaveZone(), spell_item_anger_capacitor< StackAmount >::spell_item_anger_capacitor_AuraScript< Stacks >::HandleProc(), spell_item_trinket_stack::spell_item_trinket_stack_AuraScript::HandleProc(), spell_eredar_twins_dark_flame_aura_shadow::HandleProc(), spell_eredar_twins_dark_flame_aura_fire::HandleProc(), spell_mage_pyrotechnics::HandleProc(), spell_hun_trailblazer::HandleProc(), spell_warr_kill_or_be_killed_target::HandleProc(), spell_pri_insidious_ire::HandleProc(), battleground_silvershard_mines::HandleProgressEvent(), battleground_deephaul_ravine::HandleProgressEvent(), spell_icc_harvest_blight_specimen::HandleQuestComplete(), spell_hallow_end_candy_pirate::HandleRemove(), spell_midsummer_test_ribbon_pole_channel::HandleRemove(), spell_sindragosa_ice_tomb_trap::HandleRemove(), spell_gen_burning_depths_necrolyte_image::HandleRemove(), spell_rog_killing_spree_aura::HandleRemove(), spell_dru_elunes_favored::HandleRemove(), spell_pilgrims_bounty_well_fed::HandleScript(), spell_baleroc_countdown_proximity_check::HandleScript(), spell_putricide_clear_aura_effect_value::HandleScript(), spell_the_lich_king_jump::HandleScript(), spell_the_lich_king_jump_remove_aura::HandleScript(), spell_icc_harvest_blight_specimen::HandleScript(), spell_vexallus_clear_energy_feedback::HandleScript(), spell_brutallus_stomp::HandleScript(), spell_love_is_in_the_air_cancel_service_uniform::HandleScript(), spell_love_is_in_the_air_perfume_cologne_immune::HandleScript(), spell_pilgrims_bounty_turkey_tracker::HandleScript(), spell_anhuur_disable_beacon_beams::HandleScript(), spell_aqusirr_surging_rush::HandleScript(), spell_halion_clear_debuffs::HandleScript(), spell_gal_darah_clear_puncture::HandleScript(), spell_festergut_pungent_blight::HandleScript(), spell_festergut_gastric_bloat::HandleScript(), spell_putricide_unbound_plague::HandleScript(), spell_putricide_eat_ooze::HandleScript(), spell_rotface_little_ooze_combine::HandleScript(), spell_rotface_large_ooze_combine::HandleScript(), spell_rotface_large_ooze_buff_combine::HandleScript(), spell_generic_remove_empowered_blood::HandleScript(), spell_borean_tundra_weakness_to_lightning_cancel_aura::HandleScript(), spell_borean_tundra_weakness_to_lightning_on_quest_complete::HandleScript(), spell_borean_tundra_strip_auras::HandleScript(), spell_dragonblight_cancel_banshees_magic_mirror::HandleScript(), spell_dragonblight_cancel_scarlet_raven_priest_image::HandleScript(), spell_dragonblight_scrape_corrosive_spit::HandleScript(), spell_dragonblight_focus_on_the_beach_quest_completion_script::HandleScript(), spell_dragonblight_atop_the_woodlands_quest_completion_script::HandleScript(), spell_dragonblight_end_of_the_line_quest_completion_script::HandleScript(), spell_grizzly_hills_ganjo_ressurection::HandleScript(), spell_icecrown_through_the_eye_kill_credit_to_master::HandleScript(), spell_icecrown_forcecast_bridenbrad_ascension::HandleScript(), spell_sholazar_sputum_collected::HandleScript(), spell_sholazar_lifeblood_dummy::HandleScript(), spell_storm_peaks_free_brunnhildar_prisoner::HandleScript(), spell_zuldrak_remove_akalis_stun::HandleScript(), spell_leotheras_the_blind_clear_consuming_madness::HandleScript(), spell_gruul_shatter::HandleScript(), spell_remove_kargath_executioner::HandleScript(), spell_kaelthas_explodes::HandleScript(), spell_bem_dispelling_analysis::HandleScript(), spell_terokkar_cancel_shadowy_disguise::HandleScript(), spell_pet_gen_lich_pet_aura_remove::HandleScript(), spell_gen_cancel_aura::HandleScript(), spell_volkaal_reanimate::HandleScript(), spell_deliver_stolen_horse::HandleScriptEffect(), spell_ethereal_pet_aura_remove::HandleScriptEffect(), npc_headless_horseman_head::HandleStartPhase(), misc_commandscript::HandleUnAuraCommand(), misc_commandscript::HandleUnFreezeCommand(), boss_valithria_dreamwalker::HealReceived(), npc_underbog_mushroom::InitializeAI(), npc_shard_of_torment::IsSummonedBy(), npc_bg_deephaul_cavern_mine_cart::JustAppeared(), boss_edna::JustAppeared(), dummy_dragonAI::JustDied(), npc_acolyte_of_vesperon::JustDied(), npc_gunship::npc_gunshipAI::JustDied(), npc_frostwing_ymirjar_vrykul::JustDied(), boss_high_astromancer_solarian::JustDied(), npc_anduin_wrynn_lost_soul::JustDied(), npc_pure_energy::JustDied(), npc_inner_demon::JustDied(), npc_blazing_monstrosity::npc_blazing_monstrosityAI::JustEngagedWith(), npc_matron_bryndle::JustEngagedWith(), npc_slad_ran_constrictor::JustEngagedWith(), npc_angered_soul_fragment::JustEngagedWith(), boss_ymiron_the_fallen_king::JustEngagedWith(), boss_kelris::JustEngagedWith(), boss_dark_shaman_koranthal::JustEngagedWith(), boss_jedoga_shadowseeker::JustEngagedWith(), boss_bronjahm::JustEngagedWith(), boss_lady_deathwhisper::JustEngagedWith(), boss_nexus_commanders::JustEngagedWith(), boss_mimiron::boss_mimironAI::JustEngagedWith(), npc_bone_spike::KilledUnit(), Player::LearnQuestRewardedSpells(), spell_pri_mind_devourer_buff::ModifyAuraValueAndRemoveBuff(), npc_anubarak_spike::MoveInLineOfSight(), boss_general_bjarngrim::MovementInform(), boss_headless_horseman::MovementInform(), boss_doomwalker_anniversary::MovementInform(), boss_high_priestess_azil::boss_high_priestess_azilAI::MovementInform(), boss_garfrost::MovementInform(), npc_ball_of_flame::MovementInform(), boss_doomwalker::MovementInform(), npc_jayce_darkweaver_invasion_begins::MovementInform(), npc_allari_the_souleater_invasion_begins::MovementInform(), npc_korvas_bloodthorn_invasion_begins::MovementInform(), npc_sevis_brightflame_invasion_begins::MovementInform(), npc_cyana_nightglaive_invasion_begins::MovementInform(), npc_frost_sphere::MovementInform(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::MovementInform(), npc_grauf::MovementInform(), npc_illidan_db_target::MovementInform(), boss_telash_greywing::MovementInform(), npc_anubarak_anub_ar_assassin::MovementInform(), spell_moroes_garrote_remove::OnApply(), spell_amanitar_potent_fungus::OnApply(), spell_halion_twilight_realm_handlers::OnApply(), spell_systems_shutdown::spell_systems_shutdown_AuraScript::OnApply(), spell_arcatraz_death_count::OnApply(), battleground_deephaul_ravine::OnCaptureFlag(), battleground_eye_of_the_storm::OnCaptureFlag(), battleground_twin_peaks::OnCaptureFlag(), battleground_warsong_gulch::OnCaptureFlag(), boss_skarmorak::OnChannelFinished(), npc_eye_of_acherus::OnCharmed(), npc_redridge_subdued_canyon_ettin::OnDespawn(), spell_warl_soul_swap_exhale::OnEffectHit(), Scripts::Kalimdor::Durotar::at_hellscreams_fist_gunship::OnExit(), Scripts::Pandaria::TheWanderingIsle::at_singing_pools_transform_base< CurseSpellID >::OnExit(), Scripts::Pandaria::TheWanderingIsle::at_singing_pools_transform_frog::OnExit(), battleground_temple_of_kotmogu::OnFlagDropped(), battleground_twin_peaks::OnFlagStateChange(), battleground_warsong_gulch::OnFlagStateChange(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::OnGossipHello(), npc_essence_of_twin::OnGossipHello(), Player::OnGossipSelect(), lfg::LFGPlayerScript::OnMapChanged(), movie_anduin_final::OnMovieComplete(), spell_love_is_in_the_air_romantic_picnic::OnPeriodic(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), spell_bg_defending_cart_aura_AuraScript::OnPeriodic(), spell_illidan_demon_transform2::OnPeriodic(), spell_kaelthas_gaining_power::OnPeriodic(), BattlefieldWG::OnPlayerLeaveWar(), BattlefieldWG::OnPlayerLeaveZone(), battleground_alterac_valley::OnPlayerLeft(), quest_the_cost_of_war::OnQuestStatusChange(), quest_blaze_of_glory::OnQuestStatusChange(), at_waycrest_manor_organ_missiles::OnRemove(), spell_kalecgos_spectral_realm_aura::OnRemove(), spell_baleroc_countdown::OnRemove(), spell_halion_combustion_consumption::OnRemove(), spell_halion_twilight_realm_handlers::OnRemove(), spell_jormungars_paralytic_toxin::OnRemove(), spell_icc_empowered_blood::OnRemove(), spell_icc_empowered_blood_3::OnRemove(), spell_algalon_phase_punch::OnRemove(), spell_load_into_catapult::spell_load_into_catapult_AuraScript::OnRemove(), spell_yogg_saron_sanity::spell_yogg_saron_sanity_AuraScript::OnRemove(), spell_palehoof_crazed::OnRemove(), Scripts::Pandaria::TheWanderingIsle::spell_flame_spout::OnRemove(), spell_dru_glyph_of_stars::OnRemove(), spell_gen_vehicle_control_link::OnRemove(), spell_gen_face_rage::OnRemove(), spell_hun_aspect_of_the_turtle::OnRemove(), spell_item_anger_capacitor< StackAmount >::spell_item_anger_capacitor_AuraScript< Stacks >::OnRemove(), spell_item_power_circle::OnRemove(), spell_item_shadowmourne::OnRemove(), spell_item_shadowmourne_soul_fragment::OnRemove(), spell_item_trinket_stack::spell_item_trinket_stack_AuraScript::OnRemove(), spell_item_water_strider::OnRemove(), spell_dh_cycle_of_hatred_talent::OnRemove(), spell_dh_fel_flame_fortification::OnRemove(), spell_dh_painbringer_reduce_damage::OnRemove(), spell_dru_incarnation::OnRemove(), spell_sha_spirit_wolf::OnRemove(), spell_pilgrims_bounty_a_serving_of::OnRemove(), spell_wintergrasp_tenacity_refresh::OnRemove(), spell_gen_impatient_mind::OnRemove(), spell_item_talisman_of_ascendance::OnRemove(), spell_item_jom_gabbar::OnRemove(), spell_item_battle_trance::OnRemove(), spell_item_world_queller_focus::OnRemove(), spell_item_brutal_kinship::OnRemove(), item_tainted_core::OnRemove(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveStun(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), scene_dark_portal_run_away::OnSceneComplete(), scene_bleeding_hollow_holdout::OnSceneComplete(), npc_descend_into_madness::npc_descend_into_madnessAI::OnSpellClick(), boss_hodir::OnSpellStart(), spell_exploding_orb_hasty_grow::OnStackChange(), spell_item_shadowmourne_soul_fragment::OnStackChange(), battleground_silvershard_mines::OnTrackSwitched(), at_the_candle_king_candlelight::OnUnitEnter(), at_lord_stormsong_waken_the_void::OnUnitEnter(), at_anduin_wrynn_beacon_of_hope::OnUnitEnter(), at_anduin_wrynn_blasphemy::OnUnitEnter(), at_bg_temple_of_kotmogu_small_area::OnUnitExit(), at_bg_temple_of_kotmogu_medium_area::OnUnitExit(), at_king_deepbeard_call_the_seas::OnUnitExit(), at_rokmora_choking_dust::OnUnitExit(), at_rokmora_crystalline_ground::OnUnitExit(), at_altar_altercation_reach_altar::OnUnitExit(), at_telash_greywing_vault_rune::OnUnitExit(), at_mana_devourer_energy_void::OnUnitExit(), at_shade_of_medivh_ceaseless_winter::OnUnitExit(), at_shade_of_medivh_flame_wreath::OnUnitExit(), at_the_curator_rtk_power_discharge::OnUnitExit(), at_azhiccar_digestive_spittle::OnUnitExit(), at_orator_krix_vizk_chains_of_oppression::OnUnitExit(), at_orator_krix_vizk_lingering_influence::OnUnitExit(), at_the_candle_king_molten_wax::OnUnitExit(), at_the_candle_king_candlelight::OnUnitExit(), at_tidesage_council_reinforcing_ward::OnUnitExit(), at_tidesage_council_swiftness_ward_boss::OnUnitExit(), at_tidesage_council_swiftness_ward_player::OnUnitExit(), at_heartsbane_triad_aura_of_apathy::OnUnitExit(), at_heartsbane_triad_aura_of_dread::OnUnitExit(), at_heartsbane_triad_aura_of_thorns::OnUnitExit(), at_waycrest_manor_wildfire::OnUnitExit(), Scripts::QuelThalas::MurderRow::KystiaManaheart::at_kystia_manaheart_fel_spray::OnUnitExit(), at_anduin_wrynn_hopelessness::OnUnitExit(), at_dk_death_and_decay::OnUnitExit(), at_hun_binding_shot::OnUnitExit(), at_hun_flare::OnUnitExit(), areatrigger_hun_tar_trap::OnUnitExit(), at_mage_meteor_burn::OnUnitExit(), areatrigger_pal_consecration::OnUnitExit(), areatrigger_sha_arctic_snowstorm::OnUnitExit(), at_volkaal_rapid_decay::OnUnitExit(), at_kings_rest_molten_gold::OnUnitExit(), conversation_an_unlikely_informant::OnUpdate(), conversation_kings_rest_intro::OnUpdate(), spell_dru_new_moon::OverrideMoon(), npc_constrictor_tentacle::npc_constrictor_tentacleAI::PassengerBoarded(), npc_tournament_mount::npc_tournament_mountAI::PassengerBoarded(), SmartScript::ProcessAction(), spell_gen_defend::RefreshVisualShields(), spell_sha_elemental_weapons::RemoveAllBuffs(), spell_mage_arcane_charge_clear::RemoveArcaneCharge(), battleground_eye_of_the_storm::RemoveAssaultDebuffFromPlayer(), battleground_twin_peaks::RemoveAssaultDebuffFromPlayer(), battleground_warsong_gulch::RemoveAssaultDebuffFromPlayer(), spell_teron_gorefiend_shadow_of_death_remove::RemoveAuras(), BattlefieldTB::RemoveAurasFromPlayer(), BattlefieldWG::RemoveAurasFromPlayer(), boss_festergut::RemoveBlight(), spell_warl_health_funnel::RemoveEffect(), spell_warl_channel_demonfire_activator::RemoveEffect(), RemoveGameObjectImpl(), boss_najentus::RemoveImpalingSpine(), spell_heartsbane_triad_drop_the_iris::RemoveIris(), spell_shirrak_inhibit_magic::RemoveOldAura(), boss_prince_taldaram::RemovePrison(), boss_keristrasza::RemovePrison(), Player::RemoveSpecializationSpells(), Player::RemoveSpell(), Pet::removeSpell(), spell_gen_defend::RemoveVisualShields(), boss_baroness_anastari::Reset(), boss_temple_guardian_anhuur::Reset(), boss_eye_of_cthun::eye_of_cthunAI::Reset(), boss_cthun::cthunAI::Reset(), boss_sartharion::Reset(), npc_shadron::Reset(), boss_deathbringer_saurfang::Reset(), boss_festergut::Reset(), boss_lord_marrowgar::Reset(), npc_frostwing_ymirjar_vrykul::Reset(), boss_elder_brightleaf::boss_elder_brightleafAI::Reset(), boss_elder_stonebark::boss_elder_stonebarkAI::Reset(), boss_elder_ironbranch::boss_elder_ironbranchAI::Reset(), npc_angered_soul_fragment::Reset(), boss_hydross_the_unstable::Reset(), boss_taerar::boss_taerarAI::Reset(), boss_volazj::ResetPlayersPhaseMask(), Player::ResurrectPlayer(), spell_volkaal_soul_anchor::SelectTotem(), Player::SendQuestUpdate(), Player::SetAreaSpiritHealer(), OPvPCapturePointZM_Graveyard::SetBeaconState(), boss_earthrager_ptah::SetData(), npc_sir_thomas::SpellHit(), npc_omen::SpellHit(), boss_buru::SpellHit(), boss_anub_arak::SpellHit(), boss_gal_darah::SpellHit(), boss_moorabi::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), npc_akama_shade::SpellHit(), boss_najentus::SpellHit(), boss_ahune::SpellHit(), boss_high_botanist_freywinn::SpellHit(), npc_infernal_attacker::npc_infernal_attackerAI::SpellHit(), npc_sporecaller_zancha_musashitake::SpellHit(), npc_troll_volunteer::SpellHit(), boss_ossirian::boss_ossirianAI::SpellHit(), boss_sister_svalna::SpellHit(), boss_felblood_kaelthas::SpellHitTarget(), boss_festergut::SpellHitTarget(), npc_malformed_ooze::SpellHitTarget(), npc_unstable_sun_beam::npc_unstable_sun_beamAI::SpellHitTarget(), boss_headless_horseman::StartPhase(), boss_jormungarAI::Submerge(), boss_ichoron::SummonedCreatureDespawn(), boss_moam::SummonedCreatureDies(), boss_garothi_worldbreaker::SummonedCreatureDies(), boss_netherspite::boss_netherspiteAI::SwitchToBanishPhase(), boss_netherspite::boss_netherspiteAI::SwitchToPortalPhase(), boss_aqusirr::ToggleSplit(), at_ds_pipe_knockback::Trigger(), spell_sha_thorims_invocation_trigger::TriggerLightningSpell(), npc_rokmora_navarrogg_intro::TriggerRokmoraIntro(), npc_kings_rest_shadow_of_zul::TriggerSerpentBossEvent(), AreaTrigger::UndoActions(), Totem::UnSummon(), boss_ioc_horde_alliance::UpdateAI(), boss_amalgam_of_souls::UpdateAI(), boss_telash_greywing::UpdateAI(), boss_chromaggus::UpdateAI(), boss_ragnaros::UpdateAI(), boss_moroes::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), boss_shade_of_medivh::UpdateAI(), boss_the_curator_rtk::UpdateAI(), npc_eye_of_acherus::UpdateAI(), npc_koltira_deathweaver::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_headless_horseman_head::UpdateAI(), boss_headless_horseman::UpdateAI(), boss_armsmaster_harlan::UpdateAI(), boss_baroness_anastari::UpdateAI(), npc_madrigosa::UpdateAI(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::UpdateAI(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), npc_medivh_bm::UpdateAI(), npc_husam_tolvir_land_mine::UpdateAI(), boss_slagmaw::UpdateAI(), boss_glutton::UpdateAI(), boss_buru::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_draenei_survivor::npc_draenei_survivorAI::UpdateAI(), boss_lord_stormsong_intro_npc< ConvoIntroSpellId, ConvoOutroSpellId >::UpdateAI(), npc_rock_borer::npc_rock_borerAI::UpdateAI(), boss_high_priestess_azil::boss_high_priestess_azilAI::UpdateAI(), npc_gravity_well::npc_gravity_wellAI::UpdateAI(), npc_lava_fissure::npc_lava_fissureAI::UpdateAI(), boss_volazj::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_prince_taldaram::UpdateAI(), boss_anubarak_trial::UpdateAI(), npc_nerubian_burrower::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), boss_professor_putricide::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), boss_anomalus::UpdateAI(), boss_magus_telestra::UpdateAI(), boss_loken::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_feral_defender::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), boss_elder_brightleaf::boss_elder_brightleafAI::UpdateAI(), npc_healthy_spore::npc_healthy_sporeAI::UpdateAI(), npc_eonars_gift::npc_eonars_giftAI::UpdateAI(), boss_hodir::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), boss_razorscale::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), boss_anzu::UpdateAI(), npc_akama_shade::UpdateAI(), boss_doomwalker::UpdateAI(), boss_hydross_the_unstable::UpdateAI(), boss_leotheras_the_blind::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_swamplord_muselek::UpdateAI(), boss_vazruden_the_herald::UpdateAI(), boss_magtheridon::UpdateAI(), npc_warden_mellichar::UpdateAI(), boss_laj::UpdateAI(), boss_alar::UpdateAI(), boss_kaelthas::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::UpdateAI(), boss_taerar::boss_taerarAI::UpdateAI(), npc_crok_scourgebane::UpdateEscortAI(), UpdateLiquidStatusOnPositionChange(), boss_archaedas::UpdateOutOfCombatEvents(), spell_item_amalgams_seventh_spine::UpdateSpecAura(), boss_vazruden_the_herald::UpdateSpecialEvents(), Player::UpdateWarModeAuras(), boss_guarm::WaypointPathEnded(), npc_earthen_ring_flamecaller::WaypointPathEnded(), boss_the_golden_serpent::WaypointPathEnded(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), and npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached().
| void Unit::RemoveAurasDueToSpellByDispel | ( | uint32 | spellId, |
| uint32 | dispellerSpellId, | ||
| ObjectGuid | casterGUID, | ||
| WorldObject * | dispeller, | ||
| uint8 | chargesRemoved = 1 |
||
| ) |
Definition at line 4025 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_REMOVES_CHARGES.
Referenced by Spell::EffectDispel().
| void Unit::RemoveAurasDueToSpellBySteal | ( | uint32 | spellId, |
| ObjectGuid | casterGUID, | ||
| WorldObject * | stealer, | ||
| int32 | stolenCharges = 1 |
||
| ) |
Definition at line 4053 of file Unit.cpp.
References AURA_REMOVE_BY_ENEMY_SPELL, Aura::GetAuraEffects(), Aura::GetCastDifficulty(), Aura::GetCaster(), Aura::GetCasterGUID(), Aura::GetCastId(), Aura::GetCharges(), Aura::GetDuration(), Aura::GetId(), Aura::GetMaxDuration(), GetSingleCastAuras(), Aura::GetSpellInfo(), SpellInfo::HasAttribute(), IN_MILLISECONDS, Aura::IsSingleTarget(), m_ownedAuras, MINUTE, Aura::ModCharges(), Aura::ModStackAmount(), AuraCreateInfo::SetBaseAmount(), AuraCreateInfo::SetCasterGUID(), Aura::SetIsSingleTarget(), AuraCreateInfo::SetStackAmount(), SPELL_ATTR7_DISPEL_REMOVES_CHARGES, Object::ToUnit(), Aura::TryRefreshStackOrCreate(), and Aura::UnregisterSingleTarget().
Referenced by Spell::EffectStealBeneficialBuff().
| void Unit::RemoveAurasOnEvade | ( | ) |
Definition at line 4461 of file Unit.cpp.
References AuraApplication::GetBase(), IsCharmedOwnedByPlayerOrPlayer(), RemoveAppliedAuras(), RemoveOwnedAuras(), SPELL_ATTR1_AURA_STAYS_AFTER_COMBAT, 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 4165 of file Unit.cpp.
References flags, SpellInfo::HasAttribute(), m_appliedAuras, and RemoveAura().
Referenced by Player::UpdateIndoorsOutdoorsAuras().
| void Unit::RemoveAurasWithFamily | ( | SpellFamilyNames | family, |
| flag128 const & | familyFlag, | ||
| ObjectGuid | casterGUID | ||
| ) |
Definition at line 4294 of file Unit.cpp.
References Aura::GetCasterGUID(), Aura::GetSpellInfo(), m_appliedAuras, RemoveAura(), SpellInfo::SpellFamilyFlags, and SpellInfo::SpellFamilyName.
Referenced by Aura::HandleAuraSpecificMods().
| template TC_GAME_API void Unit::RemoveAurasWithInterruptFlags | ( | InterruptFlags | flag, |
| SpellInfo const * | source = nullptr |
||
| ) |
Definition at line 4259 of file Unit.cpp.
References AURA_REMOVE_BY_INTERRUPT, CURRENT_CHANNELED_SPELL, Aura::GetId(), Aura::GetSpellInfo(), SpellInfo::HasAuraInterruptFlag(), HasInterruptFlag(), SpellInfo::Id, InterruptSpell(), IsInterruptFlagIgnoredForSpell(), m_currentSpells, m_interruptableAuras, m_removedAurasCount, RemoveAura(), SPELL_STATE_CHANNELING, and UpdateInterruptMask().
Referenced by Spell::_cast(), _ExitVehicle(), Player::ActivateTalentGroup(), Map::AddPlayerToMap(), Player::AddTalent(), AddToWorld(), SpellInfo::ApplyAllSpellImmunitiesTo(), AtEndOfEncounter(), AtEnterCombat(), AtExitCombat(), AtStartOfEncounter(), AttackerStateUpdate(), AtTargetAttacked(), Player::BuildPlayerRepop(), DealDamage(), Dismount(), Player::DuelComplete(), Spell::EffectApplyGlyph(), VehicleJoinEvent::Execute(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraTransform(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleLootOpcode(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleModStealth(), WorldSession::HandleMovementOpcode(), WorldSession::HandlePlayerLogin(), WorldSession::HandleTextEmoteOpcode(), WorldSession::HandleTransmogOutfitNew(), WorldSession::HandleTransmogOutfitUpdateInfo(), WorldSession::HandleTransmogOutfitUpdateSituations(), WorldSession::HandleTransmogOutfitUpdateSlots(), InterruptMovementBasedAuras(), Mount(), battleground_eye_of_the_storm::OnCaptureFlag(), battleground_twin_peaks::OnCaptureFlag(), battleground_warsong_gulch::OnCaptureFlag(), battleground_eye_of_the_storm::OnFlagStateChange(), Spell::PreprocessSpellHit(), Player::ProcessItemCast(), RemoveFromWorld(), Battleground::RemovePlayerAtLeave(), Player::SetPetSlot(), SetSheath(), SetStandState(), Player::StartTaxiMovement(), Player::SummonIfPossible(), Player::TeleportTo(), Spell::update(), UpdateLiquidStatusOnPositionChange(), UpdatePosition(), and Player::UpdateWarModeAuras().
| void Unit::RemoveAurasWithMechanic | ( | uint64 | mechanicMaskToRemove, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT, |
||
| uint32 | exceptSpellId = 0, |
||
| bool | withEffectMechanics = false |
||
| ) |
Definition at line 4320 of file Unit.cpp.
References AuraApplication::GetBase(), AuraApplication::GetEffectMask(), BaseEntity::GetGUID(), Aura::GetId(), Aura::GetSpellInfo(), SpellInfo::GetSpellMechanicMaskByEffectMask(), SpellInfo::Mechanic, RemoveAppliedAuras(), and UI64LIT.
Referenced by SpellInfo::ApplyAllSpellImmunitiesTo(), and RemoveMovementImpairingAuras().
| void Unit::RemoveBindSightAuras | ( | ) |
Definition at line 6750 of file Unit.cpp.
References RemoveAurasByType(), and SPELL_AURA_BIND_SIGHT.
Referenced by RemoveFromWorld().
| void Unit::RemoveChannelObject | ( | ObjectGuid | guid | ) |
Definition at line 3056 of file Unit.cpp.
References UF::UnitData::ChannelObjects, m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), and BaseEntity::RemoveDynamicUpdateFieldValue().
| void Unit::RemoveCharmAuras | ( | ) |
Definition at line 6755 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 12033 of file Unit.cpp.
References _oldFactionId, ApplyControlStatesIfNeeded(), ASSERT, AttackStop(), CastStop(), CHARM_TYPE_CHARM, CHARM_TYPE_CONVERT, CHARM_TYPE_POSSESS, CHARM_TYPE_VEHICLE, CLASS_WARLOCK, ClearUnitState(), CREATURE_TYPE_DEMON, DeleteCharmInfo(), GetAI(), GetCharmer(), GetCharmInfo(), GetClass(), Creature::GetCreatureTemplate(), GetFirstControlled(), BaseEntity::GetGUID(), GetMotionMaster(), BaseEntity::GetTypeId(), HasUnitState(), MotionMaster::InitializeDefault(), IsCharmed(), IsGuardian(), IsOnVehicle(), BaseEntity::IsPlayer(), IsVehicle(), LastCharmerGUID, m_combatManager, WorldObject::m_movementInfo, MOVEMENTFLAG_MASK_MOVING, MOVEMENTFLAG_MASK_TURNING, MovementInfo::RemoveMovementFlag(), RemoveUnitFlag(), RestoreFaction(), CombatManager::RevalidateCombat(), ScheduleAIChange(), Player::SendRemoveControlBar(), SetCharm(), SetClass(), Player::SetClientControl(), SetFaction(), CharmInfo::SetPetNumber(), StopMoving(), TC_LOG_ERROR, Object::ToCreature(), Object::ToPlayer(), Position::ToString(), CreatureTemplate::type, TYPEID_PLAYER, TYPEID_UNIT, CreatureTemplate::unit_class, UNIT_FLAG_POSSESSED, UNIT_FLAG_REMOVE_CLIENT_CONTROL, and UNIT_STATE_POSSESSED.
Referenced by AuraEffect::HandleCharmConvert(), AuraEffect::HandleModCharm(), AuraEffect::HandleModPossess(), AuraEffect::HandleModPossessPet(), RemoveFromWorld(), Vehicle::RemovePassenger(), and CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadResetScript().
| void Unit::RemoveDynObject | ( | uint32 | spellId | ) |
Definition at line 5348 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 10309 of file Unit.cpp.
References ABORT, ASSERT, ExitAllAreaTriggers(), ExitVehicle(), GetAI(), GetCharmedGUID(), GetCharmerGUID(), Object::GetEntry(), BaseEntity::GetGUID(), WorldObject::GetOwner(), IsAreaSpiritHealer(), IsCharmed(), BaseEntity::IsInWorld(), IsVehicle(), LeaveWorld, m_duringRemoveFromWorld, RemoveAllAreaTriggers(), RemoveAllControlled(), RemoveAllDynObjects(), RemoveAllFollowers(), RemoveAllGameObjects(), RemoveAreaAurasDueToLeaveWorld(), RemoveAurasWithInterruptFlags(), RemoveBindSightAuras(), RemoveCharmAuras(), RemoveCharmedBy(), WorldObject::RemoveFromWorld(), RemoveNotOwnSingleTargetAuras(), RemoveVehicleKit(), TC_LOG_FATAL, Object::ToCreature(), UnitDespawn, 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 5436 of file Unit.cpp.
References BaseEntity::GetGUID(), GameObject::GetOwnerGUID(), m_gameObj, and RemoveGameObjectImpl().
Referenced by Spell::cancel(), npc_death_knight_initiate::npc_death_knight_initiateAI::DamageTaken(), Spell::EffectSummonObject(), AuraEffect::HandleAuraActAsControlZone(), 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 5446 of file Unit.cpp.
References m_gameObj, and RemoveGameObjectImpl().
|
protected |
Definition at line 5406 of file Unit.cpp.
References Creature::AI(), GameObject::Delete(), ObjectGuid::Empty, BaseEntity::GetGUID(), WorldObject::GetMap(), GetSpellHistory(), GameObject::GetSpellId(), BaseEntity::GetTypeId(), IsAIEnabled(), SpellInfo::IsCooldownStartedOnEvent(), m_ObjectSlot, RemoveAurasDueToSpell(), SpellHistory::SendCooldownEvent(), GameObject::SetOwnerGUID(), GameObject::SetRespawnTime(), sSpellMgr, CreatureAI::SummonedGameobjectDespawn(), Object::ToCreature(), and TYPEID_UNIT.
Referenced by RemoveAllGameObjects(), RemoveGameObject(), and RemoveGameObject().
| void Unit::RemoveInertia | ( | int32 | id | ) |
Definition at line 14279 of file Unit.cpp.
References BaseEntity::GetGUID(), GetPlayerMovingMe(), MovementInfo::inertia, WorldPackets::Movement::MoveRemoveInertia::InertiaID, WorldPackets::Movement::MoveUpdateRemoveInertia::InertiaID, m_movementCounter, WorldObject::m_movementInfo, WorldPackets::Movement::MoveRemoveInertia::MoverGUID, WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveRemoveInertia::SequenceIndex, WorldPackets::Movement::MoveUpdateRemoveInertia::Status, WorldPackets::Movement::MoveRemoveInertia::Write(), and WorldPackets::Movement::MoveUpdateRemoveInertia::Write().
| void Unit::RemoveMovementForce | ( | ObjectGuid | id | ) |
Definition at line 14163 of file Unit.cpp.
References _movementForces, BaseEntity::GetGUID(), GetPlayerMovingMe(), WorldPackets::Movement::MoveRemoveMovementForce::ID, m_movementCounter, WorldObject::m_movementInfo, WorldPackets::Movement::MoveRemoveMovementForce::MoverGUID, WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveRemoveMovementForce::SequenceIndex, WorldPackets::Movement::MoveUpdateRemoveMovementForce::Status, WorldPackets::Movement::MoveUpdateRemoveMovementForce::TriggerGUID, WorldPackets::Movement::MoveRemoveMovementForce::Write(), and WorldPackets::Movement::MoveUpdateRemoveMovementForce::Write().
Referenced by at_leymor_arcane_eruption::OnUnitExit(), at_azhiccar_devour_force::OnUnitExit(), and at_aqusirr_undertow::OnUnitExit().
| void Unit::RemoveMovementImpairingAuras | ( | bool | withRoot | ) |
Definition at line 4312 of file Unit.cpp.
References AURA_REMOVE_BY_DEFAULT, MECHANIC_ROOT, MECHANIC_SNARE, and RemoveAurasWithMechanic().
Referenced by Spell::EffectTriggerSpell(), spell_hun_posthaste::HandleAfterCast(), spell_pri_phantasm::HandleEffectHit(), spell_monk_tigers_lust::HandleRemoveImpairingAuras(), spell_warr_avatar::HandleRemoveImpairingAuras(), and spell_gen_remove_impairing_auras::HandleScriptEffect().
| void Unit::RemoveNotOwnSingleTargetAuras | ( | bool | onPhaseChange = false | ) |
Definition at line 4177 of file Unit.cpp.
References Aura::GetCaster(), Aura::GetCasterGUID(), BaseEntity::GetGUID(), GetSingleCastAuras(), Aura::GetUnitOwner(), WorldObject::InSamePhase(), Aura::IsSingleTarget(), m_ownedAuras, Aura::Remove(), and RemoveOwnedAura().
Referenced by PhasingHandler::OnConditionChange(), and RemoveFromWorld().
|
inline |
Definition at line 1013 of file Unit.h.
References flags, m_unitData, and UF::UnitData::NpcFlags.
Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), boss_victor_nefarius::BeginEvent(), boss_vaelastrasz::BeginSpeech(), npc_thalorien_dawnseeker::DoAction(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::DoAction(), npc_brann_bronzebeard_anraphet::DoAction(), Scripts::KhazAlgar::CampaignsVisionsOfAShadowedSun::npc_vereesa_windrunner_oztan_isle_private::DoAction(), npc_high_overlord_saurfang_icc::DoAction(), npc_muradin_bronzebeard_icc::DoAction(), npc_akama_illidan::DoAction(), VehicleJoinEvent::Execute(), quest_scout_chopper::HandleQuestStatusChange(), spell_deliver_stolen_horse::HandleScriptEffect(), npc_ship_captain_warming_up_private::InitializeAI(), npc_captain_warlord_first_aid_private::InitializeAI(), npc_huxsworth_hunter_quest_private::InitializeAI(), npc_huxsworth_briarpatch_quest_private::InitializeAI(), npc_dawntracker_hunter_quest_private::InitializeAI(), npc_dawntracker_briarpatch_quest_private::InitializeAI(), npc_prisoner_q55879_private::InitializeAI(), npc_bjorn_stouthands_q55965_private::InitializeAI(), npc_lana_jordan_q59948_private::InitializeAI(), TempSummon::InitStats(), npc_danica_the_reclaimer::IsSummonedBy(), npc_silverpine_orc_sea_pup::IsSummonedBy(), npc_jayce_darkweaver_cryptic_hollow_private::JustAppeared(), npc_silverpine_agatha_fenris_isle::JustAppeared(), npc_ship_captain_brace_for_impact_private::JustAppeared(), npc_medivh_bm::JustAppeared(), npc_drustvar_frightend_woodsman_private::JustAppeared(), npc_thassarian::JustAppeared(), npc_millhouse_manastorm::JustAppeared(), npc_akama_illidan::JustSummoned(), npc_wyrmrest_defender::OnCharmed(), conversation_the_invasion_begins::OnCreate(), conversation_an_unlikely_informant::OnCreate(), conversation_the_new_classington_estate::OnCreate(), Scripts::EasternKingdoms::StormwindCity::conversation_quest_ancient_curses_accept::OnCreate(), Scripts::KhazAlgar::CampaignsVisionsOfAShadowedSun::conversation_vereesas_tale::OnCreate(), conversation_natalia_pearces_accept_precious_gems::OnCreate(), conversation_natalia_pearces_complete_precious_gems::OnCreate(), conversation_burden_of_proof_speak_with_constable::OnCreate(), conversation_boralus_cyrus_meets_genn::OnCreate(), conversation_cyrus_crestfall_shaking_hands::OnCreate(), Scripts::QuelThalas::Harandar::Chapter1::conversation_the_root_cause_open_portal::OnCreate(), Scripts::QuelThalas::Harandar::Chapter1::conversation_to_harathir_follow_orweyna::OnCreate(), instance_stratholme::instance_stratholme_InstanceMapScript::OnCreatureCreate(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnCreatureCreate(), npc_brann_bronzebeard_anraphet::OnGossipSelect(), npc_tirion_fordring_tft::OnGossipSelect(), npc_high_overlord_saurfang_igb::OnGossipSelect(), npc_muradin_bronzebeard_igb::OnGossipSelect(), boss_apothecary_hummel::OnGossipSelect(), npc_voljin_zulaman::npc_voljin_zulamanAI::OnGossipSelect(), npc_7th_legion_magus_sanctum_of_the_sages::OnGossipSelect(), npc_sylvanas_fos::OnGossipSelect(), npc_jaina_fos::OnGossipSelect(), npc_brann_bronzebeard_ulduar_intro::npc_brann_bronzebeard_ulduar_introAI::OnGossipSelect(), npc_lorekeeper::npc_lorekeeperAI::OnGossipSelect(), npc_sinclari_vh::OnGossipSelect(), npc_observation_ring_keeper::npc_observation_ring_keeperAI::OnGossipSelect(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::OnGossipSelect(), npc_taretha::OnGossipSelect(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::OnGossipSelect(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::OnGossipSelect(), npc_expedition_commander::OnGossipSelect(), npc_thassarian::OnGossipSelect(), npc_akama_illidan::OnGossipSelect(), npc_barada::npc_baradaAI::OnGossipSelect(), npc_belnistrasz::npc_belnistraszAI::OnQuestAccept(), npc_kayn_sunfury_ashtongue_intro::OnQuestAccept(), boss_flame_leviathan_overload_device::boss_flame_leviathan_overload_deviceAI::OnSpellClick(), npc_whisperwind_lasher::npc_whisperwind_lasherAI::OnSpellClick(), RemoveVehicleKit(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), npc_sir_thomas::Reset(), npc_morridune::Reset(), npc_xerestrasza::Reset(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::Reset(), npc_tirion_fordring_tft::Reset(), npc_lake_frog::Reset(), npc_magister_aledis::npc_magister_aledisAI::Reset(), npc_chicken_cluck::npc_chicken_cluckAI::Reset(), hyjalAI::Retreat(), npc_barrett_toc::SendActionToTirion(), Creature::SetPetitioner(), Creature::SetVendor(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_announcer_toc5::npc_announcer_toc5AI::StartEncounter(), hyjalAI::StartEvent(), npc_magister_aledis::npc_magister_aledisAI::StartFight(), npc_thrall_old_hillsbrad::StartWP(), npc_brann_hos::StartWP(), npc_koltira_deathweaver::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_silverpine_orc_sea_pup::UpdateAI(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), npc_thassarian::UpdateAI(), npc_lake_frog::UpdateAI(), npc_brann_bronzebeard_keystone::UpdateAI(), npc_crusade_recruit::UpdateAI(), npc_akama_shade::UpdateAI(), boss_majordomo::UpdateSpecialEvents(), and Vehicle::Vehicle().
|
inline |
Definition at line 1019 of file Unit.h.
References flags, m_unitData, and UF::UnitData::NpcFlags2.
| void Unit::RemoveOwnedAura | ( | Aura * | aura, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3802 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 3769 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(), Spell::EffectApplyMountEquipment(), spell_dru_cat_form::HandleAfterRemove(), AuraEffect::HandleAuraMounted(), WorldSession::HandleCancelAuraOpcode(), spell_dh_enduring_torment::HandlePeriodic(), 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, |
||
| uint32 | reqEffMask = 0, |
||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3790 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 3932 of file Unit.cpp.
References m_ownedAuras, and RemoveOwnedAura().
Referenced by _RemoveNoStackAurasDueToAura(), and RemoveAurasOnEvade().
| void Unit::RemoveOwnedAuras | ( | uint32 | spellId, |
| std::function< bool(Aura const *)> const & | check, | ||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 3959 of file Unit.cpp.
References m_ownedAuras, and RemoveOwnedAura().
|
inline |
Definition at line 908 of file Unit.h.
References flags, m_unitData, and UF::UnitData::PetFlags.
Referenced by WorldSession::HandlePetRename().
| void Unit::RemovePlayerFromVision | ( | Player * | player | ) |
Definition at line 6740 of file Unit.cpp.
References m_sharedVision, WorldObject::setActive(), and WorldObject::SetIsStoredInWorldObjectGridContainer().
|
inline |
Definition at line 897 of file Unit.h.
References flags, m_unitData, and UF::UnitData::PvpFlags.
Referenced by WorldSession::HandleAreaTriggerOpcode(), Player::InitStatsForLevel(), Player::SetGameMaster(), SetPvP(), Player::UpdateArea(), Player::UpdatePvPState(), and Player::UpdateWarModeAuras().
|
inline |
Definition at line 862 of file Unit.h.
References flags, UF::UnitData::Flags, and m_unitData.
Referenced by AggroAllPlayers(), npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), Player::BuildPlayerRepop(), Player::CleanupAfterTaxiFlight(), Dismount(), boss_anub_arak::DoAction(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DoAction(), boss_vx_001::boss_vx_001AI::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_xt002_heart::DoAction(), FlightPathMovementGenerator::DoFinalize(), WorldSession::DoLootRelease(), Spell::EffectResurrectPet(), boss_jormungarAI::Emerge(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), AuraEffect::HandleArenaPreparation(), AuraEffect::HandleAuraModDmgImmunity(), AuraEffect::HandleAuraModFaction(), AuraEffect::HandleAuraModPacify(), AuraEffect::HandleAuraModPacifyAndSilence(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleFeignDeath(), boss_anduin_wrynn::HandleIntroduction(), WorldSession::HandleLogoutCancelOpcode(), AuraEffect::HandleModUnattackable(), PetAI::HandleReturnMovement(), Player::InitStatsForLevel(), boss_sylvanas_windrunner::JustAppeared(), boss_anubarak_trial::JustEngagedWith(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::JustReachedHome(), boss_ignis::boss_ignis_AI::JustSummoned(), npc_snobold_vassal::MountOnBoss(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), boss_flame_leviathan::boss_flame_leviathanAI::MovementInform(), npc_giant_infernal::npc_giant_infernalAI::npc_giant_infernalAI(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipSelect(), spell_systems_shutdown::spell_systems_shutdown_AuraScript::OnRemove(), spell_gen_feign_death_all_flags::OnRemove(), spell_gen_feign_death_all_flags_uninteractible::OnRemove(), spell_gen_feign_death_no_dyn_flag::OnRemove(), spell_gen_prevent_emotes::OnRemove(), spell_gen_feign_death_all_flags_no_uninteractible::OnRemove(), RemoveAllControlled(), RemoveCharmedBy(), boss_scarlet_commander_mograine::Reset(), boss_eye_of_cthun::eye_of_cthunAI::Reset(), boss_anub_arak::Reset(), dummy_dragonAI::Reset(), boss_anubarak_trial::Reset(), boss_ionar::Reset(), boss_mimiron::boss_mimironAI::Reset(), npc_venture_co_straggler::Reset(), npc_barada::npc_baradaAI::Reset(), emerald_dragonAI::Reset(), boss_novos::SetBubbled(), SetCharm(), setDeathState(), Creature::setDeathState(), Pet::setDeathState(), SetFeared(), SetImmuneToAll(), SetImmuneToNPC(), SetImmuneToPC(), SetStunned(), SetUninteractible(), Battlefield::ShowNpc(), boss_scarlet_commander_mograine::SpellHit(), npc_nether_drake::npc_nether_drakeAI::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::UpdateAI(), boss_anubarak_trial::UpdateAI(), boss_tyrannus::UpdateAI(), boss_sapphiron::UpdateAI(), boss_svala::UpdateAI(), npc_thassarian::UpdateAI(), npc_barada::npc_baradaAI::UpdateAI(), boss_taerar::boss_taerarAI::UpdateAI(), boss_ionar::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), CombatManager::UpdateOwnerCombatState(), and UpdatePetCombatState().
|
inline |
Definition at line 867 of file Unit.h.
References flags, UF::UnitData::Flags2, and m_unitData.
Referenced by AuraEffect::HandleAuraAllowTalentSwapping(), AuraEffect::HandleAuraCloneCaster(), AuraEffect::HandleAuraModNoActions(), AuraEffect::HandleComprehendLanguage(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleForceMoveForward(), spell_ichoron_drained::HandleRemove(), Creature::InitializeMovementCapabilities(), Player::LoadFromDB(), spell_gen_feign_death_all_flags::OnRemove(), spell_gen_feign_death_all_flags_uninteractible::OnRemove(), spell_gen_feign_death_no_dyn_flag::OnRemove(), spell_gen_feign_death_no_prevent_emotes::OnRemove(), spell_gen_feign_death_all_flags_no_uninteractible::OnRemove(), SetCannotTurn(), Player::SetGameMaster(), SetInteractionAllowedWhileHostile(), npc_sporecaller_zancha_musashitake::SpellHit(), and Creature::UpdateMovementCapabilities().
|
inline |
Definition at line 872 of file Unit.h.
References flags, UF::UnitData::Flags3, and m_unitData.
Referenced by BloodPrincesBossAI::DoAction(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleModAlternativeDefaultLanguage(), spell_gen_feign_death_all_flags::OnRemove(), spell_gen_feign_death_all_flags_uninteractible::OnRemove(), spell_gen_feign_death_no_prevent_emotes::OnRemove(), spell_gen_feign_death_all_flags_no_uninteractible::OnRemove(), and SetInteractionAllowedInCombat().
|
inline |
Definition at line 1760 of file Unit.h.
Referenced by SetAlwaysAllowPitching(), SetCanAdvFly(), SetCanDoubleJump(), SetCanFly(), SetCanTransitionBetweenSwimAndFly(), SetCanTurnWhileFalling(), SetCollision(), SetDisableGravity(), SetDisableInertia(), SetEnableFullSpeedPitching(), SetEnableFullSpeedTurning(), SetFall(), SetFeatherFall(), SetHover(), SetIgnoreMovementForces(), SetJumpingDisabled(), SetMoveCantSwim(), SetRooted(), SetStrafingDisabled(), SetSwim(), SetWalk(), SetWaterWalking(), boss_krick::UpdateAI(), and Creature::UpdateMovementCapabilities().
| void Unit::RemoveVehicleKit | ( | bool | onRemoveFromWorld = false | ) |
Definition at line 12185 of file Unit.cpp.
References m_unitTypeMask, BaseEntity::m_updateFlag, m_vehicleKit, RemoveNpcFlag(), SendSetVehicleRecId(), Vehicle::Uninstall(), UNIT_NPC_FLAG_PLAYER_VEHICLE, UNIT_NPC_FLAG_SPELLCLICK, and CreateObjectBits::Vehicle.
Referenced by CleanupBeforeRemoveFromMap(), Dismount(), AuraEffect::HandleAuraSetVehicle(), npc_vp_slipstream::InitializeAI(), npc_ioc_siege_engine::JustAppeared(), npc_gunship::npc_gunshipAI::JustDied(), spell_blood_queen_frenzied_bloodthirst::OnRemove(), and RemoveFromWorld().
|
inline |
Definition at line 921 of file Unit.h.
References flags, m_unitData, and UF::UnitData::VisFlags.
Referenced by AuraEffect::HandleAuraUntrackable(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleModStealth(), and Player::InitStatsForLevel().
| void Unit::RemoveVisibleAura | ( | AuraApplication * | aurApp | ) |
Definition at line 729 of file Unit.cpp.
References m_visibleAuras, m_visibleAurasToUpdate, and UpdateAuraForGroup().
Referenced by AuraApplication::_Remove().
| void Unit::RemoveVisibleAuraUpdate | ( | AuraApplication * | aurApp | ) |
Definition at line 741 of file Unit.cpp.
References m_visibleAurasToUpdate.
| void Unit::RemoveWorldEffect | ( | int32 | worldEffectId | ) |
Definition at line 14711 of file Unit.cpp.
References m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::RemoveDynamicUpdateFieldValue(), and UF::UnitData::WorldEffects.
|
inline |
Definition at line 1014 of file Unit.h.
References flags, m_unitData, and UF::UnitData::NpcFlags.
Referenced by Pet::CreateBaseAtTamed(), npc_wild_wyrm::DamageTaken(), SmartAI::EndPath(), modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcSetFlagCommand(), Pet::LoadPetFromDB(), go_crystalline_tear::go_crystalline_tearAI::OnQuestAccept(), boss_doomrel::boss_doomrelAI::Reset(), 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 1020 of file Unit.h.
References flags, m_unitData, and UF::UnitData::NpcFlags2.
Referenced by Pet::CreateBaseAtTamed(), modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcSetFlagCommand(), Pet::LoadPetFromDB(), Creature::setDeathState(), EscortAI::Start(), FollowerAI::StartFollow(), Player::SummonPet(), Creature::UpdateEntry(), and GameEventMgr::UpdateEventNPCFlags().
|
inline |
Definition at line 909 of file Unit.h.
References flags, m_unitData, and UF::UnitData::PetFlags.
Referenced by Pet::CreateBaseAtTamed(), Creature::LoadCreaturesAddon(), and Pet::LoadPetFromDB().
|
inline |
Definition at line 898 of file Unit.h.
References flags, m_unitData, and UF::UnitData::PvpFlags.
Referenced by reset_commandscript::HandleResetStatsOrLevelHelper(), Creature::LoadCreaturesAddon(), SetCharm(), and SetMinion().
|
inline |
Definition at line 1519 of file Unit.h.
References m_unitData, and UF::UnitData::SilencedSchoolMask.
Referenced by AuraEffect::HandleAuraModSilence().
|
inline |
Definition at line 863 of file Unit.h.
References flags, UF::UnitData::Flags, and m_unitData.
Referenced by modify_commandscript::HandleModifyFactionCommand(), reset_commandscript::HandleResetStatsOrLevelHelper(), Pet::LoadPetFromDB(), Creature::setDeathState(), and Creature::UpdateEntry().
|
inline |
Definition at line 868 of file Unit.h.
References flags, UF::UnitData::Flags2, and m_unitData.
Referenced by Creature::setDeathState(), and Creature::UpdateEntry().
|
inline |
Definition at line 873 of file Unit.h.
References flags, UF::UnitData::Flags3, and m_unitData.
Referenced by Creature::setDeathState(), and Creature::UpdateEntry().
|
inline |
Definition at line 922 of file Unit.h.
References flags, m_unitData, and UF::UnitData::VisFlags.
Referenced by Creature::LoadCreaturesAddon().
| void Unit::resetAttackTimer | ( | WeaponAttackType | type = BASE_ATTACK | ) |
Definition at line 670 of file Unit.cpp.
References GetBaseAttackTime(), m_attackTimer, and m_modAttackSpeedPct.
Referenced by boss_flame_leviathan::boss_flame_leviathanAI::DoBatteringRamIfReady(), DoMeleeAttackIfReady(), PlayerAI::DoRangedAttackIfReady(), UnitAI::DoSpellAttackIfReady(), spell_remnant_of_a_fallen_king_soul_reaper::HandleDummyEffect(), Spell::ResetCombatTimers(), Spell::SendSpellCooldown(), npc_high_overlord_saurfang_igb::UpdateAI(), and npc_muradin_bronzebeard_igb::UpdateAI().
|
private |
Definition at line 10277 of file Unit.cpp.
References GetTopAI(), and PopAI().
Referenced by ScheduleAIChange(), and UpdateCharmAI().
| void Unit::RestoreDisplayId | ( | bool | ignorePositiveAurasPreventingMounting = false | ) |
Definition at line 10876 of file Unit.cpp.
References AURA_EFFECT_HANDLE_SEND_FOR_CLIENT, ObjectMgr::ChooseDisplayId(), CreatureModel::CreatureDisplayID, FORM_NONE, Aura::GetApplicationOfTarget(), GetAuraEffectsByType(), AuraApplication::GetBase(), BaseEntity::GetGUID(), GetModelForForm(), GetNativeDisplayId(), GetShapeshiftForm(), AuraEffect::HandleEffect(), IsDisallowedMountForm(), AuraApplication::IsPositive(), SetDisplayId(), sObjectMgr, SPELL_AURA_MOD_SHAPESHIFT, and SPELL_AURA_TRANSFORM.
Referenced by Player::ActivateTaxiPathTo(), Player::ApplyArtifactPowers(), RespawnEggEvent::Execute(), WorldSession::HandleAlterAppearance(), WorldSession::HandleArtifactSetAppearance(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraTransform(), modify_commandscript::HandleModifyGenderCommand(), boss_tharon_ja::Reset(), and boss_tharon_ja::UpdateAI().
| void Unit::RestoreFaction | ( | ) |
Definition at line 12143 of file Unit.cpp.
References GetAuraEffectsByType(), WorldObject::GetOwner(), GetRace(), BaseEntity::GetTypeId(), HasAuraType(), HasUnitTypeMask(), SetFaction(), Player::SetFactionForRace(), SPELL_AURA_MOD_FACTION, 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_magister_aledis::npc_magister_aledisAI::Reset(), and Player::SetGameMaster().
Definition at line 10780 of file Unit.cpp.
References GetMotionMaster(), and IsInvalidMovementSlot().
Referenced by SmartAI::JustReachedHome(), npc_silverpine_forest_ettin::Reset(), SmartAI::ResumePath(), npc_silverpine_forest_ettin::UpdateAI(), and Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::UpdateAI().
Definition at line 13195 of file Unit.cpp.
References AddPct(), GetTotalAuraModifier(), ModifyPower(), POWER_RAGE, RATE_POWER_RAGE_INCOME, SPELL_AURA_MOD_RAGE_FROM_DAMAGE_DEALT, and sWorld.
Referenced by AttackerStateUpdate().
| MeleeHitOutcome Unit::RollMeleeOutcomeAgainst | ( | Unit const * | victim, |
| WeaponAttackType | attType | ||
| ) | const |
Definition at line 2378 of file Unit.cpp.
References CREATURE_FLAG_EXTRA_NO_CRUSHING_BLOWS, CreatureTemplate::flags_extra, Creature::GetCreatureTemplate(), GetLevelForTarget(), GetTotalAuraModifier(), BaseEntity::GetTypeId(), GetUnitBlockChance(), GetUnitCriticalChanceAgainst(), GetUnitDodgeChance(), GetUnitParryChance(), HasAuraType(), Position::HasInArc(), HasUnitState(), IsControlledByPlayer(), Creature::IsEvadingAttacks(), 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, SPELL_AURA_MOD_AUTOATTACK_CRIT_CHANCE, TC_LOG_DEBUG, Object::ToCreature(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_STATE_CONTROLLED, and urand().
Referenced by CalculateMeleeDamage().
|
virtual |
Reimplemented in Player.
Definition at line 14479 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(), boss_sylvanas_windrunner::JustEngagedWith(), and Map::ScriptsProcess().
|
virtual |
Reimplemented in Player.
Definition at line 14546 of file Unit.cpp.
References CHAT_MSG_MONSTER_SAY, CONFIG_LISTEN_RANGE_SAY, and sWorld.
| void Unit::ScheduleAIChange | ( | ) |
Definition at line 10264 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 10976 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 5668 of file Unit.cpp.
References CalcDamageInfo::Absorb, CalcDamageInfo::Attacker, WorldPackets::CombatLog::AttackerStateUpdate::AttackerGUID, WorldPackets::CombatLog::AttackerStateUpdate::BlockAmount, CalcDamageInfo::Blocked, WorldPackets::CombatLog::AttackerStateUpdate::ContentTuning, CalcDamageInfo::Damage, WorldPackets::CombatLog::AttackerStateUpdate::Damage, CalcDamageInfo::DamageSchoolMask, WorldPackets::CombatLog::AttackerStateUpdate::Flags, WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), BaseEntity::GetGUID(), GetHealth(), CalcDamageInfo::HitInfo, WorldPackets::Spells::SpellCastLogData::Initialize(), WorldPackets::CombatLog::CombatLogServerPacket::LogData, CalcDamageInfo::OriginalDamage, WorldPackets::CombatLog::AttackerStateUpdate::OriginalDamage, WorldPackets::CombatLog::AttackerStateUpdate::OverDamage, CalcDamageInfo::RageGained, WorldPackets::CombatLog::AttackerStateUpdate::RageGained, CalcDamageInfo::Resist, WorldObject::SendCombatLogMessage(), WorldPackets::CombatLog::AttackerStateUpdate::SubDmg, CalcDamageInfo::Target, CalcDamageInfo::TargetState, WorldPackets::CombatLog::AttackerStateUpdate::VictimGUID, and WorldPackets::CombatLog::AttackerStateUpdate::VictimState.
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, | ||
| uint32 | RageGained | ||
| ) |
Definition at line 5699 of file Unit.cpp.
References CalcDamageInfo::Absorb, CalcDamageInfo::Attacker, CalcDamageInfo::Blocked, CalcDamageInfo::Damage, Damage, CalcDamageInfo::DamageSchoolMask, CalcDamageInfo::HitInfo, CalcDamageInfo::OriginalDamage, CalcDamageInfo::RageGained, CalcDamageInfo::Resist, SendAttackStateUpdate(), CalcDamageInfo::Target, and CalcDamageInfo::TargetState.
| void Unit::SendCancelSpellVisual | ( | uint32 | id | ) |
Definition at line 12429 of file Unit.cpp.
References BaseEntity::GetGUID(), WorldObject::SendMessageToSet(), WorldPackets::Spells::CancelSpellVisual::Source, WorldPackets::Spells::CancelSpellVisual::SpellVisualID, and WorldPackets::Spells::CancelSpellVisual::Write().
| void Unit::SendCancelSpellVisualKit | ( | uint32 | id | ) |
| void Unit::SendClearTarget | ( | ) |
Definition at line 13288 of file Unit.cpp.
References BaseEntity::GetGUID(), WorldObject::SendMessageToSet(), WorldPackets::Combat::BreakTarget::UnitGUID, and WorldPackets::Combat::BreakTarget::Write().
Referenced by VehicleJoinEvent::Execute().
Definition at line 11239 of file Unit.cpp.
References Player::GetSession(), WorldPackets::Misc::DurabilityDamageDeath::Percent, WorldSession::SendPacket(), and WorldPackets::Misc::DurabilityDamageDeath::Write().
Referenced by Player::EnvironmentalDamage().
| void Unit::SendEnergizeSpellLog | ( | Unit * | victim, |
| uint32 | spellId, | ||
| int32 | damage, | ||
| int32 | overEnergize, | ||
| Powers | powerType | ||
| ) |
Definition at line 6804 of file Unit.cpp.
References WorldPackets::CombatLog::SpellEnergizeLog::Amount, WorldPackets::CombatLog::SpellEnergizeLog::CasterGUID, BaseEntity::GetGUID(), WorldPackets::Spells::SpellCastLogData::Initialize(), WorldPackets::CombatLog::CombatLogServerPacket::LogData, WorldPackets::CombatLog::SpellEnergizeLog::OverEnergize, WorldObject::SendCombatLogMessage(), WorldPackets::CombatLog::SpellEnergizeLog::SpellID, WorldPackets::CombatLog::SpellEnergizeLog::TargetGUID, and WorldPackets::CombatLog::SpellEnergizeLog::Type.
Referenced by EnergizeBySpell().
|
private |
Definition at line 643 of file Unit.cpp.
References BaseEntity::GetGUID(), WorldPackets::Movement::FlightSplineSync::Guid, movespline, WorldObject::SendMessageToSet(), WorldPackets::Movement::FlightSplineSync::SplineDist, and WorldPackets::Movement::FlightSplineSync::Write().
Referenced by Heartbeat().
| void Unit::SendHealSpellLog | ( | HealInfo & | healInfo, |
| bool | critical = false |
||
| ) |
Definition at line 6776 of file Unit.cpp.
References WorldPackets::CombatLog::SpellHealLog::Absorbed, WorldPackets::CombatLog::SpellHealLog::CasterGUID, WorldPackets::CombatLog::SpellHealLog::Crit, HealInfo::GetAbsorb(), HealInfo::GetEffectiveHeal(), BaseEntity::GetGUID(), HealInfo::GetHeal(), HealInfo::GetHealer(), HealInfo::GetOriginalHeal(), HealInfo::GetSpellInfo(), HealInfo::GetTarget(), WorldPackets::CombatLog::SpellHealLog::Health, SpellInfo::Id, WorldPackets::Spells::SpellCastLogData::Initialize(), WorldPackets::CombatLog::CombatLogServerPacket::LogData, WorldPackets::CombatLog::SpellHealLog::OriginalHeal, WorldPackets::CombatLog::SpellHealLog::OverHeal, WorldObject::SendCombatLogMessage(), WorldPackets::CombatLog::SpellHealLog::SpellID, WorldPackets::CombatLog::SpellHealLog::TargetGUID, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by HealBySpell().
| void Unit::SendMeleeAttackStart | ( | Unit * | victim | ) |
Definition at line 2542 of file Unit.cpp.
References WorldPackets::Combat::AttackStart::Attacker, BaseEntity::GetGUID(), WorldObject::SendMessageToSet(), WorldPackets::Combat::AttackStart::Victim, and WorldPackets::Combat::AttackStart::Write().
Referenced by Attack().
| void Unit::SendMeleeAttackStop | ( | Unit const * | victim = nullptr | ) | const |
Definition at line 2550 of file Unit.cpp.
References WorldPackets::Combat::SAttackStop::Attacker, BaseEntity::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 12576 of file Unit.cpp.
References WorldPackets::Movement::MoveKnockBack::Direction, BaseEntity::GetGUID(), Player::GetSession(), WorldPackets::Movement::MoveKnockBackSpeeds::HorzSpeed, m_movementCounter, WorldPackets::Movement::MoveKnockBack::MoverGUID, Position::Position(), WorldSession::SendPacket(), WorldPackets::Movement::MoveKnockBack::SequenceIndex, WorldPackets::Movement::MoveKnockBack::Speeds, WorldPackets::Movement::MoveKnockBackSpeeds::VertSpeed, and WorldPackets::Movement::MoveKnockBack::Write().
Referenced by KnockbackFrom().
| void Unit::SendPeriodicAuraLog | ( | SpellPeriodicAuraLogInfo * | pInfo | ) |
Definition at line 5621 of file Unit.cpp.
References SpellPeriodicAuraLogInfo::absorb, WorldPackets::CombatLog::PeriodicAuraLogEffect::AbsorbedOrAmplitude, WorldPackets::CombatLog::PeriodicAuraLogEffect::Amount, SpellPeriodicAuraLogInfo::auraEff, WorldPackets::CombatLog::SpellPeriodicAuraLog::CasterGUID, WorldPackets::CombatLog::PeriodicAuraLogEffect::ContentTuning, WorldPackets::CombatLog::PeriodicAuraLogEffect::Crit, SpellPeriodicAuraLogInfo::critical, SpellPeriodicAuraLogInfo::damage, WorldPackets::CombatLog::PeriodicAuraLogEffect::Effect, WorldPackets::CombatLog::SpellPeriodicAuraLog::Effects, WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), AuraEffect::GetAuraType(), AuraEffect::GetCasterGUID(), BaseEntity::GetGUID(), AuraEffect::GetId(), SpellInfo::GetSchoolMask(), AuraEffect::GetSpellInfo(), ObjectAccessor::GetUnit(), WorldPackets::Spells::SpellCastLogData::Initialize(), WorldPackets::CombatLog::CombatLogServerPacket::LogData, SpellPeriodicAuraLogInfo::originalDamage, WorldPackets::CombatLog::PeriodicAuraLogEffect::OriginalDamage, SpellPeriodicAuraLogInfo::overDamage, WorldPackets::CombatLog::PeriodicAuraLogEffect::OverHealOrKill, SpellPeriodicAuraLogInfo::resist, WorldPackets::CombatLog::PeriodicAuraLogEffect::Resisted, WorldPackets::CombatLog::PeriodicAuraLogEffect::SchoolMaskOrPower, WorldObject::SendCombatLogMessage(), WorldPackets::CombatLog::SpellPeriodicAuraLog::SpellID, and WorldPackets::CombatLog::SpellPeriodicAuraLog::TargetGUID.
Referenced by AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), and AuraEffect::HandlePeriodicManaLeechAuraTick().
| void Unit::SendPetActionFeedback | ( | PetActionFeedback | msg, |
| uint32 | spellId | ||
| ) | const |
-------—Pet responses methods--------------—
Definition at line 10700 of file Unit.cpp.
References WorldObject::GetOwner(), BaseEntity::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 10712 of file Unit.cpp.
References WorldPackets::Pet::PetActionSound::Action, BaseEntity::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 10729 of file Unit.cpp.
References AI_REACTION_HOSTILE, WorldObject::GetOwner(), BaseEntity::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 10720 of file Unit.cpp.
References WorldPackets::Pet::PetDismissSound::CreatureDisplayInfoID, BaseEntity::GetGUID(), GetNativeDisplayId(), Position::GetPosition(), WorldPackets::Pet::PetDismissSound::ModelPosition, WorldObject::SendMessageToSet(), WorldPackets::Pet::PetDismissSound::UnitGUID, and WorldPackets::Pet::PetDismissSound::Write().
Referenced by WorldSession::HandlePetActionHelper().
| void Unit::SendPlaySpellVisual | ( | Position const & | targetPosition, |
| uint32 | spellVisualId, | ||
| uint8 | missReason, | ||
| uint8 | reflectStatus, | ||
| float | travelSpeed, | ||
| bool | speedAsTime = false, |
||
| float | launchDelay = 0.0f |
||
| ) |
Definition at line 12415 of file Unit.cpp.
References BaseEntity::GetGUID(), WorldPackets::Spells::PlaySpellVisual::LaunchDelay, WorldPackets::Spells::PlaySpellVisual::MissReason, WorldPackets::Spells::PlaySpellVisual::ReflectStatus, WorldObject::SendMessageToSet(), WorldPackets::Spells::PlaySpellVisual::Source, WorldPackets::Spells::PlaySpellVisual::SpeedAsTime, WorldPackets::Spells::PlaySpellVisual::SpellVisualID, WorldPackets::Spells::PlaySpellVisual::TargetPosition, WorldPackets::Spells::PlaySpellVisual::TravelSpeed, and WorldPackets::Spells::PlaySpellVisual::Write().
| void Unit::SendPlaySpellVisual | ( | Unit * | target, |
| uint32 | spellVisualId, | ||
| uint8 | missReason, | ||
| uint8 | reflectStatus, | ||
| float | travelSpeed, | ||
| bool | speedAsTime = false, |
||
| float | launchDelay = 0.0f |
||
| ) |
Definition at line 12400 of file Unit.cpp.
References BaseEntity::GetGUID(), Position::GetPosition(), WorldPackets::Spells::PlaySpellVisual::LaunchDelay, WorldPackets::Spells::PlaySpellVisual::MissReason, WorldPackets::Spells::PlaySpellVisual::ReflectStatus, WorldObject::SendMessageToSet(), WorldPackets::Spells::PlaySpellVisual::Source, WorldPackets::Spells::PlaySpellVisual::SpeedAsTime, WorldPackets::Spells::PlaySpellVisual::SpellVisualID, WorldPackets::Spells::PlaySpellVisual::Target, WorldPackets::Spells::PlaySpellVisual::TargetPosition, WorldPackets::Spells::PlaySpellVisual::TravelSpeed, and WorldPackets::Spells::PlaySpellVisual::Write().
Referenced by spell_pri_prayer_of_mending_SpellScriptBase::CastPrayerOfMendingAura(), spell_warr_charge_drop_fire_periodic::DropFireVisual(), Spell::EffectUncageBattlePet(), YmironSoulSiphonVisual::Execute(), YmironBanePrecastVisual::Execute(), spell_pri_shadowy_apparition_dummy::HandleEffectHit(), spell_pri_power_word_radiance::HandleEffectHitTarget(), npc_bg_seething_shore_vignette_dummy::JustAppeared(), boss_shade_of_medivh::JustAppeared(), spell_pal_holy_shock_damage_visual::PlayVisual(), spell_pal_holy_shock_heal_visual::PlayVisual(), and spell_hun_flare::PlayVisual().
Definition at line 12437 of file Unit.cpp.
References WorldPackets::Spells::PlaySpellVisualKit::Duration, BaseEntity::GetGUID(), WorldPackets::Spells::PlaySpellVisualKit::KitRecID, WorldPackets::Spells::PlaySpellVisualKit::KitType, 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_azhiccar_devour_selector::HandleHitTarget(), spell_azhiccar_devour_intro_selector::HandleHitTarget(), spell_evo_verdant_embrace::HandleLaunchTarget(), spell_pal_divine_storm::HandleOnCast(), UnitAura::HandlePeriodicFoodSpellVisualKit(), spell_illidan_return_glaives::HandleScriptEffect(), npc_ymiron_the_fallen_king_risen_warrior::JustAppeared(), npc_sevis_brightflame_ashtongue_gateway_private::JustAppeared(), npc_sevis_brightflame_coilskar_gateway_private::JustAppeared(), npc_kayn_sunfury_invasion_begins::MovementInform(), conversation_the_invasion_begins::OnUpdate(), conversation_sylvanas_windrunner_introduction::OnUpdate(), npc_sevis_brightflame_shivarra_gateway::SacrificePlayer(), npc_ley_line_sprouts::SpellHit(), Trainer::Trainer::TeachSpell(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::UpdateAI(), npc_kayn_sunfury_invasion_begins::WaypointPathEnded(), and npc_korvas_bloodthorn_invasion_begins::WaypointPathEnded().
| void Unit::SendSetVehicleRecId | ( | uint32 | vehicleId | ) |
Definition at line 14111 of file Unit.cpp.
References BaseEntity::GetGUID(), m_movementCounter, WorldPackets::Vehicle::MoveSetVehicleRecID::MoverGUID, WorldObject::SendMessageToSet(), WorldPackets::Vehicle::MoveSetVehicleRecID::SequenceIndex, Object::ToPlayer(), WorldPackets::Vehicle::SetVehicleRecID::VehicleGUID, WorldPackets::Vehicle::MoveSetVehicleRecID::VehicleRecID, WorldPackets::Vehicle::SetVehicleRecID::VehicleRecID, WorldPackets::Vehicle::MoveSetVehicleRecID::Write(), and WorldPackets::Vehicle::SetVehicleRecID::Write().
Referenced by CreateVehicleKit(), and RemoveVehicleKit().
Definition at line 5658 of file Unit.cpp.
References WorldPackets::CombatLog::SpellOrDamageImmune::CasterGUID, BaseEntity::GetGUID(), WorldPackets::CombatLog::SpellOrDamageImmune::IsPeriodic, WorldObject::SendMessageToSet(), WorldPackets::CombatLog::SpellOrDamageImmune::SpellID, WorldPackets::CombatLog::SpellOrDamageImmune::VictimGUID, and WorldPackets::CombatLog::SpellOrDamageImmune::Write().
Referenced by DealMeleeDamage(), spell_sindragosa_s_fury::HandleDummy(), and AuraEffect::SendTickImmune().
| void Unit::SendSpellNonMeleeDamageLog | ( | SpellNonMeleeDamage const * | log | ) |
Definition at line 5559 of file Unit.cpp.
References SpellNonMeleeDamage::absorb, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Absorbed, SpellNonMeleeDamage::attacker, SpellNonMeleeDamage::blocked, WorldPackets::CombatLog::SpellNonMeleeDamageLog::CasterGUID, SpellNonMeleeDamage::castId, WorldPackets::CombatLog::SpellNonMeleeDamageLog::CastID, WorldPackets::CombatLog::SpellNonMeleeDamageLog::ContentTuning, SpellNonMeleeDamage::damage, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Damage, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Flags, WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), BaseEntity::GetGUID(), SpellNonMeleeDamage::HitInfo, SpellInfo::Id, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Me, SpellNonMeleeDamage::originalDamage, WorldPackets::CombatLog::SpellNonMeleeDamageLog::OriginalDamage, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Overkill, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Periodic, SpellNonMeleeDamage::periodicLog, SpellNonMeleeDamage::preHitHealth, SpellNonMeleeDamage::reflectingSpellId, WorldPackets::CombatLog::SpellNonMeleeDamageLog::ReflectingSpellID, SpellNonMeleeDamage::resist, WorldPackets::CombatLog::SpellNonMeleeDamageLog::Resisted, SpellNonMeleeDamage::schoolMask, WorldPackets::CombatLog::SpellNonMeleeDamageLog::SchoolMask, WorldObject::SendCombatLogMessage(), WorldPackets::CombatLog::SpellNonMeleeDamageLog::ShieldBlock, SpellNonMeleeDamage::Spell, WorldPackets::CombatLog::SpellNonMeleeDamageLog::SpellID, SpellNonMeleeDamage::SpellVisual, SpellNonMeleeDamage::target, and WorldPackets::CombatLog::SpellNonMeleeDamageLog::Visual.
Referenced by CalcAbsorbResist(), Spell::TargetInfo::DoDamageAndTriggers(), Spell::EffectEnvironmentalDMG(), misc_commandscript::HandleDamageCommand(), spell_sindragosa_s_fury::HandleDummy(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), spell_dk_dancing_rune_weapon::HandleProc(), AuraEffect::HandleProcTriggerDamageAuraProc(), and spell_warl_health_funnel::OnPeriodic().
| void Unit::SendTeleportPacket | ( | TeleportLocation const & | teleportLocation | ) |
Definition at line 13073 of file Unit.cpp.
References _movementForces, WorldPackets::Movement::MoveTeleport::Facing, GameTime::GetGameTimeMS(), BaseEntity::GetGUID(), WorldObject::GetMap(), Position::GetOrientation(), Transport::GetPositionWithOffset(), Map::GetTransport(), GetUnitBeingMoved(), MovementInfo::guid, TeleportLocation::Location, m_movementCounter, WorldObject::m_movementInfo, WorldPackets::Movement::MoveUpdateTeleport::MovementForces, WorldPackets::Movement::MoveTeleport::MoverGUID, MovementInfo::pos, MovementInfo::TransportInfo::pos, WorldPackets::Movement::MoveTeleport::Pos, Position::Relocate(), MovementInfo::TransportInfo::Reset(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveTeleport::SequenceIndex, WorldPackets::Movement::MoveUpdateTeleport::Status, MovementInfo::time, Object::ToPlayer(), MovementInfo::transport, TeleportLocation::TransportGuid, WorldPackets::Movement::MoveTeleport::TransportGUID, WorldPackets::Movement::MoveTeleport::Write(), and WorldPackets::Movement::MoveUpdateTeleport::Write().
Referenced by NearTeleportTo(), and Player::TeleportTo().
|
protected |
Definition at line 10238 of file Unit.cpp.
References PushAI(), and RefreshAI().
Referenced by Creature::AIM_Create(), and UpdateCharmAI().
| void Unit::SetAIAnimKitId | ( | uint16 | animKitId | ) |
Definition at line 11260 of file Unit.cpp.
References _aiAnimKitId, _meleeAnimKitId, _movementAnimKitId, CreateObjectBits::AnimKit, WorldPackets::Misc::SetAIAnimKit::AnimKitID, BaseEntity::GetGUID(), BaseEntity::m_updateFlag, sAnimKitStore, WorldObject::SendMessageToSet(), WorldPackets::Misc::SetAIAnimKit::Unit, and WorldPackets::Misc::SetAIAnimKit::Write().
Referenced by npc_silverpine_fallen_human::DoAction(), boss_lava_guard_gordoth::DoAction(), boss_azhiccar::DoAction(), boss_soulbound_goliath::DoAction(), npc_demon_hunter_hidden_no_more_private::DoAction(), quest_cooking_meat::HandleQuestStatusChange(), npc_amalgam_of_souls_soul_echoes_stalker::IsSummonedBy(), npc_kayn_sunfury_ashtongue_intro_private::JustAppeared(), npc_mannethrel_darkstar_freed_private::JustAppeared(), Scripts::EasternKingdoms::Vashjir::AbyssalDepths::npc_abyssal_depths_whirlpool_vehicle::JustAppeared(), npc_silverpine_skitterweb_matriarch::JustAppeared(), boss_azhiccar::JustAppeared(), boss_soulbound_goliath::JustAppeared(), npc_blood_effigy::JustDied(), npc_silverpine_skitterweb_matriarch::JustEngagedWith(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::JustEngagedWith(), boss_elder_leaxa::JustEngagedWith(), Creature::LoadCreaturesAddon(), npc_kayn_sunfury_invasion_begins::MovementInform(), conversation_the_invasion_begins::OnCreate(), npc_weapon_inspector_valarjar::Reset(), npc_sevis_brightflame_shivarra_gateway::SacrificePlayer(), conversation_the_invasion_begins::StartCloneMovement(), npc_silverpine_skitterweb_matriarch::UpdateAI(), and Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::UpdateAI().
| bool Unit::SetAlwaysAllowPitching | ( | bool | enable | ) |
Definition at line 13890 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), HasUnitMovementFlag(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_ALWAYS_ALLOW_PITCHING, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_SET_ALWAYS_ALLOW_PITCHING, SMSG_MOVE_UNSET_ALWAYS_ALLOW_PITCHING, WorldPackets::Movement::MoveUpdate::Status, WorldPackets::Movement::MoveUpdate::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
| void Unit::SetAnimTier | ( | AnimTier | animTier, |
| bool | notifyClient = true |
||
| ) |
Definition at line 10818 of file Unit.cpp.
References UF::UnitData::AnimTier, AsUnderlyingType(), BaseEntity::GetGUID(), m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), WorldObject::SendMessageToSet(), BaseEntity::SetUpdateFieldValue(), WorldPackets::Misc::SetAnimTier::Tier, WorldPackets::Misc::SetAnimTier::Unit, and WorldPackets::Misc::SetAnimTier::Write().
Referenced by boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), boss_the_golden_serpent::JustAppeared(), Creature::LoadCreaturesAddon(), npc_enslaved_proto_drake::MovementInform(), npc_enslaved_proto_drake::SetData(), SetDisableGravity(), SetHover(), boss_jedoga_shadowseeker::SummonedCreatureDies(), npc_madrigosa::UpdateAI(), UpdateSplineMovement(), and boss_the_golden_serpent::WaypointPathEnded().
Definition at line 787 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 1586 of file Unit.h.
References UF::UnitData::AttackPower, and m_unitData.
Referenced by Player::InitStatsForLevel(), Creature::UpdateAttackPowerAndDamage(), Guardian::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 1588 of file Unit.h.
References UF::UnitData::AttackPowerModNeg, and m_unitData.
Referenced by Creature::UpdateAttackPowerAndDamage(), Guardian::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 1587 of file Unit.h.
References UF::UnitData::AttackPowerModPos, and m_unitData.
Referenced by Creature::UpdateAttackPowerAndDamage(), Guardian::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 1589 of file Unit.h.
References UF::UnitData::AttackPowerMultiplier, and m_unitData.
Referenced by Player::InitStatsForLevel(), Creature::UpdateAttackPowerAndDamage(), Guardian::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 710 of file Unit.h.
Referenced by Attack(), DealMeleeDamage(), DoMeleeAttackIfReady(), and Update().
Definition at line 12391 of file Unit.cpp.
References AddAura(), GetAura(), BaseEntity::GetGUID(), and Aura::SetStackAmount().
Referenced by boss_guarm::DoAction(), spell_baleroc_torment_AuraScript::HandleProc(), spell_thaddius_polarity_charge::HandleTargets(), spell_capacitus_polarity_charge::HandleTargets(), BattlefieldWG::OnPlayerJoinWar(), spell_baleroc_vital_flame::OnRemove(), and npc_feral_defender::Reset().
| void Unit::SetBaseAttackTime | ( | WeaponAttackType | att, |
| uint32 | val | ||
| ) |
Definition at line 11012 of file Unit.cpp.
References m_baseAttackSpeed, and UpdateAttackTimeField().
Referenced by Player::_ApplyWeaponDamage(), Player::InitDataForForm(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), npc_pet_hunter_snake_trap::JustAppeared(), Player::SetRegularAttackTime(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), and Creature::UpdateEntry().
|
inline |
Definition at line 1600 of file Unit.h.
Referenced by Player::_ApplyWeaponDamage(), Guardian::InitStatsForLevel(), and Creature::UpdateLevelDependantStats().
|
inline |
Definition at line 1289 of file Unit.h.
References UF::UnitData::BattlePetCompanionExperience, and m_unitData.
Referenced by Player::SetBattlePetData().
|
inline |
Definition at line 1222 of file Unit.h.
References UF::UnitData::BattlePetCompanionGUID, and m_unitData.
Referenced by SetMinion().
|
inline |
Definition at line 1287 of file Unit.h.
References UF::UnitData::BattlePetCompanionNameTimestamp, and m_unitData.
Referenced by SetMinion().
|
inline |
Definition at line 797 of file Unit.h.
References UF::UnitData::BonusResistanceMods, and m_unitData.
Referenced by Player::InitStatsForLevel(), UpdateResistances(), and Guardian::UpdateResistances().
|
inline |
Definition at line 720 of file Unit.h.
References UF::UnitData::BoundingRadius, and m_unitData.
Referenced by boss_hadronox::InitializeAI(), npc_felmyst_trail::npc_felmyst_trail(), boss_felmyst::Reset(), Creature::SetDisplayId(), Creature::SetObjectScale(), and Player::SetObjectScale().
| bool Unit::SetCanAdvFly | ( | bool | enable | ) |
Definition at line 14049 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), HasUnitMovementFlag(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_ADV_FLYING, MOVEMENTFLAG_CAN_ADV_FLY, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_SET_CAN_ADV_FLY, SMSG_MOVE_UNSET_CAN_ADV_FLY, WorldPackets::Movement::MoveUpdate::Status, WorldPackets::Movement::MoveUpdate::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
Referenced by AuraEffect::HandleModAdvFlying().
| bool Unit::SetCanDoubleJump | ( | bool | enable | ) |
Definition at line 13987 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), HasUnitMovementFlag(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_CAN_DOUBLE_JUMP, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_DISABLE_DOUBLE_JUMP, SMSG_MOVE_ENABLE_DOUBLE_JUMP, WorldPackets::Movement::MoveUpdate::Status, WorldPackets::Movement::MoveUpdate::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
Referenced by AuraEffect::HandleModAdvFlying().
|
inlinevirtual |
Reimplemented in Creature.
Definition at line 716 of file Unit.h.
Referenced by Spell::EffectDualWield(), Player::RemoveSpell(), and Creature::SetCanDualWield().
| bool Unit::SetCanFly | ( | bool | enable | ) |
Definition at line 13538 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), Position::GetPositionZ(), BaseEntity::GetTypeId(), HasUnitMovementFlag(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_CAN_FLY, MOVEMENTFLAG_MASK_MOVING_FLY, MOVEMENTFLAG_SPLINE_ELEVATION, MOVEMENTFLAG_SWIMMING, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, Player::SetFallInformation(), SMSG_MOVE_SET_CAN_FLY, SMSG_MOVE_SPLINE_SET_FLYING, SMSG_MOVE_SPLINE_UNSET_FLYING, SMSG_MOVE_UNSET_CAN_FLY, WorldPackets::Movement::MoveUpdate::Status, Object::ToPlayer(), TYPEID_PLAYER, WorldPackets::Movement::MoveUpdate::Write(), WorldPackets::Movement::MoveSplineSetFlag::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
Referenced by boss_slabhide::boss_slabhideAI::boss_slabhideAI(), boss_sindragosa::DoAction(), AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), gm_commandscript::HandleGMFlyCommand(), AuraEffect::HandleModAdvFlying(), boss_sindragosa::JustReachedHome(), boss_nefarian::MovementInform(), boss_onyxia::MovementInform(), boss_high_priestess_azil::boss_high_priestess_azilAI::MovementInform(), boss_slabhide::boss_slabhideAI::MovementInform(), boss_saviana_ragefire::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), npc_rimefang_icc::MovementInform(), npc_melee_hover_disk::PassengerBoarded(), npc_caster_hover_disk::PassengerBoarded(), npc_grauf::PassengerBoarded(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::Reset(), boss_high_priestess_azil::boss_high_priestess_azilAI::Reset(), boss_slabhide::boss_slabhideAI::Reset(), boss_saviana_ragefire::Reset(), npc_unleashed_ballAI::Reset(), boss_rimefang::Reset(), boss_sindragosa::Reset(), npc_spinestalker::Reset(), npc_rimefang_icc::Reset(), npc_simon_bunny::npc_simon_bunnyAI::SetGUID(), npc_pet_dk_ebon_gargoyle::SpellHit(), npc_silverpine_agatha_fenris_isle::UpdateAI(), boss_slabhide::boss_slabhideAI::UpdateAI(), boss_saviana_ragefire::UpdateAI(), boss_sindragosa::UpdateAI(), npc_rimefang_icc::UpdateAI(), boss_urom::UpdateAI(), and npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI().
|
inline |
Definition at line 1575 of file Unit.h.
Referenced by Player::_ApplyAllStatBonuses(), Player::_RemoveAllStatBonuses(), Player::LoadFromDB(), Pet::LoadPetFromDB(), and Creature::UpdateEntry().
| void Unit::SetCannotTurn | ( | bool | apply | ) |
Definition at line 8591 of file Unit.cpp.
References RemoveUnitFlag2(), SetUnitFlag2(), and UNIT_FLAG2_CANNOT_TURN.
| void Unit::SetCantProc | ( | bool | apply | ) |
Definition at line 11111 of file Unit.cpp.
References ASSERT, and m_procDeep.
Referenced by TriggerAurasProcOnEvent().
| bool Unit::SetCanTransitionBetweenSwimAndFly | ( | bool | enable | ) |
Definition at line 13921 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), BaseEntity::GetTypeId(), HasUnitMovementFlag(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_CAN_SWIM_TO_FLY_TRANS, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_DISABLE_TRANSITION_BETWEEN_SWIM_AND_FLY, SMSG_MOVE_ENABLE_TRANSITION_BETWEEN_SWIM_AND_FLY, WorldPackets::Movement::MoveUpdate::Status, TYPEID_PLAYER, WorldPackets::Movement::MoveUpdate::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
Referenced by AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), and gm_commandscript::HandleGMFlyCommand().
| bool Unit::SetCanTurnWhileFalling | ( | bool | enable | ) |
Definition at line 13955 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_CAN_TURN_WHILE_FALLING, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_SET_CAN_TURN_WHILE_FALLING, SMSG_MOVE_UNSET_CAN_TURN_WHILE_FALLING, WorldPackets::Movement::MoveUpdate::Status, WorldPackets::Movement::MoveUpdate::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
Referenced by AuraEffect::HandleAuraCanTurnWhileFalling().
| void Unit::SetChannelObject | ( | uint32 | slot, |
| ObjectGuid | guid | ||
| ) |
Definition at line 3051 of file Unit.cpp.
References UF::UnitData::ChannelObjects, m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), and BaseEntity::SetUpdateFieldValue().
Referenced by Spell::EffectTransmitted().
Definition at line 1464 of file Unit.h.
References UF::UnitData::ChannelData, UF::UnitChannel::Duration, m_unitData, and UF::UnitChannel::StartTimeMs.
Referenced by Spell::SendChannelStart(), and Spell::SendChannelUpdate().
|
inline |
Definition at line 1444 of file Unit.h.
References UF::UnitData::ChannelData, m_unitData, and UF::UnitChannel::SpellID.
Referenced by Spell::SendChannelStart(), and Spell::SendChannelUpdate().
|
inline |
Definition at line 1453 of file Unit.h.
References UF::UnitData::ChannelData, m_unitData, and UF::UnitChannel::SpellVisual.
Referenced by WorldSession::HandleUpdateAuraVisual(), Spell::SendChannelStart(), and Spell::SendChannelUpdate().
| void Unit::SetCharm | ( | Unit * | target, |
| bool | apply | ||
| ) |
Definition at line 6462 of file Unit.cpp.
References _isWalkingBeforeCharm, ASSERT, UF::UnitData::Charm, UF::UnitData::CharmedBy, ClearUnitState(), ObjectGuid::Empty, GetCharmedGUID(), GetCharmerGUID(), WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), Object::GetEntry(), BaseEntity::GetGUID(), WorldObject::GetName(), GetOwnerGUID(), GetPvpFlags(), BaseEntity::GetTypeId(), HasUnitTypeMask(), ObjectGuid::IsEmpty(), IsWalking(), m_charmed, m_charmer, m_Controlled, m_ControlledByPlayer, m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), RemoveUnitFlag(), ReplaceAllPvpFlags(), SetUnitFlag(), BaseEntity::SetUpdateFieldValue(), SetWalk(), Object::ToCreature(), Object::ToPlayer(), ObjectGuid::ToString(), Position::ToString(), TYPEID_PLAYER, UNIT_BYTE2_FLAG_NONE, 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 11859 of file Unit.cpp.
References _oldFactionId, AddUnitState(), ASSERT, AttackStop(), CastStop(), CHARM_TYPE_CHARM, CHARM_TYPE_CONVERT, CHARM_TYPE_POSSESS, CHARM_TYPE_VEHICLE, Player::CharmSpellInitialize(), CLASS_MAGE, CLASS_WARLOCK, MotionMaster::Clear(), CREATURE_TYPE_DEMON, GetAI(), GetCharmerGUID(), GetCharmInfo(), GetClass(), Creature::GetCreatureTemplate(), GetFaction(), GameTime::GetGameTime(), BaseEntity::GetGUID(), GetMotionMaster(), AuraApplication::GetRemoveMode(), WorldObject::GetTransport(), BaseEntity::GetTypeId(), GetVehicleKit(), MotionMaster::HasMovementGenerator(), CharmInfo::InitCharmCreateSpells(), InitCharmInfo(), MotionMaster::InitializeDefault(), CharmInfo::InitPossessCreateSpells(), BaseEntity::IsInWorld(), m_combatManager, MOTION_PRIORITY_HIGHEST, MOTION_PRIORITY_NORMAL, PauseMovement(), Player::PossessSpellInitialize(), RemoveAurasByType(), CombatManager::RevalidateCombat(), ScheduleAIChange(), SetCharm(), SetClass(), Player::SetClientControl(), SetFaction(), SetPetNameTimestamp(), CharmInfo::SetPetNumber(), SetUnitFlag(), sObjectMgr, SPELL_AURA_MOUNTED, Player::StopCastingBindSight(), Player::StopCastingCharm(), StopMoving(), TC_LOG_DEBUG, TC_LOG_FATAL, Object::ToCreature(), Object::ToPlayer(), ObjectGuid::ToString(), Position::ToString(), CreatureTemplate::type, TYPEID_PLAYER, TYPEID_UNIT, UNIT_FLAG_POSSESSED, UNIT_FLAG_REMOVE_CLIENT_CONTROL, UNIT_STATE_CHARMED, UNIT_STATE_POSSESSED, and Player::VehicleSpellInitialize().
Referenced by VehicleJoinEvent::Execute(), AuraEffect::HandleCharmConvert(), AuraEffect::HandleModCharm(), AuraEffect::HandleModPossess(), AuraEffect::HandleModPossessPet(), and Puppet::InitSummon().
|
inline |
Definition at line 777 of file Unit.h.
References UF::UnitData::ClassId, and m_unitData.
Referenced by Player::Create(), Pet::CreateBaseAtTamed(), Creature::InitEntry(), Player::LoadFromDB(), Pet::LoadPetFromDB(), RemoveCharmedBy(), SetCharmedBy(), and Player::SummonPet().
| bool Unit::SetCollision | ( | bool | disable | ) |
Definition at line 13729 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), HasUnitMovementFlag(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_DISABLE_COLLISION, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_DISABLE_COLLISION, SMSG_MOVE_ENABLE_COLLISION, SMSG_MOVE_SPLINE_DISABLE_COLLISION, SMSG_MOVE_SPLINE_ENABLE_COLLISION, WorldPackets::Movement::MoveUpdate::Status, WorldPackets::Movement::MoveUpdate::Write(), WorldPackets::Movement::MoveSplineSetFlag::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
|
inline |
Definition at line 718 of file Unit.h.
References UF::UnitData::CombatReach, and m_unitData.
Referenced by boss_hadronox::InitializeAI(), boss_felmyst::Reset(), boss_kiljaeden::boss_kiljaedenAI::Reset(), Creature::SetDisplayId(), Creature::SetObjectScale(), and Player::SetObjectScale().
|
protected |
Definition at line 11834 of file Unit.cpp.
References CONFUSED_MOTION_TYPE, ObjectGuid::Empty, EnsureVictim(), BaseEntity::GetGUID(), GetMotionMaster(), BaseEntity::GetTypeId(), GetVictim(), IsAlive(), m_playerMovingMe, MotionMaster::MoveConfused(), MotionMaster::Remove(), Player::SetClientControl(), SetTarget(), and TYPEID_PLAYER.
Referenced by ApplyControlStatesIfNeeded(), and SetControlled().
| void Unit::SetControlled | ( | bool | apply, |
| UnitState | state | ||
| ) |
Definition at line 11631 of file Unit.cpp.
References AddUnitState(), ApplyControlStatesIfNeeded(), CastStop(), ClearUnitState(), GetVehicle(), HasAuraType(), HasUnitState(), SendMeleeAttackStop(), SetConfused(), SetFeared(), SetRooted(), SetStunned(), SPELL_AURA_MOD_CONFUSE, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_ROOT_2, SPELL_AURA_MOD_ROOT_DISABLE_GRAVITY, SPELL_AURA_MOD_STUN, SPELL_AURA_MOD_STUN_DISABLE_GRAVITY, Object::ToCreature(), UNIT_STATE_CONFUSED, UNIT_STATE_CONTROLLED, UNIT_STATE_FLEEING, UNIT_STATE_ROOT, and UNIT_STATE_STUNNED.
Referenced by _ExitVehicle(), Vehicle::ApplyAllImmunities(), boss_kologarn::boss_kologarnAI::boss_kologarnAI(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), boss_illidan_stormrage::DamageTaken(), npc_stalagg::DoAction(), npc_feugen::DoAction(), npc_briarpatch_prisoner::DoAction(), Creature::DoFleeToGetAssistance(), boss_jormungarAI::Emerge(), VehicleJoinEvent::Execute(), boss_illidan_stormrage::ExecuteSpecialEvents(), scene_odyn_intro::Finish(), AuraEffect::HandleAuraModRoot(), AuraEffect::HandleAuraModRootAndDisableGravity(), AuraEffect::HandleAuraModStun(), AuraEffect::HandleAuraModStunAndDisableGravity(), AuraEffect::HandleModConfuse(), AuraEffect::HandleModFear(), AuraEffect::HandlePreventFleeing(), npc_briarpatch_prisoner::JustAppeared(), boss_ignis::boss_ignis_AI::JustSummoned(), boss_malygos::MovementInform(), boss_alar::MovementInform(), npc_gunship_gunner::MovementInform(), npc_gunship_rocketeer::MovementInform(), npc_gunship_mage::MovementInform(), npc_scorch_ground::npc_scorch_groundAI::npc_scorch_groundAI(), battleground_isle_of_conquest::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::OnPlayerLeave(), spell_skadi_ride_vehicle::OnRemoveVehicle(), scene_odyn_intro::OnSceneStart(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::OnUnitDeath(), npc_gunship_cannon::PassengerBoarded(), npc_giant_boar_vehicle_q55879::PassengerBoarded(), boss_volazj::Reset(), boss_acidmaw::Reset(), boss_devourer_of_souls::Reset(), boss_urom::Reset(), boss_ionar::Reset(), boss_thorim::boss_thorimAI::Reset(), npc_tournament_training_dummy::Reset(), boss_illidan_stormrage::Reset(), npc_giant_boar_vehicle_q55879::SpellHit(), boss_ionar::SpellHit(), boss_volazj::SpellHitTarget(), boss_jormungarAI::Submerge(), npc_captain_garrick_q55879::UpdateAI(), npc_giant_boar_vehicle_q55879::UpdateAI(), boss_archimonde::UpdateAI(), boss_volazj::UpdateAI(), boss_devourer_of_souls::UpdateAI(), boss_urom::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), npc_tournament_training_dummy::UpdateAI(), boss_illidan_stormrage::UpdateAI(), boss_alar::UpdateAI(), boss_ionar::UpdateAI(), and Creature::UpdateSessileMovementFlags().
|
inline |
Definition at line 931 of file Unit.h.
References UF::UnitData::CosmeticMountDisplayID, and m_unitData.
Referenced by AuraEffect::HandleCosmeticMounted().
|
inline |
Definition at line 875 of file Unit.h.
References UF::UnitData::CreatedBySpell, and m_unitData.
Referenced by Spell::EffectSummonPet(), InitTamedPet(), Pet::LoadPetFromDB(), Map::SummonCreature(), and Transport::SummonPassenger().
|
inline |
Definition at line 1434 of file Unit.h.
References UF::UnitData::BaseHealth, and m_unitData.
Referenced by Player::GiveLevel(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), and Creature::UpdateLevelDependantStats().
|
inline |
Definition at line 1436 of file Unit.h.
References UF::UnitData::BaseMana, and m_unitData.
Referenced by Player::GiveLevel(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), and Creature::UpdateLevelDependantStats().
| void Unit::SetCreateStat | ( | Stats | stat, |
| float | val | ||
| ) |
Definition at line 5306 of file Unit.cpp.
References AsUnderlyingType(), BASE_VALUE, SetStatFlatModifier(), and UNIT_MOD_STAT_START.
Referenced by Player::GiveLevel(), Player::InitStatsForLevel(), and Guardian::InitStatsForLevel().
|
inline |
Definition at line 1214 of file Unit.h.
References UF::UnitData::CreatedBy, and m_unitData.
Referenced by Spell::EffectSummonType(), spell_putricide_mutated_transformation::HandleSummon(), Minion::InitStats(), InitTamedPet(), Pet::LoadPetFromDB(), and Player::SummonPet().
|
inline |
Definition at line 1220 of file Unit.h.
References UF::UnitData::Critter, and m_unitData.
Referenced by SetMinion().
| void Unit::SetCurrentCastSpell | ( | Spell * | pSpell | ) |
Definition at line 3068 of file Unit.cpp.
References AddUnitState(), ASSERT, CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, Spell::GetCastTime(), Spell::GetCurrentContainer(), Spell::GetSpellInfo(), SpellInfo::HasAttribute(), InterruptSpell(), SpellInfo::IsAutoShot(), m_currentSpells, Spell::m_selfContainer, Spell::SetReferencedFromCurrent(), SPELL_ATTR5_ALLOW_ACTIONS_DURING_CHANNEL, SPELL_ATTR9_ALLOW_CAST_WHILE_CHANNELING, SPELL_STATE_FINISHED, SPELL_STATE_IDLE, and UNIT_STATE_CASTING.
Referenced by Spell::prepare().
|
virtual |
Reimplemented in Creature, Minion, Pet, and Player.
Definition at line 9180 of file Unit.cpp.
References ALIVE, ClearAllReactives(), ClearDiminishings(), CombatStop(), DisableSpline(), EMOTE_ONESHOT_NONE, ExitVehicle(), WorldObject::GetInstanceScript(), GetMotionMaster(), GetPowerType(), GetVehicle(), WorldObject::GetZoneScript(), InterruptNonMeleeSpells(), IsNonMeleeSpellCast(), JUST_DIED, JUST_RESPAWNED, m_deathState, m_vignette, PersistsThroughDeath, RemoveAllAurasOnDeath(), RemoveAllControlled(), RemoveUnitFlag(), SetEmoteState(), SetHealth(), SetPower(), SetStandState(), SetVignette(), UNIT_FLAG_SKINNABLE, UNIT_STAND_STATE_STAND, and UnsummonAllTotems().
Referenced by _ExitVehicle(), boss_twinemperorsAI::DamageTaken(), Spell::finish(), AuraEffect::HandleSpiritOfRedemption(), Kill(), Creature::setDeathState(), and Player::setDeathState().
|
inline |
Definition at line 1224 of file Unit.h.
References UF::UnitData::DemonCreator, and m_unitData.
Referenced by Spell::EffectSummonType(), and Map::SummonCreature().
| bool Unit::SetDisableGravity | ( | bool | disable, |
| bool | updateAnimTier = true, |
||
| bool | updatePlayHoverAnim = true |
||
| ) |
Definition at line 13440 of file Unit.cpp.
References AddUnitMovementFlag(), Fly, BaseEntity::GetGUID(), GetPlayerMovingMe(), GetVehicle(), Ground, HasUnitState(), Hover, IsAlive(), BaseEntity::IsCreature(), IsGravityDisabled(), IsHovering(), BaseEntity::IsPlayer(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_DISABLE_GRAVITY, MOVEMENTFLAG_SPLINE_ELEVATION, MOVEMENTFLAG_SWIMMING, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SetAnimTier(), SetPlayHoverAnim(), SMSG_MOVE_DISABLE_GRAVITY, SMSG_MOVE_ENABLE_GRAVITY, SMSG_MOVE_SPLINE_DISABLE_GRAVITY, SMSG_MOVE_SPLINE_ENABLE_GRAVITY, WorldPackets::Movement::MoveUpdate::Status, UNIT_STATE_ROOT, WorldPackets::Movement::MoveUpdate::Write(), WorldPackets::Movement::MoveSplineSetFlag::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
Referenced by boss_aerial_command_unit::boss_aerial_command_unitAI::boss_aerial_command_unitAI(), boss_prince_taldaram::boss_prince_taldaram(), boss_slabhide::boss_slabhideAI::boss_slabhideAI(), boss_vx_001::boss_vx_001AI::boss_vx_001AI(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), npc_high_overlord_saurfang_icc::DoAction(), npc_muradin_bronzebeard_icc::DoAction(), boss_sindragosa::DoAction(), boss_algalon_the_observer::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), boss_razorscale::DoAction(), boss_illidan_stormrage::DoAction(), npc_pulsing_pumpkin::DoAction(), npc_silverpine_deathstalker_rane_yorick::DoAction(), npc_briarpatch_prisoner::DoAction(), boss_nightbane::boss_nightbaneAI::EnterEvadeMode(), boss_felmyst::EnterPhase(), VehicleJoinEvent::Execute(), boss_nightbane::boss_nightbaneAI::ExecuteEvent(), spell_aqusirr_surging_rush_selector::HandleActionSet(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), HandleAuraDisableGravity(), spell_gen_gryphon_wyvern_mount_check::HandleEffectPeriodic(), boss_felmyst::HandleFlightSequence(), spell_aqusirr_surging_rush::HandleScript(), boss_razorscale::Initialize(), boss_headless_horseman::InitializeAI(), npc_pulsing_pumpkin::InitializeAI(), npc_icc_nerubar_broodkeeper::InitializeAI(), npc_raz_the_crazed::npc_raz_the_crazedAI::IsSummonedBy(), npc_silverpine_forsaken_bat::IsSummonedBy(), npc_bg_deephaul_ravine_commander< Path1, Path2, Path3, Path4 >::JustAppeared(), boss_kirtonos_the_herald::JustAppeared(), npc_silverpine_skitterweb_matriarch::JustAppeared(), npc_briarpatch_prisoner::JustAppeared(), npc_brood_of_anzu::JustAppeared(), boss_vazruden_the_herald::JustAppeared(), boss_alar::JustAppeared(), npc_anduin_wrynn_anduin_soul::JustAppeared(), boss_the_golden_serpent::JustAppeared(), boss_mimiron::boss_mimironAI::JustDied(), boss_the_lich_king::JustDied(), boss_ayamiss::JustEngagedWith(), boss_ayamiss::JustReachedHome(), boss_blood_queen_lana_thel::JustReachedHome(), boss_sindragosa::JustReachedHome(), boss_sister_svalna::JustReachedHome(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::JustSummoned(), boss_nefarian::MovementInform(), boss_onyxia::MovementInform(), boss_ayamiss::MovementInform(), boss_high_priestess_azil::boss_high_priestess_azilAI::MovementInform(), boss_slabhide::boss_slabhideAI::MovementInform(), boss_blood_queen_lana_thel::MovementInform(), boss_sister_svalna::MovementInform(), npc_icc_nerubar_broodkeeper::MovementInform(), boss_malygos::MovementInform(), npc_ruby_emerald_amber_drake::MovementInform(), boss_alar::MovementInform(), boss_saviana_ragefire::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), npc_rimefang_icc::MovementInform(), boss_nightbane::boss_nightbaneAI::MovementInform(), npc_kalecgos::MovementInform(), boss_razorscale::MovementInform(), npc_gothik_trigger::npc_gothik_trigger(), npc_rock_borer::npc_rock_borerAI::npc_rock_borerAI(), npc_seismic_shard::npc_seismic_shardAI::npc_seismic_shardAI(), npc_stalactite_trigger::npc_stalactite_triggerAI::npc_stalactite_triggerAI(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), Scripts::Pandaria::TheJadeForest::npc_rappelling_rope::PassengerBoarded(), npc_melee_hover_disk::PassengerBoarded(), npc_caster_hover_disk::PassengerBoarded(), npc_grauf::PassengerBoarded(), Vehicle::RemovePassenger(), boss_prince_taldaram::RemovePrison(), boss_nightbane::boss_nightbaneAI::Reset(), boss_felmyst::Reset(), boss_kalecgos_kj::boss_kalecgos_kjAI::Reset(), npc_shield_orb::npc_shield_orbAI::Reset(), boss_high_priestess_azil::boss_high_priestess_azilAI::Reset(), boss_slabhide::boss_slabhideAI::Reset(), boss_saviana_ragefire::Reset(), npc_unleashed_ballAI::Reset(), npc_open_portal_target_toc::Reset(), npc_blood_queen_lana_thel::Reset(), boss_sindragosa::Reset(), npc_spinestalker::Reset(), npc_rimefang_icc::Reset(), boss_malygos::Reset(), boss_urom::Reset(), boss_thorim::boss_thorimAI::Reset(), boss_svala::Reset(), boss_illidan_stormrage::Reset(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::Reset(), npc_raz_the_crazed::npc_raz_the_crazedAI::SetData(), Creature::setDeathState(), npc_hive_zara_swarmer::SpellHit(), npc_high_overlord_saurfang_icc::SpellHit(), npc_muradin_bronzebeard_icc::SpellHit(), npc_saurfang_event::SpellHit(), npc_image_of_medivh::npc_image_of_medivhAI::StartEvent(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), boss_telash_greywing::UpdateAI(), npc_madrigosa::UpdateAI(), boss_kalecgos::UpdateAI(), npc_silverpine_deathstalker_rane_yorick::UpdateAI(), npc_silverpine_skitterweb_matriarch::UpdateAI(), npc_silverpine_agatha_fenris_isle::UpdateAI(), npc_highborne_lamenter::npc_highborne_lamenterAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), boss_slabhide::boss_slabhideAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_saviana_ragefire::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), boss_sindragosa::UpdateAI(), boss_the_lich_king::UpdateAI(), boss_urom::UpdateAI(), npc_ruby_emerald_amber_drake::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_feral_defender::UpdateAI(), boss_razorscale::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), boss_svala::UpdateAI(), boss_illidan_stormrage::UpdateAI(), boss_alar::UpdateAI(), boss_kaelthas::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), Creature::UpdateFloatingMovementFlags(), boss_kirtonos_the_herald::UpdateIntroEvents(), Creature::UpdateSessileMovementFlags(), boss_vazruden_the_herald::UpdateSpecialEvents(), boss_headless_horseman::WaypointPathEnded(), Scripts::EasternKingdoms::StormwindCity::npc_arkonarin_starshade_ancient_curses::WaypointPathEnded(), Scripts::EasternKingdoms::StormwindCity::npc_lysande_starshade_ancient_curses::WaypointPathEnded(), boss_the_golden_serpent::WaypointPathEnded(), and npc_brood_of_anzu::WaypointPathEnded().
| bool Unit::SetDisableInertia | ( | bool | disable | ) |
Definition at line 14018 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), HasUnitMovementFlag(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_DISABLE_INERTIA, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_DISABLE_INERTIA, SMSG_MOVE_ENABLE_INERTIA, WorldPackets::Movement::MoveUpdate::Status, WorldPackets::Movement::MoveUpdate::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
Referenced by AuraEffect::HandleDisableInertia().
|
virtual |
Reimplemented in Creature, and Pet.
Definition at line 10852 of file Unit.cpp.
References CalculateHoverHeight(), DEFAULT_PLAYER_DISPLAY_SCALE, UF::UnitData::DisplayID, UF::UnitData::DisplayScale, BaseEntity::IsCreature(), IsPet(), m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::UnitData::NativeDisplayID, UF::UnitData::NativeXDisplayScale, SetGender(), BaseEntity::SetUpdateFieldValue(), sObjectMgr, and Object::ToCreature().
Referenced by spell_love_is_in_the_air_service_uniform::AfterApply(), spell_item_dire_brew::AfterApply(), DeMorph(), spell_force_of_earth::spell_force_of_earth_SpellScript::DummyEffect(), spell_gen_battleground_mercenary_shapeshift::HandleApply(), AuraEffect::HandleAuraCloneCaster(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraTransform(), spell_alysrazor_cosmetic_egg_xplosion::spell_alysrazor_cosmetic_egg_xplosion_SpellScript::HandleExplosion(), modify_commandscript::HandleModifyMorphCommand(), spell_mimiron_rocket_strike_target_select::spell_mimiron_rocket_strike_target_select_SpellScript::HandleScript(), Player::InitDisplayIds(), spell_stealth_vanessa_human_heritage::OnApply(), go_crystalline_tear::go_crystalline_tearAI::OnQuestAccept(), spell_stealth_vanessa_human_heritage::OnRemove(), RestoreDisplayId(), and Creature::SetDisplayId().
|
inline |
Definition at line 880 of file Unit.h.
References UF::UnitData::EmoteState, and m_unitData.
Referenced by Attack(), Scripts::Pandaria::TheWanderingIsle::npc_huojin_trainee::BeginSparring(), boss_vx_001::boss_vx_001AI::boss_vx_001AI(), Scripts::Pandaria::TheWanderingIsle::npc_tushui_huojin_trainee::DamageTaken(), npc_safe_technician_sanitron::DoAction(), npc_icc_nerubar_broodkeeper::DoAction(), CoolestFriendBaseAI::DoAction(), boss_vx_001::boss_vx_001AI::DoAction(), boss_grand_warlock_nethekurse::DoAction(), Scripts::Pandaria::TheWanderingIsle::npc_huojin_trainee::DoAction(), boss_lord_stormsong::DoAction(), npc_martha_goslin::npc_martha_goslinAI::DoAction(), WorldSession::HandleEmoteOpcode(), modify_commandscript::HandleModifyStandStateCommand(), WorldSession::HandleMovementOpcode(), npc_commandscript::HandleNpcPlayEmoteCommand(), spell_operation_gnomeregan_basic_orders_emote::HandlePeriodic(), spell_sholazar_freya_dummy::HandleScript(), WorldSession::HandleTextEmoteOpcode(), npc_icc_nerubar_broodkeeper::InitializeAI(), npc_martha_goslin::npc_martha_goslinAI::JustAppeared(), boss_anduin_wrynn::JustAppeared(), boss_cragmaw_the_infested::JustAppeared(), npc_lockmaw_augh_boss::JustEngagedWith(), npc_dk_understudy::JustEngagedWith(), npc_dragonflayer_forge_master::JustEngagedWith(), npc_tirion_fordring_tft::JustReachedHome(), Creature::LoadCreaturesAddon(), npc_martha_goslin::npc_martha_goslinAI::MovementInform(), npc_tirion_fordring_tft::MovementInform(), npc_apothecary_genericAI::MovementInform(), npc_safe_technician_sanitron::MovementInform(), npc_expedition_engineer::MovementInform(), npc_skadi_trashAI::MovementInform(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::OnHealthDepleted(), npc_kayn_sunfury_ashtongue_intro::OnQuestAccept(), conversation_an_unlikely_informant::OnUpdate(), conversation_the_new_classington_estate::OnUpdate(), npc_amberpine_woodsman::Reset(), npc_crusade_recruit::Reset(), boss_shade_of_akama::Reset(), npc_dancing_flames::Reset(), setDeathState(), boss_shade_of_akama::SpellHit(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::SpellHitTarget(), boss_felblood_kaelthas::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_partygoer_pather::UpdateAI(), npc_partygoer::UpdateAI(), npc_huxsworth_hunter_quest_private::UpdateAI(), npc_dawntracker_hunter_quest_private::UpdateAI(), npc_martha_goslin::npc_martha_goslinAI::UpdateAI(), npc_medivh_bm::UpdateAI(), npc_lockmaw_augh_boss::UpdateAI(), npc_andorov::UpdateAI(), boss_lich_king_toc::UpdateAI(), npc_fizzlebang_toc::UpdateAI(), npc_thassarian::UpdateAI(), npc_amberpine_woodsman::UpdateAI(), npc_brann_bronzebeard_keystone::UpdateAI(), npc_crusade_recruit::UpdateAI(), npc_alchemist_finklestein::UpdateAI(), npc_akama_illidan::UpdateAI(), boss_magtheridon::UpdateAI(), boss_grand_warlock_nethekurse::UpdateOutOfCombatEvents(), npc_thassarian::WaypointPathEnded(), boss_xt002::WaypointReached(), and npc_ghoul::npc_ghoulAI::WaypointReached().
| bool Unit::SetEnableFullSpeedPitching | ( | bool | enable | ) |
Definition at line 13859 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), HasUnitMovementFlag(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_FULL_SPEED_PITCHING, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_DISABLE_FULL_SPEED_PITCHING, SMSG_MOVE_ENABLE_FULL_SPEED_PITCHING, WorldPackets::Movement::MoveUpdate::Status, WorldPackets::Movement::MoveUpdate::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
| bool Unit::SetEnableFullSpeedTurning | ( | bool | enable | ) |
Definition at line 13828 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), HasUnitMovementFlag(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_FULL_SPEED_TURNING, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_DISABLE_FULL_SPEED_TURNING, SMSG_MOVE_ENABLE_FULL_SPEED_TURNING, WorldPackets::Movement::MoveUpdate::Status, WorldPackets::Movement::MoveUpdate::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
| void Unit::SetFacingTo | ( | float | ori, |
| bool | force = true, |
||
| uint32 | movementId = EVENT_FACE |
||
| ) |
Definition at line 13385 of file Unit.cpp.
References GetMotionMaster(), IsStopped(), MotionMaster::MoveFace(), and movespline.
Referenced by npc_expedition_engineer::ChangeOrientation(), boss_garothi_worldbreaker::DamageTaken(), npc_auchindoun_auchenai_defender::DoAction(), npc_safe_technician_sanitron::DoAction(), npc_aqusirr_intro_lord_stormsong::DoAction(), boss_grand_warlock_nethekurse::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), boss_lord_stormsong::DoAction(), FormationMovementGenerator::DoUpdate(), DistractMovementGenerator::Finalize(), spell_item_unusual_compass::HandleDummy(), boss_felmyst::HandleFlightSequence(), spell_mandokir_devastating_slam::HandleScript(), npc_silverpine_skitterweb_matriarch::JustReachedHome(), spell_alysrazor_turn_monstrosity::spell_alysrazor_turn_monstrosity_SpellScript::KnockBarrage(), boss_shade_of_aran::boss_aranAI::MoveInLineOfSight(), npc_lockmaw_augh_boss::MovementInform(), npc_voljin_zulaman::npc_voljin_zulamanAI::MovementInform(), boss_algalon_the_observer::MovementInform(), npc_martha_goslin::npc_martha_goslinAI::MovementInform(), npc_roger_owens::npc_roger_owensAI::MovementInform(), boss_onyxia::MovementInform(), boss_high_priestess_azil::boss_high_priestess_azilAI::MovementInform(), boss_slabhide::boss_slabhideAI::MovementInform(), npc_commander_eligor_dawnbringer::MovementInform(), npc_king_jokkum_vehicle::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), npc_rimefang_icc::MovementInform(), boss_aerial_command_unit::boss_aerial_command_unitAI::MovementInform(), npc_inquisitor_baleful_molten_shore::MovementInform(), npc_safe_technician_sanitron::MovementInform(), boss_lava_guard_gordoth::MovementInform(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::MovementInform(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::MovementInform(), gunship_npc_AI::MovementInform(), npc_gunship_mage::MovementInform(), boss_the_lich_king::MovementInform(), npc_brann_bronzebeard_algalon::MovementInform(), boss_razorscale::MovementInform(), npc_grauf::MovementInform(), npc_leader_northbound::MovementInform(), npc_re_sized_boar_q56034::MovementInform(), npc_announcer_toc5::npc_announcer_toc5AI::MovementInform(), spell_the_lurker_below_spout_periodic::OnPeriodic(), conversation_the_new_classington_estate::OnUpdate(), conversation_cyrus_crestfall_shaking_hands::OnUpdate(), npc_silverpine_fenris_keep_camera::PassengerBoarded(), SmartScript::ProcessAction(), Creature::ReacquireSpellFocusTarget(), npc_dancing_flames::ReceiveEmote(), npc_sinclari_vh::ScheduleIntro(), npc_tirion_fordring_tft::SpellHit(), boss_vazruden_the_herald::SpellHit(), boss_anduin_wrynn::StartIntermission(), SimpleCharmedPlayerAI::UpdateAI(), boss_rend_blackhand::UpdateAI(), boss_victor_nefarius::UpdateAI(), npc_kalecgos::UpdateAI(), npc_vanessa_vancleef_human_heritage_lions_pride_inn_basement::UpdateAI(), npc_partygoer::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), npc_silverpine_fallen_human::UpdateAI(), npc_silverpine_agatha_fenris_isle::UpdateAI(), npc_silverpine_fenris_keep_camera::UpdateAI(), npc_gnome_goblin_plains_make_copter_private::UpdateAI(), npc_malcolm_moore::npc_malcolm_mooreAI::UpdateAI(), npc_sergeant_morigan::npc_sergeant_moriganAI::UpdateAI(), npc_roger_owens::npc_roger_owensAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), npc_medivh_bm::UpdateAI(), npc_brann_bronzebeard_anraphet::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), Scripts::Kalimdor::Durotar::npc_voljin_garrosh_vision::UpdateAI(), Scripts::Kalimdor::Durotar::npc_voljin_thrall_vision::UpdateAI(), boss_corborus::boss_corborusAI::UpdateAI(), boss_high_priestess_azil::boss_high_priestess_azilAI::UpdateAI(), npc_hadronox_crusherPackAI::UpdateAI(), boss_jaraxxus::UpdateAI(), boss_devourer_of_souls::UpdateAI(), boss_the_lich_king::UpdateAI(), boss_svala::UpdateAI(), npc_bloodmage_laurith::UpdateAI(), npc_brann_bronzebeard_keystone::UpdateAI(), npc_alchemist_finklestein::UpdateAI(), boss_illidan_stormrage::UpdateAI(), npc_akama_illidan::UpdateAI(), npc_akama_shade::UpdateAI(), npc_claw::UpdateAI(), npc_warden_mellichar::UpdateAI(), boss_kaelthas::UpdateAI(), npc_barada::npc_baradaAI::UpdateAI(), npc_millhouse_manastorm::UpdateIntroEvents(), Scripts::EasternKingdoms::StormwindCity::npc_jaina_proudmoore_tides_of_war::WaypointPathEnded(), npc_leryssa::WaypointPathEnded(), npc_auchindoun_soulbinder_tuulani::WaypointReached(), npc_silverpine_deathstalker_rane_yorick::WaypointReached(), Scripts::Pandaria::TheWanderingIsle::npc_min_dimwind_summon::WaypointReached(), npc_morridune::WaypointReached(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::WaypointReached(), and npc_argent_soldier::npc_argent_soldierAI::WaypointReached().
| void Unit::SetFacingToObject | ( | WorldObject const * | object, |
| bool | force = true, |
||
| uint32 | movementId = EVENT_FACE |
||
| ) |
Definition at line 13394 of file Unit.cpp.
References GetMotionMaster(), IsStopped(), MotionMaster::MoveFace(), and movespline.
Referenced by npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::AttackIceWall(), npc_silverpine_mutant_bush_chicken::CheckForForestEttin(), npc_sparring_partner_exiles_reach::DamageTaken(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::DoAction(), npc_maiev::DoAction(), npc_silverpine_forest_ettin::DoAction(), npc_ranshalla::npc_ranshallaAI::DoChannelTorchSpell(), boss_nightbane::boss_nightbaneAI::ExecuteEvent(), Scripts::Pandaria::TheWanderingIsle::npc_master_li_fei_summon::FaceToPlayer(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::GiveClue(), spell_fel_lord_caza_throwing_axe_selector::HandleHit(), spell_creeping_rot_selector::HandleHit(), spell_mimiron_weld::spell_mimiron_weld_AuraScript::HandleTick(), npc_terenas_menethil::IsSummonedBy(), npc_crystal_spike_trigger::IsSummonedBy(), npc_silverpine_deathstalker_rane_yorick::IsSummonedBy(), npc_ruby_emerald_amber_drake::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_min_dimwind_summon::IsSummonedBy(), npc_captain_warlord_beach_arrive_private::IsSummonedBy(), npc_strangulate_vehicle::IsSummonedBy(), npc_iron_roots::npc_iron_rootsAI::IsSummonedBy(), npc_sevis_brightflame_coilskar_gateway_private::JustAppeared(), npc_silverpine_generic_actor_fenris_keep::JustAppeared(), npc_maiev::JustAppeared(), npc_ranshalla::npc_ranshallaAI::JustDidDialogueStep(), npc_ashtongue_broken::MovementInform(), npc_redridge_subdued_canyon_ettin::MovementInform(), npc_voljin_zulaman::npc_voljin_zulamanAI::MovementInform(), boss_high_inquisitor_whitemane::MovementInform(), npc_jena_anderson::npc_jena_andersonAI::MovementInform(), boss_professor_putricide::MovementInform(), boss_malygos::MovementInform(), npc_taelia_get_your_bearings::MovementInform(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::MovementInform(), npc_twilight_volunteer::MovementInform(), boss_jaraxxus::MovementInform(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::MovementInform(), npc_sparring_partner_exiles_reach::MovementInform(), npc_sparring_partner_combat_training::MovementInform(), npc_geezle::npc_geezleAI::NextStep(), npc_crusade_recruit::OnGossipSelect(), at_aggro_radius_check_enhanced_combat_tactics::OnUnitEnter(), conversation_the_new_classington_estate::OnUpdate(), conversation_sylvanas_windrunner_introduction::OnUpdate(), npc_jungle_punch_target::proceedCwEvent(), SmartScript::ProcessAction(), Creature::ReacquireSpellFocusTarget(), npc_lake_frog::ReceiveEmote(), npc_bloodmage_laurith::SetGUID(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::SetInFace(), Creature::SetSpellFocus(), boss_swamplord_muselek::SpellHit(), npc_draenei_survivor::npc_draenei_survivorAI::SpellHit(), npc_magister_aledis::npc_magister_aledisAI::StartFight(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_eachother(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_Pathaleons_Image(), boss_victor_nefarius::UpdateAI(), npc_madrigosa::UpdateAI(), npc_wounded_coldridge_mountaineer::npc_wounded_coldridge_mountaineerAI::UpdateAI(), npc_partygoer::UpdateAI(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::UpdateAI(), Scripts::EasternKingdoms::Westfall::npc_westfall_small_time_hustler::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_survivors_healed_by_leader_beach_private< PathId, WaitTime >::UpdateAI(), npc_sparring_partner_combat_training::UpdateAI(), npc_huxsworth_hunter_quest_private::UpdateAI(), npc_dawntracker_hunter_quest_private::UpdateAI(), npc_jena_anderson::npc_jena_andersonAI::UpdateAI(), npc_malcolm_moore::npc_malcolm_mooreAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), boss_lockmaw::UpdateAI(), boss_onyxia::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), boss_high_priestess_azil::boss_high_priestess_azilAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_devourer_of_souls::UpdateAI(), npc_uther_quel_delar::npc_uther_quel_delarAI::UpdateAI(), boss_krick::UpdateAI(), npc_high_overlord_saurfang_icc::UpdateAI(), boss_professor_putricide::UpdateAI(), npc_rimefang_icc::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), boss_malygos::UpdateAI(), boss_volkhan::UpdateAI(), boss_vx_001::boss_vx_001AI::UpdateAI(), boss_svala::UpdateAI(), npc_thassarian::UpdateAI(), boss_illidan_stormrage::UpdateAI(), boss_wrath_scryer_soccothrates::UpdateAI(), npc_pet_gen_pandaren_monk::UpdateAI(), npc_millhouse_manastorm::UpdateIntroEvents(), npc_kayn_sunfury_invasion_begins::WaypointPathEnded(), npc_earthen_ring_flamecaller::WaypointPathEnded(), npc_ranshalla::npc_ranshallaAI::WaypointReached(), and npc_demolitionist_legoso::npc_demolitionist_legosoAI::WaypointReached().
| void Unit::SetFacingToPoint | ( | Position const & | point, |
| bool | force = true |
||
| ) |
Definition at line 13403 of file Unit.cpp.
References Movement::MoveSplineInit::DisableTransportPathTransformations(), EFFECT_MOTION_TYPE, EVENT_FACE, Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), WorldObject::GetTransport(), IsStopped(), Movement::MoveSplineInit::Launch(), movespline, Movement::MoveSplineInit::MoveTo(), Movement::MoveSplineInit::SetFacing(), Object::ToCreature(), and UpdateSplineMovement().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 887 of file Unit.h.
References UF::UnitData::FactionTemplate, and m_unitData.
Referenced by boss_victor_nefarius::BeginEvent(), boss_vaelastrasz::boss_vaelastrasz(), boss_veknilash::boss_veknilashAI::CastSpellOnBug(), boss_veklor::boss_veklorAI::CastSpellOnBug(), boss_eadric::boss_eadricAI::DamageTaken(), boss_paletress::boss_paletressAI::DamageTaken(), npc_claw::DamageTaken(), npc_argent_valiant::DamageTaken(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::DestroyDoor(), boss_coren_direbrew::DoAction(), npc_direbrew_antagonist::DoAction(), boss_apothecary_hummel::DoAction(), npc_apothecary_genericAI::DoAction(), npc_stone_keeper::DoAction(), npc_akama_shade::DoAction(), npc_ashtongue_broken::DoAction(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DoNice(), boss_anduin_wrynn::EndEncounter(), boss_thorim::boss_thorimAI::FinishEncounter(), AuraEffect::HandleAuraModFaction(), modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcSetFactionIdCommand(), spell_deliver_stolen_horse::HandleScriptEffect(), npc_inner_demon::InitializeAI(), TempSummon::InitStats(), Minion::InitStats(), InitTamedPet(), boss_majordomo::JustAppeared(), npc_stone_keeper::JustAppeared(), npc_yor::JustAppeared(), boss_the_golden_serpent::JustAppeared(), boss_freya::boss_freyaAI::JustDied(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustDied(), npc_stone_keeper::JustReachedHome(), boss_ignis::boss_ignis_AI::JustSummoned(), boss_balinda::JustSummoned(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::JustSummoned(), npc_felfire_portal::npc_felfire_portalAI::JustSummoned(), Pet::LoadPetFromDB(), npc_argent_valiant::MovementInform(), npc_argent_valiant::npc_argent_valiant(), npc_iron_roots::npc_iron_rootsAI::npc_iron_rootsAI(), BattlefieldTB::OnCreatureCreate(), battleground_isle_of_conquest::OnCreatureCreate(), battleground_strand_of_the_ancients::OnCreatureCreate(), instance_nexus::instance_nexus_InstanceMapScript::OnCreatureCreate(), instance_black_temple::instance_black_temple_InstanceMapScript::OnCreatureCreate(), boss_doomrel::boss_doomrelAI::OnGossipSelect(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::OnGossipSelect(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::OnGossipSelect(), npc_belnistrasz::npc_belnistraszAI::OnQuestAccept(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::OnQuestAccept(), npc_muglash::npc_muglashAI::OnQuestAccept(), go_crystalline_tear::go_crystalline_tearAI::OnQuestAccept(), npc_ranshalla::npc_ranshallaAI::OnQuestAccept(), npc_maghar_captive::npc_maghar_captiveAI::OnQuestAccept(), npc_kurenai_captive::npc_kurenai_captiveAI::OnQuestAccept(), npc_earthmender_wilda::npc_earthmender_wildaAI::OnQuestAccept(), npc_whisperwind_lasher::npc_whisperwind_lasherAI::OnSpellClick(), at_zumrah::OnTrigger(), npc_blazing_monstrosity::npc_blazing_monstrosityAI::PassengerBoarded(), npc_melee_hover_disk::PassengerBoarded(), npc_chicken_cluck::npc_chicken_cluckAI::ReceiveEmote(), RemoveCharmedBy(), boss_coren_direbrew::Reset(), npc_direbrew_minion::Reset(), boss_doomrel::boss_doomrelAI::Reset(), boss_victor_nefarius::Reset(), npc_unworthy_initiate::npc_unworthy_initiateAI::Reset(), boss_apothecary_hummel::Reset(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::Reset(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::Reset(), boss_zum_rah::boss_zum_rahAI::Reset(), npc_sergeant_bly::npc_sergeant_blyAI::Reset(), boss_sara::boss_saraAI::Reset(), npc_akama_shade::Reset(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::Reset(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::Reset(), npc_chicken_cluck::npc_chicken_cluckAI::Reset(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), RestoreFaction(), SetCharmedBy(), Player::SetFactionForRace(), Player::SetGameMaster(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::SpawnNPC(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::SpellHit(), FollowerAI::StartFollow(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), Player::SummonPet(), WorldObject::SummonTrigger(), boss_vaelastrasz::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), npc_unworthy_initiate::npc_unworthy_initiateAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), boss_kalecgos::UpdateAI(), boss_ironaya::UpdateAI(), boss_ouro::boss_ouroAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_sergeant_bly::npc_sergeant_blyAI::UpdateAI(), boss_deathbringer_saurfang::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_hodir::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), boss_sara::boss_saraAI::UpdateAI(), npc_akama_shade::UpdateAI(), npc_claw::UpdateAI(), npc_magister_aledis::npc_magister_aledisAI::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::UpdateAI(), npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI(), Creature::UpdateEntry(), npc_magwin::npc_magwinAI::UpdateEscortAI(), boss_majordomo::UpdateSpecialEvents(), boss_the_golden_serpent::WaypointPathEnded(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::WaypointReached(), and npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached().
| bool Unit::SetFall | ( | bool | enable | ) |
Definition at line 13503 of file Unit.cpp.
References AddUnitMovementFlag(), HasUnitMovementFlag(), WorldObject::m_movementInfo, MOVEMENTFLAG_FALLING, MOVEMENTFLAG_FALLING_FAR, RemoveUnitMovementFlag(), and MovementInfo::SetFallTime().
Referenced by MotionMaster::MoveFall().
|
protected |
Definition at line 11798 of file Unit.cpp.
References CONFIG_CREATURE_FAMILY_FLEE_DELAY, ObjectGuid::Empty, FLEEING_MOTION_TYPE, getAttackerForHelper(), GetAuraEffectsByType(), BaseEntity::GetGUID(), GetMotionMaster(), BaseEntity::GetTypeId(), ObjectAccessor::GetUnit(), GetVictim(), IsAlive(), IsInCombat(), BaseEntity::IsPlayer(), m_playerMovingMe, MotionMaster::MoveFleeing(), MotionMaster::MoveTargetedHome(), MotionMaster::Remove(), RemoveUnitFlag(), Player::SetClientControl(), SetTarget(), SetUnitFlag(), SPELL_AURA_MOD_FEAR, sWorld, TYPEID_PLAYER, and UNIT_FLAG_FLEEING.
Referenced by ApplyControlStatesIfNeeded(), and SetControlled().
| bool Unit::SetFeatherFall | ( | bool | enable | ) |
Definition at line 13618 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_FALLING_SLOW, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_SET_FEATHER_FALL, SMSG_MOVE_SET_NORMAL_FALL, SMSG_MOVE_SPLINE_SET_FEATHER_FALL, SMSG_MOVE_SPLINE_SET_NORMAL_FALL, WorldPackets::Movement::MoveUpdate::Status, WorldPackets::Movement::MoveUpdate::Write(), WorldPackets::Movement::MoveSplineSetFlag::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
Referenced by AuraEffect::HandleAuraFeatherFall().
| void Unit::SetFlightCapabilityID | ( | int32 | flightCapabilityId, |
| bool | clientUpdate | ||
| ) |
Definition at line 9022 of file Unit.cpp.
References ADV_FLYING_ADD_IMPULSE_MAX_SPEED, ADV_FLYING_AIR_FRICTION, ADV_FLYING_BANKING_RATE, ADV_FLYING_DOUBLE_JUMP_VEL_MOD, ADV_FLYING_GLIDE_START_MIN_HEIGHT, ADV_FLYING_LAUNCH_SPEED_COEFFICIENT, ADV_FLYING_LIFT_COEFFICIENT, ADV_FLYING_MAX_VEL, ADV_FLYING_OVER_MAX_DECELERATION, ADV_FLYING_PITCHING_RATE_DOWN, ADV_FLYING_PITCHING_RATE_UP, ADV_FLYING_SURFACE_FRICTION, ADV_FLYING_TURN_VELOCITY_THRESHOLD, UF::UnitData::FlightCapabilityID, m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), sFlightCapabilityStore, and UpdateAdvFlyingSpeed().
Referenced by AuraEffect::HandleAuraMounted(), Unit(), and UpdateMountCapability().
|
inline |
Definition at line 814 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_pri_spirit_of_redemption::HandleAbsorb(), 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(), Creature::setDeathState(), Creature::SetSpawnHealth(), Player::SummonPet(), boss_cthun::cthunAI::UpdateAI(), boss_xt002::UpdateAI(), boss_emalon::UpdateAI(), and boss_black_knight::boss_black_knightAI::UpdateAI().
|
inline |
Definition at line 837 of file Unit.h.
Referenced by Player::Create(), Spell::EffectSelfResurrect(), Player::GiveLevel(), spell_gen_revive_self::HandleDummy(), cheat_commandscript::HandlePowerCheatCommand(), spell_gen_pet_summoned::HandleScript(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), Pet::LoadPetFromDB(), npc_toc_rogue::Reset(), Player::ResetAllPowers(), Player::ResurrectUsingRequestDataImpl(), SetInitialPowerValue(), SetPowerType(), and Player::SummonPet().
|
inline |
Definition at line 780 of file Unit.h.
References m_unitData, and UF::UnitData::Sex.
Referenced by Player::Create(), Pet::CreateBaseAtTamed(), modify_commandscript::HandleModifyGenderCommand(), Player::LoadFromDB(), Pet::LoadPetFromDB(), and SetDisplayId().
| void Unit::SetGravityModifier | ( | float | gravityModifier | ) |
Definition at line 14303 of file Unit.cpp.
References BaseEntity::GetGUID(), GetPlayerMovingMe(), WorldPackets::Movement::MoveSetGravityModifier::GravityModifier, WorldPackets::Movement::MoveUpdateSetGravityModifier::GravityModifier, m_movementCounter, WorldObject::m_movementInfo, WorldPackets::Movement::MoveSetGravityModifier::MoverGUID, WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetGravityModifier::SequenceIndex, WorldPackets::Movement::MoveUpdateSetGravityModifier::Status, WorldPackets::Movement::MoveSetGravityModifier::Write(), and WorldPackets::Movement::MoveUpdateSetGravityModifier::Write().
Referenced by AuraEffect::HandleModGravity().
| void Unit::SetHealth | ( | uint64 | val | ) |
Definition at line 10041 of file Unit.cpp.
References CORPSE, DEAD, getDeathState(), GetHealth(), GetMaxHealth(), BaseEntity::GetTypeId(), GROUP_UPDATE_FLAG_CUR_HP, GROUP_UPDATE_FLAG_PET_CUR_HP, UF::UnitData::Health, JUST_DIED, m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), Object::ToCreature(), ToPet(), Object::ToPlayer(), TriggerOnHealthChangeAuras(), and TYPEID_PLAYER.
Referenced by spell_mage_alter_time_aura::AfterRemove(), boss_twilight_halion::boss_twilight_halion(), Player::BuildPlayerRepop(), npc_ohgan::DamageTaken(), npc_sparring_partner_exiles_reach::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), boss_twinemperorsAI::DamageTaken(), boss_noth::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), boss_black_knight::boss_black_knightAI::DamageTaken(), Scripts::Kalimdor::Durotar::npc_durotar_tiki_target::DamageTaken(), BloodPrincesBossAI::DoAction(), npc_terenas_menethil::DoAction(), boss_lady_vashj::DoAction(), Spell::EffectResurrectPet(), Spell::EffectSelfResurrect(), Spell::EffectSummonType(), boss_malchezaar::boss_malchezaarAI::EnfeebleResetHealth(), spell_mage_cauterize_AuraScript::HandleAbsorb(), spell_dh_last_resort::HandleAbsorb(), spell_rog_cheat_death::HandleAbsorb(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModIncreaseMaxHealth(), spell_aqusirr_erupting_waters::HandleDamage(), spell_illidari_council_empyreal_balance::HandleDummy(), spell_q28813_set_health_random::HandleDummyEffect(), spell_gen_set_health::HandleHit(), modify_commandscript::HandleModifyHPCommand(), AuraEffect::HandleModTotalPercentStat(), spell_lord_and_lady_waycrest_vitality_transfer::HandlePeriodic(), spell_halazzi_set_health::HandleScript(), spell_stinky_precious_decimate::HandleScript(), spell_illidari_council_empyreal_equivalency::HandleScript(), spell_ahune_synch_health::HandleScript(), spell_harbinger_skyriss_health::HandleScript(), BloodPrincesBossAI::JustAppeared(), npc_anduin_wrynn_anduin_hope::JustAppeared(), boss_twinemperorsAI::JustDied(), BloodPrincesBossAI::JustReachedHome(), boss_skeram::boss_skeramAI::JustSummoned(), boss_attumen::boss_attumenAI::JustSummoned(), boss_baltharus_the_warborn::JustSummoned(), boss_drakkari_colossus::JustSummoned(), Player::LoadFromDB(), Pet::LoadPetFromDB(), ModifyHealth(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::MovementInform(), Scripts::EasternKingdoms::Vashjir::spell_vashjir_low_health::OnApply(), spell_warr_kill_or_be_killed_warrior::OnRemove(), Player::RegenerateHealth(), npc_wounded_milita::npc_wounded_militaAI::Reset(), npc_draenei_survivor::npc_draenei_survivorAI::Reset(), npc_injured_draenei::npc_injured_draeneiAI::Reset(), BloodPrincesBossAI::Reset(), boss_murmur::Reset(), npc_anduin_wrynn_anduin_hope::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), Player::ResurrectPlayer(), Player::ResurrectUsingRequestDataImpl(), setDeathState(), SetMaxHealth(), Creature::SetSpawnHealth(), boss_twinemperorsAI::SpellHit(), spell_anduin_wrynn_progression_aura::Trigger(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), npc_wounded_milita::npc_wounded_militaAI::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), boss_baltharus_the_warborn::UpdateAI(), npc_baltharus_the_warborn_clone::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), boss_krick::UpdateAI(), boss_blood_council_controller::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), Creature::UpdateEntry(), Player::UpdateItemLevelAreaBasedScaling(), and Creature::UpdateLevelDependantStats().
| bool Unit::SetHover | ( | bool | enable, |
| bool | updateAnimTier = true |
||
| ) |
No need to check height on ascent
Dying creatures will MoveFall from setDeathState
Definition at line 13656 of file Unit.cpp.
References AddUnitMovementFlag(), Fly, WorldObject::GetFloorZ(), BaseEntity::GetGUID(), GetPlayerMovingMe(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), BaseEntity::GetTypeId(), Ground, HasUnitMovementFlag(), HasUnitState(), Hover, IsAlive(), BaseEntity::IsCreature(), isDying(), IsGravityDisabled(), IsHovering(), BaseEntity::IsPlayer(), m_movementCounter, WorldObject::m_movementInfo, m_unitData, MOVEMENTFLAG_HOVER, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SetAnimTier(), SetPlayHoverAnim(), SMSG_MOVE_SET_HOVERING, SMSG_MOVE_SPLINE_SET_HOVER, SMSG_MOVE_SPLINE_UNSET_HOVER, SMSG_MOVE_UNSET_HOVERING, WorldPackets::Movement::MoveUpdate::Status, TYPEID_UNIT, UNIT_STATE_ROOT, WorldObject::UpdateAllowedPositionZ(), UpdateHeight(), WorldPackets::Movement::MoveUpdate::Write(), WorldPackets::Movement::MoveSplineSetFlag::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
Referenced by boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_pulsing_pumpkin::DoAction(), spell_harlan_blades_of_light::HandleAfterCast(), AuraEffect::HandleAuraHover(), boss_headless_horseman::InitializeAI(), npc_pulsing_pumpkin::InitializeAI(), Creature::InitializeMovementCapabilities(), npc_bg_deephaul_ravine_commander< Path1, Path2, Path3, Path4 >::JustAppeared(), boss_ayamiss::JustEngagedWith(), boss_ayamiss::JustReachedHome(), boss_sister_svalna::JustReachedHome(), boss_ayamiss::MovementInform(), boss_slabhide::boss_slabhideAI::MovementInform(), boss_sister_svalna::MovementInform(), boss_alar::MovementInform(), boss_sapphiron::Reset(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::Reset(), Creature::setDeathState(), boss_armsmaster_harlan::UpdateAI(), npc_madrigosa::UpdateAI(), boss_slabhide::boss_slabhideAI::UpdateAI(), boss_sapphiron::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_feral_defender::UpdateAI(), boss_svala::UpdateAI(), boss_alar::UpdateAI(), boss_kaelthas::UpdateAI(), and boss_headless_horseman::WaypointPathEnded().
|
inline |
Definition at line 1162 of file Unit.h.
References UF::UnitData::HoverHeight, and m_unitData.
Referenced by CalculateHoverHeight(), and npc_anduin_wrynn_anduin_soul::JustAppeared().
| bool Unit::SetIgnoreMovementForces | ( | bool | ignore | ) |
Definition at line 14191 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), HasUnitMovementFlag(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_IGNORE_MOVEMENT_FORCES, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_SET_IGNORE_MOVEMENT_FORCES, SMSG_MOVE_UNSET_IGNORE_MOVEMENT_FORCES, WorldPackets::Movement::MoveUpdate::Status, WorldPackets::Movement::MoveUpdate::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
Referenced by AuraEffect::HandleIgnoreMovementForces().
|
inlinevirtual |
Reimplemented in Creature, and Creature.
Definition at line 1059 of file Unit.h.
References SetImmuneToAll().
Referenced by SetImmuneToAll().
| void Unit::SetImmuneToAll | ( | bool | apply, |
| bool | keepCombat | ||
| ) |
Definition at line 8524 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 spell_gen_feign_death_all_flags_uninteractible::HandleEffectApply(), spell_gen_feign_death_all_flags_no_uninteractible::HandleEffectApply(), spell_gen_feign_death_all_flags_uninteractible::OnRemove(), spell_gen_feign_death_all_flags_no_uninteractible::OnRemove(), and Creature::SetImmuneToAll().
|
inlinevirtual |
Reimplemented in Creature, and Creature.
Definition at line 1065 of file Unit.h.
References SetImmuneToNPC().
Referenced by SetImmuneToNPC().
| void Unit::SetImmuneToNPC | ( | bool | apply, |
| bool | keepCombat | ||
| ) |
Definition at line 8560 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 1062 of file Unit.h.
References SetImmuneToPC().
Referenced by SetImmuneToPC().
| void Unit::SetImmuneToPC | ( | bool | apply, |
| bool | keepCombat | ||
| ) |
Definition at line 8537 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 spell_kings_rest_molten_gold::OnApply(), spell_kings_rest_molten_gold::OnRemove(), and Creature::SetImmuneToPC().
|
inline |
Definition at line 1075 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_devout_follower::npc_devout_followerAI::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 13379 of file Unit.cpp.
References Position::GetAbsoluteAngle(), HasUnitState(), Position::SetOrientation(), and UNIT_STATE_CANNOT_TURN.
Referenced by spell_creeping_rot_selector::HandleHit(), WorldSession::HandlePetActionHelper(), spell_mimiron_summon_flames_spread::spell_mimiron_summon_flames_spread_SpellScript::OnHit(), AuraEffect::PeriodicTick(), Creature::SelectVictim(), and ChaseMovementGenerator::Update().
| void Unit::SetInitialPowerValue | ( | Powers | powerType | ) |
Definition at line 5769 of file Unit.cpp.
References PowerTypeEntry::DefaultPower, PowerTypeEntry::GetFlags(), sDB2Manager, SetFullPower(), SetPower(), and UnitsUseDefaultPowerOnInit.
Referenced by SetPowerType(), and Creature::SetSpawnHealth().
|
inline |
Definition at line 1850 of file Unit.h.
Referenced by AuraEffect::HandleModCastingSpeed().
|
virtual |
Reimplemented in Creature.
Definition at line 9329 of file Unit.cpp.
References IsInCombat(), RemoveUnitFlag3(), SetUnitFlag3(), UNIT_FLAG3_ALLOW_INTERACTION_WHILE_IN_COMBAT, and UpdateNearbyPlayersInteractions().
Referenced by Creature::SetInteractionAllowedInCombat().
|
virtual |
Reimplemented in Creature.
Definition at line 9319 of file Unit.cpp.
References RemoveUnitFlag2(), SetUnitFlag2(), UNIT_FLAG2_INTERACT_WHILE_HOSTILE, and UpdateNearbyPlayersInteractions().
Referenced by Creature::SetInteractionAllowedWhileHostile().
|
inline |
Definition at line 1886 of file Unit.h.
Referenced by boss_leotheras_the_blind::DoAction(), boss_leotheras_the_blind::Reset(), and Creature::UpdateEntry().
| bool Unit::SetJumpingDisabled | ( | bool | disable | ) |
Definition at line 13797 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), HasUnitMovementFlag(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_NO_JUMPING, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_DISABLE_JUMPING, SMSG_MOVE_ENABLE_JUMPING, WorldPackets::Movement::MoveUpdate::Status, WorldPackets::Movement::MoveUpdate::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
|
inline |
Definition at line 976 of file Unit.h.
Referenced by Spell::TargetInfo::DoDamageAndTriggers().
| void Unit::SetLevel | ( | uint8 | lvl, |
| bool | sendUpdate = true |
||
| ) |
Definition at line 10019 of file Unit.cpp.
References BaseEntity::GetGUID(), GROUP_UPDATE_FLAG_LEVEL, UF::UnitData::Level, m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), sCharacterCache, BaseEntity::SetUpdateFieldValue(), and Object::ToPlayer().
Referenced by Player::Create(), Player::GiveLevel(), group_commandscript::HandleGroupLevelCommand(), npc_commandscript::HandleNpcSetLevelCommand(), reset_commandscript::HandleResetLevelCommand(), 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().
|
inline |
Definition at line 1594 of file Unit.h.
References m_unitData, and UF::UnitData::MainHandWeaponAttackPower.
Referenced by Player::_ApplyWeaponDamage().
| void Unit::SetMaxHealth | ( | uint64 | val | ) |
Definition at line 10072 of file Unit.cpp.
References GetHealth(), BaseEntity::GetTypeId(), GROUP_UPDATE_FLAG_MAX_HP, GROUP_UPDATE_FLAG_PET_MAX_HP, m_unitData, BaseEntity::m_values, UF::UnitData::MaxHealth, UF::UpdateFieldHolder::ModifyValue(), Player::SetGroupUpdateFlag(), SetHealth(), BaseEntity::SetUpdateFieldValue(), Object::ToCreature(), ToPet(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Spell::EffectSummonType(), spell_illidari_council_empyreal_balance::HandleDummy(), modify_commandscript::HandleModifyHPCommand(), 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 10151 of file Unit.cpp.
References GetPower(), GetPowerIndex(), BaseEntity::GetTypeId(), GROUP_UPDATE_FLAG_MAX_POWER, m_unitData, BaseEntity::m_values, MAX_POWERS_PER_CLASS, UF::UnitData::MaxPower, UF::UpdateFieldHolder::ModifyValue(), Player::SetGroupUpdateFlag(), SetPower(), BaseEntity::SetUpdateFieldValue(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by AuraEffect::HandleEnableAltPower(), modify_commandscript::HandleModifyEnergyCommand(), modify_commandscript::HandleModifyManaCommand(), modify_commandscript::HandleModifyPowerCommand(), modify_commandscript::HandleModifyRageCommand(), modify_commandscript::HandleModifyRunicPowerCommand(), Player::InitStatsForLevel(), boss_guarm::JustAppeared(), npc_silverpine_deathstalker::JustAppeared(), npc_silverpine_deathstalker_rane_yorick::JustAppeared(), npc_silverpine_orc_sea_dog::JustAppeared(), boss_rokmora::JustEngagedWith(), Creature::UpdateMaxPower(), Guardian::UpdateMaxPower(), and Player::UpdateMaxPower().
| void Unit::SetMeleeAnimKitId | ( | uint16 | animKitId | ) |
Definition at line 11294 of file Unit.cpp.
References _aiAnimKitId, _meleeAnimKitId, _movementAnimKitId, CreateObjectBits::AnimKit, WorldPackets::Misc::SetMeleeAnimKit::AnimKitID, BaseEntity::GetGUID(), BaseEntity::m_updateFlag, sAnimKitStore, WorldObject::SendMessageToSet(), WorldPackets::Misc::SetMeleeAnimKit::Unit, and WorldPackets::Misc::SetMeleeAnimKit::Write().
Referenced by Creature::LoadCreaturesAddon(), and instance_stonecore::instance_stonecore_InstanceScript::OnCreatureCreate().
| void Unit::SetMinion | ( | Minion * | minion, |
| bool | apply | ||
| ) |
Definition at line 6266 of file Unit.cpp.
References ABORT, ASSERT, Player::CharmSpellInitialize(), Companion, DIFFICULTY_NONE, ObjectGuid::Empty, GetCharmedGUID(), GetCritterGUID(), GetDebugInfo(), Object::GetEntry(), SummonPropertiesEntry::GetFlags(), GetGuardianPet(), BaseEntity::GetGUID(), GetMinionGUID(), GetOwnerGUID(), GetPetGUID(), GetPvpFlags(), Totem::GetSpell(), GetSpellHistory(), BaseEntity::GetTypeId(), HasUnitTypeMask(), SpellInfo::IsCooldownStartedOnEvent(), ObjectGuid::IsEmpty(), Minion::IsGuardianPet(), BaseEntity::IsInWorld(), IsPet(), IsTotem(), m_Controlled, m_ControlledByPlayer, TempSummon::m_Properties, m_speed_rate, m_unitData, MAX_MOVE_TYPE, OutDebugInfo(), PET_SAVE_NOT_IN_SLOT, Player::PetSpellInitialize(), RemoveAllMinionsByEntry(), ReplaceAllPvpFlags(), SpellHistory::SendCooldownEvent(), SetBattlePetCompanionGUID(), SetBattlePetCompanionNameTimestamp(), SetCritterGUID(), Creature::SetDisplayId(), SetMinionGUID(), SetOwnerGUID(), SetPetGUID(), SetSpeedRate(), SetUnitFlag(), SetWildBattlePetLevel(), SPELL_EFFECT_SUMMON, sSpellMgr, SpellHistory::StartCooldown(), SummonFromBattlePetJournal, TC_LOG_DEBUG, TC_LOG_FATAL, SummonPropertiesEntry::Title, ToPet(), Object::ToPlayer(), ObjectGuid::ToString(), ToTotem(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_FLAG_PLAYER_CONTROLLED, UNIT_MASK_CONTROLABLE_GUARDIAN, and UpdatePetCombatState().
Referenced by Spell::EffectCreateTamedPet(), Spell::EffectTameCreature(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), Minion::InitStats(), Pet::LoadPetFromDB(), Minion::RemoveFromWorld(), Player::RemovePet(), and Player::SummonPet().
|
inline |
Definition at line 1216 of file Unit.h.
References m_unitData, and UF::UnitData::Summon.
Referenced by GetFirstMinion(), Minion::setDeathState(), and SetMinion().
|
inline |
Definition at line 852 of file Unit.h.
References m_unitData, and UF::UnitData::ModCastingSpeed.
Referenced by Creature::InitEntry(), and Player::InitStatsForLevel().
|
inline |
Definition at line 853 of file Unit.h.
References m_unitData, and UF::UnitData::ModCastingSpeedNeg.
Referenced by Creature::InitEntry(), and Player::InitStatsForLevel().
|
inline |
Definition at line 855 of file Unit.h.
References m_unitData, and UF::UnitData::ModHaste.
Referenced by Creature::InitEntry(), and Player::InitStatsForLevel().
|
inline |
Definition at line 857 of file Unit.h.
References m_unitData, and UF::UnitData::ModHasteRegen.
Referenced by Creature::InitEntry(), and Player::InitStatsForLevel().
|
inline |
Definition at line 856 of file Unit.h.
References m_unitData, and UF::UnitData::ModRangedHaste.
Referenced by Creature::InitEntry(), and Player::InitStatsForLevel().
|
inline |
Definition at line 854 of file Unit.h.
References m_unitData, and UF::UnitData::ModSpellHaste.
Referenced by Creature::InitEntry(), and Player::InitStatsForLevel().
|
inline |
Definition at line 858 of file Unit.h.
References m_unitData, and UF::UnitData::ModTimeRate.
Referenced by Creature::InitEntry(), and Player::InitStatsForLevel().
|
inline |
Definition at line 929 of file Unit.h.
References m_unitData, and UF::UnitData::MountDisplayID.
Referenced by Dismount(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), AuraEffect::HandleAuraTransform(), Player::InitStatsForLevel(), npc_sevis_brightflame_ashtongue_gateway_private::JustAppeared(), npc_sevis_brightflame_coilskar_gateway_private::JustAppeared(), Mount(), npc_voljin_zulaman::npc_voljin_zulamanAI::OnGossipSelect(), spell_gen_mount_check_aura::OnPeriodic(), npc_sevis_brightflame_shivarra_gateway::SacrificePlayer(), Creature::setDeathState(), boss_mandokir::UpdateAI(), Scripts::EasternKingdoms::StormwindCity::npc_arkonarin_starshade_ancient_curses::WaypointPathEnded(), and Scripts::EasternKingdoms::StormwindCity::npc_lysande_starshade_ancient_curses::WaypointPathEnded().
| bool Unit::SetMoveCantSwim | ( | bool | cantSwim | ) |
Definition at line 14080 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), HasUnitMovementFlag(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_CANNOT_SWIM, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_SET_CANNOT_SWIM, SMSG_MOVE_UNSET_CANNOT_SWIM, WorldPackets::Movement::MoveUpdate::Status, WorldPackets::Movement::MoveUpdate::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
Referenced by AuraEffect::HandleSetCantSwim().
| void Unit::SetMovedUnit | ( | Unit * | target | ) |
Definition at line 10464 of file Unit.cpp.
References ASSERT_NOTNULL, BaseEntity::GetGUID(), m_playerMovingMe, m_unitMovedByMe, WorldPackets::Movement::MoveSetActiveMover::MoverGUID, Player::SendDirectMessage(), Object::ToPlayer(), and WorldPackets::Movement::MoveSetActiveMover::Write().
Referenced by npc_giant_boar_vehicle_q55879::PassengerBoarded(), Player::SendInitialPacketsBeforeAddToMap(), and Player::SetClientControl().
| void Unit::SetMovementAnimKitId | ( | uint16 | animKitId | ) |
Definition at line 11277 of file Unit.cpp.
References _aiAnimKitId, _meleeAnimKitId, _movementAnimKitId, CreateObjectBits::AnimKit, WorldPackets::Misc::SetMovementAnimKit::AnimKitID, BaseEntity::GetGUID(), BaseEntity::m_updateFlag, sAnimKitStore, WorldObject::SendMessageToSet(), WorldPackets::Misc::SetMovementAnimKit::Unit, and WorldPackets::Misc::SetMovementAnimKit::Write().
Referenced by Creature::LoadCreaturesAddon().
|
inline |
Definition at line 877 of file Unit.h.
References m_unitData, and UF::UnitData::NameplateAttachToGUID.
|
inlinevirtual |
|
inline |
Definition at line 1012 of file Unit.h.
References flags, m_unitData, and UF::UnitData::NpcFlags.
Referenced by instance_stonecore::instance_stonecore_InstanceScript::ActivateTeleporter(), npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), boss_vaelastrasz::boss_vaelastrasz(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), npc_barnes::DoAction(), npc_vp_slipstream::InitializeAI(), boss_majordomo::JustAppeared(), npc_thassarian::JustAppeared(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustDied(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::MovementInform(), npc_akama_illidan::MovementInform(), npc_verdisa_beglaristrasz_eternos::MovementInform(), npc_announcer_toc5::npc_announcer_toc5AI::npc_announcer_toc5AI(), npc_jaina_fos::npc_jaina_fos(), npc_sylvanas_fos::npc_sylvanas_fos(), npc_voljin_zulaman::npc_voljin_zulamanAI::npc_voljin_zulamanAI(), instance_oculus::instance_oculus_InstanceMapScript::OnCreatureCreate(), conversation_the_invasion_begins::OnUpdate(), conversation_an_unlikely_informant::OnUpdate(), npc_chicken_cluck::npc_chicken_cluckAI::ReceiveEmote(), Vehicle::RemovePassenger(), boss_victor_nefarius::Reset(), npc_koltira_deathweaver::Reset(), npc_thalorien_dawnseeker::Reset(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::Reset(), hyjalAI::Reset(), npc_belnistrasz::npc_belnistraszAI::Reset(), npc_sinclari_vh::Reset(), npc_crusade_recruit::Reset(), npc_akama_shade::Reset(), npc_millhouse_manastorm::Reset(), npc_barada::npc_baradaAI::Reset(), npc_magister_aledis::npc_magister_aledisAI::Reset(), npc_sinclari_vh::ScheduleIntro(), Creature::SetPetitioner(), Creature::SetVendor(), npc_sir_thomas::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_koltira_deathweaver::UpdateAI(), npc_vanessa_vancleef_human_heritage_lions_pride_inn_basement::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), hyjalAI::UpdateAI(), npc_medivh_bm::UpdateAI(), npc_brann_bronzebeard_anraphet::UpdateAI(), npc_xerestrasza::UpdateAI(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), npc_thassarian::UpdateAI(), npc_lake_frog::UpdateAI(), npc_brann_hos::UpdateEscortAI(), boss_majordomo::UpdateSpecialEvents(), Vehicle::Vehicle(), npc_morridune::WaypointReached(), and npc_thrall_old_hillsbrad::WaypointReached().
|
inline |
Definition at line 1018 of file Unit.h.
References flags, m_unitData, and UF::UnitData::NpcFlags2.
|
inline |
Definition at line 1595 of file Unit.h.
References m_unitData, and UF::UnitData::OffHandWeaponAttackPower.
Referenced by Player::_ApplyWeaponDamage().
|
inline |
Definition at line 826 of file Unit.h.
References m_unitData, and UF::UnitData::OverrideDisplayPowerID.
Referenced by AuraEffect::HandleAuraModOverridePowerDisplay(), boss_lord_stormsong::JustAppeared(), and boss_orator_krix_vizk::JustEngagedWith().
| void Unit::SetOwnerGUID | ( | ObjectGuid | owner | ) |
Definition at line 6190 of file Unit.cpp.
References UpdateData::BuildPacket(), Object::BuildValuesUpdateBlockForPlayerWithFlag(), WorldLocation::GetMapId(), GetOwnerGUID(), ObjectAccessor::GetPlayer(), Player::HaveAtClient(), m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::Owner, Player::SendDirectMessage(), BaseEntity::SetUpdateFieldValue(), and UF::UnitData::SummonedBy.
Referenced by Spell::EffectSummonType(), AuraEffect::HandleBattlegroundPlayerPosition(), and SetMinion().
|
inline |
Definition at line 907 of file Unit.h.
References flags, m_unitData, and UF::UnitData::PetFlags.
Referenced by Spell::EffectRenamePet().
|
inline |
Definition at line 1218 of file Unit.h.
References SUMMON_SLOT_PET.
Referenced by GetGuardianPet(), Minion::setDeathState(), and SetMinion().
|
inline |
Definition at line 1266 of file Unit.h.
References m_unitData, and UF::UnitData::PetNameTimestamp.
Referenced by Pet::CreateBaseAtTamed(), WorldSession::HandlePetRename(), Pet::LoadPetFromDB(), SetCharmedBy(), and Player::SummonPet().
|
inline |
Definition at line 1265 of file Unit.h.
References m_unitData, and UF::UnitData::PetNumber.
Referenced by CharmInfo::SetPetNumber().
| void Unit::SetPlayHoverAnim | ( | bool | enable, |
| bool | sendUpdate = true |
||
| ) |
Definition at line 14322 of file Unit.cpp.
References BaseEntity::GetGUID(), IsPlayingHoverAnim(), BaseEntity::m_updateFlag, CreateObjectBits::PlayHoverAnim, WorldPackets::Misc::SetPlayHoverAnim::PlayHoverAnim, WorldObject::SendMessageToSet(), WorldPackets::Misc::SetPlayHoverAnim::UnitGUID, and WorldPackets::Misc::SetPlayHoverAnim::Write().
Referenced by boss_the_golden_serpent::JustAppeared(), SetDisableGravity(), SetHover(), and boss_the_golden_serpent::WaypointPathEnded().
Definition at line 10114 of file Unit.cpp.
References BaseEntity::GetGUID(), GetMaxPower(), GetPowerIndex(), BaseEntity::GetTypeId(), GROUP_UPDATE_FLAG_CUR_POWER, WorldPackets::Combat::PowerUpdate::Guid, BaseEntity::IsInWorld(), m_unitData, BaseEntity::m_values, MAX_POWERS_PER_CLASS, UF::UpdateFieldHolder::ModifyValue(), UF::UnitData::Power, WorldPackets::Combat::PowerUpdate::Powers, WorldObject::SendMessageToSet(), BaseEntity::SetUpdateFieldValue(), Object::ToPlayer(), TriggerOnPowerChangeAuras(), TYPEID_PLAYER, and WorldPackets::Combat::PowerUpdate::Write().
Referenced by Player::ActivateTalentGroup(), boss_lady_deathwhisper::DamageTaken(), boss_deathbringer_saurfang::DoAction(), Player::DuelComplete(), Spell::EffectSelfResurrect(), spell_heartsbane_triad_dire_ritual::HandleAfterCast(), spell_shade_of_medivh_signature_primer::HandleAfterCast(), spell_edna_earth_shatterer::HandleAfterCast(), spell_tidesage_council_ward_selector::HandleAfterCast(), spell_gen_zero_mana_full_health::HandleDummy(), modify_commandscript::HandleModifyEnergyCommand(), modify_commandscript::HandleModifyManaCommand(), modify_commandscript::HandleModifyPowerCommand(), modify_commandscript::HandleModifyRageCommand(), modify_commandscript::HandleModifyRunicPowerCommand(), spell_telash_ice_power_periodic::HandlePeriodic(), spell_cragmaw_power_energize_tantrum::HandlePeriodic(), spell_rokmora_shatter::HandleShatter(), Player::InitStatsForLevel(), boss_king_deepbeard::JustAppeared(), boss_ymiron_the_fallen_king::JustAppeared(), boss_telash_greywing::JustAppeared(), boss_mana_devourer::JustAppeared(), boss_shade_of_medivh::JustAppeared(), npc_silverpine_deathstalker::JustAppeared(), npc_silverpine_deathstalker_rane_yorick::JustAppeared(), npc_silverpine_orc_sea_dog::JustAppeared(), boss_azhiccar::JustAppeared(), boss_orator_krix_vizk::JustAppeared(), boss_edna::JustAppeared(), boss_lord_stormsong::JustAppeared(), boss_brother_ironhull::JustAppeared(), boss_galecaller_faye::JustAppeared(), HeartsbaneTriadSharedAI::JustAppeared(), boss_sylvanas_windrunner::JustAppeared(), boss_remnant_of_a_fallen_king::JustAppeared(), boss_priestess_alun_za::JustAppeared(), boss_sporecaller_zancha::JustAppeared(), Player::LoadFromDB(), Pet::LoadPetFromDB(), ModifyPower(), spell_anduin_wrynn_force_of_will::OnApply(), spell_ymiron_the_fallen_king_power_periodic::OnPeriodic(), boss_moam::OnSpellCast(), Player::Regenerate(), spell_igb_incinerating_blast::RemoveEnergy(), Player::RemoveFromWorld(), boss_deathbringer_saurfang::Reset(), boss_lady_deathwhisper::Reset(), boss_anduin_wrynn::Reset(), Player::ResetAllPowers(), Player::ResurrectPlayer(), Player::ResurrectUsingRequestDataImpl(), setDeathState(), Player::setDeathState(), SetInitialPowerValue(), SetMaxPower(), SetPowerType(), Player::SetRuneCooldown(), boss_king_deepbeard::UpdateAI(), boss_ymiron_the_fallen_king::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), and boss_orator_krix_vizk::UpdateAI().
| void Unit::SetPowerType | ( | Powers | power, |
| bool | sendUpdate = true, |
||
| bool | onInit = false |
||
| ) |
Definition at line 5716 of file Unit.cpp.
References UF::UnitData::DisplayPower, PowerTypeEntry::GetFlags(), GetPowerType(), GROUP_UPDATE_FLAG_POWER_TYPE, BaseEntity::IsCreature(), IsUsedByNPCs, m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), POWER_ENERGY, POWER_FOCUS, POWER_MANA, POWER_RAGE, sDB2Manager, SetFullPower(), SetInitialPowerValue(), SetPower(), BaseEntity::SetUpdateFieldValue(), Object::ToPlayer(), and UpdateMaxPower().
Referenced by Player::Create(), Pet::CreateBaseAtTamed(), reset_commandscript::HandleResetStatsOrLevelHelper(), Guardian::InitStatsForLevel(), boss_shade_of_medivh::JustAppeared(), npc_silverpine_deathstalker::JustAppeared(), npc_silverpine_deathstalker_rane_yorick::JustAppeared(), npc_silverpine_orc_sea_dog::JustAppeared(), boss_azhiccar::JustAppeared(), boss_edna::JustAppeared(), boss_lord_stormsong::JustAppeared(), boss_brother_ironhull::JustAppeared(), boss_galecaller_faye::JustAppeared(), HeartsbaneTriadSharedAI::JustAppeared(), boss_priestess_alun_za::JustAppeared(), boss_cragmaw_the_infested::JustAppeared(), boss_sporecaller_zancha::JustAppeared(), npc_toc_rogue::Reset(), UpdateDisplayPower(), and Creature::UpdateLevelDependantStats().
|
virtual |
Reimplemented in Player.
Definition at line 12336 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 896 of file Unit.h.
References flags, m_unitData, and UF::UnitData::PvpFlags.
Referenced by Player::Create(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandlePlayerLogin(), Player::SetGameMaster(), SetPvP(), Player::UpdateArea(), Player::UpdatePvPState(), and Player::UpdateWarModeAuras().
|
inline |
Definition at line 774 of file Unit.h.
References m_unitData, and UF::UnitData::Race.
Referenced by Player::Create(), Creature::InitEntry(), and Player::LoadFromDB().
|
inline |
Definition at line 1590 of file Unit.h.
References m_unitData, and UF::UnitData::RangedAttackPower.
Referenced by Player::InitStatsForLevel(), Creature::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 1592 of file Unit.h.
References m_unitData, and UF::UnitData::RangedAttackPowerModNeg.
Referenced by Creature::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 1591 of file Unit.h.
References m_unitData, and UF::UnitData::RangedAttackPowerModPos.
Referenced by Creature::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 1593 of file Unit.h.
References m_unitData, and UF::UnitData::RangedAttackPowerMultiplier.
Referenced by Player::InitStatsForLevel(), Creature::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 1596 of file Unit.h.
References m_unitData, and UF::UnitData::RangedWeaponAttackPower.
Referenced by Player::_ApplyWeaponDamage().
|
inline |
Definition at line 796 of file Unit.h.
References m_unitData, and UF::UnitData::Resistances.
Referenced by Player::InitStatsForLevel(), UpdateResistances(), and Guardian::UpdateResistances().
|
protected |
Definition at line 11759 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_MASK_MOVING, MOVEMENTFLAG_ROOT, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_ROOT, SMSG_MOVE_SPLINE_ROOT, SMSG_MOVE_SPLINE_UNROOT, SMSG_MOVE_UNROOT, WorldPackets::Movement::MoveUpdate::Status, StopMoving(), WorldPackets::Movement::MoveUpdate::Write(), WorldPackets::Movement::MoveSplineSetFlag::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
Referenced by ApplyControlStatesIfNeeded(), Player::BuildPlayerRepop(), WorldSession::HandleLogoutCancelOpcode(), WorldSession::HandleLogoutRequestOpcode(), Player::KillPlayer(), Player::ResurrectPlayer(), SetControlled(), and SetStunned().
| void Unit::SetShapeshiftForm | ( | ShapeshiftForm | form | ) |
Definition at line 9521 of file Unit.cpp.
References m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), UF::UnitData::ShapeshiftForm, and UpdateCreatureType().
Referenced by AuraEffect::HandleAuraModShapeshift(), reset_commandscript::HandleResetStatsOrLevelHelper(), and Creature::LoadCreaturesAddon().
| void Unit::SetSheath | ( | SheathState | sheathed | ) |
Definition at line 5832 of file Unit.cpp.
References m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), RemoveAurasWithInterruptFlags(), BaseEntity::SetUpdateFieldValue(), SHEATH_STATE_UNARMED, UF::UnitData::SheatheState, and Sheathing.
Referenced by Pet::Create(), Pet::CreateBaseAtTamed(), boss_algalon_the_observer::EnterEvadeMode(), WorldSession::HandleSetSheathedOpcode(), Creature::LoadCreaturesAddon(), Pet::LoadPetFromDB(), conversation_the_invasion_begins::OnUpdate(), SmartScript::ProcessAction(), boss_illidan_stormrage::Reset(), npc_captain_warlord_first_aid_private::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().
|
inline |
Definition at line 1518 of file Unit.h.
References m_unitData, and UF::UnitData::SilencedSchoolMask.
Referenced by AuraEffect::HandleAuraModSilence().
| void Unit::SetSpeed | ( | UnitMoveType | mtype, |
| float | newValue | ||
| ) |
Definition at line 8956 of file Unit.cpp.
References baseMoveSpeed, IsControlledByPlayer(), playerBaseMoveSpeed, and SetSpeedRate().
Referenced by spell_monk_roll_aura::ChangeRunBackSpeed(), npc_silverpine_forsaken_bat::DoAction(), spell_azhiccar_devour_selector::HandleHitTarget(), spell_azhiccar_devour_intro_selector::HandleHitTarget(), boss_anduin_wrynn::HandleIntroduction(), npc_giant_boar_vehicle_q55879::JustAppeared(), boss_sylvanas_windrunner::JustAppeared(), npc_silverpine_forsaken_bat::PassengerBoarded(), boss_gluth::Reset(), npc_silverpine_agatha_fenris_isle::UpdateAI(), npc_scoutomatic_5000::UpdateAI(), npc_choppy_booster_scout::UpdateAI(), boss_gluth::UpdateAI(), npc_silverpine_forsaken_bat::WaypointReached(), and npc_silverpine_agatha_fenris_isle::WaypointReached().
| void Unit::SetSpeedRate | ( | UnitMoveType | mtype, |
| float | rate | ||
| ) |
Definition at line 8961 of file Unit.cpp.
References BaseEntity::GetGUID(), GetSpeed(), BaseEntity::GetTypeId(), GetUnitBeingMoved(), IsInCombat(), Player::m_forced_speed_changes, m_movementCounter, WorldObject::m_movementInfo, m_speed_rate, MAX_MOVE_TYPE, WorldPackets::Movement::MoveSplineSetSpeed::MoverGUID, WorldPackets::Movement::MoveSetSpeed::MoverGUID, PropagateSpeedChange(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetSpeed::SequenceIndex, SMSG_MOVE_SET_FLIGHT_BACK_SPEED, SMSG_MOVE_SET_FLIGHT_SPEED, SMSG_MOVE_SET_PITCH_RATE, SMSG_MOVE_SET_RUN_BACK_SPEED, SMSG_MOVE_SET_RUN_SPEED, SMSG_MOVE_SET_SWIM_BACK_SPEED, SMSG_MOVE_SET_SWIM_SPEED, SMSG_MOVE_SET_TURN_RATE, SMSG_MOVE_SET_WALK_SPEED, SMSG_MOVE_SPLINE_SET_FLIGHT_BACK_SPEED, SMSG_MOVE_SPLINE_SET_FLIGHT_SPEED, SMSG_MOVE_SPLINE_SET_PITCH_RATE, SMSG_MOVE_SPLINE_SET_RUN_BACK_SPEED, SMSG_MOVE_SPLINE_SET_RUN_SPEED, SMSG_MOVE_SPLINE_SET_SWIM_BACK_SPEED, SMSG_MOVE_SPLINE_SET_SWIM_SPEED, SMSG_MOVE_SPLINE_SET_TURN_RATE, SMSG_MOVE_SPLINE_SET_WALK_SPEED, SMSG_MOVE_UPDATE_FLIGHT_BACK_SPEED, SMSG_MOVE_UPDATE_FLIGHT_SPEED, SMSG_MOVE_UPDATE_PITCH_RATE, SMSG_MOVE_UPDATE_RUN_BACK_SPEED, SMSG_MOVE_UPDATE_RUN_SPEED, SMSG_MOVE_UPDATE_SWIM_BACK_SPEED, SMSG_MOVE_UPDATE_SWIM_SPEED, SMSG_MOVE_UPDATE_TURN_RATE, SMSG_MOVE_UPDATE_WALK_SPEED, WorldPackets::Movement::MoveSplineSetSpeed::Speed, WorldPackets::Movement::MoveSetSpeed::Speed, WorldPackets::Movement::MoveUpdateSpeed::Speed, WorldPackets::Movement::MoveUpdateSpeed::Status, Object::ToPlayer(), TYPEID_PLAYER, WorldPackets::Movement::MoveSplineSetSpeed::Write(), WorldPackets::Movement::MoveSetSpeed::Write(), and WorldPackets::Movement::MoveUpdateSpeed::Write().
Referenced by boss_ionar::CallBackSparks(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_professor_putricide::DoAction(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), npc_colonel_jules::npc_colonel_julesAI::DoAction(), boss_razorscale::DoAction(), npc_thrall_old_hillsbrad::DoMount(), npc_thrall_old_hillsbrad::DoUnmount(), boss_felmyst::EnterPhase(), spell_mount_check::HandleEffectPeriodic(), spell_gen_pony_mount_check::HandleEffectPeriodic(), WorldSession::HandleForceSpeedChangeAck(), modify_commandscript::HandleModifyASpeedCommand(), modify_commandscript::HandleModifyBWalkCommand(), modify_commandscript::HandleModifyFlyCommand(), modify_commandscript::HandleModifyMountCommand(), modify_commandscript::HandleModifySpeedCommand(), modify_commandscript::HandleModifySwimCommand(), Creature::InitEntry(), npc_enchanted_elemental::JustAppeared(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro_hawk::JustAppeared(), boss_the_lich_king::JustSummoned(), boss_anduin_wrynn::JustSummoned(), boss_onyxia::MovementInform(), boss_professor_putricide::MovementInform(), boss_sindragosa::MovementInform(), boss_razorscale::MovementInform(), npc_caster_hover_disk::npc_caster_hover_disk(), npc_melee_hover_disk::npc_melee_hover_disk(), npc_wyrmrest_skytalon::PassengerBoarded(), npc_quel_delar_sword::npc_quel_delar_swordAI::Reset(), boss_lord_marrowgar::Reset(), boss_malygos::Reset(), npc_grauf::Reset(), SetMinion(), SetSpeed(), boss_onyxia::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), npc_anubarak_spike::StartChase(), boss_jormungarAI::Submerge(), boss_alizabal::boss_alizabalAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), boss_lord_marrowgar::UpdateAI(), npc_ruby_emerald_amber_drake::UpdateAI(), npc_dream_fog::npc_dream_fogAI::UpdateAI(), npc_spark_of_ionar::UpdateAI(), and UpdateSpeed().
|
inline |
Definition at line 1471 of file Unit.h.
References m_unitData, and UF::UnitData::SpellEmpowerStage.
Referenced by Creature::InitEntry(), Player::InitStatsForLevel(), Spell::SendChannelStart(), and Spell::SendChannelUpdate().
| void Unit::SetStandState | ( | UnitStandStateType | state, |
| uint32 | animKitID = 0 |
||
| ) |
Definition at line 10804 of file Unit.cpp.
References BaseEntity::GetTypeId(), m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), RemoveAurasWithInterruptFlags(), Player::SendDirectMessage(), BaseEntity::SetUpdateFieldValue(), Standing, UF::UnitData::StandState, Object::ToPlayer(), TYPEID_PLAYER, UNIT_STAND_STATE_STAND, and WorldPackets::Misc::StandStateUpdate::Write().
Referenced by _ApplyAura(), spell_fjord_the_cleansing_cleansing_soul::AfterApply(), spell_fjord_the_cleansing_cleansing_soul::AfterRemove(), Attack(), boss_victor_nefarius::BeginEvent(), boss_scarlet_commander_mograine::DamageTaken(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), npc_phoenix_the_eye::DamageTaken(), npc_vrykul_skeleton::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_vx_001::boss_vx_001AI::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), npc_auchindoun_auchenai_defender::DoAction(), npc_twilight_volunteer::DoAction(), boss_the_lich_king::DoAction(), npc_stalagg::DoAction(), npc_feugen::DoAction(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DoAction(), boss_vx_001::boss_vx_001AI::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_earthen_ring_flamecaller::DoAction(), boss_reliquary_of_souls::DoAction(), npc_ashtongue_broken::DoAction(), Spell::TargetInfo::DoDamageAndTriggers(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DoNice(), npc_unworthy_initiate::npc_unworthy_initiateAI::EventStart(), WorldSession::HandleAlterAppearance(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), npc_nokhudon_proving_grounds_nokhud_combatant::HandleEmoteSequence(), WorldSession::HandleLogoutCancelOpcode(), WorldSession::HandleLogoutRequestOpcode(), WorldSession::HandleMovementOpcode(), WorldSession::HandlePlayerLogin(), spell_gen_stand::HandleScript(), AuraEffect::HandleSpiritOfRedemption(), WorldSession::HandleStandStateChangeOpcode(), DistractMovementGenerator::Initialize(), npc_survivors_healed_by_leader_beach_private< PathId, WaitTime >::InitializeAI(), npc_horde_survivors_beach_q59930_private< PathId >::InitializeAI(), npc_amalgam_of_souls_lord_etheldrin_ravencrest::JustAppeared(), npc_huxsworth_hunter_quest_private::JustAppeared(), npc_huxsworth_briarpatch_quest_private::JustAppeared(), npc_dawntracker_hunter_quest_private::JustAppeared(), npc_dawntracker_briarpatch_quest_private::JustAppeared(), npc_thassarian::JustAppeared(), npc_ranshalla::npc_ranshallaAI::JustDidDialogueStep(), boss_high_inquisitor_fairbanks::JustEngagedWith(), boss_jedoga_shadowseeker::JustSummoned(), Creature::LoadCreaturesAddon(), npc_jena_anderson::npc_jena_andersonAI::MovementInform(), npc_bartleby_battson::npc_bartleby_battsonAI::MovementInform(), npc_sergeant_morigan::npc_sergeant_moriganAI::MovementInform(), boss_nightbane::boss_nightbaneAI::MovementInform(), npc_koltira_deathweaver::MovementInform(), npc_twilight_volunteer::MovementInform(), npc_earthen_ring_flamecaller::MovementInform(), spell_love_is_in_the_air_romantic_picnic::OnApply(), spell_reliquary_of_souls_submerge::OnApply(), go_crystalline_tear::go_crystalline_tearAI::OnQuestAccept(), npc_maghar_captive::npc_maghar_captiveAI::OnQuestAccept(), npc_kurenai_captive::npc_kurenai_captiveAI::OnQuestAccept(), spell_reliquary_of_souls_submerge::OnRemove(), boss_victor_nefarius::Reset(), boss_vaelastrasz::Reset(), boss_ragnaros::Reset(), npc_unworthy_initiate::npc_unworthy_initiateAI::Reset(), npc_koltira_deathweaver::Reset(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::Reset(), boss_high_inquisitor_fairbanks::Reset(), boss_scarlet_commander_mograine::Reset(), npc_draenei_survivor::npc_draenei_survivorAI::Reset(), npc_injured_draenei::npc_injured_draeneiAI::Reset(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::Reset(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), setDeathState(), SetStunned(), boss_scarlet_commander_mograine::SpellHit(), boss_ahune::SpellHit(), npc_wounded_coldridge_mountaineer::npc_wounded_coldridge_mountaineerAI::SpellHit(), npc_survivors_healed_by_leader_beach_private< PathId, WaitTime >::SpellHit(), npc_draenei_survivor::npc_draenei_survivorAI::SpellHit(), npc_wounded_skirmisher::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::SpellHitTarget(), boss_victor_nefarius::SummonedCreatureDies(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_eachother(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_Pathaleons_Image(), boss_vaelastrasz::UpdateAI(), boss_ragnaros::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), npc_koltira_deathweaver::UpdateAI(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_silverpine_orc_sea_pup::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_horde_survivors_beach_q59930_private< PathId >::UpdateAI(), npc_jena_anderson::npc_jena_andersonAI::UpdateAI(), npc_bartleby_battson::npc_bartleby_battsonAI::UpdateAI(), npc_sergeant_morigan::npc_sergeant_moriganAI::UpdateAI(), npc_roger_owens::npc_roger_owensAI::UpdateAI(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::UpdateAI(), boss_krick::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_vrykul_skeleton::UpdateAI(), npc_thassarian::UpdateAI(), boss_leotheras_the_blind::UpdateAI(), boss_the_lurker_below::UpdateAI(), npc_claw::UpdateAI(), boss_alar::UpdateAI(), npc_tallhorn_stag::UpdateAI(), npc_magwin::npc_magwinAI::UpdateEscortAI(), npc_brann_hos::UpdateEscortAI(), npc_millhouse_manastorm::UpdateIntroEvents(), GameObject::Use(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached(), and npc_brann_hos::WaypointReached().
Definition at line 785 of file Unit.h.
References m_unitData, and UF::UnitData::Stats.
Referenced by Player::InitStatsForLevel(), Player::UpdateAllStats(), Guardian::UpdateStats(), and Player::UpdateStats().
| void Unit::SetStatFlatModifier | ( | UnitMods | unitMod, |
| UnitModifierFlatType | modifierType, | ||
| float | val | ||
| ) |
Definition at line 9666 of file Unit.cpp.
References m_auraFlatModifiersGroup, and UpdateUnitMod().
Referenced by Guardian::InitStatsForLevel(), SetCreateStat(), UpdateDamageDoneMods(), Creature::UpdateEntry(), and Creature::UpdateLevelDependantStats().
| void Unit::SetStatPctModifier | ( | UnitMods | unitMod, |
| UnitModifierPctType | modifierType, | ||
| float | val | ||
| ) |
Definition at line 9675 of file Unit.cpp.
References m_auraPctModifiersGroup, and UpdateUnitMod().
Referenced by AuraEffect::HandleAuraIncreaseBaseHealthPercent(), AuraEffect::HandleAuraModBaseResistancePCT(), AuraEffect::HandleAuraModIncreaseBaseManaPercent(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModMaxPowerPct(), AuraEffect::HandleModPercentStat(), AuraEffect::HandleModResistancePercent(), AuraEffect::HandleModTotalPercentStat(), Guardian::InitStatsForLevel(), UpdateDamagePctDoneMods(), and Creature::UpdateLevelDependantStats().
| bool Unit::SetStrafingDisabled | ( | bool | disable | ) |
Definition at line 13766 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), HasUnitMovementFlag(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_NO_STRAFE, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_DISABLE_STRAFING, SMSG_MOVE_ENABLE_STRAFING, WorldPackets::Movement::MoveUpdate::Status, WorldPackets::Movement::MoveUpdate::Write(), and WorldPackets::Movement::MoveSetFlag::Write().
|
protected |
Definition at line 11728 of file Unit.cpp.
References CastStop(), ObjectGuid::Empty, EnsureVictim(), GetCharmerOrOwner(), BaseEntity::GetGUID(), BaseEntity::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 13519 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), HasUnitMovementFlag(), MOVEMENTFLAG_SWIMMING, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), SMSG_MOVE_SPLINE_START_SWIM, SMSG_MOVE_SPLINE_STOP_SWIM, and WorldPackets::Movement::MoveSplineSetFlag::Write().
Referenced by Creature::InitializeMovementCapabilities(), and Creature::UpdateMovementCapabilities().
|
pure virtual |
Implemented in Player, and Creature.
Referenced by Attack(), AttackStop(), FleeingMovementGenerator::Finalize(), RemoveAllFollowers(), SetConfused(), SetFeared(), and SetStunned().
|
inline |
Definition at line 1643 of file Unit.h.
Referenced by AuraEffect::HandleAuraTransform().
| void Unit::SetUninteractible | ( | bool | apply | ) |
Definition at line 8583 of file Unit.cpp.
References RemoveUnitFlag(), SetUnitFlag(), and UNIT_FLAG_UNINTERACTIBLE.
Referenced by npc_doctor::npc_doctorAI::BeginEvent(), boss_thaddius::BeginResetEncounter(), boss_kologarn::boss_kologarnAI::boss_kologarnAI(), boss_vaelastrasz::boss_vaelastrasz(), spell_the_lich_king_vile_spirit_damage_target_search::CheckTargetCount(), boss_taerar::boss_taerarAI::DamageTaken(), boss_garothi_worldbreaker::DamageTaken(), npc_felblood_kaelthas_phoenix::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_apothecary_hummel::DamageTaken(), boss_muru::DamageTaken(), npc_dark_fiend::DamageTaken(), npc_sparring_partner_exiles_reach::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), npc_frost_sphere::DamageTaken(), boss_deathbringer_saurfang::DamageTaken(), npc_terenas_menethil::DamageTaken(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), boss_algalon_the_observer::DamageTaken(), npc_feral_defender::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), boss_ingvar_the_plunderer::DamageTaken(), AdvisorBaseAI::DamageTaken(), npc_phoenix_the_eye::DamageTaken(), boss_halion::DamageTaken(), npc_vrykul_skeleton::DamageTaken(), instance_ulduar::instance_ulduar_InstanceMapScript::DespawnLeviatanVehicle(), boss_xt002::DisposeHeart(), boss_nightbane::boss_nightbaneAI::DoAction(), boss_shade_of_medivh::DoAction(), npc_stone_keeper::DoAction(), npc_twilight_volunteer::DoAction(), boss_anub_arak::DoAction(), npc_halion_controller::DoAction(), BloodPrincesBossAI::DoAction(), npc_stalagg::DoAction(), npc_feugen::DoAction(), npc_living_constellation::DoAction(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DoAction(), boss_vx_001::boss_vx_001AI::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_xt002_heart::DoAction(), boss_ingvar_the_plunderer::DoAction(), ControllerBaseAI::DoAction(), boss_skadi::DoAction(), npc_naga_distiller::DoAction(), npc_frozen_core::DoAction(), BroggokPrisionerBaseAI::DoAction(), boss_kelidan_the_breaker::DoAction(), boss_remnant_of_a_fallen_king::DoAction(), boss_kazzara_the_hellforged::DoAction(), boss_azhiccar::DoAction(), boss_soulbound_goliath::DoAction(), boss_illidan_stormrage::DoAction(), npc_melee_hover_disk::DoAction(), boss_jormungarAI::Emerge(), ControllerBaseAI::ExecuteEvent(), spell_ichoron_drained::HandleApply(), npc_sparring_partner_enhanced_combat_training_shaman::HandleClassEvent(), npc_sparring_partner_enhanced_combat_training_mage::HandleClassEvent(), spell_palehoof_awaken_gortok::HandleDummy(), spell_maiev_down::HandleEffectApply(), spell_gen_feign_death_all_flags_uninteractible::HandleEffectApply(), spell_maiev_down::HandleEffectRemove(), npc_headless_horseman_head::HandleInitialSetup(), spell_ichoron_drained::HandleRemove(), spell_palehoof_awaken_subboss::HandleScript(), spell_sholazar_freya_dummy::HandleScript(), npc_headless_horseman_head::HandleStartPhase(), Battlefield::HideNpc(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::InitializeAI(), npc_lockmaw_augh_boss::InitializeAI(), npc_vp_slipstream::InitializeAI(), boss_flame_leviathan::boss_flame_leviathanAI::InitializeAI(), npc_silverpine_orc_crate::IsSummonedBy(), boss_kazzara_the_hellforged::JustAppeared(), boss_archaedas::JustAppeared(), npc_stone_keeper::JustAppeared(), boss_azhiccar::JustAppeared(), npc_drustvar_frightend_woodsman_private::JustAppeared(), boss_soulbound_goliath::JustAppeared(), boss_broggok::JustAppeared(), BroggokPrisionerBaseAI::JustAppeared(), boss_kelidan_the_breaker::JustAppeared(), npc_sylvanas_windrunner_shadowcopy_riding::JustAppeared(), boss_the_golden_serpent::JustAppeared(), boss_julianne::JustDied(), boss_romulo::JustDied(), boss_apothecary_hummel::JustDied(), boss_kologarn::boss_kologarnAI::JustDied(), boss_xt002::JustDied(), boss_illidan_stormrage::JustDied(), boss_alar::JustDied(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustDied(), boss_anubarak_trial::JustEngagedWith(), boss_algalon_the_observer::JustEngagedWith(), boss_archaedas::JustReachedHome(), npc_stone_keeper::JustReachedHome(), BroggokPrisionerBaseAI::JustReachedHome(), boss_kelidan_the_breaker::JustReachedHome(), boss_prince_valanar_icc::JustSummoned(), boss_ignis::boss_ignis_AI::JustSummoned(), boss_anduin_wrynn::JustSummoned(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), npc_snobold_vassal::MountOnBoss(), boss_shade_of_akama::MovementInform(), boss_selin_fireheart::MovementInform(), boss_slabhide::boss_slabhideAI::MovementInform(), npc_valkyr_shadowguard::MovementInform(), boss_malygos::MovementInform(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::MovementInform(), boss_aerial_command_unit::boss_aerial_command_unitAI::MovementInform(), boss_jedoga_shadowseeker::MovementInform(), npc_sparring_partner_exiles_reach::MovementInform(), npc_sparring_partner_combat_training::MovementInform(), boss_flame_leviathan::boss_flame_leviathanAI::MovementInform(), npc_giant_infernal::npc_giant_infernalAI::npc_giant_infernalAI(), npc_healthy_spore::npc_healthy_sporeAI::npc_healthy_sporeAI(), npc_hodirs_fury::npc_hodirs_furyAI::npc_hodirs_furyAI(), npc_mimirons_inferno::npc_mimirons_infernoAI::npc_mimirons_infernoAI(), npc_pool_of_tar::npc_pool_of_tarAI::npc_pool_of_tarAI(), npc_scorch_ground::npc_scorch_groundAI::npc_scorch_groundAI(), npc_thorims_hammer::npc_thorims_hammerAI::npc_thorims_hammerAI(), spell_aqusirr_erupting_waters_aura::OnApply(), spell_kings_rest_molten_gold::OnApply(), conversation_natalia_pearces_complete_precious_gems::OnCreate(), Scripts::QuelThalas::Harandar::Chapter1::conversation_to_harathir_follow_orweyna::OnCreate(), battleground_isle_of_conquest::OnCreatureCreate(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::OnHealthDepleted(), at_waycrest_manor_organ_missiles::OnRemove(), spell_aqusirr_erupting_waters_aura::OnRemove(), spell_gen_feign_death_all_flags_uninteractible::OnRemove(), spell_kings_rest_molten_gold::OnRemove(), boss_garothi_worldbreaker::OnSpellCast(), boss_flame_leviathan_overload_device::boss_flame_leviathan_overload_deviceAI::OnSpellClick(), npc_whisperwind_lasher::npc_whisperwind_lasherAI::OnSpellClick(), npc_silverpine_forsaken_bat::PassengerBoarded(), npc_blazing_monstrosity::npc_blazing_monstrosityAI::PassengerBoarded(), npc_melee_hover_disk::PassengerBoarded(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::PassengerBoarded(), Vehicle::RemovePassenger(), boss_prince_taldaram::RemovePrison(), boss_pyroguard_emberseer::Reset(), boss_ragnaros::Reset(), npc_curator_astral_flare::npc_curator_astral_flareAI::Reset(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), npc_sir_thomas::Reset(), boss_scarlet_commander_mograine::Reset(), boss_kalecgos_kj::boss_kalecgos_kjAI::Reset(), npc_felfire_portal::npc_felfire_portalAI::Reset(), npc_earthen_hallshaper_custodian::Reset(), npc_earthen_guardian::Reset(), npc_vault_warder::Reset(), boss_anraphet::Reset(), boss_eye_of_cthun::eye_of_cthunAI::Reset(), boss_cthun::cthunAI::Reset(), boss_volazj::Reset(), boss_anub_arak::Reset(), npc_flame_tsunami::Reset(), npc_twilight_fissure::Reset(), boss_general_zarithrian::Reset(), boss_anubarak_trial::Reset(), npc_infernal_volcano::Reset(), npc_nether_portal::Reset(), npc_unleashed_ballAI::Reset(), boss_professor_putricide::Reset(), boss_kelthuzad::Reset(), boss_noth::Reset(), boss_malygos::Reset(), boss_magus_telestra::Reset(), boss_ionar::Reset(), boss_kologarn::boss_kologarnAI::Reset(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::Reset(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::Reset(), boss_ingvar_the_plunderer::Reset(), ControllerBaseAI::Reset(), boss_shade_of_akama::Reset(), npc_ashtongue_channeler::Reset(), boss_leotheras_the_blind::Reset(), npc_naga_distiller::Reset(), emerald_dragonAI::Reset(), npc_doctor::npc_doctorAI::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), npc_sparring_partner_enhanced_combat_training_warrior::ResetWarrior(), Battlefield::ShowNpc(), boss_pyroguard_emberseer::SpellHit(), netherspite_infernal::netherspite_infernalAI::SpellHit(), npc_sir_thomas::SpellHit(), boss_scarlet_commander_mograine::SpellHit(), boss_anub_arak::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), boss_valithria_dreamwalker::SpellHit(), boss_ionar::SpellHit(), boss_ahune::SpellHit(), npc_infernal_attacker::npc_infernal_attackerAI::SpellHit(), npc_sporecaller_zancha_musashitake::SpellHit(), npc_sparring_partner_enhanced_combat_training_priest::SpellHit(), npc_sparring_partner_enhanced_combat_training_shaman::SpellHit(), npc_sparring_partner_enhanced_combat_training_mage::SpellHit(), npc_sparring_partner_enhanced_combat_training_warlock::SpellHit(), npc_sparring_partner_enhanced_combat_training_druid::SpellHit(), npc_ichor_globule::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), boss_volazj::SpellHitTarget(), boss_jormungarAI::Submerge(), boss_garothi_worldbreaker::SummonedCreatureDies(), boss_victor_nefarius::SummonedCreatureDies(), boss_thaddius::Transition(), boss_ragnaros::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), npc_felblood_kaelthas_phoenix::UpdateAI(), boss_shade_of_medivh::UpdateAI(), npc_headless_horseman_head::UpdateAI(), npc_silverpine_deathstalker_rane_yorick::UpdateAI(), npc_sparring_partner_combat_training::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), boss_anraphet::UpdateAI(), npc_lockmaw_augh_boss::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), boss_ouro::boss_ouroAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), boss_corborus::boss_corborusAI::UpdateAI(), boss_volazj::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_anubarak_trial::UpdateAI(), npc_nerubian_burrower::UpdateAI(), boss_deathbringer_saurfang::UpdateAI(), npc_terenas_menethil::UpdateAI(), boss_kelthuzad::UpdateAI(), boss_noth::UpdateAI(), boss_malygos::UpdateAI(), boss_magus_telestra::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_feral_defender::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), boss_xt002::UpdateAI(), npc_vrykul_skeleton::UpdateAI(), npc_ethereal_beacon::UpdateAI(), boss_illidan_stormrage::UpdateAI(), boss_leotheras_the_blind::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_magtheridon::UpdateAI(), boss_alar::UpdateAI(), boss_kaelthas::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::UpdateAI(), boss_taerar::boss_taerarAI::UpdateAI(), boss_ionar::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), Creature::UpdateEntry(), boss_archaedas::UpdateOutOfCombatEvents(), boss_broggok::UpdateOutOfCombatEvents(), boss_the_golden_serpent::WaypointPathEnded(), and npc_silverpine_deathstalker_rane_yorick::WaypointReached().
|
inline |
Definition at line 861 of file Unit.h.
References flags, UF::UnitData::Flags, and m_unitData.
Referenced by boss_thaddius::BeginResetEncounter(), boss_eadric::boss_eadricAI::boss_eadricAI(), boss_hunter_toc5::boss_hunter_toc5AI::boss_hunter_toc5AI(), boss_mage_toc5::boss_mage_toc5AI::boss_mage_toc5AI(), boss_paletress::boss_paletressAI::boss_paletressAI(), boss_rouge_toc5::boss_rouge_toc5AI::boss_rouge_toc5AI(), boss_shaman_toc5::boss_shaman_toc5AI::boss_shaman_toc5AI(), boss_twilight_halion::boss_twilight_halion(), boss_vx_001::boss_vx_001AI::boss_vx_001AI(), boss_warrior_toc5::boss_warrior_toc5AI::boss_warrior_toc5AI(), Player::Create(), boss_taerar::boss_taerarAI::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), npc_tiger_matriarch::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_vx_001::boss_vx_001AI::DamageTaken(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), npc_xt002_heart::DoAction(), npc_barada::npc_baradaAI::DoAction(), PetAI::DoAttack(), FlightPathMovementGenerator::DoReset(), boss_thorim::boss_thorimAI::FinishEncounter(), AuraEffect::HandleArenaPreparation(), AuraEffect::HandleAuraModDmgImmunity(), AuraEffect::HandleAuraModFaction(), AuraEffect::HandleAuraModPacify(), AuraEffect::HandleAuraModPacifyAndSilence(), AuraEffect::HandleAuraModSchoolImmunity(), spell_ruby_life_pools_executed::HandleEffectApply(), spell_gen_feign_death_all_flags::HandleEffectApply(), spell_gen_feign_death_all_flags_uninteractible::HandleEffectApply(), spell_gen_feign_death_no_dyn_flag::HandleEffectApply(), spell_gen_prevent_emotes::HandleEffectApply(), spell_gen_feign_death_all_flags_no_uninteractible::HandleEffectApply(), AuraEffect::HandleFeignDeath(), boss_anduin_wrynn::HandleIntroduction(), BattlefieldWG::HandleKill(), Battleground::HandleKillPlayer(), WorldSession::HandleLogoutRequestOpcode(), AuraEffect::HandleModUnattackable(), Battlefield::HideNpc(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::InitializeAI(), boss_sapphiron::InitializeAI(), boss_flame_leviathan::boss_flame_leviathanAI::InitializeAI(), Player::InitStatsForLevel(), InitTamedPet(), boss_sylvanas_windrunner::JustAppeared(), boss_mimiron::boss_mimironAI::JustEngagedWith(), BloodPrincesBossAI::JustReachedHome(), npc_announcer_toc5::npc_announcer_toc5AI::JustSummoned(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), Kill(), Mount(), boss_svala::MoveInLineOfSight(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::MovementInform(), npc_announcer_toc5::npc_announcer_toc5AI::npc_announcer_toc5AI(), npc_healthy_spore::npc_healthy_sporeAI::npc_healthy_sporeAI(), npc_mimirons_inferno::npc_mimirons_infernoAI::npc_mimirons_infernoAI(), npc_scorch_ground::npc_scorch_groundAI::npc_scorch_groundAI(), npc_warlord_grimaxe_q59942::npc_warlord_grimaxe_q59942(), spell_systems_shutdown::spell_systems_shutdown_AuraScript::OnApply(), instance_dire_maul::instance_dire_maul_InstanceMapScript::OnCreatureCreate(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::OnHealthDepleted(), npc_image_of_medivh::npc_image_of_medivhAI::Reset(), npc_death_knight_initiate::npc_death_knight_initiateAI::Reset(), npc_felfire_portal::npc_felfire_portalAI::Reset(), boss_cthun::cthunAI::Reset(), npc_draenei_survivor::npc_draenei_survivorAI::Reset(), npc_injured_draenei::npc_injured_draeneiAI::Reset(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::Reset(), npc_flame_tsunami::Reset(), npc_twilight_fissure::Reset(), npc_unleashed_ballAI::Reset(), boss_krick::Reset(), boss_tyrannus::Reset(), boss_rimefang::Reset(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::Reset(), boss_svala::Reset(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::Reset(), npc_injured_patient::npc_injured_patientAI::Reset(), Player::SendLoot(), boss_novos::SetBubbled(), SetCharm(), SetCharmedBy(), SetFeared(), SetImmuneToAll(), SetImmuneToNPC(), SetImmuneToPC(), SetMinion(), SetStunned(), SetUninteractible(), Battlefield::ShowNpc(), boss_anub_arak::SpellHit(), boss_ionar::SpellHit(), npc_wyrmrest_defender::SpellHit(), npc_venture_co_straggler::SpellHit(), npc_nether_drake::npc_nether_drakeAI::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), boss_jormungarAI::Submerge(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), boss_anubarak_trial::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_svala::UpdateAI(), CombatManager::UpdateOwnerCombatState(), and UpdatePetCombatState().
|
inline |
Definition at line 866 of file Unit.h.
References flags, UF::UnitData::Flags2, and m_unitData.
Referenced by Pet::Create(), Player::Create(), boss_algalon_the_observer::DoAction(), spell_ichoron_drained::HandleApply(), spell_icecrown_bloated_abom_feign_death::HandleApply(), AuraEffect::HandleAuraAllowTalentSwapping(), AuraEffect::HandleAuraCloneCaster(), AuraEffect::HandleAuraModNoActions(), AuraEffect::HandleComprehendLanguage(), spell_ruby_life_pools_executed::HandleEffectApply(), spell_gen_feign_death_all_flags::HandleEffectApply(), spell_gen_feign_death_all_flags_uninteractible::HandleEffectApply(), spell_gen_feign_death_no_dyn_flag::HandleEffectApply(), spell_gen_feign_death_no_prevent_emotes::HandleEffectApply(), spell_gen_feign_death_all_flags_no_uninteractible::HandleEffectApply(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleForceMoveForward(), Creature::InitializeMovementCapabilities(), Player::InitStatsForLevel(), SetCannotTurn(), Player::SetGameMaster(), and SetInteractionAllowedWhileHostile().
|
inline |
Definition at line 871 of file Unit.h.
References flags, UF::UnitData::Flags3, and m_unitData.
Referenced by Spell::EffectSkinning(), spell_icecrown_bloated_abom_feign_death::HandleApply(), spell_ruby_life_pools_executed::HandleEffectApply(), spell_gen_feign_death_all_flags::HandleEffectApply(), spell_gen_feign_death_all_flags_uninteractible::HandleEffectApply(), spell_gen_feign_death_no_prevent_emotes::HandleEffectApply(), spell_gen_feign_death_all_flags_no_uninteractible::HandleEffectApply(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleModAlternativeDefaultLanguage(), SetInteractionAllowedInCombat(), npc_silverpine_horde_hauler::UpdateAI(), npc_tallhorn_stag::UpdateAI(), and npc_injured_patient::npc_injured_patientAI::UpdateAI().
|
inline |
Definition at line 1763 of file Unit.h.
Referenced by debug_commandscript::HandleDebugMoveflagsCommand(), and Player::TeleportTo().
|
inline |
Definition at line 1801 of file Unit.h.
Referenced by VehicleJoinEvent::Execute(), and Vehicle::RemovePassenger().
| void Unit::SetVignette | ( | uint32 | vignetteId | ) |
Definition at line 14723 of file Unit.cpp.
References Vignettes::Create(), m_vignette, Vignettes::Remove(), and sVignetteStore.
Referenced by CleanupBeforeRemoveFromMap(), Creature::CreateFromProto(), AuraEffect::HandleSetVignette(), setDeathState(), and Creature::setDeathState().
| void Unit::SetVirtualItem | ( | uint32 | slot, |
| uint32 | itemId, | ||
| uint16 | appearanceModId = 0, |
||
| uint16 | itemVisual = 0 |
||
| ) |
Definition at line 14521 of file Unit.cpp.
References UF::VisibleItem::ItemAppearanceModID, UF::VisibleItem::ItemID, UF::VisibleItem::ItemVisual, m_unitData, BaseEntity::m_values, MAX_EQUIPMENT_ITEMS, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), and UF::UnitData::VirtualItems.
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_bg_ab_blacksmith_working::OnApply(), spell_gen_clone_weapon_aura::OnApply(), conversation_an_unlikely_informant::OnCreate(), conversation_the_new_classington_estate::OnCreate(), spell_gen_clone_weapon_aura::OnRemove(), npc_feasting_valarjar::Reset(), npc_weapon_inspector_valarjar::Reset(), npc_thrall_old_hillsbrad::Reset(), ScriptedAI::SetEquipmentSlots(), Spell::SummonGuardian(), npc_vanessa_vancleef_human_heritage_lions_pride_inn_basement::UpdateAI(), npc_voljin_zulaman::npc_voljin_zulamanAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), and npc_thrall_old_hillsbrad::WaypointReached().
|
inline |
Definition at line 920 of file Unit.h.
References flags, m_unitData, and UF::UnitData::VisFlags.
Referenced by AuraEffect::HandleAuraUntrackable(), AuraEffect::HandleModInvisibility(), and AuraEffect::HandleModStealth().
| void Unit::SetVisible | ( | bool | x | ) |
Definition at line 8787 of file Unit.cpp.
References WorldObject::m_serverSideVisibility, SEC_GAMEMASTER, SEC_PLAYER, SERVERSIDE_VISIBILITY_GM, FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::SetValue(), and UpdateObjectVisibility().
Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), boss_viscidus::boss_viscidusAI::DamageTaken(), spell_rotface_unstable_ooze_explosion_suicide::DespawnSelf(), npc_kelthuzad_guardian::DoAction(), boss_kazzara_the_hellforged::DoAction(), npc_rocket_propelled_warhead::FinishQuest(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), Battlefield::HideNpc(), npc_webwrap::InitializeAI(), boss_sapphiron::InitializeAI(), boss_kazzara_the_hellforged::JustAppeared(), hyjalAI::JustDied(), npc_rocket_propelled_warhead::JustReachedHome(), boss_kalecgos::MovementInform(), npc_blood_queen_lana_thel::MovementInform(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::OnCreatureCreate(), npc_lorekeeper::npc_lorekeeperAI::OnGossipSelect(), boss_victor_nefarius::Reset(), boss_midnight::boss_midnightAI::Reset(), boss_kagani_nightstrike::Reset(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::Reset(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::Reset(), boss_eye_of_cthun::eye_of_cthunAI::Reset(), boss_cthun::cthunAI::Reset(), boss_skeram::boss_skeramAI::Reset(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::Reset(), boss_horAI::Reset(), npc_blood_queen_lana_thel::Reset(), boss_ionar::Reset(), npc_minigob_manabonk::Reset(), boss_high_astromancer_solarian::Reset(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::Reset(), npc_violet_hold_teleportation_portal_elite::ScheduleTasks(), Battlefield::ShowNpc(), boss_ionar::SpellHit(), npc_grimstone::npc_grimstoneAI::UpdateAI(), boss_victor_nefarius::UpdateAI(), boss_kagani_nightstrike::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), boss_muru::UpdateAI(), hyjalAI::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), boss_skeram::boss_skeramAI::UpdateAI(), boss_viscidus::boss_viscidusAI::UpdateAI(), npc_kinetic_bomb::UpdateAI(), npc_kelthuzad_guardian::UpdateAI(), npc_webwrap::UpdateAI(), boss_sapphiron::UpdateAI(), npc_minigob_manabonk::UpdateAI(), boss_alar::UpdateAI(), boss_high_astromancer_solarian::UpdateAI(), npc_commander_dawnforge::npc_commander_dawnforgeAI::UpdateAI(), boss_ionar::UpdateAI(), SmartAI::UpdateDespawn(), and npc_thrall_old_hillsbrad::WaypointReached().
| void Unit::SetVisibleAura | ( | AuraApplication * | aurApp | ) |
Definition at line 722 of file Unit.cpp.
References m_visibleAuras, m_visibleAurasToUpdate, and UpdateAuraForGroup().
Referenced by AuraApplication::AuraApplication().
| void Unit::SetVisibleAuraUpdate | ( | AuraApplication * | aurApp | ) |
Definition at line 736 of file Unit.cpp.
References m_visibleAurasToUpdate.
Referenced by AuraApplication::SetNeedClientUpdate().
| bool Unit::SetWalk | ( | bool | enable | ) |
Definition at line 13422 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), IsWalking(), MOVEMENTFLAG_WALKING, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), SMSG_MOVE_SPLINE_SET_RUN_MODE, SMSG_MOVE_SPLINE_SET_WALK_MODE, and WorldPackets::Movement::MoveSplineSetFlag::Write().
Referenced by boss_the_lich_king::DamageTaken(), npc_silverpine_fallen_human::DoAction(), npc_twilight_volunteer::DoAction(), npc_xerestrasza::DoAction(), npc_azure_ring_captain::DoAction(), npc_turned_champion::npc_turned_championAI::DoAction(), npc_akama_shade::DoAction(), boss_headless_horseman::DoAction(), Scripts::Kalimdor::Durotar::npc_captive_spitescale_scout::DoAction(), OrbAirPositionEvent::Execute(), OrbFlyEvent::Execute(), npc_anduin_wrynn_anduin_doubt::JustAppeared(), npc_anduin_wrynn_anduin_hope::JustAppeared(), npc_sanctum_sentry::JustEngagedWith(), boss_professor_putricide::JustReachedHome(), boss_randolph_moloch::JustSummoned(), npc_daegarn::JustSummoned(), npc_maghar_captive::npc_maghar_captiveAI::JustSummoned(), npc_kurenai_captive::npc_kurenai_captiveAI::JustSummoned(), npc_akama_shade::MovementInform(), boss_shade_of_akama::MovementInform(), boss_headless_horseman::MovementInform(), npc_high_overlord_saurfang_icc::MovementInform(), npc_muradin_bronzebeard_icc::MovementInform(), npc_safe_technician_sanitron::MovementInform(), npc_sparring_partner_exiles_reach::MovementInform(), npc_sparring_partner_combat_training::MovementInform(), EscortAI::MovementInform(), npc_cameron::MoveTheChildren(), SmartAI::OnCharmed(), Scripts::EasternKingdoms::StormwindCity::conversation_quest_ancient_curses_accept::OnCreate(), npc_brann_bronzebeard_anraphet::OnGossipSelect(), npc_tirion_fordring_tft::OnGossipSelect(), npc_voljin_zulaman::npc_voljin_zulamanAI::OnGossipSelect(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), conversation_aberrus_sabellian_intro::OnUpdate(), conversation_an_unlikely_informant::OnUpdate(), conversation_cyrus_crestfall_shaking_hands::OnUpdate(), boss_headless_horseman::Reset(), boss_anraphet::Reset(), npc_kinetic_bomb::Reset(), boss_professor_putricide::Reset(), npc_azure_ring_captain::Reset(), npc_sanctum_sentry::Reset(), npc_garona::npc_garonaAI::Reset(), boss_shade_of_akama::Reset(), SmartAI::ReturnToLastOOCPos(), boss_selin_fireheart::SelectNearestCrystal(), SetCharm(), npc_zombie_chow::SetData(), SmartAI::SetRun(), npc_akama_shade::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), boss_headless_horseman::StartPhase(), hyjalAI::SummonCreature(), npc_koltira_deathweaver::UpdateAI(), npc_scarlet_courier::npc_scarlet_courierAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), npc_silverpine_fallen_human::UpdateAI(), npc_sparring_partner_combat_training::UpdateAI(), npc_re_sized_boar_q56034::UpdateAI(), boss_anraphet::UpdateAI(), Scripts::Kalimdor::Durotar::npc_echo_isles_class_trainer< PitPos, QuestID >::UpdateAI(), npc_uther_quel_delar::npc_uther_quel_delarAI::UpdateAI(), npc_high_overlord_saurfang_icc::UpdateAI(), npc_muradin_bronzebeard_icc::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_tirion_fordring_tft::UpdateAI(), npc_thassarian::UpdateAI(), npc_commander_eligor_dawnbringer::UpdateAI(), npc_brann_bronzebeard_keystone::UpdateAI(), npc_crusade_recruit::UpdateAI(), npc_akama_shade::UpdateAI(), npc_claw::UpdateAI(), boss_kaelthas::UpdateAI(), npc_dream_fog::npc_dream_fogAI::UpdateAI(), boss_kirtonos_the_herald::UpdateIntroEvents(), boss_majordomo::UpdateSpecialEvents(), npc_thassarian::WaypointPathEnded(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), and npc_emily::WaypointReached().
| bool Unit::SetWaterWalking | ( | bool | enable | ) |
Definition at line 13581 of file Unit.cpp.
References AddUnitMovementFlag(), BaseEntity::GetGUID(), GetPlayerMovingMe(), HasUnitMovementFlag(), m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG_WATERWALKING, WorldPackets::Movement::MoveSplineSetFlag::MoverGUID, WorldPackets::Movement::MoveSetFlag::MoverGUID, RemoveUnitMovementFlag(), WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetFlag::SequenceIndex, SMSG_MOVE_SET_LAND_WALK, SMSG_MOVE_SET_WATER_WALK, SMSG_MOVE_SPLINE_SET_LAND_WALK, SMSG_MOVE_SPLINE_SET_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(), WorldSession::HandlePlayerLogin(), cheat_commandscript::HandleWaterWalkCheatCommand(), and Player::ResurrectPlayer().
|
inline |
Definition at line 1291 of file Unit.h.
References m_unitData, and UF::UnitData::WildBattlePetLevel.
Referenced by Creature::SelectWildBattlePetLevel(), Player::SetBattlePetData(), SetMinion(), and BattlePets::BattlePetMgr::UpdateBattlePetData().
| int32 Unit::SpellAbsorbBonusDone | ( | Unit * | victim, |
| SpellInfo const * | spellProto, | ||
| int32 | absorbamount, | ||
| SpellEffectInfo const & | spellEffectInfo, | ||
| uint32 | stack = 1, |
||
| AuraEffect const * | aurEff = nullptr |
||
| ) | const |
Definition at line 7645 of file Unit.cpp.
References BASE_ATTACK, BonusCoefficient, SpellEffectInfo::BonusCoefficient, SpellEffectInfo::BonusCoefficientFromAP, Aura::CallScriptCalcDamageAndHealingHandlers(), SpellInfo::DmgClass, Aura::GetApplicationOfTarget(), AuraEffect::GetBase(), BaseEntity::GetGUID(), WorldObject::GetOwner(), SpellInfo::GetSchoolMask(), WorldObject::GetSpellModOwner(), GetTotalAttackPowerValue(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), BaseEntity::GetTypeId(), SpellInfo::HasAttribute(), HasUnitTypeMask(), SpellInfo::IsRangedWeaponSpell(), IsTotem(), OFF_ATTACK, RANGED_ATTACK, SPELL_ATTR11_IGNORE_CASTER_ABSORB_MODIFIERS, SPELL_ATTR3_IGNORE_CASTER_MODIFIERS, SPELL_ATTR3_REQUIRES_MAIN_HAND_WEAPON, SPELL_ATTR3_REQUIRES_OFF_HAND_WEAPON, SPELL_AURA_MELEE_ATTACK_POWER_ATTACKER_BONUS, SPELL_AURA_MOD_HEALING, SPELL_AURA_RANGED_ATTACK_POWER_ATTACKER_BONUS, SPELL_DAMAGE_CLASS_MELEE, SpellAbsorbPctDone(), SpellBaseAbsorbBonusDone(), TYPEID_UNIT, and UNIT_MASK_GUARDIAN.
Referenced by AuraEffect::CalculateAmount().
| int32 Unit::SpellAbsorbBonusTaken | ( | Unit * | caster, |
| SpellInfo const * | spellProto, | ||
| int32 | absorbamount | ||
| ) | const |
Definition at line 7727 of file Unit.cpp.
References GetTotalAuraMultiplier(), SpellInfo::HasAttribute(), SPELL_ATTR11_IGNORE_TARGET_ABSORB_MODIFIERS, and SPELL_AURA_MOD_ABSORB_TAKEN_PCT.
Referenced by AuraEffect::CalculateAmount().
Definition at line 7711 of file Unit.cpp.
References AddPct(), CR_VERSATILITY_DAMAGE_DONE, WorldObject::GetOwner(), WorldObject::GetSpellModOwner(), GetTotalAuraMultiplier(), BaseEntity::GetTypeId(), IsTotem(), SPELL_AURA_MOD_ABSORB_DONE_PCT, SPELL_AURA_MOD_VERSATILITY, and TYPEID_UNIT.
Referenced by SpellAbsorbBonusDone().
| int32 Unit::SpellBaseAbsorbBonusDone | ( | SpellSchoolMask | schoolMask | ) | const |
Definition at line 7640 of file Unit.cpp.
References SpellBaseHealingBonusDone().
Referenced by SpellAbsorbBonusDone().
| int32 Unit::SpellBaseDamageBonusDone | ( | SpellSchoolMask | schoolMask | ) | const |
Definition at line 7103 of file Unit.cpp.
References BASE_ATTACK, CalculatePct(), GetAuraEffectsByType(), Player::GetBaseSpellPowerBonus(), Player::GetPrimaryStat(), GetStat(), GetTotalAttackPowerValue(), GetTotalAuraModifierByMiscMask(), Player::m_activePlayerData, SPELL_AURA_MOD_DAMAGE_DONE, SPELL_AURA_MOD_SPELL_DAMAGE_OF_STAT_PERCENT, STAT_INTELLECT, and Object::ToPlayer().
Referenced by spell_warl_seed_of_corruption_dummy_aura::CalculateBuffer(), spell_pri_sanctuary_trigger::HandleEffectHit(), WorldPackets::Spells::SpellCastLogData::Initialize(), Guardian::InitStatsForLevel(), SpellDamageBonusDone(), and Player::UpdateSpellDamageAndHealingBonus().
| int32 Unit::SpellBaseHealingBonusDone | ( | SpellSchoolMask | schoolMask | ) | const |
Definition at line 7602 of file Unit.cpp.
References BASE_ATTACK, CalculatePct(), GetAuraEffectsByType(), Player::GetBaseSpellPowerBonus(), AuraEffect::GetMiscValue(), GetPowerIndex(), GetStat(), GetTotalAttackPowerValue(), GetTotalAuraModifier(), BaseEntity::GetTypeId(), MAX_POWERS_PER_CLASS, POWER_MANA, SPELL_AURA_MOD_HEALING_DONE, SPELL_AURA_MOD_SPELL_HEALING_OF_STAT_PERCENT, STAT_INTELLECT, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by npc_pet_pri_divine_image::IsSummonedBy(), SpellBaseAbsorbBonusDone(), SpellHealingBonusDone(), and Player::UpdateSpellDamageAndHealingBonus().
| float Unit::SpellCritChanceDone | ( | Spell * | spell, |
| AuraEffect const * | aurEff, | ||
| SpellSchoolMask | schoolMask, | ||
| WeaponAttackType | attackType = BASE_ATTACK |
||
| ) | const |
Mobs can't crit with spells. (Except player controlled)
Definition at line 7140 of file Unit.cpp.
References CritChance, SpellInfo::DmgClass, AuraEffect::GetSpellInfo(), Spell::GetSpellInfo(), WorldObject::GetSpellModOwner(), BaseEntity::GetTypeId(), GetUnitCriticalChanceDone(), SpellInfo::HasAttribute(), m_baseSpellCritChance, SPELL_ATTR0_CU_CAN_CRIT, SPELL_DAMAGE_CLASS_MAGIC, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_NONE, SPELL_DAMAGE_CLASS_RANGED, SPELL_SCHOOL_MASK_NORMAL, Object::ToPlayer(), and TYPEID_UNIT.
Referenced by AuraEffect::CalcPeriodicCritChance(), spell_pri_power_word_shield::CalculateAbsorb(), and Spell::PreprocessSpellLaunch().
| float Unit::SpellCritChanceTaken | ( | Unit const * | caster, |
| Spell * | spell, | ||
| AuraEffect const * | aurEff, | ||
| SpellSchoolMask | schoolMask, | ||
| float | doneChance, | ||
| WeaponAttackType | attackType = BASE_ATTACK |
||
| ) | const |
Definition at line 7194 of file Unit.cpp.
References AURA_STATE_FROZEN, Spell::CallScriptCalcCritChanceHandlers(), Aura::CallScriptEffectCalcCritChanceHandlers(), SpellInfo::DmgClass, EFFECT_1, FindCurrentSpellBySpellId(), Aura::GetApplicationOfTarget(), GetAuraEffectsByType(), AuraEffect::GetBase(), AuraEffect::GetCasterGUID(), Aura::GetEffect(), BaseEntity::GetGUID(), GetLevel(), GetLevelForTarget(), AuraEffect::GetMiscValue(), AuraEffect::GetMiscValueB(), AuraEffect::GetSpellInfo(), Spell::GetSpellInfo(), GetTotalAuraModifier(), BaseEntity::GetTypeId(), GetUnitCriticalChanceTaken(), SpellInfo::HasAttribute(), HasAuraState(), HealthBelowPct(), AuraEffect::IsAffectingSpell(), SpellInfo::IsPositive(), SPELL_ATTR0_CU_CAN_CRIT, SPELL_AURA_MOD_ATTACKER_SPELL_AND_WEAPON_CRIT_CHANCE, SPELL_AURA_MOD_CRIT_CHANCE_FOR_CASTER, SPELL_AURA_MOD_CRIT_CHANCE_FOR_CASTER_PET, SPELL_AURA_MOD_CRIT_CHANCE_FOR_CASTER_WITH_ABILITIES, SPELL_AURA_MOD_CRIT_CHANCE_VERSUS_TARGET_HEALTH, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_DAMAGE_CLASS_MAGIC, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_NONE, SPELL_DAMAGE_CLASS_RANGED, SPELLFAMILY_ROGUE, SpellInfo::SpellFamilyName, ToTempSummon(), and TYPEID_UNIT.
Referenced by spell_pri_power_word_shield::CalculateAbsorb(), AuraEffect::GetCritChanceFor(), and Spell::PreprocessSpellLaunch().
|
static |
Definition at line 7299 of file Unit.cpp.
References AddPct(), CritDamageAndHealing, SpellInfo::GetSchoolMask(), WorldObject::GetSpellModOwner(), GetTotalAuraModifier(), GetTotalAuraMultiplierByMiscMask(), SPELL_AURA_MOD_CRIT_DAMAGE_BONUS, and SPELL_AURA_MOD_CRITICAL_DAMAGE_TAKEN_FROM_CASTER.
Referenced by CalculateSpellDamageTaken(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
|
static |
Definition at line 7329 of file Unit.cpp.
References CritDamageAndHealing, WorldObject::GetSpellModOwner(), GetTotalAuraMultiplier(), and SPELL_AURA_MOD_CRITICAL_HEALING_AMOUNT.
Referenced by Spell::TargetInfo::DoDamageAndTriggers(), and AuraEffect::HandlePeriodicHealAurasTick().
| int32 Unit::SpellDamageBonusDone | ( | Unit * | victim, |
| SpellInfo const * | spellProto, | ||
| int32 | pdamage, | ||
| DamageEffectType | damagetype, | ||
| SpellEffectInfo const & | spellEffectInfo, | ||
| uint32 | stack = 1, |
||
| Spell * | spell = nullptr, |
||
| AuraEffect const * | aurEff = nullptr |
||
| ) | const |
Definition at line 6830 of file Unit.cpp.
References BASE_ATTACK, BonusCoefficient, SpellEffectInfo::BonusCoefficient, SpellEffectInfo::BonusCoefficientFromAP, Aura::CallScriptCalcDamageAndHealingHandlers(), Spell::CallScriptCalcDamageHandlers(), DIRECT_DAMAGE, SpellInfo::DmgClass, DOT, Aura::GetApplicationOfTarget(), AuraEffect::GetBase(), BaseEntity::GetGUID(), WorldObject::GetOwner(), SpellInfo::GetSchoolMask(), WorldObject::GetSpellModOwner(), GetTotalAttackPowerValue(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), BaseEntity::GetTypeId(), SpellInfo::HasAttribute(), HasUnitTypeMask(), HealingAndDamage, SpellInfo::IsRangedWeaponSpell(), IsTotem(), OFF_ATTACK, PeriodicHealingAndDamage, RANGED_ATTACK, SPELL_ATTR3_IGNORE_CASTER_MODIFIERS, SPELL_ATTR3_REQUIRES_MAIN_HAND_WEAPON, SPELL_ATTR3_REQUIRES_OFF_HAND_WEAPON, SPELL_AURA_MELEE_ATTACK_POWER_ATTACKER_BONUS, SPELL_AURA_MOD_DAMAGE_TAKEN, SPELL_AURA_RANGED_ATTACK_POWER_ATTACKER_BONUS, SPELL_DAMAGE_CLASS_MELEE, SpellBaseDamageBonusDone(), SpellDamagePctDone(), TYPEID_UNIT, and UNIT_MASK_GUARDIAN.
Referenced by AuraEffect::CalculateEstimatedAmount(), Spell::EffectHealthLeech(), Spell::EffectPowerDrain(), Spell::EffectSchoolDMG(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), and AuraEffect::HandleProcTriggerDamageAuraProc().
| int32 Unit::SpellDamageBonusTaken | ( | Unit * | caster, |
| SpellInfo const * | spellProto, | ||
| int32 | pdamage, | ||
| DamageEffectType | damagetype | ||
| ) | const |
Definition at line 7013 of file Unit.cpp.
References AddPct(), CR_VERSATILITY_DAMAGE_TAKEN, DIRECT_DAMAGE, DOT, EFFECT_0, SpellInfo::GetAllEffectsMechanicMask(), GetAuraEffect(), GetAuraEffectsByType(), AuraEffect::GetCasterGUID(), BaseEntity::GetGUID(), AuraEffect::GetMiscValue(), SpellInfo::GetSchoolMask(), WorldObject::GetSpellModOwner(), GetTotalAuraMultiplier(), GetTotalAuraMultiplierByMiscMask(), SpellInfo::HasAttribute(), SpellInfo::HasLabel(), AuraEffect::IsAffectingSpell(), SPELL_ATTR4_IGNORE_DAMAGE_TAKEN_MODIFIERS, SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN, SPELL_AURA_MOD_DAMAGE_TAKEN_BY_LABEL, SPELL_AURA_MOD_IGNORE_TARGET_RESIST, SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCENT, SPELL_AURA_MOD_PERIODIC_DAMAGE_TAKEN, SPELL_AURA_MOD_SCHOOL_MASK_DAMAGE_FROM_CASTER, SPELL_AURA_MOD_SPELL_DAMAGE_FROM_CASTER, SPELL_AURA_MOD_SPELL_DAMAGE_FROM_CASTER_BY_LABEL, SPELL_AURA_MOD_VERSATILITY, SPELL_SCHOOL_MASK_NORMAL, and UI64LIT.
Referenced by DealMeleeDamage(), Spell::EffectHealthLeech(), Spell::EffectPowerDrain(), Spell::EffectSchoolDMG(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), and AuraEffect::HandleProcTriggerDamageAuraProc().
| float Unit::SpellDamagePctDone | ( | Unit * | victim, |
| SpellInfo const * | spellProto, | ||
| DamageEffectType | damagetype, | ||
| SpellEffectInfo const & | spellEffectInfo | ||
| ) | const |
Definition at line 6921 of file Unit.cpp.
References AddPct(), AURA_STATE_FROZEN, AURA_STATE_WOUNDED_20_PERCENT, CR_VERSATILITY_DAMAGE_DONE, DIRECT_DAMAGE, GetCreatureTypeMask(), GetDoTsByCaster(), AuraEffect::GetMiscValue(), WorldObject::GetOwner(), GetOwnerGUID(), SpellInfo::GetSchoolMask(), Creature::GetSpellDamageMod(), WorldObject::GetSpellModOwner(), GetTotalAuraModifierByMiscValue(), GetTotalAuraMultiplier(), GetTotalAuraMultiplierByMiscMask(), BaseEntity::GetTypeId(), SpellInfo::HasAttribute(), HasAuraState(), HasAuraWithMechanic(), SpellInfo::Id, IsPet(), IsTotem(), MAX_SPELL_SCHOOL, SpellEffectInfo::Mechanic, SpellInfo::Mechanic, SPELL_ATTR3_IGNORE_CASTER_MODIFIERS, SPELL_ATTR6_IGNORE_CASTER_DAMAGE_MODIFIERS, 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_DAMAGE_PERCENT_DONE_BY_TARGET_AURA_MECHANIC, SPELL_AURA_MOD_VERSATILITY, SPELLFAMILY_MAGE, SPELLFAMILY_WARLOCK, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, Object::ToCreature(), Object::ToPlayer(), TYPEID_UNIT, and UI64LIT.
Referenced by SpellDamageBonusDone().
| int32 Unit::SpellHealingBonusDone | ( | Unit * | victim, |
| SpellInfo const * | spellProto, | ||
| int32 | healamount, | ||
| DamageEffectType | damagetype, | ||
| SpellEffectInfo const & | spellEffectInfo, | ||
| uint32 | stack = 1, |
||
| Spell * | spell = nullptr, |
||
| AuraEffect const * | aurEff = nullptr |
||
| ) | const |
Definition at line 7347 of file Unit.cpp.
References BASE_ATTACK, BonusCoefficient, SpellEffectInfo::BonusCoefficient, SpellEffectInfo::BonusCoefficientFromAP, Aura::CallScriptCalcDamageAndHealingHandlers(), Spell::CallScriptCalcHealingHandlers(), SpellInfo::DmgClass, DOT, AuraEffect::GetAmount(), Aura::GetApplicationOfTarget(), GetAuraEffectsByType(), AuraEffect::GetBase(), SpellInfo::GetEffects(), BaseEntity::GetGUID(), AuraEffect::GetMiscValue(), WorldObject::GetOwner(), SpellInfo::GetSchoolMask(), WorldObject::GetSpellModOwner(), GetTotalAttackPowerValue(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), BaseEntity::GetTypeId(), SpellInfo::HasAttribute(), HasUnitTypeMask(), HealingAndDamage, AuraEffect::IsAffectingSpell(), SpellInfo::IsRangedWeaponSpell(), IsTotem(), OFF_ATTACK, PeriodicHealingAndDamage, RANGED_ATTACK, SPELL_ATTR3_REQUIRES_MAIN_HAND_WEAPON, SPELL_ATTR3_REQUIRES_OFF_HAND_WEAPON, SPELL_AURA_MELEE_ATTACK_POWER_ATTACKER_BONUS, SPELL_AURA_MOD_HEALING, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_AURA_PERIODIC_HEALTH_FUNNEL, SPELL_AURA_PERIODIC_LEECH, SPELL_AURA_RANGED_ATTACK_POWER_ATTACKER_BONUS, SPELL_DAMAGE_CLASS_MELEE, SPELL_EFFECT_HEALTH_LEECH, SpellBaseHealingBonusDone(), SPELLFAMILY_POTION, SpellInfo::SpellFamilyName, SpellHealingPctDone(), TYPEID_UNIT, and UNIT_MASK_GUARDIAN.
Referenced by CalcPredictedHealing(), AuraEffect::CalculateEstimatedAmount(), spell_pri_prayer_of_mending_SpellScriptBase::CastPrayerOfMendingAura(), Spell::EffectHeal(), Spell::EffectHealMechanical(), Spell::EffectHealthLeech(), spell_pri_holy_word_salvation::HandleApplyBuffs(), AuraEffect::HandlePeriodicHealAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
| int32 Unit::SpellHealingBonusTaken | ( | Unit * | caster, |
| SpellInfo const * | spellProto, | ||
| int32 | healamount, | ||
| DamageEffectType | damagetype | ||
| ) | const |
Definition at line 7514 of file Unit.cpp.
References AddPct(), DOT, AuraEffect::GetAmount(), GetAuraEffect(), AuraEffect::GetCasterGUID(), BaseEntity::GetGUID(), GetMaxNegativeAuraModifier(), GetMaxPositiveAuraModifier(), GetTotalAuraMultiplier(), SpellInfo::HasAttribute(), AuraEffect::IsAffectingSpell(), SPELL_ATTR13_ALWAYS_ALLOW_NEGATIVE_HEALING_PERCENT_MODIFIERS, SPELL_ATTR6_IGNORE_HEALING_MODIFIERS, SPELL_AURA_MOD_HEALING_PCT, SPELL_AURA_MOD_HEALING_RECEIVED, SPELL_AURA_MOD_HEALING_TAKEN_FROM_CASTER, 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 7459 of file Unit.cpp.
References AddPct(), CalculatePct(), GetAuraEffectsByType(), GetHealthPct(), AuraEffect::GetMiscValue(), WorldObject::GetOwner(), SpellInfo::GetSchoolMask(), GetTotalAuraMultiplier(), BaseEntity::GetTypeId(), SpellInfo::HasAttribute(), HasAuraState(), IsTotem(), MAX_SPELL_SCHOOL, SPELL_ATTR3_IGNORE_CASTER_MODIFIERS, SPELL_ATTR6_IGNORE_HEALING_MODIFIERS, SPELL_ATTR9_IGNORE_CASTER_HEALING_MODIFIERS, SPELL_AURA_MOD_DAMAGE_DONE_VERSUS_AURASTATE, SPELL_AURA_MOD_HEALING_DONE_PCT_VERSUS_TARGET_HEALTH, SPELL_AURA_MOD_HEALING_DONE_PERCENT, SPELLFAMILY_POTION, SpellInfo::SpellFamilyName, Object::ToPlayer(), and TYPEID_UNIT.
Referenced by SpellHealingBonusDone().
|
inline |
Definition at line 1781 of file Unit.h.
References REACTIVE_TIMER_START.
Referenced by ProcSkillsAndReactives().
| void Unit::StopAttackFaction | ( | uint32 | faction_id | ) |
Definition at line 13207 of file Unit.cpp.
References AttackStop(), FactionTemplateEntry::Faction, getAttackers(), WorldObject::GetFactionTemplateEntry(), CombatManager::GetPvECombatRefs(), BaseEntity::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 10753 of file Unit.cpp.
References ClearUnitState(), BaseEntity::IsInWorld(), movespline, Movement::MoveSplineInit::Stop(), UNIT_STATE_MOVING, and UpdateSplinePosition().
Referenced by npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), npc_kelthuzad_guardian::DoAction(), boss_malygos::DoAction(), boss_razorscale::DoAction(), ScriptedAI::DoCastSpell(), FlightPathMovementGenerator::DoFinalize(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::DoFriend(), FormationMovementGenerator::DoInitialize(), FormationMovementGenerator::DoUpdate(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::EnterEvadeMode(), boss_felmyst::EnterPhase(), TimedFleeingMovementGenerator::Finalize(), FleeingMovementGenerator::Finalize(), boss_felmyst::HandleFlightSequence(), spell_sapphiron_change_blizzard_target::HandlePeriodic(), WorldSession::HandlePetActionHelper(), IdleMovementGenerator::Initialize(), PointMovementGenerator::Initialize(), boss_razuvious::JustEngagedWith(), npc_ashtongue_sorcerer::MoveInLineOfSight(), npc_magister_aledis::npc_magister_aledisAI::OnGossipSelect(), npc_caster_hover_disk::PassengerBoarded(), PauseMovement(), Spell::prepare(), npc_pet_gen_pandaren_monk::ReceiveEmote(), RemoveCharmedBy(), Creature::RemoveCorpse(), IdleMovementGenerator::Reset(), SplineChainMovementGenerator::Reset(), SetCharmedBy(), SmartAI::SetCombatMove(), npc_zombie_chow::SetData(), boss_victor_nefarius::SetData(), SetRooted(), SetStunned(), FleeingMovementGenerator::SetTargetLocation(), MotionMaster::StopOnDeath(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), FleeingMovementGenerator::Update(), PointMovementGenerator::Update(), npc_frost_wyrm::npc_frost_wyrmAI::UpdateAI(), npc_gargoyle::npc_gargoyleAI::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::UpdateAI(), npc_quel_delar_sword::npc_quel_delar_swordAI::UpdateAI(), npc_zombie_chow::UpdateAI(), boss_gothik::UpdateAI(), boss_heigan::UpdateAI(), boss_noth::UpdateAI(), boss_malygos::UpdateAI(), boss_urom::UpdateAI(), boss_svala::UpdateAI(), and npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::UpdateAI().
|
virtual |
Definition at line 14471 of file Unit.cpp.
References Cell::VisitWorldObjects().
Referenced by Spell::EffectSendChatMessage(), and spell_brewfest_barker_bunny::OnApply().
|
virtual |
Definition at line 14532 of file Unit.cpp.
References GetGender(), sBroadcastTextStore, TC_LOG_ERROR, and Cell::VisitWorldObjects().
|
virtual |
Reimplemented in Player.
Definition at line 14489 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 14556 of file Unit.cpp.
References CHAT_MSG_MONSTER_EMOTE, CHAT_MSG_RAID_BOSS_EMOTE, CONFIG_LISTEN_RANGE_TEXTEMOTE, and sWorld.
|
inline |
Definition at line 1838 of file Unit.h.
Referenced by BeforeVisibilityDestroy< Creature >(), spell_warl_pet_passive_voidwalker::spell_warl_pet_passive_voidwalker_AuraScript::CalculateAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateArcaneResistanceAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArcaneResistanceAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateArmorAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArmorAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateAttackPowerAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateAttackPowerAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateDamageDoneAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateDamageDoneAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateFireResistanceAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateFireResistanceAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateFrostResistanceAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateFrostResistanceAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateIntellectAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateNatureResistanceAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateNatureResistanceAmount(), spell_warl_pet_scaling_04::spell_warl_pet_scaling_04_AuraScript::CalculateShadowResistanceAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateShadowResistanceAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateStaminaAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateStaminaAmount(), Spell::CheckCast(), Spell::EffectDismissPet(), Spell::EffectLearnPetSpell(), Spell::EffectLearnSpell(), GetSelectedPlayerPetOrOwn(), AuraEffect::HandleModPossessPet(), WorldSession::HandlePetAbandon(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), Guardian::InitStatsForLevel(), SpellHistory::LockSpellSchool(), ModifyAuraState(), PetAI::ReceiveEmote(), WorldSession::SendQueryPetNameResponse(), SetHealth(), SetMaxHealth(), SetMinion(), TempSummon::UnSummon(), FollowMovementGenerator::Update(), and FollowMovementGenerator::UpdatePetSpeed().
|
inline |
Definition at line 1844 of file Unit.h.
Referenced by BossAI::_DespawnAtEvade(), _ExitVehicle(), ThreatManager::CanHaveThreatList(), SpellInfo::CheckTarget(), boss_nefarian::DamageTaken(), npc_tiger_matriarch::DamageTaken(), Creature::DespawnOrUnsummon(), boss_sindragosa::DoAction(), npc_strangulate_vehicle::DoAction(), Spell::EffectScriptEffect(), npc_gatewatcher_petAI::EnterEvadeMode(), Scripts::EasternKingdoms::Westfall::npc_westfall_thug::EnterEvadeMode(), Scripts::Pandaria::TheWanderingIsle::npc_master_li_fei_summon::FaceToPlayer(), spell_anduin_wrynn_lost_soul_mirror_image::FilterTargets(), npc_raging_flames::FixateRandomTarget(), GetAllMinionsByEntry(), WorldObject::GetReactionTo(), spell_mage_ring_of_frost::GetRingOfFrostMinion(), spell_pri_inescapable_torment::GetSummon(), SmartScript::GetTargets(), GetUnitCriticalChanceTaken(), UF::ViewerDependentValue< UF::ObjectData::EntryIDTag >::GetValue(), UF::ViewerDependentValue< UF::UnitData::DisplayIDTag >::GetValue(), WorldSession::HandleDismissCritter(), Scripts::Pandaria::TheJadeForest::spell_rappelling_rope::HandleHitTarget(), AuraEffect::HandleLinkedSummon(), npc_commandscript::HandleNpcDeleteCommand(), spell_sapphiron_change_blizzard_target::HandlePeriodic(), spell_pri_divine_image::HandleProc(), WorldSession::HandleQueryBattlePetName(), spell_gen_whisper_to_controller_random::HandleScript(), npc_stolen_soul::InitializeAI(), npc_inner_demon::InitializeAI(), TempSummon::InitStats(), SpellClickInfo::IsFitToRequirements(), Scripts::Pandaria::TheWanderingIsle::npc_min_dimwind_summon::IsSummonedBy(), npc_pet_pri_divine_image::IsSummonedBy(), CreatureAI::JustAppeared(), npc_bg_deephaul_ravine_earthen_mine_cart_horde::JustAppeared(), npc_bg_deephaul_ravine_earthen_mine_cart_alliance::JustAppeared(), npc_sevis_brightflame_coilskar_gateway_private::JustAppeared(), npc_altar_altercation_ariok::JustAppeared(), npc_dark_rider_of_acherus::JustAppeared(), npc_ancient_wisp::JustAppeared(), npc_husam_tolvir_land_mine::JustAppeared(), npc_skardyn_invader::JustAppeared(), boss_lord_stormsong_ancient_mindbender::JustAppeared(), npc_flash_freeze_init::JustAppeared(), npc_flash_freeze_combat::JustAppeared(), npc_frost_tomb::JustAppeared(), npc_inner_demon::JustAppeared(), npc_steamrigger_mechanic::JustAppeared(), npc_ley_line_sprouts::JustDied(), boss_grubbis::boss_grubbisAI::JustDied(), npc_tito::JustDied(), Scripts::EasternKingdoms::Westfall::npc_westfall_thug::JustDied(), npc_giant_flesh_tentacle::flesh_tentacleAI::JustDied(), npc_gatewatcher_web_wrap::JustDied(), npc_memory::npc_memoryAI::JustDied(), boss_tyrannus::JustDied(), npc_bone_spike::JustDied(), npc_raging_spirit::JustDied(), npc_counselor_talbot::JustDied(), npc_stolen_soul::JustDied(), npc_anduin_wrynn_lost_soul::JustDied(), npc_slad_ran_constrictor::JustEngagedWith(), npc_gatewatcher_petAI::JustEngagedWith(), boss_prince_keleseth_icc::JustSummoned(), boss_massive_jormungar::JustSummoned(), Kill(), npc_tiger_matriarch::KilledUnit(), npc_stratholme_rp_dummy::MovementInform(), npc_frostbrood_skytalon::MovementInform(), npc_kayn_sunfury_invasion_begins::MovementInform(), npc_akilzon_amani_kidnapper::MovementInform(), npc_glob_of_viscidus::npc_glob_of_viscidusAI::MovementInform(), BattlefieldWG::OnCreatureCreate(), npc_wormhole::npc_wormholeAI::OnGossipHello(), spell_gen_mount_check_aura::OnPeriodic(), Trinity::WorldObjectSpellTargetCheck::operator()(), npc_silverpine_orc_sea_pup::PassengerBoarded(), RemoveAllControlled(), RemoveAllMinionsByEntry(), Creature::RemoveCorpse(), spell_gen_defend::RemoveDummyFromDriver(), npc_raging_spirit::Reset(), npc_sevis_brightflame_shivarra_gateway::SacrificePlayer(), Spell::SelectImplicitCasterDestTargets(), Creature::SelectVictim(), boss_grubbis::boss_grubbisAI::SetDataSummoner(), npc_silverpine_agatha_fenris_isle::SetEventNoEscape(), SparringPartnerEnhancedCombatTrainingSelector(), SpellCritChanceTaken(), npc_silverpine_orc_sea_pup::SpellHit(), npc_silverpine_agatha_fenris_isle::SpellHit(), npc_silverpine_crowley_bloodfang_fenris_keep::SpellHit(), npc_silverpine_generic_actor_fenris_keep::SpellHit(), boss_the_lich_king::SummonedCreatureDies(), Player::UnsummonBattlePetTemporaryIfAny(), boss_nefarian::UpdateAI(), Scripts::EasternKingdoms::Gilneas::Chapter1::npc_frightened_citizen::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), npc_silverpine_deathstalker_rane_yorick::UpdateAI(), npc_silverpine_armoire::UpdateAI(), npc_silverpine_orc_sea_pup::UpdateAI(), npc_silverpine_mutant_bush_chicken::UpdateAI(), npc_silverpine_orc_sea_dog::UpdateAI(), npc_silverpine_agatha_fenris_isle::UpdateAI(), npc_silverpine_fenris_keep_camera::UpdateAI(), npc_silverpine_crowley_bloodfang_fenris_keep::UpdateAI(), npc_silverpine_generic_actor_fenris_keep::UpdateAI(), npc_tiger_matriarch_credit::UpdateAI(), npc_tiger_matriarch::UpdateAI(), npc_strangulate_vehicle::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_pet_hunter_snake_trap::UpdateAI(), Player::VehicleSpellInitialize(), npc_general_arlos::WaypointPathEnded(), npc_leryssa::WaypointPathEnded(), and npc_7th_legion_magus_sanctum_of_the_sages::WaypointReached().
|
inline |
|
inline |
Definition at line 1841 of file Unit.h.
Referenced by _UnapplyAura(), Spell::EffectDestroyAllTotems(), SetMinion(), Spell::SummonGuardian(), and TotemAI::UpdateAI().
| void Unit::TriggerAuraHeartbeat | ( | ) |
Definition at line 522 of file Unit.cpp.
References m_appliedAuras, PROC_FLAG_HEARTBEAT, PROC_FLAG_NONE, PROC_HIT_NONE, PROC_SPELL_PHASE_NONE, PROC_SPELL_TYPE_MASK_ALL, and ProcSkillsAndAuras().
Referenced by Heartbeat().
| void Unit::TriggerAurasProcOnEvent | ( | AuraApplicationList * | myProcAuras, |
| AuraApplicationList * | targetProcAuras, | ||
| Unit * | actionTarget, | ||
| ProcFlagsInit const & | typeMaskActor, | ||
| ProcFlagsInit const & | typeMaskActionTarget, | ||
| ProcFlagsSpellType | spellTypeMask, | ||
| ProcFlagsSpellPhase | spellPhaseMask, | ||
| ProcFlagsHit | hitMask, | ||
| Spell * | spell, | ||
| DamageInfo * | damageInfo, | ||
| HealInfo * | healInfo | ||
| ) |
Definition at line 10636 of file Unit.cpp.
References GetProcAurasTriggeredOnEvent(), WorldObject::GetSpellModOwner(), Spell::m_appliedMods, and TriggerAurasProcOnEvent().
Referenced by ProcSkillsAndAuras(), and TriggerAurasProcOnEvent().
| void Unit::TriggerAurasProcOnEvent | ( | ProcEventInfo & | eventInfo, |
| AuraApplicationProcContainer & | procAuras | ||
| ) |
Definition at line 10675 of file Unit.cpp.
References AuraApplication::GetBase(), Spell::GetProcChainLength(), ProcEventInfo::GetProcSpell(), AuraApplication::GetRemoveMode(), Spell::IsProcDisabled(), m_procChainLength, SetCantProc(), and Aura::TriggerProcOnEvent().
Definition at line 8685 of file Unit.cpp.
References Above, Below, CastSpell, CopyAuraEffectList(), CountPctFromMaxHealth(), GetAuraEffectsByType(), HasAuraType(), and SPELL_AURA_TRIGGER_SPELL_ON_HEALTH_PCT.
Referenced by SetHealth().
Definition at line 10176 of file Unit.cpp.
References CastSpell, CopyAuraEffectList(), Gain, GetAuraEffectsByType(), GetMaxPower(), GetPctOf(), Loss, SPELL_AURA_TRIGGER_SPELL_ON_POWER_AMOUNT, and SPELL_AURA_TRIGGER_SPELL_ON_POWER_PCT.
Referenced by SetPower().
| void Unit::UnsummonAllTotems | ( | ) |
Definition at line 6763 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 TempSummon, Pet, Totem, Creature, Puppet, and Player.
Definition at line 428 of file Unit.cpp.
References _lastDamagedTargetGuid, _lastExtraAttackSpell, _positionUpdateInfo, _UpdateSpells(), ASSERT, AURA_STATE_HEALTHY_75_PERCENT, AURA_STATE_WOUND_HEALTH_20_80, AURA_STATE_WOUND_HEALTH_35_80, AURA_STATE_WOUNDED_20_PERCENT, AURA_STATE_WOUNDED_25_PERCENT, AURA_STATE_WOUNDED_35_PERCENT, AURA_STATE_WOUNDED_50_PERCENT, BASE_ATTACK, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, ObjectGuid::Empty, extraAttacksTargets, getAttackTimer(), GetCharmerGUID(), GetCurrentSpell(), Spell::GetSpellInfo(), BaseEntity::GetTypeId(), ObjectAccessor::GetUnit(), HandleProcExtraAttackFor(), SpellInfo::HasAttribute(), HasScheduledAIChange(), HealthAbovePct(), HealthBelowPct(), i_motionMaster, InterruptMovementBasedAuras(), IsAlive(), IsCharmed(), BaseEntity::IsCreature(), BaseEntity::IsInWorld(), m_combatManager, m_procDeep, ModifyAuraState(), movespline, OFF_ATTACK, RANGED_ATTACK, RefreshAI(), PositionUpdateInfo::Reset(), setAttackTimer(), SPELL_ATTR6_DELAY_COMBAT_TIMER_DURING_CAST, TYPEID_PLAYER, WorldObject::Update(), CombatManager::Update(), UpdateCharmAI(), UpdateReactives(), and UpdateSplineMovement().
Referenced by Creature::Update(), and Player::Update().
| void Unit::UpdateAdvFlyingSpeed | ( | AdvFlyingRateTypeRange | speedType, |
| bool | clientUpdate | ||
| ) |
Definition at line 9105 of file Unit.cpp.
References ADV_FLYING_BANKING_RATE, ADV_FLYING_PITCHING_RATE_DOWN, ADV_FLYING_PITCHING_RATE_UP, ADV_FLYING_TURN_VELOCITY_THRESHOLD, ApplyPct(), FlightCapabilityEntry::BankingRateMax, FlightCapabilityEntry::BankingRateMin, AuraEffect::GetAmount(), GetFlightCapabilityID(), BaseEntity::GetGUID(), GetMaxNegativeAuraModifier(), GetMaxPositiveAuraModifier(), GetUnitBeingMoved(), m_advFlyingSpeed, m_movementCounter, WorldPackets::Movement::SetAdvFlyingSpeedRange::MoverGUID, FlightCapabilityEntry::PitchingRateDownMax, FlightCapabilityEntry::PitchingRateDownMin, FlightCapabilityEntry::PitchingRateUpMax, FlightCapabilityEntry::PitchingRateUpMin, WorldPackets::Movement::SetAdvFlyingSpeedRange::SequenceIndex, sFlightCapabilityStore, SMSG_MOVE_SET_ADV_FLYING_BANKING_RATE, SMSG_MOVE_SET_ADV_FLYING_PITCHING_RATE_DOWN, SMSG_MOVE_SET_ADV_FLYING_PITCHING_RATE_UP, SMSG_MOVE_SET_ADV_FLYING_TURN_VELOCITY_THRESHOLD, WorldPackets::Movement::SetAdvFlyingSpeedRange::SpeedMax, WorldPackets::Movement::SetAdvFlyingSpeedRange::SpeedMin, SPELL_AURA_MOD_ADV_FLYING_BANKING_RATE, SPELL_AURA_MOD_ADV_FLYING_PITCHING_RATE_DOWN, SPELL_AURA_MOD_ADV_FLYING_PITCHING_RATE_UP, SPELL_AURA_NONE, Object::ToPlayer(), FlightCapabilityEntry::TurnVelocityThresholdMax, FlightCapabilityEntry::TurnVelocityThresholdMin, and WorldPackets::Movement::SetAdvFlyingSpeedRange::Write().
| void Unit::UpdateAdvFlyingSpeed | ( | AdvFlyingRateTypeSingle | speedType, |
| bool | clientUpdate | ||
| ) |
Definition at line 9044 of file Unit.cpp.
References FlightCapabilityEntry::AddImpulseMaxSpeed, ADV_FLYING_ADD_IMPULSE_MAX_SPEED, ADV_FLYING_AIR_FRICTION, ADV_FLYING_DOUBLE_JUMP_VEL_MOD, ADV_FLYING_GLIDE_START_MIN_HEIGHT, ADV_FLYING_LAUNCH_SPEED_COEFFICIENT, ADV_FLYING_LIFT_COEFFICIENT, ADV_FLYING_MAX_VEL, ADV_FLYING_OVER_MAX_DECELERATION, ADV_FLYING_SURFACE_FRICTION, FlightCapabilityEntry::AirFriction, ApplyPct(), FlightCapabilityEntry::DoubleJumpVelMod, AuraEffect::GetAmount(), GetFlightCapabilityID(), BaseEntity::GetGUID(), GetMaxNegativeAuraModifier(), GetMaxPositiveAuraModifier(), GetUnitBeingMoved(), FlightCapabilityEntry::GlideStartMinHeight, FlightCapabilityEntry::LaunchSpeedCoefficient, FlightCapabilityEntry::LiftCoefficient, m_advFlyingSpeed, m_movementCounter, FlightCapabilityEntry::MaxVel, WorldPackets::Movement::SetAdvFlyingSpeed::MoverGUID, FlightCapabilityEntry::OverMaxDeceleration, WorldPackets::Movement::SetAdvFlyingSpeed::SequenceIndex, sFlightCapabilityStore, SMSG_MOVE_SET_ADV_FLYING_ADD_IMPULSE_MAX_SPEED, SMSG_MOVE_SET_ADV_FLYING_AIR_FRICTION, SMSG_MOVE_SET_ADV_FLYING_DOUBLE_JUMP_VEL_MOD, SMSG_MOVE_SET_ADV_FLYING_GLIDE_START_MIN_HEIGHT, SMSG_MOVE_SET_ADV_FLYING_LAUNCH_SPEED_COEFFICIENT, SMSG_MOVE_SET_ADV_FLYING_LIFT_COEFFICIENT, SMSG_MOVE_SET_ADV_FLYING_MAX_VEL, SMSG_MOVE_SET_ADV_FLYING_OVER_MAX_DECELERATION, SMSG_MOVE_SET_ADV_FLYING_SURFACE_FRICTION, WorldPackets::Movement::SetAdvFlyingSpeed::Speed, SPELL_AURA_MOD_ADV_FLYING_ADD_IMPULSE_MAX_SPEED, SPELL_AURA_MOD_ADV_FLYING_AIR_FRICTION, SPELL_AURA_MOD_ADV_FLYING_LIFT_COEF, SPELL_AURA_MOD_ADV_FLYING_MAX_VEL, SPELL_AURA_MOD_ADV_FLYING_OVER_MAX_DECELERATION, SPELL_AURA_NONE, FlightCapabilityEntry::SurfaceFriction, Object::ToPlayer(), and WorldPackets::Movement::SetAdvFlyingSpeed::Write().
Referenced by AuraEffect::HandleAuraModAdvFlyingSpeed(), and SetFlightCapabilityID().
| void Unit::UpdateAllDamageDoneMods | ( | ) |
Definition at line 9831 of file Unit.cpp.
References BASE_ATTACK, MAX_ATTACK, and UpdateDamageDoneMods().
Referenced by AuraEffect::HandleModDamageDone().
| void Unit::UpdateAllDamagePctDoneMods | ( | ) |
Definition at line 9878 of file Unit.cpp.
References BASE_ATTACK, MAX_ATTACK, and UpdateDamagePctDoneMods().
Referenced by AuraEffect::HandleModDamagePercentDone().
|
virtual |
Definition at line 59 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::HandleModBonusArmorPercent(), UpdateResistances(), and UpdateUnitMod().
|
pure virtual |
Implemented in Creature, Guardian, Player, and Totem.
Referenced by HandleAttackPowerModifier().
| void Unit::UpdateAttackTimeField | ( | WeaponAttackType | att | ) |
Definition at line 11018 of file Unit.cpp.
References UF::UnitData::AttackRoundBaseTime, BASE_ATTACK, m_baseAttackSpeed, m_modAttackSpeedPct, m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), OFF_ATTACK, RANGED_ATTACK, UF::UnitData::RangedAttackRoundBaseTime, and BaseEntity::SetUpdateFieldValue().
Referenced by ApplyAttackTimePercentMod(), and SetBaseAttackTime().
| void Unit::UpdateAuraForGroup | ( | ) |
Definition at line 11096 of file Unit.cpp.
References BaseEntity::GetTypeId(), GROUP_UPDATE_FLAG_AURAS, GROUP_UPDATE_FLAG_PET_AURAS, Pet::isControlled(), IsPet(), Pet::SetGroupUpdateFlag(), Object::ToPlayer(), and TYPEID_UNIT.
Referenced by RemoveVisibleAura(), and SetVisibleAura().
|
private |
Definition at line 10403 of file Unit.cpp.
References ASSERT, ASSERT_NOTNULL, GetAI(), GetCharmer(), GetCharmerGUID(), BaseEntity::GetGUID(), BaseEntity::GetTypeId(), IsCharmed(), isPossessed(), IsVehicle(), UnitAI::OnCharmed(), RefreshAI(), RestoreDisabledAI(), sCreatureAIRegistry, SetAI(), TC_LOG_ERROR, Object::ToCreature(), Object::ToPlayer(), Position::ToString(), TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by Update().
| void Unit::UpdateCreatureType | ( | ) |
Definition at line 9502 of file Unit.cpp.
References ChrRacesEntry::CreatureType, SpellShapeshiftFormEntry::CreatureType, UF::UnitData::CreatureType, GetRace(), GetShapeshiftForm(), m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), sChrRacesStore, BaseEntity::SetUpdateFieldFlagValue(), sSpellShapeshiftFormStore, and Object::ToCreature().
Referenced by Creature::InitEntry(), Player::LoadFromDB(), and SetShapeshiftForm().
|
virtual |
Reimplemented in Player.
Definition at line 9801 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 9837 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 65 of file StatSystem.cpp.
References BASE_ATTACK, CalculateMinMaxDamage(), m_unitData, BaseEntity::m_values, UF::UnitData::MaxDamage, UF::UnitData::MaxOffHandDamage, UF::UnitData::MaxRangedDamage, UF::UnitData::MinDamage, UF::UnitData::MinOffHandDamage, UF::UnitData::MinRangedDamage, UF::UpdateFieldHolder::ModifyValue(), OFF_ATTACK, RANGED_ATTACK, and BaseEntity::SetUpdateFieldStatValue().
Referenced by Player::_ApplyWeaponDamage(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleModAttackSpeed(), Creature::SetCanDualWield(), Creature::UpdateAttackPowerAndDamage(), Player::UpdateAttackPowerAndDamage(), UpdateUnitMod(), and Player::UpdateVersatilityDamageDone().
| void Unit::UpdateDisplayPower | ( | ) |
Definition at line 5827 of file Unit.cpp.
References CalculateDisplayPowerType(), and SetPowerType().
Referenced by Player::ActivateTalentGroup(), Creature::CreateFromProto(), AuraEffect::HandleAuraModPowerDisplay(), 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 13187 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 746 of file Unit.cpp.
References CURRENT_CHANNELED_SPELL, m_currentSpells, m_interruptableAuras, m_interruptMask, m_interruptMask2, None, and SPELL_STATE_CHANNELING.
Referenced by _UnapplyAura(), Spell::finish(), and RemoveAurasWithInterruptFlags().
|
protected |
Definition at line 3371 of file Unit.cpp.
References _lastLiquid, AboveWater, CastSpell, WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), IsControlledByPlayer(), Player::IsGameMaster(), IsInWater(), RemoveAurasDueToSpell(), RemoveAurasWithInterruptFlags(), sLiquidTypeStore, LiquidTypeEntry::SpellID, and UnderWater.
Referenced by ProcessPositionDataChanged().
|
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().
| void Unit::UpdateMountCapability | ( | ) |
Definition at line 8478 of file Unit.cpp.
References AURA_REMOVE_BY_INTERRUPT, CancelTravelShapeshiftForm(), CastSpell, CopyAuraEffectList(), GetAuraEffectsByType(), GetMountCapability(), GetShapeshiftForm(), HasAura, IsLoading(), SetFlightCapabilityID(), sMountCapabilityStore, SPELL_AURA_MOUNTED, and sSpellShapeshiftFormStore.
Referenced by AuraEffect::HandleMountRestrictions(), WorldSession::HandlePlayerLogin(), Player::ProcessPositionDataChanged(), Player::SetSkill(), and Player::UpdateArea().
| void Unit::UpdateMovementForcesModMagnitude | ( | ) |
Definition at line 14222 of file Unit.cpp.
References _movementForces, BaseEntity::GetGUID(), GetPlayerMovingMe(), GetTotalAuraMultiplier(), m_movementCounter, WorldObject::m_movementInfo, WorldPackets::Movement::MoveSetSpeed::MoverGUID, WorldObject::SendMessageToSet(), WorldPackets::Movement::MoveSetSpeed::SequenceIndex, SMSG_MOVE_SET_MOD_MOVEMENT_FORCE_MAGNITUDE, SMSG_MOVE_UPDATE_MOD_MOVEMENT_FORCE_MAGNITUDE, WorldPackets::Movement::MoveSetSpeed::Speed, WorldPackets::Movement::MoveUpdateSpeed::Speed, SPELL_AURA_MOD_MOVEMENT_FORCE_MAGNITUDE, WorldPackets::Movement::MoveUpdateSpeed::Status, WorldPackets::Movement::MoveSetSpeed::Write(), and WorldPackets::Movement::MoveUpdateSpeed::Write().
Referenced by AuraEffect::HandleModMovementForceMagnitude().
|
virtual |
Reimplemented in Creature.
Definition at line 9340 of file Unit.cpp.
References BaseEntity::ForceUpdateFieldChange(), m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::UnitData::NpcFlags, and UF::UnitData::NpcFlags2.
Referenced by AtEnterCombat(), AtExitCombat(), SetInteractionAllowedInCombat(), SetInteractionAllowedWhileHostile(), and Creature::UpdateNearbyPlayersInteractions().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 12563 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(), spell_ulduar_squeezed_lifeless::spell_ulduar_squeezed_lifeless_SpellScript::HandleInstaKill(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleModInvisibilityDetect(), AuraEffect::HandleModStealth(), AuraEffect::HandleModStealthDetect(), AuraEffect::HandleModStealthLevel(), Map::MoveAllCreaturesInMoveList(), NearTeleportTo(), Creature::Respawn(), SetVisible(), and Player::UpdateObjectVisibility().
| void Unit::UpdateOrientation | ( | float | orientation | ) |
Only server-side orientation update, does not broadcast to client.
Definition at line 13179 of file Unit.cpp.
References GetVehicleKit(), IsVehicle(), Vehicle::RelocatePassengers(), and Position::SetOrientation().
Referenced by UpdatePosition().
| void Unit::UpdatePetCombatState | ( | ) |
Definition at line 9301 of file Unit.cpp.
References ASSERT, IsPet(), m_Controlled, RemoveUnitFlag(), SetUnitFlag(), and UNIT_FLAG_PET_IN_COMBAT.
Referenced by SetCharm(), and SetMinion().
|
virtual |
Reimplemented in Player.
Definition at line 13123 of file Unit.cpp.
References _positionUpdateInfo, Map::CreatureRelocation(), Falling, Map::GameObjectRelocation(), GetAuraEffectsByType(), GetGameObject(), WorldObject::GetMap(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), BaseEntity::GetTypeId(), Ground, IsFalling(), IsFlying(), IsInWater(), Trinity::IsValidMapCoord(), M_PI, Map::PlayerRelocation(), PositionUpdateInfo::Relocated, RemoveAurasWithInterruptFlags(), SPELL_AURA_ACT_AS_CONTROL_ZONE, Swimming, TC_LOG_DEBUG, Object::ToCreature(), Object::ToPlayer(), PositionUpdateInfo::Turned, TYPEID_PLAYER, and UpdateOrientation().
Referenced by 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 13173 of file Unit.cpp.
References Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and UpdatePosition().
| void Unit::UpdateReactives | ( | uint32 | p_time | ) |
Definition at line 10942 of file Unit.cpp.
References AURA_STATE_DEFENSIVE, AURA_STATE_DEFENSIVE_2, HasAuraState(), m_reactiveTimer, MAX_REACTIVE, ModifyAuraState(), REACTIVE_DEFENSE, and REACTIVE_DEFENSE_2.
Referenced by Update().
|
virtual |
Reimplemented in Guardian, Player, and Totem.
Definition at line 9954 of file Unit.cpp.
References BASE_PCT, BASE_VALUE, GetFlatModifierValue(), GetPctModifierValue(), SetBonusResistanceMod(), SetResistance(), SPELL_SCHOOL_NORMAL, TOTAL_PCT, TOTAL_VALUE, UNIT_MOD_RESISTANCE_START, and UpdateArmor().
Referenced by UpdateAllResistances(), Player::UpdateResistances(), and UpdateUnitMod().
| void Unit::UpdateSpeed | ( | UnitMoveType | mtype | ) |
Definition at line 8797 of file Unit.cpp.
References AddPct(), ASSERT_NOTNULL, baseMoveSpeed, CalculatePct(), FOLLOW_MOTION_TYPE, GetCharmer(), SpellMgr::GetCreatureImmunities(), Creature::GetCreatureTemplate(), MotionMaster::GetCurrentMovementGeneratorType(), WorldObject::GetDistance(), BaseEntity::GetGUID(), GetMaxNegativeAuraModifier(), GetMaxPositiveAuraModifier(), GetMotionMaster(), GetOwnerGUID(), GetSpeedRate(), GetTarget(), GetTotalAuraModifier(), GetTotalAuraMultiplier(), BaseEntity::GetTypeId(), GetVehicle(), GetVehicleBase(), IsControlledByPlayer(), IsHunterPet(), IsInCombat(), IsMounted(), BaseEntity::IsPlayer(), WorldObject::IsWithinDist3d(), MECHANIC_DAZE, MECHANIC_SNARE, MOVE_FLIGHT, MOVE_FLIGHT_BACK, MOVE_RUN, MOVE_RUN_BACK, MOVE_SWIM, MOVE_SWIM_BACK, MOVE_WALK, PET_FOLLOW_DIST, playerBaseMoveSpeed, SetSpeedRate(), CreatureTemplate::speed_run, SPELL_AURA_MOD_DECREASE_SPEED, SPELL_AURA_MOD_FLIGHT_SPEED_NOT_STACK, SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_AURA_MOD_INCREASE_MOUNTED_SPEED, SPELL_AURA_MOD_INCREASE_SPEED, SPELL_AURA_MOD_INCREASE_SWIM_SPEED, SPELL_AURA_MOD_INCREASE_VEHICLE_FLIGHT_SPEED, SPELL_AURA_MOD_MINIMUM_SPEED, SPELL_AURA_MOD_MINIMUM_SPEED_RATE, SPELL_AURA_MOD_MOUNTED_FLIGHT_SPEED_ALWAYS, SPELL_AURA_MOD_MOUNTED_SPEED_ALWAYS, SPELL_AURA_MOD_MOUNTED_SPEED_NOT_STACK, SPELL_AURA_MOD_SPEED_ALWAYS, SPELL_AURA_MOD_SPEED_NOT_STACK, SPELL_AURA_MOD_VEHICLE_SPEED_ALWAYS, SPELL_AURA_USE_NORMAL_MOVEMENT_SPEED, TC_LOG_ERROR, Object::ToCreature(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_MASK_MINION, and UpdateSpeed().
Referenced by Creature::AtDisengage(), Creature::AtEngage(), boss_jormungarAI::Emerge(), AuraEffect::HandleAuraModDecreaseSpeed(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), AuraEffect::HandleAuraModIncreaseSpeed(), AuraEffect::HandleAuraModIncreaseSwimSpeed(), AuraEffect::HandleAuraModMinimumSpeedRate(), AuraEffect::HandleAuraModUseNormalSpeed(), boss_razorscale::MovementInform(), spell_monk_roll_aura::RestoreRunBackSpeed(), PetAI::UpdateAI(), and UpdateSpeed().
|
private |
Definition at line 600 of file Unit.cpp.
References DisableSpline(), movespline, SetAnimTier(), and UpdateSplinePosition().
Referenced by ImmediateMovementGenerator::Initialize(), SetFacingToPoint(), and Update().
|
private |
Definition at line 619 of file Unit.cpp.
References GetDirectTransport(), Position::GetOrientation(), HasUnitState(), WorldObject::m_movementInfo, Position::m_positionX, Position::m_positionY, Position::m_positionZ, movespline, Movement::Location::orientation, MovementInfo::TransportInfo::pos, Position::SetOrientation(), MovementInfo::transport, UNIT_STATE_FOCUSING, UNIT_STATE_LOST_CONTROL, and UpdatePosition().
Referenced by StopMoving(), and UpdateSplineMovement().
| void Unit::UpdateStatBuffMod | ( | Stats | stat | ) |
Definition at line 5237 of file Unit.cpp.
References AddPct(), AsUnderlyingType(), BASE_PCT, BASE_VALUE, AuraEffect::GetAmount(), GetFlatModifierValue(), AuraEffect::GetMiscValue(), GetPctModifierValue(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscValue(), IsGuardian(), m_floatStatNegBuff, m_floatStatPosBuff, SPELL_AURA_MOD_STAT, SPELL_AURA_MOD_STAT_BONUS_PCT, TOTAL_PCT, TOTAL_VALUE, UNIT_MOD_STAT_START, and UpdateStatBuffModForClient().
Referenced by Player::_ApplyItemBonuses(), Player::ApplyEnchantment(), AuraEffect::HandleAuraModStat(), AuraEffect::HandleModTotalPercentStat(), Player::UpdateAllStats(), Guardian::UpdateStats(), and Player::UpdateStats().
| void Unit::UpdateStatBuffModForClient | ( | Stats | stat | ) |
Definition at line 5300 of file Unit.cpp.
References m_floatStatNegBuff, m_floatStatPosBuff, m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), UF::UnitData::StatNegBuff, and UF::UnitData::StatPosBuff.
Referenced by InitStatBuffMods(), and UpdateStatBuffMod().
|
pure virtual |
Implemented in Creature, Guardian, Player, and Totem.
Referenced by AuraEffect::HandleModStatBonusPercent(), and UpdateUnitMod().
| void Unit::UpdateUnitMod | ( | UnitMods | unitMod | ) |
Definition at line 9706 of file Unit.cpp.
References ABORT_MSG, BASE_ATTACK, CanModifyStats(), GetSpellSchoolByAuraGroup(), GetStatByAuraGroup(), OFF_ATTACK, RANGED_ATTACK, UNIT_MOD_ALTERNATE, UNIT_MOD_ALTERNATE_ENCOUNTER, UNIT_MOD_ALTERNATE_MOUNT, UNIT_MOD_ALTERNATE_QUEST, UNIT_MOD_ARCANE_CHARGES, UNIT_MOD_ARMOR, UNIT_MOD_BURNING_EMBERS, UNIT_MOD_CHI, UNIT_MOD_COMBO_POINTS, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, UNIT_MOD_DAMAGE_RANGED, UNIT_MOD_DEMONIC_FURY, UNIT_MOD_ENERGY, UNIT_MOD_ESSENCE, UNIT_MOD_FOCUS, UNIT_MOD_FURY, UNIT_MOD_HEALTH, UNIT_MOD_HOLY_POWER, UNIT_MOD_INSANITY, UNIT_MOD_LUNAR_POWER, UNIT_MOD_MAELSTROM, UNIT_MOD_MANA, UNIT_MOD_PAIN, UNIT_MOD_POWER_START, 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_BLOOD, UNIT_MOD_RUNE_FROST, UNIT_MOD_RUNE_UNHOLY, UNIT_MOD_RUNES, UNIT_MOD_RUNIC_POWER, UNIT_MOD_SOUL_SHARDS, UNIT_MOD_STAT_AGILITY, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_STAT_STAMINA, UNIT_MOD_STAT_STRENGTH, UpdateArmor(), UpdateDamagePhysical(), UpdateMaxHealth(), UpdateMaxPower(), UpdateResistances(), and UpdateStats().
Referenced by ApplyStatPctModifier(), HandleStatFlatModifier(), SetStatFlatModifier(), and SetStatPctModifier().
| void Unit::ValidateAttackersAndOwnTarget | ( | ) |
Definition at line 6013 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 14494 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 14561 of file Unit.cpp.
References CHAT_MSG_MONSTER_WHISPER, CHAT_MSG_RAID_BOSS_WHISPER, DB2Manager::GetBroadcastTextValue(), GetGender(), Player::GetSession(), WorldSession::GetSessionDbLocaleIndex(), WorldPackets::Chat::Chat::Initialize(), LANG_UNIVERSAL, sBroadcastTextStore, Player::SendDirectMessage(), TC_LOG_ERROR, and WorldPackets::Chat::Chat::Write().
|
virtual |
Reimplemented in Player.
Definition at line 14484 of file Unit.cpp.
References CHAT_MSG_MONSTER_YELL, CONFIG_LISTEN_RANGE_YELL, and sWorld.
Referenced by npc_commandscript::HandleNpcYellCommand(), and Map::ScriptsProcess().
|
virtual |
Reimplemented in Player.
Definition at line 14551 of file Unit.cpp.
References CHAT_MSG_MONSTER_YELL, CONFIG_LISTEN_RANGE_YELL, and sWorld.
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 2057 of file Unit.h.
Referenced by SetAIAnimKitId(), SetMeleeAnimKitId(), and SetMovementAnimKitId().
|
private |
|
private |
Are we walking before we were charmed?
Definition at line 2055 of file Unit.h.
Referenced by SetCharm(), and Unit().
|
private |
Definition at line 2048 of file Unit.h.
Referenced by AddExtraAttacks(), AttackerStateUpdate(), and Update().
|
private |
Definition at line 2046 of file Unit.h.
Referenced by AttackerStateUpdate(), Unit(), and Update().
|
protected |
Definition at line 1981 of file Unit.h.
Referenced by Unit(), UpdateLiquidStatusOnPositionChange(), and Player::UpdateMirrorTimers().
|
private |
Definition at line 2059 of file Unit.h.
Referenced by SetAIAnimKitId(), SetMeleeAnimKitId(), and SetMovementAnimKitId().
|
private |
Definition at line 2058 of file Unit.h.
Referenced by SetAIAnimKitId(), SetMeleeAnimKitId(), and SetMovementAnimKitId().
|
private |
Definition at line 2063 of file Unit.h.
Referenced by ApplyMovementForce(), RemoveMovementForce(), SendTeleportPacket(), and UpdateMovementForcesModMagnitude().
|
private |
faction before charm
Definition at line 2054 of file Unit.h.
Referenced by RemoveCharmedBy(), SetCharmedBy(), and Unit().
|
private |
Definition at line 2064 of file Unit.h.
Referenced by InterruptMovementBasedAuras(), Update(), and UpdatePosition().
|
private |
Definition at line 2061 of file Unit.h.
Referenced by _UpdateSpells().
|
private |
Definition at line 2047 of file Unit.h.
Referenced by AddExtraAttacks(), and Update().
|
private |
Definition at line 2041 of file Unit.h.
Referenced by RefreshAI().
|
private |
Definition at line 2040 of file Unit.h.
Referenced by PopAI(), PushAI(), and RefreshAI().
|
protected |
Definition at line 1972 of file Unit.h.
Referenced by AddToWorld(), and Update().
| ObjectGuid Unit::LastCharmerGUID |
Definition at line 1795 of file Unit.h.
Referenced by CreatureAI::OnCharmed(), SmartAI::OnCharmed(), and RemoveCharmedBy().
|
protected |
Definition at line 1963 of file Unit.h.
Referenced by UpdateAdvFlyingSpeed(), and UpdateAdvFlyingSpeed().
|
private |
Definition at line 2042 of file Unit.h.
Referenced by AIUpdateTick(), and RefreshAI().
|
protected |
Definition at line 1941 of file Unit.h.
Referenced by _ApplyAllAuraStatMods(), _CreateAuraApplication(), _RemoveAllAuraStatMods(), _UnapplyAura(), _UnapplyAura(), AtEnterCombat(), AtExitCombat(), GetAuraApplication(), GetAuraApplication(), GetAuraApplication(), GetAuraApplication(), GetAuraCount(), GetAuraEffect(), HasAuraEffect(), HasAuraWithMechanic(), HasStrongerAuraWithDR(), OutDebugInfo(), RemoveAllAuras(), RemoveAllAurasExceptType(), RemoveAllAurasExceptType(), RemoveAllAurasOnDeath(), RemoveAllAurasRequiringDeadTarget(), RemoveAppliedAuras(), RemoveAppliedAuras(), RemoveAreaAurasDueToLeaveWorld(), RemoveAura(), RemoveAura(), RemoveAurasByShapeShift(), RemoveAurasDueToItemSpell(), RemoveAurasDueToSpell(), RemoveAurasWithAttribute(), RemoveAurasWithFamily(), TriggerAuraHeartbeat(), and ~Unit().
|
protected |
Definition at line 1933 of file Unit.h.
Referenced by _RegisterAreaTrigger(), _UnregisterAreaTrigger(), GetAreaTriggers(), RemoveAllAreaTriggers(), RemoveAreaTrigger(), RemoveAreaTrigger(), and ~Unit().
|
protected |
Definition at line 1917 of file Unit.h.
Referenced by _addAttacker(), _removeAttacker(), CombatStop(), RemoveAllAttackers(), and ~Unit().
|
protected |
|
protected |
Definition at line 1955 of file Unit.h.
Referenced by GetAttackPowerModifierValue(), HandleAttackPowerModifier(), and Unit().
| std::array<uint32, MAX_ATTACK> Unit::m_attackTimer |
Definition at line 1544 of file Unit.h.
Referenced by ApplyAttackTimePercentMod(), resetAttackTimer(), and Unit().
|
protected |
Definition at line 1953 of file Unit.h.
Referenced by GetFlatModifierValue(), HandleStatFlatModifier(), SetStatFlatModifier(), and Unit().
|
protected |
Definition at line 1954 of file Unit.h.
Referenced by ApplyStatPctModifier(), GetPctModifierValue(), SetStatPctModifier(), and Unit().
|
protected |
Definition at line 1949 of file Unit.h.
Referenced by _CreateAuraApplication(), _UnapplyAura(), BuildAuraStateUpdateForTarget(), and HasAuraState().
|
protected |
Definition at line 1943 of file Unit.h.
Referenced by _UpdateSpells(), RemoveOwnedAura(), and Unit().
| std::array<uint32, MAX_ATTACK> Unit::m_baseAttackSpeed |
Definition at line 1542 of file Unit.h.
Referenced by ApplyAttackTimePercentMod(), GetBaseAttackTime(), SetBaseAttackTime(), Unit(), and UpdateAttackTimeField().
| float Unit::m_baseSpellCritChance |
Definition at line 1540 of file Unit.h.
Referenced by AuraEffect::HandleAuraModCritPct(), AuraEffect::HandleModSpellCritChance(), SpellCritChanceDone(), and Unit().
| bool Unit::m_canDualWield |
Definition at line 727 of file Unit.h.
Referenced by Player::RemoveSpell(), Unit(), and Player::UpdateAverageItemLevelTotal().
|
protected |
Definition at line 1968 of file Unit.h.
Referenced by SetCharm().
|
protected |
Definition at line 1967 of file Unit.h.
Referenced by SetCharm().
|
protected |
Definition at line 1969 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(), and Pet::SavePetToDB().
|
private |
Definition at line 2050 of file Unit.h.
Referenced by _AddAura(), _CreateAuraApplication(), CleanupBeforeRemoveFromMap(), and Unit().
|
private |
Definition at line 2033 of file Unit.h.
Referenced by CombatStop(), RemoveCharmedBy(), SetCharmedBy(), SetImmuneToAll(), SetImmuneToNPC(), SetImmuneToPC(), StopAttackFaction(), and Update().
| ControlList Unit::m_Controlled |
Definition at line 1252 of file Unit.h.
Referenced by Attack(), CombatStopWithPets(), DealDamage(), InstanceScript::DoCastSpellOnPlayer(), InstanceScript::DoRemoveAurasDueToSpellOnPlayer(), GetAllMinionsByEntry(), GetDebugInfo(), DivineImageHelpers::GetSummon(), spell_pri_inescapable_torment::GetSummon(), WorldSession::HandlePetAction(), WorldSession::HandlePetSetAction(), WorldSession::HandlePetSpellAutocastOpcode(), spell_dk_dancing_rune_weapon::HandleProc(), isAttackingPlayer(), OutDebugInfo(), RemoveAllControlled(), RemoveAllMinionsByEntry(), SetCharm(), Player::SetContestedPvP(), Minion::setDeathState(), SetMinion(), Player::SetPvP(), StopAttackFaction(), boss_blackheart_the_inciter_mc_dummy::UpdateAI(), UpdatePetCombatState(), Player::UpdatePvPState(), PhasingHandler::ControlledUnitVisitor::VisitControlledOf(), and ~Unit().
|
protected |
Definition at line 1912 of file Unit.h.
Referenced by TempSummon::InitStats(), Player::Player(), SetCharm(), and SetMinion().
|
protected |
Definition at line 1938 of file Unit.h.
Referenced by _UpdateAutoRepeatSpell(), _UpdateSpells(), AtEnterCombat(), AttackerStateUpdate(), CancelAutoRepeatSpell(), CastStop(), DealDamage(), FindCurrentSpellBySpellId(), FinishSpell(), InterruptNonMeleeSpells(), InterruptSpell(), IsMovementPreventedByCasting(), IsNonMeleeSpellCast(), MeleeSpellMissChance(), RemoveAurasWithInterruptFlags(), SetCurrentCastSpell(), Unit(), UpdateInterruptMask(), and ~Unit().
|
protected |
Definition at line 1920 of file Unit.h.
Referenced by WorldSession::HandlePlayerLogin(), Player::LoadFromDB(), Creature::LoadFromDB(), setDeathState(), Unit(), TempSummon::Update(), Pet::Update(), Creature::Update(), and Player::Update().
|
private |
Definition at line 2029 of file Unit.h.
Referenced by ApplyDiminishingAura(), ClearDiminishings(), GetDiminishing(), and IncrDiminishing().
|
private |
Definition at line 2051 of file Unit.h.
Referenced by RemoveFromWorld(), Unit(), and ~Unit().
|
protected |
Definition at line 1926 of file Unit.h.
Referenced by _RegisterDynObject(), _UnregisterDynObject(), GetDynObjects(), RemoveAllDynObjects(), RemoveDynObject(), and ~Unit().
|
protected |
Definition at line 1915 of file Unit.h.
Referenced by InitStatBuffMods(), Unit(), UpdateStatBuffMod(), and UpdateStatBuffModForClient().
|
protected |
Definition at line 1914 of file Unit.h.
Referenced by InitStatBuffMods(), Unit(), UpdateStatBuffMod(), and UpdateStatBuffModForClient().
|
private |
Definition at line 2044 of file Unit.h.
Referenced by FollowerAdded(), FollowerRemoved(), and RemoveAllFollowers().
|
protected |
Definition at line 1930 of file Unit.h.
Referenced by _UpdateSpells(), AddGameObject(), GetGameObjects(), RemoveAllGameObjects(), RemoveGameObject(), RemoveGameObject(), and ~Unit().
|
protected |
Definition at line 1934 of file Unit.h.
Referenced by EnterAreaTrigger(), ExitAllAreaTriggers(), and ExitAreaTrigger().
|
protected |
Definition at line 1948 of file Unit.h.
Referenced by _CreateAuraApplication(), _UnapplyAura(), HasBreakableByDamageCrowdControlAura(), HasNegativeAuraWithInterruptFlag(), RemoveAurasWithInterruptFlags(), and UpdateInterruptMask().
|
protected |
Definition at line 1950 of file Unit.h.
Referenced by UpdateInterruptMask().
|
protected |
Definition at line 1951 of file Unit.h.
Referenced by UpdateInterruptMask().
| uint32 Unit::m_lastSanctuaryTime |
Definition at line 1617 of file Unit.h.
Referenced by Spell::TargetInfo::DoTargetSpellHit(), and Spell::EffectSanctuary().
| std::array<float, MAX_ATTACK> Unit::m_modAttackSpeedPct |
Definition at line 1543 of file Unit.h.
Referenced by ApplyAttackTimePercentMod(), WorldObject::ModSpellCastTime(), WorldObject::ModSpellDurationTime(), resetAttackTimer(), Unit(), and UpdateAttackTimeField().
|
protected |
Definition at line 1946 of file Unit.h.
Referenced by _RegisterAuraEffect(), GetDiseasesByCaster(), HasAuraType(), RemoveAurasByType(), and RemoveAurasByType().
| float Unit::m_modMeleeHitChance |
Definition at line 1537 of file Unit.h.
Referenced by MeleeSpellMissChance(), Player::Player(), Unit(), and Player::UpdateMeleeHitChances().
| float Unit::m_modRangedHitChance |
Definition at line 1538 of file Unit.h.
Referenced by MeleeSpellMissChance(), Player::Player(), Unit(), and Player::UpdateRangedHitChances().
| float Unit::m_modSpellHitChance |
Definition at line 1539 of file Unit.h.
Referenced by AuraEffect::HandleModSpellHitChance(), Player::Player(), Unit(), and Player::UpdateSpellHitChances().
|
protected |
Incrementing counter used in movement packets.
Definition at line 2023 of file Unit.h.
Referenced by ApplyInertia(), ApplyMovementForce(), WorldSession::HandleMoveWorldportAck(), RemoveInertia(), RemoveMovementForce(), Player::SendInitialPacketsAfterAddToMap(), Player::SendInitialPacketsBeforeAddToMap(), SendMoveKnockBack(), Player::SendMovementSetCollisionHeight(), SendSetVehicleRecId(), SendTeleportPacket(), SetAlwaysAllowPitching(), SetCanAdvFly(), SetCanDoubleJump(), SetCanFly(), SetCanTransitionBetweenSwimAndFly(), SetCanTurnWhileFalling(), SetCollision(), SetDisableGravity(), SetDisableInertia(), SetEnableFullSpeedPitching(), SetEnableFullSpeedTurning(), SetFeatherFall(), SetGravityModifier(), SetHover(), SetIgnoreMovementForces(), SetJumpingDisabled(), SetMoveCantSwim(), SetRooted(), SetSpeedRate(), SetStrafingDisabled(), SetWaterWalking(), Player::TeleportTo(), Unit(), UpdateAdvFlyingSpeed(), UpdateAdvFlyingSpeed(), and UpdateMovementForcesModMagnitude().
| std::array<ObjectGuid, MAX_GAMEOBJECT_SLOT> Unit::m_ObjectSlot |
Definition at line 1525 of file Unit.h.
Referenced by Spell::EffectSummonObject(), and RemoveGameObjectImpl().
|
protected |
Definition at line 1940 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().
|
protected |
Definition at line 1966 of file Unit.h.
Referenced by Player::Player(), SetConfused(), SetFeared(), SetMovedUnit(), Creature::UpdateMovementCapabilities(), and ~Unit().
|
protected |
Definition at line 1923 of file Unit.h.
Referenced by TriggerAurasProcOnEvent().
|
protected |
Definition at line 1922 of file Unit.h.
Referenced by SetCantProc(), and Update().
|
protected |
Definition at line 1974 of file Unit.h.
Referenced by ClearAllReactives(), Unit(), and UpdateReactives().
|
protected |
Definition at line 1975 of file Unit.h.
Referenced by Creature::Creature(), Player::Player(), Player::Regenerate(), Player::RegenerateAll(), Creature::Update(), and Player::Update().
|
protected |
Definition at line 1942 of file Unit.h.
Referenced by _DeleteRemovedAuras(), RemoveOwnedAura(), and ~Unit().
|
protected |
Definition at line 1944 of file Unit.h.
Referenced by _DeleteRemovedAuras(), _UnapplyAura(), IsHighestExclusiveAuraEffect(), RemoveAurasByType(), RemoveAurasByType(), and RemoveAurasWithInterruptFlags().
|
protected |
Definition at line 1970 of file Unit.h.
Referenced by AddPlayerToVision(), RemovePlayerFromVision(), and ~Unit().
|
protected |
Definition at line 1962 of file Unit.h.
Referenced by GetSpeed(), SetMinion(), SetSpeedRate(), and Unit().
| SpellImmuneContainer Unit::m_spellImmune[MAX_SPELL_IMMUNITY] |
Definition at line 1616 of file Unit.h.
Referenced by ApplySpellImmune(), GetDamageImmunityMask(), GetMechanicImmunityMask(), GetSchoolImmunityMask(), GetSpellOtherImmunityMask(), IsImmunedToAuraPeriodicTick(), IsImmunedToDamage(), IsImmunedToSpell(), and IsImmunedToSpellEffect().
| std::array<ObjectGuid, MAX_SUMMON_SLOT> Unit::m_SummonSlot |
Definition at line 1524 of file Unit.h.
Referenced by InstanceScript::DoCastSpellOnPlayer(), InstanceScript::DoRemoveAurasDueToSpellOnPlayer(), Spell::EffectDestroyAllTotems(), TempSummon::FindUsableTotemSlot(), GetUnitConditionVariable(), WorldSession::HandleTotemDestroyed(), isAttackingPlayer(), OutDebugInfo(), Totem::UnSummon(), UnsummonAllTotems(), Map::Update(), and PhasingHandler::ControlledUnitVisitor::VisitControlledOf().
|
private |
Definition at line 2035 of file Unit.h.
Referenced by EngageWithTarget(), and IsThreatened().
| UF::UpdateField<UF::UnitData, int32(WowCS::EntityFragment::CGObject), TYPEID_UNIT> Unit::m_unitData |
Definition at line 1897 of file Unit.h.
Referenced by _ApplyAura(), Player::_SaveStats(), _UnapplyAura(), AddChannelObject(), AddWorldEffect(), ApplyAttackTimePercentMod(), ApplyCastTimePercentMod(), Player::ApplyEnchantment(), ApplyHasteRegenPercentMod(), Creature::ApplyLevelScaling(), ApplyModManaCostModifier(), ApplyModManaCostMultiplier(), ApplySpellHastePercentMod(), Group::BroadcastGroupUpdate(), BuildAuraStateUpdateForTarget(), Creature::BuildValuesCreate(), Player::BuildValuesCreate(), Creature::BuildValuesUpdate(), Player::BuildValuesUpdate(), Creature::BuildValuesUpdateForPlayerWithMask(), Player::BuildValuesUpdateForPlayerWithMask(), Creature::BuildValuesUpdateWithFlag(), Player::BuildValuesUpdateWithFlag(), SpellInfo::CalcPowerCost(), CalcPPMHasteMod(), CalculateDamage(), AuraEffect::CalculateEstimatedfTotalPeriodicAmount(), AuraEffect::CalculatePeriodic(), Spell::CheckCasterAuras(), ClearChannelObjects(), ClearValuesChangesMask(), ClearWorldEffects(), Player::CreateCorpse(), spell_hun_masters_call::DoCheckCast(), Spell::DoSpellEffectHit(), Spell::EffectDestroyAllTotems(), Pet::FillPetInfo(), Spell::finish(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), Creature::GetBaseArmorForLevel(), Creature::GetBaseDamageForLevel(), SpellHistory::GetChargeRecoveryTime(), Item::GetItemLevel(), Creature::GetLevelForTarget(), Creature::GetMaxHealthByLevel(), GetMaxPower(), GetPower(), Player::GetPowerRegen(), Player::GetRuneBaseCooldown(), GetTotalAttackPowerValue(), GetVirtualItemAppearanceMod(), GetVirtualItemId(), Pet::GivePetXP(), modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcInfoCommand(), HasAuraState(), Creature::HasScalableLevels(), Player::InitRunes(), TempSummon::InitStats(), Totem::InitStats(), Player::InitStatsForLevel(), Guardian::InitStatsForLevel(), IsMagnet(), TempSummon::IsSharingTotemSlotWith(), npc_toxic_sporebat::JustAppeared(), npc_harbinger_of_flame::npc_harbinger_of_flameAI::JustEngagedWith(), Player::LoadFromDB(), CriteriaHandler::ModifierSatisfied(), ModifyAuraState(), WorldObject::ModSpellCastTime(), WorldObject::ModSpellDurationTime(), Player::outDebugValues(), AuraEffect::PeriodicTick(), ProcessPositionDataChanged(), Creature::ReacquireSpellFocusTarget(), Aura::RefreshDuration(), Player::Regenerate(), RemoveChannelObject(), spell_halion_twilight_cutter::RemoveNotBetween(), RemoveNpcFlag(), RemoveNpcFlag2(), Player::RemovePet(), RemovePetFlag(), RemovePvpFlag(), RemoveUnitFlag(), RemoveUnitFlag2(), RemoveUnitFlag3(), RemoveVisFlag(), RemoveWorldEffect(), ReplaceAllNpcFlags(), ReplaceAllNpcFlags2(), ReplaceAllPetFlags(), ReplaceAllPvpFlags(), ReplaceAllSilencedSchoolMask(), ReplaceAllUnitFlags(), ReplaceAllUnitFlags2(), ReplaceAllUnitFlags3(), ReplaceAllVisFlags(), Pet::SavePetToDB(), Player::SaveToDB(), Creature::SaveToDB(), Spell::SelectImplicitChannelTargets(), Creature::SelectLevel(), Spell::SendChannelStart(), Player::SendMovementSetCollisionHeight(), SetAnimTier(), SetAttackPower(), SetAttackPowerModNeg(), SetAttackPowerModPos(), SetAttackPowerMultiplier(), SetBattlePetCompanionExperience(), SetBattlePetCompanionGUID(), SetBattlePetCompanionNameTimestamp(), SetBonusResistanceMod(), SetBoundingRadius(), SetChannelObject(), SetChannelSpellData(), SetChannelSpellId(), SetChannelVisual(), SetCharm(), SetClass(), SetCombatReach(), SetCosmeticMountDisplayId(), SetCreatedBySpell(), SetCreateHealth(), SetCreateMana(), SetCreatorGUID(), SetCritterGUID(), SetDemonCreatorGUID(), SetDisplayId(), SetEmoteState(), SetFaction(), SetFlightCapabilityID(), SetGender(), SetHealth(), SetHover(), SetHoverHeight(), Player::SetInGuild(), Creature::SetInteractSpellId(), SetLevel(), SetMainHandWeaponAttackPower(), SetMaxHealth(), SetMaxPower(), SetMinion(), SetMinionGUID(), SetModCastingSpeed(), SetModCastingSpeedNeg(), SetModHaste(), SetModHasteRegen(), SetModRangedHaste(), SetModSpellHaste(), SetModTimeRate(), SetMountDisplayId(), SetNameplateAttachToGUID(), SetNpcFlag(), SetNpcFlag2(), SetOffHandWeaponAttackPower(), SetOverrideDisplayPowerId(), SetOwnerGUID(), Pet::SetPetExperience(), SetPetFlag(), SetPetNameTimestamp(), Pet::SetPetNextLevelExperience(), SetPetNumberForClient(), SetPower(), SetPowerType(), SetPvpFlag(), SetRace(), SetRangedAttackPower(), SetRangedAttackPowerModNeg(), SetRangedAttackPowerModPos(), SetRangedAttackPowerMultiplier(), SetRangedWeaponAttackPower(), SetResistance(), Player::SetSelection(), SetShapeshiftForm(), SetSheath(), SetSilencedSchoolMask(), SetSpellEmpowerStage(), Creature::SetSpellFocus(), SetStandState(), SetStat(), Creature::SetTarget(), SetUnitFlag(), SetUnitFlag2(), SetUnitFlag3(), SetVirtualItem(), SetVisFlag(), SetWildBattlePetLevel(), SpellHistory::StartCooldown(), Spell::TriggerGlobalCooldown(), Totem::UnSummon(), Player::UnsummonPetTemporaryIfAny(), boss_vx_001::boss_vx_001AI::UpdateAI(), UpdateAttackTimeField(), Player::UpdateAverageItemLevelEquipped(), UpdateCreatureType(), UpdateDamagePhysical(), Guardian::UpdateDamagePhysical(), Creature::UpdateEntry(), UpdateNearbyPlayersInteractions(), Player::UpdatePowerRegen(), UpdateStatBuffModForClient(), Player::UpdateTriggerVisibility(), Player::UpdateVisibleObjectInteractions(), and Vehicle::Vehicle().
|
protected |
Definition at line 1965 of file Unit.h.
Referenced by Player::Player(), SetMovedUnit(), and ~Unit().
|
protected |
Definition at line 1980 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 1977 of file Unit.h.
Referenced by _EnterVehicle(), _ExitVehicle(), Creature::_IsTargetAcceptable(), ChangeSeat(), ExitVehicle(), GetVehicleBase(), IsOnVehicle(), and Player::TeleportTo().
|
protected |
Definition at line 1978 of file Unit.h.
Referenced by CreateVehicleKit(), RemoveVehicleKit(), and Creature::Update().
|
protected |
Definition at line 1983 of file Unit.h.
Referenced by Heartbeat(), setDeathState(), and SetVignette().
|
protected |
Definition at line 1959 of file Unit.h.
Referenced by RemoveVisibleAura(), and SetVisibleAura().
|
protected |
Definition at line 1960 of file Unit.h.
Referenced by _UpdateSpells(), RemoveVisibleAura(), RemoveVisibleAuraUpdate(), SetVisibleAura(), and SetVisibleAuraUpdate().
|
protected |
Definition at line 1956 of file Unit.h.
Referenced by GetWeaponDamageRange(), and Unit().
| std::unique_ptr<Movement::MoveSpline> Unit::movespline |
Definition at line 1854 of file Unit.h.
Referenced by BaseEntity::BuildMovementUpdate(), DisableSpline(), FormationMovementGenerator::DoUpdate(), HomeMovementGenerator< T >::DoUpdate(), FlightPathMovementGenerator::DoUpdate(), spell_warr_charge_drop_fire_periodic::DropFireVisual(), Spell::EffectCharge(), Spell::EffectChargeDest(), GetDebugInfo(), MotionMaster::GetDestination(), SplineChainMovementGenerator::GetResumeInfo(), WorldSession::HandleMovementOpcode(), IsFalling(), IsSplineEnabled(), Movement::MoveSplineInit::Launch(), FormationMovementGenerator::LaunchMovement(), CharmInfo::SaveStayPosition(), SendFlightSplineSyncUpdate(), SetFacingTo(), SetFacingToObject(), SetFacingToPoint(), Movement::MoveSplineInit::Stop(), StopMoving(), Update(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), GenericMovementGenerator::Update(), SplineChainMovementGenerator::Update(), FleeingMovementGenerator::Update(), PointMovementGenerator::Update(), UpdateSplineMovement(), and UpdateSplinePosition().