|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Unit.h>
Public Types | |
| typedef std::set< Unit * > | AttackerSet |
| typedef std::list< AuraApplication * > | AuraApplicationList |
| typedef std::multimap< uint32, AuraApplication * > | AuraApplicationMap |
| typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > | AuraApplicationMapBounds |
| typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > | AuraApplicationMapBoundsNonConst |
| typedef std::list< AuraEffect * > | AuraEffectList |
| typedef std::list< Aura * > | AuraList |
| typedef std::multimap< uint32, Aura * > | AuraMap |
| typedef std::pair< AuraMap::const_iterator, AuraMap::const_iterator > | AuraMapBounds |
| typedef std::pair< AuraMap::iterator, AuraMap::iterator > | AuraMapBoundsNonConst |
| typedef std::multimap< AuraStateType, AuraApplication * > | AuraStateAurasMap |
| typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > | AuraStateAurasMapBounds |
| typedef std::set< uint32 > | ComboPointHolderSet |
| typedef std::set< Unit * > | ControlList |
| typedef std::list< DiminishingReturn > | Diminishing |
| typedef std::set< PetAura const * > | PetAuraSet |
| typedef std::map< uint8, AuraApplication * > | VisibleAuraMap |
Public Member Functions | |
| void | _addAttacker (Unit *pAttacker) |
| void | _AddAura (UnitAura *aura, Unit *caster) |
| void | _ApplyAllAuraStatMods () |
| void | _ApplyAura (AuraApplication *aurApp, uint32 effMask) |
| void | _ApplyAuraEffect (Aura *aura, uint8 effIndex) |
| AuraApplication * | _CreateAuraApplication (Aura *aura, uint32 effMask) |
| void | _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=NULL) |
| void | _ExitVehicle (Position const *exitPosition=NULL) |
| bool | _IsValidAssistTarget (Unit const *target, SpellInfo const *bySpell) const |
| bool | _IsValidAttackTarget (Unit const *target, SpellInfo const *bySpell, WorldObject const *obj=NULL) const |
| void | _RegisterAuraEffect (AuraEffect *aurEff, bool apply) |
| void | _RegisterDynObject (DynamicObject *dynObj) |
| void | _RemoveAllAuraStatMods () |
| void | _removeAttacker (Unit *pAttacker) |
| void | _RemoveNoStackAurasDueToAura (Aura *aura) |
| Aura * | _TryStackingOrRefreshingExistingAura (SpellInfo const *newAura, uint32 effMask, Unit *caster, int32 *baseAmount=NULL, Item *castItem=NULL, uint64 casterGUID=0) |
| void | _UnapplyAura (AuraApplication *aurApp, AuraRemoveMode removeMode) |
| void | _UnapplyAura (AuraApplicationMap::iterator &i, AuraRemoveMode removeMode) |
| void | _UnregisterDynObject (DynamicObject *dynObj) |
| Aura * | AddAura (SpellInfo const *spellInfo, uint32 effMask, Unit *target) |
| Aura * | AddAura (uint32 spellId, Unit *target) |
| void | AddComboPointHolder (uint32 lowguid) |
| void | AddExtraUnitMovementFlag (uint16 f) |
| void | addFollower (FollowerReference *pRef) |
| void | AddGameObject (GameObject *gameObj) |
| void | addHatedBy (HostileReference *pHostileReference) |
| void | AddInterruptMask (uint32 mask) |
| void | AddPetAura (PetAura const *petSpell) |
| void | AddPlayerToVision (Player *player) |
| void | AddThreat (Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=NULL) |
| void | AddToWorld () override |
| void | AddUnitMovementFlag (uint32 f) |
| void | AddUnitState (uint32 f) |
| void | AddUnitTypeMask (uint32 mask) |
| void | ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply) |
| void | ApplyCastTimePercentMod (float val, bool apply) |
| void | ApplyDiminishingAura (DiminishingGroup group, bool apply) |
| float | ApplyDiminishingToDuration (DiminishingGroup group, int32 &duration, Unit *caster, DiminishingLevels Level, int32 limitduration) |
| float | ApplyEffectModifiers (SpellInfo const *spellProto, uint8 effect_index, float value) const |
| void | ApplyResilience (Unit const *victim, int32 *damage, bool isCrit) const |
| void | ApplyResistanceBuffModsMod (SpellSchools school, bool positive, float val, bool apply) |
| void | ApplyResistanceBuffModsPercentMod (SpellSchools school, bool positive, float val, bool apply) |
| void | ApplySpellDispelImmunity (const SpellInfo *spellProto, DispelType type, bool apply) |
| void | ApplySpellImmune (uint32 spellId, uint32 op, uint32 type, bool apply) |
| void | ApplyStatBuffMod (Stats stat, float val, bool apply) |
| void | ApplyStatPercentBuffMod (Stats stat, float val, bool apply) |
| float | ApplyTotalThreatModifier (float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL) |
| bool | Attack (Unit *victim, bool meleeAttack) |
| void | AttackerStateUpdate (Unit *victim, WeaponAttackType attType=WeaponAttackType::BASE_ATTACK, bool extra=false) |
| bool | AttackStop () |
| uint32 | BuildAuraStateUpdateForTarget (Unit *target) const |
| void | CalcAbsorbResist (Unit *victim, SpellSchoolMask schoolMask, DamageEffectType damagetype, uint32 const damage, uint32 *absorb, uint32 *resist, SpellInfo const *spellInfo=NULL) |
| uint32 | CalcArmorReducedDamage (Unit *victim, const uint32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=WeaponAttackType::MAX_ATTACK) |
| void | CalcHealAbsorb (Unit *victim, SpellInfo const *spellInfo, uint32 &healAmount, uint32 &absorb) |
| int32 | CalcSpellDuration (SpellInfo const *spellProto) |
| uint32 | CalcSpellResistance (Unit *victim, SpellSchoolMask schoolMask, SpellInfo const *spellInfo) const |
| uint32 | CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct) |
| float | CalculateDefaultCoefficient (SpellInfo const *spellInfo, DamageEffectType damagetype) const |
| float | CalculateLevelPenalty (SpellInfo const *spellProto) const |
| void | CalculateMeleeDamage (Unit *victim, uint32 damage, CalcDamageInfo *damageInfo, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK) |
| int32 | CalculateSpellDamage (Unit const *target, SpellInfo const *spellProto, uint8 effect_index, int32 const *basePoints=NULL) const |
| void | CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK, bool crit=false) |
| bool | CanDualWield () const |
| virtual bool | CanFly () const =0 |
| bool | CanFreeMove () const |
| bool | CanHaveThreatList () const |
| bool | CanModifyStats () const |
| bool | CanProc () const |
| bool | CanUseAttackType (WeaponAttackType attacktype) const |
| void | CastCustomSpell (uint32 spellId, CustomSpellValues const &value, Unit *victim=NULL, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastCustomSpell (uint32 spellId, SpellValueMod mod, int32 value, Unit *victim, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastCustomSpell (uint32 spellId, SpellValueMod mod, int32 value, Unit *victim=NULL, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastCustomSpell (Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (float x, float y, float z, uint32 spellId, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (GameObject *go, uint32 spellId, bool triggered, Item *castItem=NULL, AuraEffect *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (Unit *victim, SpellInfo const *spellInfo, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (Unit *victim, SpellInfo const *spellInfo, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (Unit *victim, uint32 spellId, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (Unit *victim, uint32 spellId, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastStop (uint32 except_spellid=0) |
| void | ChangeSeat (int8 seatId, bool next=true) |
| void | CleanupBeforeRemoveFromMap (bool finalCleanup) |
| void | CleanupsBeforeDelete (bool finalCleanup=true) override |
| void | ClearAllReactives () |
| void | ClearComboPointHolders () |
| void | ClearDiminishings () |
| void | ClearInCombat () |
| void | ClearPhases (bool update=false) |
| void | ClearUnitState (uint32 f) |
| void | CombatStart (Unit *target, bool initialAggro=true) |
| void | CombatStop (bool includingCast=false) |
| void | CombatStopWithPets (bool includingCast=false) |
| uint32 | CountPctFromCurHealth (int32 pct) const |
| uint32 | CountPctFromMaxHealth (int32 pct) const |
| int32 | CountPctFromMaxPower (Powers power, int32 pct) const |
| Pet * | CreateTamedPetFrom (Creature *creatureTarget, uint32 spell_id=0) |
| Pet * | CreateTamedPetFrom (uint32 creatureEntry, uint32 spell_id=0) |
| bool | CreateVehicleKit (uint32 id, uint32 creatureEntry, bool loading=false) |
| uint32 | DealDamage (Unit *victim, uint32 damage, CleanDamage const *cleanDamage=NULL, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=NULL, bool durabilityLoss=true) |
| void | DealDamageMods (Unit *victim, uint32 &damage, uint32 *absorb) |
| int32 | DealHeal (Unit *victim, uint32 addhealth) |
| void | DealMeleeDamage (CalcDamageInfo *damageInfo, bool durabilityLoss) |
| void | DealSpellDamage (SpellNonMeleeDamage *damageInfo, bool durabilityLoss) |
| void | DelayOwnedAuras (uint32 spellId, uint64 caster, int32 delaytime) |
| void | DeleteCharmInfo () |
| void | DeleteThreatList () |
| void | DeMorph () |
| void | Dismount () |
| void | EnergizeBySpell (Unit *victim, uint32 SpellID, int32 Damage, Powers powertype) |
| void | EnterVehicle (Unit *base, int8 seatId=-1) |
| void | ExitVehicle (Position const *exitPosition=NULL) |
| Spell * | FindCurrentSpellBySpellId (uint32 spell_id) const |
| void | FinishSpell (CurrentSpellTypes spellType, bool ok=true) |
| Player * | GetAffectingPlayer () const |
| UnitAI * | GetAI () |
| void | GetAllMinionsByEntry (std::list< Creature * > &Minions, uint32 entry) |
| float | GetAPMultiplier (WeaponAttackType attType, bool normalized) |
| AuraApplicationMap & | GetAppliedAuras () |
| AuraApplicationMap const & | GetAppliedAuras () const |
| uint32 | GetArmor () const |
| void | GetAttackableUnitListInRange (std::list< Unit * > &list, float fMaxSearchRange) const |
| Unit * | getAttackerForHelper () const |
| AttackerSet const & | getAttackers () const |
| uint32 | GetAttackTime (WeaponAttackType att) const |
| uint32 | getAttackTimer (WeaponAttackType type) const |
| Aura * | GetAura (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const |
| AuraApplication * | GetAuraApplication (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0, AuraApplication *except=NULL) const |
| AuraApplication * | GetAuraApplicationOfRankedSpell (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0, AuraApplication *except=NULL) const |
| uint32 | GetAuraCount (uint32 spellId) const |
| AuraEffect * | GetAuraEffect (AuraType type, SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, uint64 casterGUID=0) const |
| AuraEffect * | GetAuraEffect (AuraType type, SpellFamilyNames name, uint32 iconId, uint8 effIndex) const |
| AuraEffect * | GetAuraEffect (uint32 spellId, uint8 effIndex, uint64 casterGUID=0) const |
| AuraEffect * | GetAuraEffectOfRankedSpell (uint32 spellId, uint8 effIndex, uint64 casterGUID=0) const |
| AuraEffectList const & | GetAuraEffectsByType (AuraType type) const |
| Aura * | GetAuraOfRankedSpell (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const |
| virtual uint32 | GetBlockPercent () const |
| uint32 | GetCastingTimeForBonus (SpellInfo const *spellProto, DamageEffectType damagetype, uint32 CastingTime) const |
| Unit * | GetCharm () const |
| Unit * | GetCharmer () const |
| uint64 | GetCharmerGUID () const |
| Unit * | GetCharmerOrOwner () const |
| uint64 | GetCharmerOrOwnerGUID () const |
| uint64 | GetCharmerOrOwnerOrOwnGUID () const |
| Unit * | GetCharmerOrOwnerOrSelf () const |
| Player * | GetCharmerOrOwnerPlayerOrPlayerItself () const |
| uint64 | GetCharmGUID () const |
| CharmInfo * | GetCharmInfo () |
| uint8 | getClass () const |
| uint32 | getClassMask () const |
| float | GetCombatReach () const |
| uint32 | GetCombatTimer () const |
| uint32 | GetCreateHealth () const |
| uint32 | GetCreateMana () const |
| int32 | GetCreatePowers (Powers power) const |
| float | GetCreateStat (Stats stat) const |
| uint64 | GetCreatorGUID () const |
| uint32 | GetCreatureType () const |
| uint32 | GetCreatureTypeMask () const |
| uint32 | GetCritDamageReduction (uint32 damage) const |
| uint64 | GetCritterGUID () const |
| Spell * | GetCurrentSpell (CurrentSpellTypes spellType) const |
| Spell * | GetCurrentSpell (uint32 spellType) const |
| int32 | GetCurrentSpellCastTime (uint32 spell_id) const |
| uint32 | GetDamageReduction (uint32 damage) const |
| DeathState | getDeathState () const |
| DiminishingLevels | GetDiminishing (DiminishingGroup group) |
| TransportBase * | GetDirectTransport () const |
| Returns the transport this unit is on directly (if on vehicle and transport, return vehicle). | |
| uint32 | GetDiseasesByCaster (uint64 casterGUID, bool remove=false) |
| void | GetDispellableAuraList (Unit *caster, uint32 dispelMask, DispelChargesList &dispelList) |
| uint32 | GetDisplayId () const |
| uint32 | GetDoTsByCaster (uint64 casterGUID) const |
| AuraEffect * | GetDummyAuraEffect (SpellFamilyNames name, uint32 iconId, uint8 effIndex) const |
| DynamicObject * | GetDynObject (uint32 spellId) |
| uint16 | GetExtraUnitMovementFlags () const |
| uint32 | getFaction () const |
| FactionTemplateEntry const * | GetFactionTemplateEntry () const |
| Unit * | GetFirstControlled () const |
| Minion * | GetFirstMinion () const |
| virtual float | GetFollowAngle () const |
| GameObject * | GetGameObject (uint32 spellId) const |
| uint8 | getGender () const |
| Guardian * | GetGuardianPet () const |
| uint32 | GetHealth () const |
| int32 | GetHealthGain (int32 dVal) |
| float | GetHealthPct () const |
| HostileRefManager & | getHostileRefManager () |
| uint32 | GetInterruptMask () const |
| time_t | GetLastDamagedTime () const |
| uint8 | getLevel () const |
| uint8 | getLevelForTarget (WorldObject const *) const override |
| Unit * | GetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo) |
| uint32 | GetMaxHealth () const |
| int32 | GetMaxNegativeAuraModifier (AuraType auratype) const |
| int32 | GetMaxNegativeAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| int32 | GetMaxNegativeAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask) const |
| int32 | GetMaxNegativeAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const |
| int32 | GetMaxPositiveAuraModifier (AuraType auratype) const |
| int32 | GetMaxPositiveAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| int32 | GetMaxPositiveAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask, const AuraEffect *except=NULL) const |
| int32 | GetMaxPositiveAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const |
| int32 | GetMaxPower (Powers power) const |
| uint16 | GetMaxSkillValueForLevel (Unit const *target=NULL) const |
| uint32 | GetMechanicImmunityMask () const |
| int32 | GetMechanicResistChance (SpellInfo const *spellInfo) const |
| Unit * | GetMeleeHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo=NULL) |
| float | GetMeleeReach () const |
| uint64 | GetMinionGUID () const |
| int32 | GetMinPower (Powers power) const |
| uint32 | GetModelForForm (ShapeshiftForm form) const |
| uint32 | GetModelForTotem (uint32 totemType) const |
| float | GetModifierValue (UnitMods unitMod, UnitModifierType modifierType) const |
| MotionMaster * | GetMotionMaster () |
| const MotionMaster * | GetMotionMaster () const |
| MountCapabilityEntry const * | GetMountCapability (uint32 mountType) const |
| uint32 | GetMountID () const |
| uint32 | GetMovementCounter () const |
| uint32 | GetNativeDisplayId () const |
| float | GetNegStat (Stats stat) const |
| Unit * | GetNextRandomRaidMemberOrPet (float radius) |
| Aura * | GetOwnedAura (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0, Aura *except=NULL) const |
| AuraMap & | GetOwnedAuras () |
| AuraMap const & | GetOwnedAuras () const |
| Unit * | GetOwner () const |
| uint64 | GetOwnerGUID () const |
| void | GetPartyMembers (std::list< Unit * > &units) |
| uint64 | GetPetGUID () const |
| float | GetPositionZMinusOffset () const |
| float | GetPosStat (Stats stat) const |
| int32 | GetPower (Powers power) const |
| uint32 | GetPowerIndex (uint32 powerType) const |
| Powers | getPowerType () const |
| Powers | GetPowerTypeByAuraGroup (UnitMods unitMod) const |
| float | GetPPMProcChance (uint32 WeaponSpeed, float PPM, const SpellInfo *spellProto) const |
| void | GetProcAurasTriggeredOnEvent (AuraApplicationList &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo eventInfo) |
| uint8 | getRace () const |
| uint32 | getRaceMask () const |
| void | GetRandomContactPoint (const Unit *target, float &x, float &y, float &z, float distance2dMin, float distance2dMax) const |
| ReputationRank | GetReactionTo (Unit const *target) const |
| uint32 | GetRedirectThreatPercent () const |
| Unit * | GetRedirectThreatTarget () |
| uint32 | GetRemainingPeriodicAmount (uint64 caster, uint32 spellId, AuraType auraType, uint8 effectIndex=0) const |
| uint32 | GetResistance (SpellSchoolMask mask) const |
| uint32 | GetResistance (SpellSchools school) const |
| float | GetResistanceBuffMods (SpellSchools school, bool positive) const |
| uint32 | GetSchoolImmunityMask () const |
| ShapeshiftForm | GetShapeshiftForm () const |
| SharedVisionList const & | GetSharedVisionList () |
| SheathState | GetSheath () const |
| AuraList & | GetSingleCastAuras () |
| AuraList const & | GetSingleCastAuras () const |
| float | GetSpeed (UnitMoveType mtype) const |
| float | GetSpeedRate (UnitMoveType mtype) const |
| float | GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| float | GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| Player * | GetSpellModOwner () const |
| SpellSchools | GetSpellSchoolByAuraGroup (UnitMods unitMod) const |
| uint8 | getStandState () const |
| float | GetStat (Stats stat) const |
| Stats | GetStatByAuraGroup (UnitMods unitMod) const |
| uint64 | GetTarget () const |
| ThreatManager & | getThreatManager () |
| float | GetTotalAttackPowerValue (WeaponAttackType attType) const |
| int32 | GetTotalAuraModifier (AuraType auratype) const |
| int32 | GetTotalAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| int32 | GetTotalAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask) const |
| int32 | GetTotalAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const |
| float | GetTotalAuraModValue (UnitMods unitMod) const |
| float | GetTotalAuraMultiplier (AuraType auratype) const |
| float | GetTotalAuraMultiplierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| float | GetTotalAuraMultiplierByMiscMask (AuraType auratype, uint32 misc_mask) const |
| float | GetTotalAuraMultiplierByMiscValue (AuraType auratype, int32 misc_value) const |
| float | GetTotalStatValue (Stats stat) const |
| uint32 | getTransForm () const |
| uint64 | GetTransGUID () const override |
| float | GetUnitBlockChance () const |
| float | GetUnitCriticalChance (WeaponAttackType attackType, const Unit *victim) const |
| float | GetUnitDodgeChance () const |
| uint32 | GetUnitMeleeSkill (Unit const *target=NULL) const |
| float | GetUnitMissChance (WeaponAttackType attType) const |
| uint32 | GetUnitMovementFlags () const |
| float | GetUnitParryChance () const |
| Vehicle * | GetVehicle () const |
| Unit * | GetVehicleBase () const |
| Creature * | GetVehicleCreatureBase () const |
| Vehicle * | GetVehicleKit () const |
| Unit * | GetVictim () const |
| uint32 | getVirtualRealm () const |
| AuraApplication * | GetVisibleAura (uint8 slot) const |
| VisibleAuraMap const * | GetVisibleAuras () |
| float | GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type) const |
| float | GetWeaponProcChance () const |
| void | HandleEmoteCommand (uint32 anim_id) |
| void | HandleProcExtraAttackFor (Unit *victim) |
| bool | HandleSpellClick (Unit *clicker, int8 seatId=-1) |
| bool | HandleStatModifier (UnitMods unitMod, UnitModifierType modifierType, float amount, bool apply) |
| bool | HasAura (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const |
| bool | HasAuraEffect (uint32 spellId, uint8 effIndex, uint64 caster=0) const |
| bool | HasAuraState (AuraStateType flag, SpellInfo const *spellProto=NULL, Unit const *Caster=NULL) const |
| bool | HasAuraType (AuraType auraType) const |
| bool | HasAuraTypeWithAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| bool | HasAuraTypeWithCaster (AuraType auratype, uint64 caster) const |
| bool | HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, uint32 familyFlags) const |
| bool | HasAuraTypeWithMiscvalue (AuraType auratype, int32 miscvalue) const |
| bool | HasAuraTypeWithValue (AuraType auratype, int32 value) const |
| bool | HasAuraWithMechanic (uint32 mechanicMask) const |
| bool | HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const |
| bool | HasBreakableByDamageCrowdControlAura (Unit *excludeCasterChannel=NULL) const |
| uint16 | HasExtraUnitMovementFlag (uint16 f) const |
| bool | HasInvisibilityAura () const |
| bool | HasNegativeAuraWithAttribute (uint32 flag, uint64 guid=0) const |
| bool | HasNegativeAuraWithInterruptFlag (uint32 flag, uint64 guid=0) const |
| bool | HasSharedVision () const |
| virtual bool | HasSpell (uint32) const |
| bool | HasStealthAura () const |
| bool | HasUnitMovementFlag (uint32 f) const |
| bool | HasUnitState (const uint32 f) const |
| uint32 | HasUnitTypeMask (uint32 mask) const |
| bool | HasVisionObscured (Unit const *target) const |
| bool | haveOffhandWeapon () const |
| int32 | HealBySpell (Unit *victim, SpellInfo const *spellInfo, uint32 addHealth, bool critical=false) |
| bool | HealthAbovePct (int32 pct) const |
| bool | HealthAbovePctHealed (int32 pct, uint32 heal) const |
| bool | HealthBelowPct (int32 pct) const |
| bool | HealthBelowPctDamaged (int32 pct, uint32 damage) const |
| void | IncrDiminishing (DiminishingGroup group) |
| CharmInfo * | InitCharmInfo () |
| void | InitStatBuffMods () |
| bool | InitTamedPet (Pet *pet, uint8 level, uint32 spell_id) const |
| void | InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true) |
| void | InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true) |
| bool | IsAlive () const |
| bool | IsArmorer () const |
| bool | isAttackingPlayer () const |
| bool | isAttackReady (WeaponAttackType type=WeaponAttackType::BASE_ATTACK) const |
| bool | IsAuctioner () const |
| bool | IsBanker () const |
| bool | IsBattleMaster () const |
| virtual bool | isBeingLoaded () const |
| bool | isBlockCritical () |
| bool | IsBMAuctioner () const |
| bool | IsCharmed () const |
| bool | IsCharmedOwnedByPlayerOrPlayer () const |
| bool | IsContestedGuard () const |
| bool | IsControlledByPlayer () const |
| bool | isDead () const |
| bool | IsDuringRemoveFromWorld () const |
| bool | isDying () const |
| bool | IsFalling () const |
| bool | isFeared () const |
| bool | IsFlying () const |
| bool | IsFriendlyTo (Unit const *unit) const |
| bool | isFrozen () const |
| bool | IsFullHealth () const |
| bool | IsGossip () const |
| bool | IsGuardian () const |
| bool | IsGuildMaster () const |
| bool | IsHostileTo (Unit const *unit) const |
| bool | IsHostileToPlayers () const |
| bool | IsHunterPet () const |
| bool | IsImmunedToDamage (SpellInfo const *spellInfo) const |
| bool | IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const |
| virtual bool | IsImmunedToSpell (SpellInfo const *spellInfo) const |
| virtual bool | IsImmunedToSpellEffect (SpellInfo const *spellInfo, uint32 index) const |
| bool | isInAccessiblePlaceFor (Creature const *c) const |
| bool | isInBackInMap (Unit const *target, float distance, float arc=M_PI) const |
| bool | IsInCombat () const |
| bool | IsInDisallowedMountForm () const |
| bool | IsInFeralForm () const |
| bool | IsInFlight () const |
| bool | isInFrontInMap (Unit const *target, float distance, float arc=M_PI) const |
| bool | IsInnkeeper () const |
| bool | IsInPartyWith (Unit const *unit) const |
| bool | IsInRaidWith (Unit const *unit) const |
| bool | isInRoots () const |
| virtual bool | IsInWater () const |
| bool | IsLevitating () const |
| bool | IsMounted () const |
| bool | isMoving () const |
| bool | IsNeutralToAll () const |
| bool | IsNonMeleeSpellCasted (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true) const |
| bool | IsOnVehicle (const Unit *vehicle) const |
| bool | IsPet () const |
| bool | IsPolymorphed () const |
| bool | isPossessed () const |
| bool | isPossessedByPlayer () const |
| bool | isPossessing () const |
| bool | isPossessing (Unit *u) const |
| bool | IsPvP () const |
| bool | IsQuestGiver () const |
| AuraEffect * | IsScriptOverriden (SpellInfo const *spell, int32 script) const |
| bool | IsServiceProvider () const |
| bool | IsSitState () const |
| bool | isSpellBlocked (Unit *victim, SpellInfo const *spellProto, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK) |
| bool | isSpellCrit (Unit *victim, SpellInfo const *spellProto, SpellSchoolMask schoolMask, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK) const |
| bool | IsSpiritGuide () const |
| bool | IsSpiritHealer () const |
| bool | IsSpiritService () const |
| bool | IsSplineEnabled () const |
| bool | IsStandState () const |
| bool | IsStopped () const |
| bool | IsSummon () const |
| bool | IsTabardDesigner () const |
| bool | isTargetableForAttack (bool checkFakeDeath=true) const |
| bool | IsTaxi () const |
| bool | IsTotem () const |
| bool | IsTrainer () const |
| bool | isTurning () const |
| virtual bool | IsUnderWater () const |
| bool | IsValidAssistTarget (Unit const *target) const |
| bool | IsValidAttackTarget (Unit const *target) const |
| bool | IsVehicle () const |
| bool | IsVendor () const |
| bool | IsVisible () const |
| bool | IsWalking () const |
| bool | IsWithinCombatRange (const Unit *obj, float dist2compare) const |
| bool | IsWithinMeleeRange (const Unit *obj, float dist=MELEE_RANGE) const |
| void | JumpTo (float speedXY, float speedZ, bool forward=true) |
| void | JumpTo (WorldObject *obj, float speedZ) |
| void | Kill (Unit *victim, bool durabilityLoss=true) |
| void | KnockbackFrom (float x, float y, float speedXY, float speedZ) |
| SpellMissInfo | MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) |
| uint32 | MeleeDamageBonusDone (Unit *pVictim, uint32 damage, WeaponAttackType attType, SpellInfo const *spellProto=NULL) |
| uint32 | MeleeDamageBonusTaken (Unit *attacker, uint32 pdamage, WeaponAttackType attType, SpellInfo const *spellProto=NULL) |
| SpellMissInfo | MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) |
| float | MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, uint32 spellId) const |
| void | ModifyAuraState (AuraStateType flag, bool apply) |
| int32 | ModifyHealth (int32 val) |
| int32 | ModifyPower (Powers power, int32 val) |
| int32 | ModifyPowerPct (Powers power, float pct, bool apply=true) |
| void | ModifyRedirectThreat (int32 amount) |
| void | ModSpellCastTime (SpellInfo const *spellProto, int32 &castTime, Spell *spell=NULL) |
| int32 | ModSpellDuration (SpellInfo const *spellProto, Unit const *target, int32 duration, bool positive, uint32 effectMask) |
| void | MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false) |
| void | Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0) |
| void | NearTeleportTo (float x, float y, float z, float orientation, bool casting=false) |
| void | OutDebugInfo () const |
| void | PlayOneShotAnimKit (uint32 id) |
| void | ProcDamageAndSpell (Unit *victim, uint32 procAttacker, uint32 procVictim, uint32 procEx, uint32 amount, WeaponAttackType attType=WeaponAttackType::BASE_ATTACK, SpellInfo const *procSpell=NULL, SpellInfo const *procAura=NULL) |
| void | ProcDamageAndSpellFor (bool isVictim, Unit *target, uint32 procFlag, uint32 procExtra, WeaponAttackType attType, SpellInfo const *procSpell, uint32 damage, SpellInfo const *procAura=NULL) |
| virtual void | ProhibitSpellSchool (SpellSchoolMask, uint32) |
| void | propagateSpeedChange () |
| -------—End of Pet responses methods-------— | |
| void | RemoveAllAttackers () |
| void | RemoveAllAuras () |
| void | RemoveAllAurasExceptType (AuraType type) |
| void | RemoveAllAurasExceptType (AuraType type1, AuraType type2) |
| void | RemoveAllAurasOnDeath () |
| void | RemoveAllAurasRequiringDeadTarget () |
| void | RemoveAllControlled () |
| void | RemoveAllDynObjects () |
| void | RemoveAllGameObjects () |
| void | RemoveAllMinionsByEntry (uint32 entry) |
| void | RemoveAreaAurasDueToLeaveWorld () |
| void | RemoveArenaAuras () |
| void | RemoveAura (Aura *aur, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (AuraApplication *aurApp, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (uint32 spellId, uint64 casterGUID=0, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAuraFromStack (uint32 spellId, uint64 casterGUID=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasByType (AuraType auraType, uint64 casterGUID=0, Aura *except=NULL, bool negative=true, bool positive=true) |
| void | RemoveAurasDueToItemSpell (uint32 spellId, uint64 castItemGuid) |
| void | RemoveAurasDueToSpell (uint32 spellId, uint64 casterGUID=0, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, uint64 casterGUID, Unit *dispeller, uint8 chargesRemoved=1) |
| void | RemoveAurasDueToSpellBySteal (uint32 spellId, uint64 casterGUID, Unit *stealer) |
| void | RemoveAurasWithAttribute (uint32 flags) |
| void | RemoveAurasWithFamily (SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, uint64 casterGUID) |
| void | RemoveAurasWithInterruptFlags (uint32 flag, uint32 except=0) |
| void | RemoveAurasWithMechanic (uint32 mechanic_mask, AuraRemoveMode removemode=AURA_REMOVE_BY_DEFAULT, uint32 except=0) |
| void | RemoveBindSightAuras () |
| void | RemoveCharmAuras () |
| void | RemoveCharmedBy (Unit *charmer) |
| void | RemoveComboPointHolder (uint32 lowguid) |
| void | RemoveDynObject (uint32 spellId) |
| void | RemoveExtraUnitMovementFlag (uint16 f) |
| void | removeFollower (FollowerReference *) |
| void | RemoveFromWorld () override |
| void | RemoveGameObject (GameObject *gameObj, bool del) |
| void | RemoveGameObject (uint32 spellid, bool del) |
| void | removeHatedBy (HostileReference *) |
| void | RemoveMovementImpairingAuras () |
| void | RemoveNotOwnSingleTargetAuras (uint32 newPhase=0, bool phaseid=false) |
| void | RemoveOwnedAura (Aura *aura, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAura (AuraMap::iterator &i, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAura (uint32 spellId, uint64 casterGUID=0, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemovePetAura (PetAura const *petSpell) |
| void | RemovePlayerFromVision (Player *player) |
| void | RemoveStandFlags (uint8 flags) |
| void | RemoveUnitMovementFlag (uint32 f) |
| void | RemoveVehicleKit (bool remove=false) |
| void | RemoveVisibleAura (uint8 slot) |
| void | resetAttackTimer (WeaponAttackType type=WeaponAttackType::BASE_ATTACK) |
| void | ResetRedirectThreat () |
| void | RestoreDisplayId () |
| void | RestoreFaction () |
| void | RewardRage (uint32 baseRage, bool attacker) |
| MeleeHitOutcome | RollMeleeOutcomeAgainst (const Unit *victim, WeaponAttackType attType) const |
| MeleeHitOutcome | RollMeleeOutcomeAgainst (const Unit *victim, WeaponAttackType attType, int32 crit_chance, int32 miss_chance, int32 dodge_chance, int32 parry_chance, int32 block_chance) const |
| Unit * | SelectNearbyTarget (Unit *exclude=NULL, float dist=NOMINAL_MELEE_RANGE) const |
| void | SendAttackStateUpdate (CalcDamageInfo *damageInfo) |
| void | SendAttackStateUpdate (uint32 HitInfoHitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount) |
| void | SendChangeCurrentVictimOpcode (HostileReference *pHostileReference) |
| void | SendClearTarget () |
| void | SendClearThreatListOpcode (ObjectGuid UnitGUID) |
| void | SendDurabilityLoss (Player *receiver, uint32 percent) |
| void | SendEnergizeSpellLog (Unit *victim, uint32 spellID, int32 damage, Powers powertype) |
| void | SendHealSpellLog (ObjectGuid CasterGUID, ObjectGuid TargetGUID, uint32 SpellID, uint32 Damage, uint32 OverHeal, uint32 Absorb, bool critical=false) |
| void | SendMeleeAttackStart (Unit *victim) |
| void | SendMeleeAttackStop (Unit *victim=NULL) |
| void | SendMoveKnockBack (Player *player, float speedXY, float speedZ, float vcos, float vsin) |
| void | SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo) |
| void | SendPetActionFeedback (uint8 msg) const |
| -------—Pet responses methods--------------— | |
| void | SendPetAIReaction (ObjectGuid UnitGUID) const |
| void | SendPetTalk (uint32 pettalk) const |
| void | SendPlaySpellVisual (uint32 SpellVisualId, float x, float y, float z, float orientation, uint8 SpeedTime, uint16 MissReason, uint16 ReflectStatus) |
| void | SendPlaySpellVisualKit (uint32 SpellVisualId, uint32 Duration, int32 Type) |
| void | SendRemoveFromThreatListOpcode (HostileReference *pHostileReference) |
| void | SendSetVehicleRecId (uint32 vehicleId) |
| void | SendSpellDamageImmune (Unit *target, uint32 spellId) |
| void | SendSpellDamageResist (Unit *target, uint32 spellId) |
| void | SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo) |
| void | SendSpellNonMeleeDamageLog (SpellNonMeleeDamage *log) |
| void | SendSpellNonMeleeDamageLog (Unit *target, uint32 SpellID, uint32 Damage, SpellSchoolMask damageSchoolMask, uint32 AbsorbedDamage, uint32 Resist, bool PhysicalDamage, uint32 Blocked, bool CriticalHit=false) |
| void | SendTeleportPacket (Position &pos) |
| void | SendThreatListUpdate () |
| void | SetAI (UnitAI *newAI) |
| void | SetAnimTier (AnimTier tier) |
| void | SetArmor (int32 val) |
| void | SetAttackTime (WeaponAttackType att, uint32 val) |
| void | setAttackTimer (WeaponAttackType type, uint32 time) |
| void | SetAuraStack (uint32 spellId, Unit *target, uint32 stack) |
| void | SetAutoattackOverrideRange (uint32 range) |
| void | SetAutoattackOverrideSpell (SpellInfo const *spellInfo) |
| void | SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value) |
| void | SetCanDualWield (bool value) |
| bool | SetCanFly (bool enable) |
| void | SetCanModifyStats (bool modifyStats) |
| void | SetCantProc (bool apply) |
| void | SetCharm (Unit *target, bool apply) |
| bool | SetCharmedBy (Unit *charmer, CharmType type, AuraApplication const *aurApp=NULL) |
| void | SetCharmerGUID (uint64 owner) |
| void | SetClass (uint8 newClass) |
| void | SetContestedPvP (Player *attackedPlayer=NULL) |
| void | SetControlled (bool apply, UnitState state) |
| void | SetCreateHealth (uint32 val) |
| void | SetCreateMana (uint32 val) |
| void | SetCreateStat (Stats stat, float val) |
| void | SetCreatorGUID (uint64 creator) |
| void | SetCritterGUID (uint64 guid) |
| void | SetCurrentCastedSpell (Spell *pSpell) |
| virtual void | setDeathState (DeathState s) |
| bool | SetDisableGravity (bool disable, bool packetOnly=false) |
| virtual void | SetDisplayId (uint32 modelId) |
| void | SetExtraUnitMovementFlags (uint16 f) |
| void | SetFacingTo (float ori) |
| void | SetFacingToObject (WorldObject *object) |
| void | setFaction (uint32 faction) |
| bool | SetFall (bool enable) |
| bool | SetFeatherFall (bool enable, bool packetOnly=false) |
| void | SetFieldPowerType (uint32 powerType) |
| void | SetFullHealth () |
| void | SetGender (uint8 gender) |
| void | SetHealth (uint32 val) |
| bool | SetHover (bool enable, bool packetOnly=false) |
| void | SetInCombatState (bool PvP, Unit *enemy=NULL) |
| void | SetInCombatWith (Unit *enemy) |
| void | SetInFront (WorldObject const *target) |
| void | SetLastDamagedTime (time_t val) |
| void | SetLevel (uint8 lvl) |
| void | SetMaxHealth (uint32 val) |
| void | SetMaxPower (Powers power, int32 val) |
| void | SetMinion (Minion *minion, bool apply) |
| void | SetMinionGUID (uint64 guid) |
| void | SetModifierValue (UnitMods unitMod, UnitModifierType modifierType, float value) |
| void | SetNativeDisplayId (uint32 modelId) |
| void | SetOwnerGUID (uint64 owner) |
| void | SetPetGUID (uint64 guid) |
| bool | SetPhased (uint32 id, bool update, bool apply) OVERRIDE |
| void | SetPhaseMask (uint32 newPhaseMask, bool update) override |
| void | SetPower (Powers power, int32 val) |
| void | setPowerType (Powers power) |
| void | SetPvP (bool state) |
| void | SetRace (uint8 race) |
| void | SetRedirectThreat (uint64 guid, uint32 pct) |
| void | SetResistance (SpellSchools school, int32 val) |
| void | SetResistanceBuffMods (SpellSchools school, bool positive, float val) |
| void | SetShapeshiftForm (ShapeshiftForm form) |
| virtual void | SetSheath (SheathState sheathed) |
| void | SetSpeed (UnitMoveType mtype, float rate, bool forced=false) |
| void | SetStandFlags (uint8 flags) |
| void | SetStandState (uint8 state) |
| void | SetStat (Stats stat, int32 val) |
| bool | SetSwim (bool enable) |
| virtual void | SetTarget (uint64)=0 |
| void | setTransForm (uint32 spellid) |
| void | SetUnitMovementFlags (uint32 f) |
| void | SetVehicle (Vehicle *vehicle) |
| void | SetVisible (bool x) |
| void | SetVisibleAura (uint8 slot, AuraApplication *aur) |
| bool | SetWalk (bool enable) |
| bool | SetWaterWalking (bool enable, bool packetOnly=false) |
| int32 | SpellBaseDamageBonusDone (SpellSchoolMask schoolMask) const |
| int32 | SpellBaseDamageBonusTaken (SpellSchoolMask schoolMask) const |
| int32 | SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const |
| int32 | SpellBaseHealingBonusTaken (SpellSchoolMask schoolMask) const |
| uint32 | SpellCriticalDamageBonus (SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| uint32 | SpellCriticalHealingBonus (SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| uint32 | SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint32 stack=1) const |
| uint32 | SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint32 stack=1) const |
| uint32 | SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, uint32 stack=1) const |
| uint32 | SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, uint32 stack=1) const |
| SpellMissInfo | SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect=false) |
| uint32 | SpellNonMeleeDamageLog (Unit *victim, uint32 spellID, uint32 damage) |
| void | StartReactiveTimer (ReactiveType reactive) |
| void | StopAttackFaction (uint32 faction_id) |
| void | StopMoving () |
| -------—End of Pet responses methods-------— | |
| void | TauntApply (Unit *victim) |
| void | TauntFadeOut (Unit *taunter) |
| Pet * | ToPet () |
| Pet const * | ToPet () const |
| TempSummon * | ToTempSummon () |
| TempSummon const * | ToTempSummon () const |
| Totem * | ToTotem () |
| Totem const * | ToTotem () const |
| void | TrackGameObject (GameObject *gameObj) |
| void | TriggerAurasProcOnEvent (AuraApplicationList *myProcAuras, AuraApplicationList *targetProcAuras, Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
| void | TriggerAurasProcOnEvent (CalcDamageInfo &damageInfo) |
| void | TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationList &procAuras) |
| void | UnsummonAllTotems () |
| void | Update (uint32 time) OVERRIDE |
| virtual bool | UpdateAllStats ()=0 |
| virtual void | UpdateArmor ()=0 |
| virtual void | UpdateAttackPowerAndDamage (bool ranged=false)=0 |
| void | UpdateAuraForGroup (uint8 slot) |
| void | UpdateCharmAI () |
| virtual void | UpdateDamagePhysical (WeaponAttackType attType)=0 |
| void | UpdateHeight (float newZ) |
| Only server-side height update, does not broadcast to client. | |
| void | UpdateInterruptMask () |
| virtual void | UpdateMaxHealth ()=0 |
| virtual void | UpdateMaxPower (Powers power)=0 |
| void | UpdateObjectVisibility (bool forced=true) override |
| void | UpdateOrientation (float orientation) |
| Only server-side orientation update, does not broadcast to client. | |
| bool | UpdatePosition (const Position &pos, bool teleport=false) |
| virtual bool | UpdatePosition (float x, float y, float z, float ang, bool teleport=false) |
| void | UpdateReactives (uint32 p_time) |
| virtual void | UpdateResistances (uint32 school)=0 |
| void | UpdateSpeed (UnitMoveType mtype, bool forced) |
| virtual bool | UpdateStats (Stats stat)=0 |
| virtual void | UpdateUnderwaterState (Map *m, float x, float y, float z) |
| void | WriteMovementInfo (WorldPacket &data, Movement::ExtraMovementStatusElement *extras=NULL) |
| virtual | ~Unit () |
| Public Member Functions inherited from WorldObject | |
| void | _Create (uint32 guidlow, HighGuid guidhigh, uint32 phaseMask) |
| void | AddObjectToRemoveList () |
| void | AddToNotify (uint16 f) |
| void | BuildUpdate (UpdateDataMapType &) |
| bool | CanSeeOrDetect (WorldObject const *obj, bool ignoreStealth=false, bool distanceCheck=false) const |
| void | ClearPhases (bool update=false) |
| void | DestroyForNearbyPlayers () |
| Map * | FindMap () const |
| Creature * | FindNearestCreature (uint32 entry, float range, bool alive=true) const |
| GameObject * | FindNearestGameObject (uint32 entry, float range) const |
| GameObject * | FindNearestGameObjectOfType (GameobjectTypes type, float range) const |
| uint32 | GetAreaId () const |
| Map const * | GetBaseMap () const |
| void | GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float angle=0) const |
| void | GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
| void | GetCreatureListWithEntryInGrid (std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
| float | GetDistance (float x, float y, float z) const |
| float | GetDistance (Position const &pos) const |
| float | GetDistance (WorldObject const *obj) const |
| float | GetDistance2d (float x, float y) const |
| float | GetDistance2d (WorldObject const *obj) const |
| bool | GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const |
| float | GetDistanceZ (WorldObject const *obj) const |
| void | GetFirstCollisionPosition (Position &pos, float dist, float angle) |
| void | GetGameObjectListWithEntryInGrid (std::list< GameObject * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
| float | GetGridActivationRange () const |
| uint32 | GetInstanceId () const |
| InstanceScript * | GetInstanceScript () |
| Map * | GetMap () const |
| std::string const & | GetName () const |
| virtual std::string const & | GetNameForLocaleIdx (LocaleConstant) const |
| void | GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float searcher_size, float distance2d, float absAngle) const |
| void | GetNearPoint2D (float &x, float &y, float distance, float absAngle) const |
| void | GetNearPosition (Position &pos, float dist, float angle) |
| uint16 | GetNotifyFlags () const |
| float | GetObjectSize () const |
| uint32 | GetPhaseMask () const |
| std::set< uint32 > const & | GetPhases () const |
| void | GetPlayerListInGrid (std::list< Player * > &lList, float fMaxSearchRange) const |
| void | GetRandomNearPosition (Position &pos, float radius) |
| void | GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const |
| void | GetRandomPoint (Position const &srcPos, float distance, Position &pos) const |
| float | GetSightRange (WorldObject const *target=NULL) const |
| virtual float | GetStationaryO () const |
| virtual float | GetStationaryX () const |
| virtual float | GetStationaryY () const |
| virtual float | GetStationaryZ () const |
| std::set< uint32 > const & | GetTerrainSwaps () const |
| float | GetTransOffsetO () const |
| float | GetTransOffsetX () const |
| float | GetTransOffsetY () const |
| float | GetTransOffsetZ () const |
| Transport * | GetTransport () const |
| int8 | GetTransSeat () const |
| uint32 | GetTransTime () const |
| float | GetVisibilityRange () const |
| std::set< uint32 > const & | GetWorldMapSwaps () const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
| uint32 | GetZoneId () const |
| ZoneScript * | GetZoneScript () const |
| bool | HasPhaseList (uint32 phase) |
| bool | InSamePhase (uint32 phasemask) const |
| bool | InSamePhase (WorldObject const *obj) const |
| bool | isActiveObject () const |
| bool | isInBack (WorldObject const *target, float arc=M_PI) const |
| bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
| bool | isInFront (WorldObject const *target, float arc=M_PI) const |
| bool | IsInMap (WorldObject const *obj) const |
| bool | IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const |
| bool | IsInRange2d (float x, float y, float minRange, float maxRange) const |
| bool | IsInRange3d (float x, float y, float z, float minRange, float maxRange) const |
| bool | isNeedNotify (uint16 f) const |
| bool | IsPermanentWorldObject () const |
| bool | IsPhased (uint32 phase) const |
| bool | IsPhased (WorldObject const *obj) const |
| bool | IsSelfOrInSameMap (WorldObject const *obj) const |
| bool | IsTerrainSwaped (uint32 terrainSwap) const |
| bool | IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true) const |
| bool | IsWithinDist2d (float x, float y, float dist) const |
| bool | IsWithinDist2d (Position const *pos, float dist) const |
| bool | IsWithinDist3d (float x, float y, float z, float dist) const |
| bool | IsWithinDist3d (Position const *pos, float dist) const |
| bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true) const |
| bool | IsWithinLOS (float x, float y, float z) const |
| bool | IsWithinLOSInMap (WorldObject const *obj) const |
| bool | IsWorldObject () const |
| void | MonsterSay (const char *text, Language language, WorldObject const *target) |
| void | MonsterSay (int32 textId, Language language, WorldObject const *target) |
| void | MonsterTextEmote (const char *text, WorldObject const *target, bool IsBossEmote=false) |
| void | MonsterTextEmote (int32 textId, WorldObject const *target, bool IsBossEmote=false) |
| void | MonsterWhisper (const char *text, Player const *target, bool IsBossWhisper=false) |
| void | MonsterWhisper (int32 textId, Player const *target, bool IsBossWhisper=false) |
| void | MonsterYell (const char *text, Language language, WorldObject const *target) |
| void | MonsterYell (int32 textId, Language language, WorldObject const *target) |
| void | MovePosition (Position &pos, float dist, float angle) |
| void | MovePositionToFirstCollision (Position &pos, float dist, float angle) |
| bool | NotifyExecuted (uint16 f) const |
| void | PlayDirectSound (uint32 sound_id, Player *target=NULL) |
| void | PlayDistanceSound (uint32 sound_id, Player *target) |
| void | RebuildTerrainSwaps () |
| void | RebuildWorldMapAreaSwaps () |
| void | ResetAllNotifies () |
| virtual void | ResetMap () |
| virtual void | SaveRespawnTime () |
| virtual void | SendMessageToSet (WorldPacket *data, bool self) |
| virtual void | SendMessageToSet (WorldPacket *data, Player const *skipped_rcvr) |
| virtual void | SendMessageToSetInRange (WorldPacket *data, float dist, bool self) |
| void | SendObjectDeSpawnAnim (uint64 guid) |
| void | SendPlaySound (uint32 SoundSound, bool OnlySelf) |
| void | setActive (bool isActiveObject) |
| virtual void | SetMap (Map *map) |
| void | SetName (std::string const &newname) |
| void | SetNotified (uint16 f) |
| void | SetTransport (Transport *t) |
| void | SetWorldObject (bool apply) |
| void | SetZoneScript () |
| TempSummon * | SummonCreature (uint32 id, float x, float y, float z, float ang=0, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0) const |
| TempSummon * | SummonCreature (uint32 id, Position const &pos, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=NULL) |
| GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime) |
| Creature * | SummonTrigger (float x, float y, float z, float ang, uint32 dur, CreatureAI *(*GetAI)(Creature *)=NULL) |
| void | UpdateAllowedPositionZ (float x, float y, float &z) const |
| void | UpdateAreaPhase () |
| void | UpdateGroundPositionZ (float x, float y, float &z) const |
| template<class NOTIFIER> | |
| void | VisitNearbyGridObject (float const &radius, NOTIFIER ¬ifier) const |
| template<class NOTIFIER> | |
| void | VisitNearbyObject (float const &radius, NOTIFIER ¬ifier) const |
| template<class NOTIFIER> | |
| void | VisitNearbyWorldObject (float const &radius, NOTIFIER ¬ifier) const |
| virtual | ~WorldObject () |
| Public Member Functions inherited from Object | |
| bool | AddUInt64Value (uint16 index, uint64 value) |
| void | ApplyModFlag (uint16 index, uint32 flag, bool apply) |
| void | ApplyModFlag64 (uint16 index, uint64 flag, bool apply) |
| void | ApplyModInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyModPositiveFloatValue (uint16 index, float val, bool apply) |
| void | ApplyModSignedFloatValue (uint16 index, float val, bool apply) |
| void | ApplyModUInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyPercentModFloatValue (uint16 index, float val, bool apply) |
| virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | BuildFieldsUpdate (Player *, UpdateDataMapType &) const |
| void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
| void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | ClearUpdateMask (bool remove) |
| virtual void | DestroyForPlayer (Player *target, bool onDeath=false) const |
| void | ForceValuesUpdateAtIndex (uint32) |
| uint8 | GetByteValue (uint16 index, uint8 offset) const |
| uint32 | GetDynamicUInt32Value (uint32 tab, uint16 index) const |
| uint32 | GetEntry () const |
| float | GetFloatValue (uint16 index) const |
| uint64 | GetGUID () const |
| uint32 | GetGUIDHigh () const |
| uint32 | GetGUIDLow () const |
| uint32 | GetGUIDMid () const |
| int32 | GetInt32Value (uint16 index) const |
| ObjectGuid | GetObjectGUID () const |
| float | GetObjectScale () const |
| const ByteBuffer & | GetPackGUID () const |
| TypeID | GetTypeId () const |
| uint16 | GetUInt16Value (uint16 index, uint8 offset) const |
| uint32 | GetUInt32Value (uint16 index) const |
| uint64 | GetUInt64Value (uint16 index) const |
| uint16 | GetValuesCount () const |
| bool | HasByteFlag (uint16 index, uint8 offset, uint8 flag) const |
| bool | HasFlag (uint16 index, uint32 flag) const |
| bool | HasFlag64 (uint16 index, uint64 flag) const |
| virtual bool | hasInvolvedQuest (uint32) const |
| virtual bool | hasQuest (uint32) const |
| bool | IsInWorld () const |
| bool | isType (uint16 mask) const |
| void | RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | RemoveFieldNotifyFlag (uint16 flag) |
| void | RemoveFlag (uint16 index, uint32 oldFlag) |
| void | RemoveFlag64 (uint16 index, uint64 oldFlag) |
| bool | RemoveUInt64Value (uint16 index, uint64 value) |
| void | SendDestroyObject (Player *target, ObjectGuid Guid, bool onDeath=false) const |
| void | SendUpdateToPlayer (Player *player) |
| void | SetByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | SetByteValue (uint16 index, uint8 offset, uint8 value) |
| void | SetDynamicUInt32Value (uint32 tab, uint16 index, uint32 value) |
| void | SetEntry (uint32 entry) |
| void | SetFieldNotifyFlag (uint16 flag) |
| void | SetFlag (uint16 index, uint32 newFlag) |
| void | SetFlag64 (uint16 index, uint64 newFlag) |
| void | SetFloatValue (uint16 index, float value) |
| void | SetInt16Value (uint16 index, uint8 offset, int16 value) |
| void | SetInt32Value (uint16 index, int32 value) |
| virtual void | SetObjectScale (float scale) |
| void | SetStatFloatValue (uint16 index, float value) |
| void | SetStatInt32Value (uint16 index, int32 value) |
| void | SetUInt16Value (uint16 index, uint8 offset, uint16 value) |
| void | SetUInt32Value (uint16 index, uint32 value) |
| void | SetUInt64Value (uint16 index, uint64 value) |
| AreaTrigger * | ToAreaTrigger () |
| AreaTrigger const * | ToAreaTrigger () const |
| Corpse * | ToCorpse () |
| Corpse const * | ToCorpse () const |
| Creature * | ToCreature () |
| Creature const * | ToCreature () const |
| DynamicObject * | ToDynObject () |
| DynamicObject const * | ToDynObject () const |
| GameObject * | ToGameObject () |
| GameObject const * | ToGameObject () const |
| void | ToggleByteFlag (uint16 index, uint8 offset, uint8 flag) |
| void | ToggleFlag (uint16 index, uint32 flag) |
| void | ToggleFlag64 (uint16 index, uint64 flag) |
| Player * | ToPlayer () |
| Player const * | ToPlayer () const |
| Unit * | ToUnit () |
| Unit const * | ToUnit () const |
| void | UpdateUInt32Value (uint16 index, uint32 value) |
| virtual | ~Object () |
| Public Member Functions inherited from WorldLocation | |
| uint32 | GetMapId () const |
| WorldLocation (const WorldLocation &loc) | |
| WorldLocation (uint32 _mapid=MAPID_INVALID, float _x=0, float _y=0, float _z=0, float _o=0) | |
| void | WorldRelocate (const WorldLocation &loc) |
| Public Member Functions inherited from Position | |
| float | GetAngle (float x, float y) const |
| float | GetAngle (Position const *pos) const |
| float | GetExactDist (float x, float y, float z) const |
| float | GetExactDist (Position const *pos) const |
| float | GetExactDist2d (const float x, const float y) const |
| float | GetExactDist2d (Position const *pos) const |
| float | GetExactDist2dSq (float x, float y) const |
| float | GetExactDist2dSq (Position const *pos) const |
| float | GetExactDistSq (float x, float y, float z) const |
| float | GetExactDistSq (Position const *pos) const |
| float | GetOrientation () const |
| void | GetPosition (float &x, float &y) const |
| void | GetPosition (float &x, float &y, float &z) const |
| void | GetPosition (float &x, float &y, float &z, float &o) const |
| void | GetPosition (Position *pos) const |
| void | GetPositionOffsetTo (Position const &endPos, Position &retOffset) const |
| float | GetPositionX () const |
| float | GetPositionY () const |
| float | GetPositionZ () const |
| float | GetRelativeAngle (float x, float y) const |
| float | GetRelativeAngle (Position const *pos) const |
| void | GetSinCos (float x, float y, float &vsin, float &vcos) const |
| bool | HasInArc (float arcangle, Position const *pos, float border=2.0f) const |
| bool | HasInLine (WorldObject const *target, float width) const |
| bool | IsInDist (float x, float y, float z, float dist) const |
| bool | IsInDist (Position const *pos, float dist) const |
| bool | IsInDist2d (float x, float y, float dist) const |
| bool | IsInDist2d (Position const *pos, float dist) const |
| bool | IsPositionValid () const |
| bool | operator!= (Position const &a) |
| bool | operator== (Position const &a) |
| Position::PositionXYZOStreamer | PositionXYZOStream () |
| Position::PositionXYZStreamer | PositionXYZStream () |
| void | Relocate (float x, float y) |
| void | Relocate (float x, float y, float z) |
| void | Relocate (float x, float y, float z, float orientation) |
| void | Relocate (Position const &pos) |
| void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| void | SetOrientation (float orientation) |
| std::string | ToString () const |
Static Public Member Functions | |
| static Creature * | GetCreature (WorldObject &object, uint64 guid) |
| static ReputationRank | GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, Unit const *target) |
| static Player * | GetPlayer (WorldObject &object, uint64 guid) |
| static Unit * | GetUnit (WorldObject &object, uint64 guid) |
| static bool | IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=NULL, uint8 effIndex=MAX_SPELL_EFFECTS) |
| Static Public Member Functions inherited from Position | |
| static float | NormalizeOrientation (float o) |
Protected Types | |
| typedef std::list< DynamicObject * > | DynObjectList |
| typedef std::list< GameObject * > | GameObjectList |
Protected Member Functions | |
| void | _DeleteRemovedAuras () |
| void | _UpdateAutoRepeatSpell () |
| void | _UpdateSpells (uint32 time) |
| void | BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player *target) const override |
| void | DisableSpline () |
| virtual SpellSchoolMask | GetMeleeDamageSchoolMask () const |
| bool | IsAlwaysDetectableFor (WorldObject const *seer) const override |
| bool | IsAlwaysVisibleFor (WorldObject const *seer) const override |
| void | SendMissileCancel (uint32 spellId, bool cancel=true) |
| void | SetConfused (bool apply) |
| void | SetFeared (bool apply) |
| void | SetRooted (bool apply, bool packetOnly=false) |
| void | SetStunned (bool apply) |
| Unit (bool isWorldObject) | |
| Protected Member Functions inherited from WorldObject | |
| virtual bool | IsInvisibleDueToDespawn () const |
| virtual bool | IsNeverVisible () const |
| void | SetLocationInstanceId (uint32 _instanceId) |
| void | SetLocationMapId (uint32 _mapId) |
| WorldObject (bool isWorldObject) | |
| Protected Member Functions inherited from Object | |
| std::string | _ConcatFields (uint16 startIndex, uint16 size) const |
| void | _Create (uint32 guidlow, uint32 entry, HighGuid guidhigh) |
| void | _InitValues () |
| void | _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count) |
| void | BuildDynamicValuesUpdate (uint8 updateType, ByteBuffer *data, Player *target) const |
| void | BuildMovementUpdate (ByteBuffer *data, uint16 flags) const |
| uint32 | GetUpdateFieldData (Player const *target, uint32 *&flags) const |
| Object () | |
Private Member Functions | |
| uint32 | GetCombatRatingDamageReduction (CombatRating cr, float rate, float cap, uint32 damage) const |
| float | GetCombatRatingReduction (CombatRating cr) const |
| bool | HandleAuraProc (Unit *victim, uint32 damage, Aura *triggeredByAura, SpellInfo const *procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown, bool *handled) |
| bool | HandleAuraProcOnPowerAmount (Unit *victim, uint32 damage, AuraEffect *triggeredByAura, SpellInfo const *procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown) |
| bool | HandleAuraRaidProcFromCharge (AuraEffect *triggeredByAura) |
| bool | HandleAuraRaidProcFromChargeWithValue (AuraEffect *triggeredByAura) |
| bool | HandleDummyAuraProc (Unit *victim, uint32 damage, AuraEffect *triggeredByAura, SpellInfo const *procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown) |
| bool | HandleOverrideClassScriptAuraProc (Unit *victim, uint32 damage, AuraEffect *triggeredByAura, SpellInfo const *procSpell, uint32 cooldown) |
| bool | HandleProcTriggerSpell (Unit *victim, uint32 damage, AuraEffect *triggeredByAura, SpellInfo const *procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown) |
| bool | IsTriggeredAtSpellProcEvent (Unit *victim, Aura *aura, SpellInfo const *procSpell, uint32 procFlag, uint32 procExtra, WeaponAttackType attType, bool isVictim, bool active, SpellProcEventEntry const *&spellProcEvent) |
| void | UpdateSplineMovement (uint32 t_diff) |
| void | UpdateSplinePosition () |
Friends | |
| class | VehicleJoinEvent |
| typedef std::set<Unit*> Unit::AttackerSet |
| typedef std::list<AuraApplication*> Unit::AuraApplicationList |
| typedef std::multimap<uint32, AuraApplication*> Unit::AuraApplicationMap |
| typedef std::pair<AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator> Unit::AuraApplicationMapBounds |
| typedef std::pair<AuraApplicationMap::iterator, AuraApplicationMap::iterator> Unit::AuraApplicationMapBoundsNonConst |
| typedef std::list<AuraEffect*> Unit::AuraEffectList |
| typedef std::list<Aura*> Unit::AuraList |
| typedef std::multimap<uint32, Aura*> Unit::AuraMap |
| typedef std::pair<AuraMap::const_iterator, AuraMap::const_iterator> Unit::AuraMapBounds |
| typedef std::pair<AuraMap::iterator, AuraMap::iterator> Unit::AuraMapBoundsNonConst |
| typedef std::multimap<AuraStateType, AuraApplication*> Unit::AuraStateAurasMap |
| typedef std::pair<AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator> Unit::AuraStateAurasMapBounds |
| typedef std::set<uint32> Unit::ComboPointHolderSet |
| typedef std::set<Unit*> Unit::ControlList |
| typedef std::list<DiminishingReturn> Unit::Diminishing |
|
protected |
|
protected |
| typedef std::set<PetAura const*> Unit::PetAuraSet |
| typedef std::map<uint8, AuraApplication*> Unit::VisibleAuraMap |
|
virtual |
Definition at line 266 of file Unit.cpp.
References _DeleteRemovedAuras(), ASSERT, CURRENT_MAX_SPELL, m_appliedAuras, m_attackers, m_attacking, m_charmInfo, m_Controlled, m_currentSpells, m_duringRemoveFromWorld, m_dynObj, m_gameObj, m_ownedAuras, m_removedAuras, m_sharedVision, and movespline.
|
explicitprotected |
Definition at line 142 of file Unit.cpp.
References _isWalkingBeforeCharm, _lastDamagedTime, _lastLiquid, _redirectThreadInfo, ALIVE, BASE_ATTACK, BASE_MAXDAMAGE, BASE_MINDAMAGE, BASE_PCT, BASE_VALUE, CURRENT_MAX_SPELL, GHOST_VISIBILITY_ALIVE, i_AI, i_disabledAI, i_motionMaster, IsAIEnabled, LastCharmerGUID, m_attacking, m_attackTimer, m_auraModifiersGroup, m_auraUpdateIterator, m_AutoRepeatFirstCast, m_baseSpellCritChance, m_canDualWield, m_canModifyStats, m_charmInfo, m_cleanupDone, m_CombatTimer, m_ControlledByPlayer, m_createStats, m_currentSpells, m_deathState, m_duringRemoveFromWorld, m_extraAttacks, m_HostileRefManager, m_interruptMask, m_isSorted, m_lastSanctuaryTime, m_modAttackSpeedPct, m_modMeleeHitChance, m_modRangedHitChance, m_modSpellHitChance, m_movedPlayer, m_movementCounter, m_ObjectSlot, Object::m_objectType, Object::m_objectTypeId, m_overrideAutoattackRange, m_overrideAutoattackSpellInfo, m_ownedAuras, m_procDeep, m_reactiveTimer, m_regenTimer, m_removedAurasCount, WorldObject::m_serverSideVisibility, m_speed_rate, m_spellImmune, m_state, m_SummonSlot, m_ThreatManager, m_threatModifier, m_transform, m_unitTypeMask, Object::m_updateFlag, m_vehicle, m_vehicleKit, m_weaponDamage, MAX_ATTACK, MAX_GAMEOBJECT_SLOT, MAX_MOVE_TYPE, MAX_REACTIVE, MAX_SPELL_IMMUNITY, MAX_SPELL_SCHOOL, MAX_STATS, MAX_SUMMON_SLOT, MAXDAMAGE, MINDAMAGE, movespline, NeedChangeAI, OFF_ATTACK, RANGED_ATTACK, SERVERSIDE_VISIBILITY_GHOST, TOTAL_PCT, TOTAL_VALUE, TYPEID_UNIT, TYPEMASK_UNIT, UNIT_MASK_NONE, UNIT_MOD_DAMAGE_OFFHAND, UNIT_MOD_END, UPDATEFLAG_LIVING, and WorldObject::WorldObject().
Referenced by _addAttacker(), _AddAura(), _ApplyAura(), _CreateAuraApplication(), Creature::_IsTargetAcceptable(), _IsValidAssistTarget(), _IsValidAttackTarget(), _removeAttacker(), _TryStackingOrRefreshingExistingAura(), _UnapplyAura(), AddAura(), AddAura(), Player::AddComboPoints(), AddThreat(), ApplyDiminishingToDuration(), ApplyResilience(), Attack(), AttackerStateUpdate(), AttackStop(), BuildAuraStateUpdateForTarget(), CalcAbsorbResist(), CalcArmorReducedDamage(), CalcHealAbsorb(), CalcSpellResistance(), CalculateMeleeDamage(), CalculateSpellDamage(), CalculateSpellDamageTaken(), Creature::CanAssistTo(), Creature::CanCreatureAttack(), Creature::CanStartAttack(), CastCustomSpell(), CastCustomSpell(), CastCustomSpell(), CastCustomSpell(), Player::CastItemCombatSpell(), Player::CastItemCombatSpell(), CastSpell(), CastSpell(), CastSpell(), CastSpell(), Player::CharmSpellInitialize(), Player::ClearComboPoints(), ClearInCombat(), CombatStart(), Creature::Creature(), DealDamage(), DealDamageMods(), DealHeal(), DealMeleeDamage(), DealSpellDamage(), EnergizeBySpell(), EnterVehicle(), GetAffectingPlayer(), Creature::GetAggroRange(), GetAllMinionsByEntry(), Creature::GetAttackDistance(), getAttackerForHelper(), GetCharm(), GetCharmer(), GetCharmerOrOwner(), GetCharmerOrOwnerOrSelf(), GetCharmerOrOwnerPlayerOrPlayerItself(), GetDispellableAuraList(), GetFactionReactionTo(), GetFirstControlled(), GetFirstMinion(), GetGuardianPet(), GetMagicHitRedirectTarget(), GetMaxSkillValueForLevel(), GetMeleeHitRedirectTarget(), GetNextRandomRaidMemberOrPet(), Minion::GetOwner(), GetOwner(), GetPartyMembers(), GetRandomContactPoint(), GetReactionTo(), GetRedirectThreatTarget(), Player::GetSelectedUnit(), GetSpellMaxRangeForTarget(), GetSpellMinRangeForTarget(), GetSpellModOwner(), TempSummon::GetSummoner(), GetUnit(), GetUnitCriticalChance(), GetUnitMeleeSkill(), GetVehicleBase(), GetVehicleCreatureBase(), GetVictim(), Player::GiveXP(), HandleAuraProc(), HandleAuraProcOnPowerAmount(), HandleAuraRaidProcFromCharge(), HandleAuraRaidProcFromChargeWithValue(), HandleDummyAuraProc(), HandleOverrideClassScriptAuraProc(), HandleProcExtraAttackFor(), HandleProcTriggerSpell(), HandleSpellClick(), HasAuraState(), HasBreakableByDamageCrowdControlAura(), HasVisionObscured(), HealBySpell(), TempSummon::InitStats(), TempSummon::InitSummon(), IsAlwaysVisibleFor(), IsFriendlyTo(), Player::isHonorOrXPTarget(), IsHostileTo(), isInBackInMap(), isInFrontInMap(), IsInPartyWith(), IsInRaidWith(), IsOnVehicle(), isPossessing(), isPossessing(), isSpellBlocked(), isSpellCrit(), IsTriggeredAtSpellProcEvent(), IsValidAssistTarget(), IsValidAttackTarget(), IsWithinCombatRange(), IsWithinMeleeRange(), Kill(), KnockbackFrom(), MagicSpellHitResult(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), MeleeSpellHitResult(), MeleeSpellMissChance(), Minion::Minion(), ModSpellDuration(), OutDebugInfo(), Player::Player(), Player::PossessSpellInitialize(), ProcDamageAndSpell(), ProcDamageAndSpellFor(), Creature::reachWithSpellAttack(), Creature::reachWithSpellCure(), Creature::ReleaseFocus(), RemoveAllControlled(), RemoveAllMinionsByEntry(), RemoveAreaAurasDueToLeaveWorld(), RemoveAurasDueToSpellByDispel(), RemoveAurasDueToSpellBySteal(), RemoveCharmedBy(), TempSummon::RemoveFromWorld(), RemoveFromWorld(), RemoveNotOwnSingleTargetAuras(), RestoreFaction(), Player::RewardHonor(), Player::RewardPlayerAndGroupAtKill(), Player::RewardReputation(), RollMeleeOutcomeAgainst(), RollMeleeOutcomeAgainst(), SelectNearbyTarget(), Creature::SelectNearestHostileUnitInAggroRange(), Creature::SelectNearestTarget(), Creature::SelectNearestTargetInAttackDistance(), Creature::SelectVictim(), SendAttackStateUpdate(), Player::SendAurasForTarget(), Player::SendAutoRepeatCancel(), Player::SendClearAllCooldowns(), Player::SendClearCooldown(), Player::SendComboPoints(), SendEnergizeSpellLog(), Player::SendInitialVisiblePackets(), Player::SendLogXPGain(), SendMeleeAttackStart(), SendMeleeAttackStop(), SendPetActionFeedback(), SendPetAIReaction(), SendPetTalk(), SendSpellDamageImmune(), SendSpellDamageResist(), SendSpellMiss(), SendSpellNonMeleeDamageLog(), SetAuraStack(), SetCharm(), SetCharmedBy(), Player::SetClientControl(), SetFeared(), SetHealth(), SetInCombatState(), SetInCombatWith(), Creature::SetLootRecipient(), SetMaxHealth(), SetMaxPower(), Player::SetMover(), SetPhased(), SetPhaseMask(), SetPower(), setPowerType(), Player::SetResurrectRequestData(), SetStunned(), Player::SetViewpoint(), SpellCriticalDamageBonus(), SpellCriticalHealingBonus(), SpellDamageBonusDone(), SpellDamageBonusTaken(), SpellHealingBonusDone(), SpellHealingBonusTaken(), SpellHitResult(), SpellNonMeleeDamageLog(), StopAttackFaction(), Player::StopCastingBindSight(), Player::StopCastingCharm(), TauntApply(), TauntFadeOut(), TempSummon::TempSummon(), TriggerAurasProcOnEvent(), TempSummon::UnSummon(), Creature::Update(), Player::Update(), Player::UpdateAchievementCriteria(), UpdateAuraForGroup(), Player::UpdateCharmedAI(), UpdateSpeed(), and Player::UpdateVisibilityOf().
| void Unit::_addAttacker | ( | Unit * | pAttacker | ) |
Definition at line 53 of file UnitCombatState.cpp.
References m_attackers, and Unit().
Definition at line 127 of file UnitAuraState.cpp.
References _RemoveNoStackAurasDueToAura(), ASSERT, Aura::GetCasterGUID(), Object::GetGUID(), Aura::GetId(), GetSingleCastAuras(), Aura::GetSpellInfo(), Aura::HasEffectType(), isBeingLoaded(), IsDuringRemoveFromWorld(), Object::IsInWorld(), Aura::IsRemoved(), Aura::IsSingleTarget(), SpellInfo::IsSingleTarget(), Aura::IsSingleTargetWith(), m_cleanupDone, m_ownedAuras, Aura::SetIsSingleTarget(), SPELL_AURA_CONTROL_VEHICLE, and Unit().
Referenced by UnitAura::UnitAura().
| void Unit::_ApplyAllAuraStatMods | ( | ) |
Definition at line 1003 of file UnitAuraState.cpp.
References AURA_EFFECT_HANDLE_STAT, and m_appliedAuras.
Referenced by Player::_ApplyAllStatBonuses().
| void Unit::_ApplyAura | ( | AuraApplication * | aurApp, |
| uint32 | effMask ) |
Definition at line 217 of file UnitAuraState.cpp.
References AuraApplication::_HandleEffect(), _RemoveNoStackAurasDueToAura(), AURA_INTERRUPT_FLAG_NOT_SEATED, SpellInfo::AuraInterruptFlags, SpellInfo::GetAuraState(), AuraApplication::GetBase(), Aura::GetCaster(), AuraApplication::GetRemoveMode(), Aura::GetSpellInfo(), Aura::HandleAuraSpecificMods(), IsSitState(), MAX_SPELL_EFFECTS, ModifyAuraState(), SetStandState(), Unit(), and UNIT_STAND_STATE_SIT.
Referenced by _ApplyAuraEffect().
Definition at line 203 of file UnitAuraState.cpp.
References _ApplyAura(), AuraApplication::_HandleEffect(), ASSERT, Aura::GetApplicationOfTarget(), AuraApplication::GetEffectMask(), Object::GetGUID(), and Aura::HasEffect().
| AuraApplication * Unit::_CreateAuraApplication | ( | Aura * | aura, |
| uint32 | effMask ) |
Definition at line 167 of file UnitAuraState.cpp.
References Aura::_ApplyForTarget(), AddInterruptMask(), ASSERT, SpellInfo::AuraInterruptFlags, SpellInfo::GetAuraState(), Aura::GetCaster(), Object::GetGUID(), Aura::GetSpellInfo(), Object::GetTypeId(), SpellInfo::Id, IsAlive(), Aura::IsAppliedOnTarget(), SpellInfo::IsDeathPersistent(), Aura::IsRemoved(), m_appliedAuras, m_auraStateAuras, m_cleanupDone, m_interruptableAuras, Object::ToPlayer(), TYPEID_PLAYER, and Unit().
|
protected |
Definition at line 54 of file UnitAuraState.cpp.
References m_removedAuras.
Referenced by _UpdateSpells(), and ~Unit().
| void Unit::_EnterVehicle | ( | Vehicle * | vehicle, |
| int8 | seatId, | ||
| AuraApplication const * | aurApp = NULL ) |
Definition at line 8239 of file Unit.cpp.
References Vehicle::AddPassenger(), ASSERT, ExitVehicle(), Vehicle::GetBase(), Object::GetEntry(), AuraApplication::GetRemoveMode(), WorldObject::GetTransSeat(), Object::GetTypeId(), GetVehicleKit(), IsAlive(), IsOnVehicle(), m_vehicle, RemoveAura(), SF_LOG_DEBUG, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by AuraEffect::HandleAuraControlVehicle().
| void Unit::_ExitVehicle | ( | Position const * | exitPosition = NULL | ) |
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 8325 of file Unit.cpp.
References AddUnitState(), CanFly(), Creature::DespawnOrUnsummon(), Player::duel, DUEL_FLED, Player::DuelComplete(), Vehicle::GetBase(), getDeathState(), WorldObject::GetMap(), Position::GetOrientation(), Position::GetPosition(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Object::GetTypeId(), HasUnitTypeMask(), DuelInfo::isMounted, JUST_DIED, Movement::MoveSplineInit::Launch(), m_vehicle, Movement::MoveSplineInit::MoveTo(), Player::ResummonPetTemporaryUnSummonedIfAny(), SetControlled(), setDeathState(), SetDisableGravity(), Movement::MoveSplineInit::SetFacing(), Movement::MoveSplineInit::SetFall(), Player::SetFallInformation(), Movement::MoveSplineInit::SetTransportExit(), Object::ToCreature(), Object::ToPlayer(), ToTempSummon(), TYPEID_UNIT, UNIT_MASK_ACCESSORY, UNIT_MASK_MINION, UNIT_STATE_MOVE, UNIT_STATE_ROOT, and TempSummon::UnSummon().
Referenced by AuraEffect::HandleAuraControlVehicle(), and spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle().
Definition at line 3936 of file Unit.cpp.
References ASSERT, SpellInfo::AttributesEx6, WorldObject::CanSeeOrDetect(), CREATURE_TYPEFLAGS_AID_PLAYERS, CREATURE_TYPEFLAGS_PARTY_MEMBER, Player::duel, GetAffectingPlayer(), Object::GetByteValue(), GetReactionTo(), Object::GetTypeId(), Object::HasFlag(), HasUnitState(), SpellInfo::IsAffectingArea(), IsAlive(), SpellInfo::IsAllowingDeadTarget(), Player::IsGameMaster(), IsOnVehicle(), m_vehicle, REP_NEUTRAL, SPELL_ATTR6_ASSIST_IGNORE_IMMUNE_FLAG, SPELL_ATTR6_CAN_TARGET_INVISIBLE, SPELL_ATTR6_CAN_TARGET_UNTARGETABLE, Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, Unit(), UNIT_BYTE2_FLAG_FFA_PVP, UNIT_BYTE2_FLAG_PVP, UNIT_BYTE2_FLAG_SANCTUARY, UNIT_FIELD_FLAGS, UNIT_FIELD_SHAPESHIFT_FORM, UNIT_FLAG_IMMUNE_TO_NPC, UNIT_FLAG_IMMUNE_TO_PC, UNIT_FLAG_NOT_SELECTABLE, UNIT_FLAG_PVP_ATTACKABLE, and UNIT_STATE_UNATTACKABLE.
Referenced by SpellInfo::CheckExplicitTarget(), and IsValidAssistTarget().
| bool Unit::_IsValidAttackTarget | ( | Unit const * | target, |
| SpellInfo const * | bySpell, | ||
| WorldObject const * | obj = NULL ) const |
Definition at line 3816 of file Unit.cpp.
References ASSERT, SpellInfo::AttributesEx6, SpellInfo::AttributesEx8, WorldObject::CanSeeOrDetect(), CREATURE_TYPEFLAGS_PARTY_MEMBER, Player::duel, FACTION_FLAG_AT_WAR, GetAffectingPlayer(), Object::GetByteValue(), Creature::GetCreatureTemplate(), Object::GetEntry(), GetFactionTemplateEntry(), ReputationMgr::GetForcedRankIfAny(), GetReactionTo(), Player::GetReputationMgr(), ReputationMgr::GetState(), Object::GetTypeId(), Object::HasFlag(), HasUnitState(), SpellInfo::IsAffectingArea(), IsAlive(), SpellInfo::IsAllowingDeadTarget(), Player::IsGameMaster(), IsOnVehicle(), m_vehicle, DuelInfo::opponent, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_UBER, REP_HOSTILE, REP_NEUTRAL, sFactionStore, SPELL_ATTR6_CAN_TARGET_INVISIBLE, SPELL_ATTR6_CAN_TARGET_UNTARGETABLE, SPELL_ATTR8_ATTACK_IGNORE_IMMUNE_TO_PC_FLAG, DuelInfo::startTime, Object::ToCreature(), Object::ToPlayer(), CreatureTemplate::type_flags, TYPEID_PLAYER, TYPEID_UNIT, Unit(), UNIT_BYTE2_FLAG_FFA_PVP, UNIT_BYTE2_FLAG_PVP, UNIT_BYTE2_FLAG_SANCTUARY, UNIT_BYTE2_FLAG_UNK1, UNIT_FIELD_FLAGS, UNIT_FIELD_SHAPESHIFT_FORM, UNIT_FLAG_IMMUNE_TO_NPC, UNIT_FLAG_IMMUNE_TO_PC, UNIT_FLAG_NON_ATTACKABLE, UNIT_FLAG_NOT_ATTACKABLE_1, UNIT_FLAG_NOT_SELECTABLE, UNIT_FLAG_PVP_ATTACKABLE, UNIT_FLAG_TAXI_FLIGHT, UNIT_FLAG_UNK_16, UNIT_STATE_UNATTACKABLE, WORLD_TRIGGER, and WorldObject::WorldObject().
Referenced by SpellInfo::CheckExplicitTarget(), GetMagicHitRedirectTarget(), GetMeleeHitRedirectTarget(), and IsValidAttackTarget().
| void Unit::_RegisterAuraEffect | ( | AuraEffect * | aurEff, |
| bool | apply ) |
Definition at line 379 of file UnitAuraState.cpp.
References AuraEffect::GetAuraType(), and m_modAuras.
Referenced by AuraEffect::HandleEffect().
| void Unit::_RegisterDynObject | ( | DynamicObject * | dynObj | ) |
| void Unit::_RemoveAllAuraStatMods | ( | ) |
Definition at line 997 of file UnitAuraState.cpp.
References AURA_EFFECT_HANDLE_STAT, and m_appliedAuras.
Referenced by Player::_RemoveAllStatBonuses().
| void Unit::_removeAttacker | ( | Unit * | pAttacker | ) |
Definition at line 58 of file UnitCombatState.cpp.
References m_attackers, and Unit().
| void Unit::_RemoveNoStackAurasDueToAura | ( | Aura * | aura | ) |
Definition at line 352 of file UnitAuraState.cpp.
References AURA_REMOVE_BY_DEFAULT, Aura::CanStackWith(), Aura::GetSpellInfo(), SpellInfo::IsPassiveStackableWithRanks(), m_appliedAuras, and RemoveAura().
Referenced by _AddAura(), and _ApplyAura().
| Aura * Unit::_TryStackingOrRefreshingExistingAura | ( | SpellInfo const * | newAura, |
| uint32 | effMask, | ||
| Unit * | caster, | ||
| int32 * | baseAmount = NULL, | ||
| Item * | castItem = NULL, | ||
| uint64 | casterGUID = 0 ) |
Definition at line 63 of file UnitAuraState.cpp.
References ASSERT, SpellInfo::AttributesCu, Object::GetGUID(), GetOwnedAura(), Object::GetTypeId(), SpellInfo::Id, SpellInfo::IsMultiSlotAura(), SpellInfo::IsStackableOnOneSlotWithDifferentCasters(), IsSummon(), MAX_SPELL_EFFECTS, Skyfire::Spells::ShouldBindStackingAuraToCaster(), SPELL_ATTR0_CU_ENCHANT_PROC, TYPEID_UNIT, and Unit().
Referenced by Aura::TryRefreshStackOrCreate().
| void Unit::_UnapplyAura | ( | AuraApplication * | aurApp, |
| AuraRemoveMode | removeMode ) |
Definition at line 331 of file UnitAuraState.cpp.
References _UnapplyAura(), ASSERT, Aura::GetApplicationOfTarget(), AuraApplication::GetBase(), Object::GetGUID(), Aura::GetId(), and m_appliedAuras.
| void Unit::_UnapplyAura | ( | AuraApplicationMap::iterator & | i, |
| AuraRemoveMode | removeMode ) |
Definition at line 253 of file UnitAuraState.cpp.
References AuraApplication::_HandleEffect(), AuraApplication::_Remove(), Aura::_UnapplyForTarget(), ASSERT, AURA_REMOVE_BY_EXPIRE, SpellInfo::AuraInterruptFlags, SpellInfo::GetAuraState(), AuraApplication::GetBase(), Aura::GetCaster(), Aura::GetCasterGUID(), AuraApplication::GetEffectMask(), Aura::GetId(), AuraApplication::GetRemoveMode(), Aura::GetSpellInfo(), AuraApplication::GetTarget(), Object::GetTypeId(), Aura::HandleAuraSpecificMods(), AuraApplication::HasEffect(), IsTotem(), JUST_DIED, m_appliedAuras, m_auraStateAuras, m_interruptableAuras, m_removedAurasCount, MAX_SPELL_EFFECTS, ModifyAuraState(), Creature::setDeathState(), AuraApplication::SetRemoveMode(), SF_LOG_DEBUG, Object::ToCreature(), TOTEM_PASSIVE, ToTotem(), TYPEID_UNIT, Unit(), and UpdateInterruptMask().
Referenced by Aura::_Remove(), _UnapplyAura(), RemoveAllAuras(), RemoveAllAurasExceptType(), RemoveAllAurasExceptType(), RemoveAllAurasOnDeath(), RemoveAllAurasRequiringDeadTarget(), and RemoveAura().
| void Unit::_UnregisterDynObject | ( | DynamicObject * | dynObj | ) |
|
protected |
Definition at line 1251 of file Unit.cpp.
References CURRENT_AUTOREPEAT_SPELL, getAttackTimer(), Object::GetTypeId(), HasAuraTypeWithAffectMask(), InterruptSpell(), isAttackReady(), isMoving(), IsNonMeleeSpellCasted(), m_AutoRepeatFirstCast, m_currentSpells, Spell::prepare(), RANGED_ATTACK, resetAttackTimer(), setAttackTimer(), SPELL_AURA_CAST_WHILE_WALKING, SPELL_CAST_OK, Object::ToPlayer(), TRIGGERED_FULL_MASK, and TYPEID_PLAYER.
Referenced by _UpdateSpells().
|
protected |
Definition at line 1195 of file Unit.cpp.
References _DeleteRemovedAuras(), _UpdateAutoRepeatSpell(), AURA_REMOVE_BY_EXPIRE, CURRENT_AUTOREPEAT_SPELL, CURRENT_MAX_SPELL, m_auraUpdateIterator, m_currentSpells, m_gameObj, m_ownedAuras, m_visibleAuras, RemoveOwnedAura(), SPELL_STATE_FINISHED, and Aura::UpdateOwner().
Referenced by Update().
Definition at line 1801 of file UnitAuraState.cpp.
References IsImmunedToSpell(), IsImmunedToSpellEffect(), MAX_SPELL_EFFECTS, Aura::TryRefreshStackOrCreate(), and Unit().
Definition at line 1786 of file UnitAuraState.cpp.
References AddAura(), SpellInfo::Attributes, SpellInfo::AttributesEx2, IsAlive(), MAX_EFFECT_MASK, SPELL_ATTR0_PASSIVE, SPELL_ATTR2_CAN_TARGET_DEAD, sSpellMgr, and Unit().
Referenced by AddAura(), boss_twilight_halion::boss_twilight_halionAI::boss_twilight_halionAI(), AuraEffect::HandleAuraDummy(), Aura::HandleAuraSpecificMods(), spell_monk_roll::spell_monk_roll_SpellScript::HandleBeforeCast(), deserter_commandscript::HandleDeserterAdd(), gm_commandscript::HandleGMVisibleCommand(), spell_monk_diffuse_magic::spell_monk_diffuse_magic_SpellScript::HandleOnHit(), Guardian::InitStatsForLevel(), Creature::LoadCreaturesAddon(), BattlefieldWG::OnCreatureCreate(), spell_warl_soul_swap_exhale::spell_warl_soul_swap_exhale_SpellScript::OnEffectHit(), BattlefieldWG::OnPlayerEnterZone(), spell_putricide_slime_puddle_aura::spell_putricide_slime_puddle_aura_SpellScript::ReplaceAura(), npc_acolyte_of_shadron::npc_acolyte_of_shadronAI::Reset(), ResetCryForTheMoonActor(), Player::SendCinematicStart(), SetAuraStack(), and boss_netherspite::boss_netherspiteAI::UpdatePortals().
|
inline |
Definition at line 2667 of file Unit.h.
References m_ComboPointHolders.
Referenced by Player::AddComboPoints().
|
inline |
Definition at line 2641 of file Unit.h.
References WorldObject::m_movementInfo.
|
inline |
Definition at line 2594 of file Unit.h.
References m_FollowingRefManager.
Referenced by FollowerReference::targetObjectBuildLink().
| void Unit::AddGameObject | ( | GameObject * | gameObj | ) |
Definition at line 1671 of file Unit.cpp.
References Player::AddSpellAndCategoryCooldowns(), Object::GetGUID(), GameObject::GetOwnerGUID(), GameObject::GetSpellId(), Object::GetTypeId(), SpellInfo::IsCooldownStartedOnEvent(), m_gameObj, GameObject::SetOwnerGUID(), sSpellMgr, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by ReplaceSurveyObjectSlot(), and WorldObject::SummonGameObject().
|
inline |
Definition at line 2459 of file Unit.h.
References m_HostileRefManager.
Referenced by HostileReference::targetObjectBuildLink().
|
inline |
Definition at line 2483 of file Unit.h.
References m_interruptMask.
Referenced by _CreateAuraApplication().
| void Unit::AddPetAura | ( | PetAura const * | petSpell | ) |
Definition at line 6235 of file Unit.cpp.
References Object::GetTypeId(), m_petAuras, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by AuraEffect::HandleAuraDummy().
| void Unit::AddPlayerToVision | ( | Player * | player | ) |
Definition at line 2878 of file Unit.cpp.
References m_sharedVision, WorldObject::setActive(), and WorldObject::SetWorldObject().
| void Unit::AddThreat | ( | Unit * | victim, |
| float | fThreat, | ||
| SpellSchoolMask | schoolMask = SPELL_SCHOOL_MASK_NORMAL, | ||
| SpellInfo const * | threatSpell = NULL ) |
Definition at line 4463 of file Unit.cpp.
References CanHaveThreatList(), m_ThreatManager, and Unit().
Referenced by AggroAllPlayers(), npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::AggroAllPlayers(), Attack(), DealDamage(), CreatureAI::DoZoneInCombat(), boss_freya::boss_freyaAI::EnterCombat(), AuraEffect::HandleAuraDummy(), AuraEffect::HandlePeriodicManaLeechAuraTick(), spell_frostwarden_handler_focus_fire::spell_frostwarden_handler_focus_fire_SpellScript::HandleScript(), spell_the_lich_king_vile_spirit_move_target_search::spell_the_lich_king_vile_spirit_move_target_search_SpellScript::HandleScript(), Spell::HandleThreatSpells(), boss_illidan_stormrage::boss_illidan_stormrageAI::JustSummoned(), Creature::SetInCombatWithZone(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::SetThreatList(), boss_teron_gorefiend::boss_teron_gorefiendAI::SetThreatList(), spell_putricide_ooze_channel::spell_putricide_ooze_channel_SpellScript::StartAttack(), boss_anub_arak::boss_anub_arakAI::UpdateAI(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_sacrolash::boss_sacrolashAI::UpdateAI(), and npc_akama_illidan::npc_akama_illidanAI::UpdateAI().
|
overridevirtual |
Reimplemented from Object.
Definition at line 5400 of file Unit.cpp.
References Object::AddToWorld(), Object::IsInWorld(), and WorldObject::RebuildTerrainSwaps().
Referenced by Creature::AddToWorld(), Pet::AddToWorld(), and Player::AddToWorld().
|
inline |
Definition at line 2620 of file Unit.h.
References WorldObject::m_movementInfo.
Referenced by Creature::LoadCreaturesAddon(), SetCanFly(), SetDisableGravity(), SetFall(), SetFeatherFall(), SetHover(), SetRooted(), SetSwim(), SetWalk(), and SetWaterWalking().
|
inline |
Definition at line 1481 of file Unit.h.
References m_state.
Referenced by _ExitVehicle(), RandomMovementGenerator< T >::_setRandomLocation(), LuaUnit::AddUnitState(), Attack(), Transport::CreateNPCPassenger(), LuaUnit::DisableMelee(), ChaseMovementGenerator< T >::DoInitialize(), ChaseMovementGenerator< T >::DoInitialize(), FollowMovementGenerator< T >::DoInitialize(), FollowMovementGenerator< T >::DoInitialize(), RandomMovementGenerator< T >::DoInitialize(), WaypointMovementGenerator< Creature >::DoInitialize(), FlightPathMovementGenerator::DoReset(), WaypointMovementGenerator< Creature >::DoReset(), Creature::FocusTarget(), AuraEffect::HandleAuraModSchoolImmunity(), spell_q11396_11399_force_shield_arcane_purple_x3::spell_q11396_11399_force_shield_arcane_purple_x3_AuraScript::HandleEffectApply(), AuraEffect::HandleFeignDeath(), DistractMovementGenerator::Initialize(), RotateMovementGenerator::Initialize(), spell_alysrazor_turn_monstrosity::spell_alysrazor_turn_monstrosity_SpellScript::KnockBarrage(), spell_systems_shutdown::spell_systems_shutdown_AuraScript::OnApply(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), SetCharmedBy(), SetContestedPvP(), SetControlled(), SetCurrentCastedSpell(), and WaypointMovementGenerator< Creature >::StartMove().
|
inline |
Definition at line 1499 of file Unit.h.
References m_unitTypeMask.
Referenced by Vehicle::InstallAccessory().
| void Unit::ApplyAttackTimePercentMod | ( | WeaponAttackType | att, |
| float | val, | ||
| bool | apply ) |
Definition at line 6074 of file Unit.cpp.
References Object::ApplyPercentModFloatValue(), ApplyPercentModFloatVar(), BASE_ATTACK, GetAttackTime(), Object::GetTypeId(), m_attackTimer, m_modAttackSpeedPct, RANGED_ATTACK, TYPEID_PLAYER, UNIT_FIELD_ATTACK_ROUND_BASE_TIME, UNIT_FIELD_MOD_HASTE, and UNIT_FIELD_MOD_RANGED_HASTE.
Referenced by Player::ApplyRatingMod(), AuraEffect::HandleAuraModRangedHaste(), AuraEffect::HandleModAttackSpeed(), AuraEffect::HandleModCombatSpeedPct(), AuraEffect::HandleModMeleeRangedSpeedPct(), and AuraEffect::HandleModMeleeSpeedPct().
| void Unit::ApplyCastTimePercentMod | ( | float | val, |
| bool | apply ) |
Definition at line 6106 of file Unit.cpp.
References Object::ApplyPercentModFloatValue(), UNIT_FIELD_MOD_CASTING_SPEED, and UNIT_FIELD_MOD_SPELL_HASTE.
Referenced by Player::ApplyRatingMod(), AuraEffect::HandleModCastingSpeed(), and AuraEffect::HandleModCombatSpeedPct().
| void Unit::ApplyDiminishingAura | ( | DiminishingGroup | group, |
| bool | apply ) |
Definition at line 1719 of file UnitAuraState.cpp.
References getMSTime(), and m_Diminishing.
Referenced by UnitAura::_ApplyForTarget(), and UnitAura::_UnapplyForTarget().
| float Unit::ApplyDiminishingToDuration | ( | DiminishingGroup | group, |
| int32 & | duration, | ||
| Unit * | caster, | ||
| DiminishingLevels | Level, | ||
| int32 | limitduration ) |
Definition at line 1659 of file UnitAuraState.cpp.
References CREATURE_FLAG_EXTRA_ALL_DIMINISH, CREATURE_FLAG_EXTRA_TAUNT_DIMINISH, 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, GetCharmerOrOwner(), GetDiminishingReturnsGroupType(), Object::GetTypeId(), Object::ToCreature(), TYPEID_PLAYER, TYPEID_UNIT, and Unit().
Referenced by Spell::DoSpellHitOnUnit().
| float Unit::ApplyEffectModifiers | ( | SpellInfo const * | spellProto, |
| uint8 | effect_index, | ||
| float | value ) const |
Definition at line 4681 of file Unit.cpp.
References GetSpellModOwner(), SpellInfo::Id, SPELLMOD_ALL_EFFECTS, SPELLMOD_EFFECT1, SPELLMOD_EFFECT2, SPELLMOD_EFFECT3, SPELLMOD_EFFECT4, and SPELLMOD_EFFECT5.
Referenced by SpellEffectInfo::CalcValue().
Definition at line 7395 of file Unit.cpp.
References GetCharmerOrOwnerPlayerOrPlayerItself(), GetCritDamageReduction(), GetDamageReduction(), GetOwner(), Object::GetTypeId(), IsVehicle(), TYPEID_PLAYER, TYPEID_UNIT, and Unit().
Referenced by CalculateMeleeDamage(), CalculateSpellDamageTaken(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
| void Unit::ApplyResistanceBuffModsMod | ( | SpellSchools | school, |
| bool | positive, | ||
| float | val, | ||
| bool | apply ) |
Definition at line 1579 of file Unit.cpp.
References Object::ApplyModSignedFloatValue(), UNIT_FIELD_RESISTANCE_BUFF_MODS_NEGATIVE, and UNIT_FIELD_RESISTANCE_BUFF_MODS_POSITIVE.
Referenced by AuraEffect::HandleAuraModResistance(), and AuraEffect::HandleAuraModResistanceExclusive().
| void Unit::ApplyResistanceBuffModsPercentMod | ( | SpellSchools | school, |
| bool | positive, | ||
| float | val, | ||
| bool | apply ) |
Definition at line 1584 of file Unit.cpp.
References Object::ApplyPercentModFloatValue(), UNIT_FIELD_RESISTANCE_BUFF_MODS_NEGATIVE, and UNIT_FIELD_RESISTANCE_BUFF_MODS_POSITIVE.
Referenced by AuraEffect::HandleModResistancePercent().
| void Unit::ApplySpellDispelImmunity | ( | const SpellInfo * | spellProto, |
| DispelType | type, | ||
| bool | apply ) |
Definition at line 3611 of file Unit.cpp.
References ApplySpellImmune(), SpellInfo::AttributesEx, GetAppliedAuras(), SpellInfo::GetDispelMask(), SpellInfo::Id, IMMUNITY_DISPEL, RemoveAura(), and SPELL_ATTR1_DISPEL_AURAS_ON_IMMUNITY.
Referenced by AuraEffect::HandleAuraModDispelImmunity().
Definition at line 3580 of file Unit.cpp.
References m_spellImmune, SpellImmune::spellId, and SpellImmune::type.
Referenced by ApplySpellDispelImmunity(), boss_sapphiron::boss_sapphironAI::CastExplosion(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModDmgImmunity(), AuraEffect::HandleAuraModEffectImmunity(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleAuraModStateImmunity(), Aura::HandleAuraSpecificMods(), AuraEffect::HandleModMechanicImmunity(), AuraEffect::HandleModStateImmunityMask(), npc_ember_of_alar::npc_ember_of_alarAI::npc_ember_of_alarAI(), npc_mageguard_dalaran::npc_mageguard_dalaranAI::npc_mageguard_dalaranAI(), spell_krick_pursuit_confusion::spell_krick_pursuit_confusion_AuraScript::OnApply(), spell_krick_pursuit_confusion::spell_krick_pursuit_confusion_AuraScript::OnRemove(), and Creature::UpdateEntry().
| void Unit::ApplyStatBuffMod | ( | Stats | stat, |
| float | val, | ||
| bool | apply ) |
Definition at line 1597 of file Unit.cpp.
References Object::ApplyModSignedFloatValue(), UNIT_FIELD_STAT_NEG_BUFF, and UNIT_FIELD_STAT_POS_BUFF.
Referenced by Player::_ApplyItemBonuses(), Player::ApplyEnchantment(), Player::ApplyReforgeEnchantment(), AuraEffect::HandleAuraModStat(), and Guardian::UpdateStats().
| void Unit::ApplyStatPercentBuffMod | ( | Stats | stat, |
| float | val, | ||
| bool | apply ) |
Definition at line 1602 of file Unit.cpp.
References Object::ApplyPercentModFloatValue(), UNIT_FIELD_STAT_NEG_BUFF, and UNIT_FIELD_STAT_POS_BUFF.
Referenced by AuraEffect::HandleModTotalPercentStat().
| float Unit::ApplyTotalThreatModifier | ( | float | fThreat, |
| SpellSchoolMask | schoolMask = SPELL_SCHOOL_MASK_NORMAL ) |
Definition at line 4451 of file Unit.cpp.
References GetFirstSchoolInMask(), HasAuraType(), m_threatModifier, and SPELL_AURA_MOD_THREAT.
Referenced by ThreatCalcHelper::calcThreat().
| bool Unit::Attack | ( | Unit * | victim, |
| bool | meleeAttack ) |
Definition at line 74 of file UnitCombatState.cpp.
References AddThreat(), AddUnitState(), Creature::AI(), AI_REACTION_HOSTILE, Creature::CallAssistance(), ClearUnitState(), CURRENT_MELEE_SPELL, Object::GetGUID(), Player::GetPet(), Object::GetTypeId(), HasAuraType(), Object::HasFlag(), HasUnitState(), haveOffhandWeapon(), InterruptSpell(), IsAlive(), Player::IsGameMaster(), Creature::IsInEvadeMode(), Object::IsInWorld(), IsMounted(), IsPet(), m_attacking, OFF_ATTACK, CreatureAI::OwnerAttacked(), RemoveAurasByType(), resetAttackTimer(), Creature::SendAIReaction(), SendMeleeAttackStart(), SendMeleeAttackStop(), SetInCombatWith(), SetTarget(), SPELL_AURA_MOD_UNATTACKABLE, Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, Unit(), UNIT_FIELD_FLAGS, UNIT_FLAG_PACIFIED, and UNIT_STATE_MELEE_ATTACKING.
Referenced by LuaUnit::Attack(), spell_q12096_q12092_dummy::spell_q12096_q12092_dummy_SpellScript::HandleDummy(), WorldSession::HandlePetActionHelper(), boss_brutallus::boss_brutallusAI::StartIntro(), npc_palehoof_orb::npc_palehoof_orbAI::UpdateAI(), Player::UpdateCharmedAI(), and npc_ranger_lilatha::npc_ranger_lilathaAI::WaypointReached().
| void Unit::AttackerStateUpdate | ( | Unit * | victim, |
| WeaponAttackType | attType = WeaponAttackType::BASE_ATTACK, | ||
| bool | extra = false ) |
Definition at line 1369 of file UnitCombat.cpp.
References CalcDamageInfo::absorb, CalcDamageInfo::attackType, AURA_INTERRUPT_FLAG_MELEE_ATTACK, BASE_ATTACK, CalcDamageInfo::blocked_amount, CalculateMeleeDamage(), CastSpell(), CombatStart(), CURRENT_MELEE_SPELL, CalcDamageInfo::damage, DealDamageMods(), DealMeleeDamage(), Object::GetGUIDLow(), GetMeleeHitRedirectTarget(), Object::GetTypeId(), Object::HasFlag(), HasUnitState(), IsAlive(), WorldObject::IsWithinLOSInMap(), m_currentSpells, m_overrideAutoattackSpellInfo, OFF_ATTACK, CalcDamageInfo::procAttacker, ProcDamageAndSpell(), CalcDamageInfo::procEx, CalcDamageInfo::procVictim, RemoveAurasWithInterruptFlags(), CalcDamageInfo::resist, SendAttackStateUpdate(), SF_LOG_DEBUG, CalcDamageInfo::target, TYPEID_PLAYER, Unit(), UNIT_FIELD_FLAGS, UNIT_FLAG_PACIFIED, and UNIT_STATE_CANNOT_AUTOATTACK.
Referenced by HandleProcExtraAttackFor(), and Player::Update().
| bool Unit::AttackStop | ( | ) |
Definition at line 183 of file UnitCombatState.cpp.
References ClearUnitState(), CURRENT_MELEE_SPELL, InterruptSpell(), m_attacking, MOVE_RUN, SendMeleeAttackStop(), SetTarget(), Object::ToCreature(), Unit(), UNIT_STATE_MELEE_ATTACKING, and UpdateSpeed().
Referenced by LuaUnit::AttackStop(), spell_the_lich_king_ice_burst_target_search::spell_the_lich_king_ice_burst_target_search_SpellScript::CheckTargetCount(), CombatStop(), boss_brutallus::boss_brutallusAI::DoIntro(), TimedFleeingMovementGenerator::Finalize(), WorldSession::HandleAttackStopOpcode(), AuraEffect::HandleAuraModPacify(), spell_hun_scatter_shot::spell_hun_scatter_shot_SpellScript::HandleDummy(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetStopAttack(), RotateMovementGenerator::Initialize(), boss_freya::boss_freyaAI::JustDied(), and StopAttackFaction().
Definition at line 1622 of file UnitAuraState.cpp.
References Object::GetGUID(), Object::GetUInt32Value(), m_auraStateAuras, PER_CASTER_AURA_STATE_MASK, Unit(), and UNIT_FIELD_AURA_STATE.
Referenced by BuildValuesUpdate().
|
overrideprotectedvirtual |
Reimplemented from Object.
Definition at line 9361 of file Unit.cpp.
References Object::_changesMask, ByteBuffer::append(), UpdateMask::AppendToPacket(), BuildAuraStateUpdateForTarget(), Object::BuildDynamicValuesUpdate(), Player::CanSeeSpellClickOn(), CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP, CREATURE_FLAG_EXTRA_TRIGGER, CreatureTemplate::flags_extra, UpdateMask::GetBlockCount(), GetCharmerOrOwnerPlayerOrPlayerItself(), Creature::GetCreatureTemplate(), getFaction(), GetFactionTemplateEntry(), Object::GetGUID(), GetOwnerGUID(), getTransForm(), HasAuraTypeWithCaster(), Object::HasFlag(), Creature::hasLootRecipient(), Player::isAllowedToLoot(), IsControlledByPlayer(), FactionTemplateEntry::IsFriendlyTo(), Player::IsGameMaster(), IsInRaidWith(), Player::IsInSameRaidWith(), Creature::isTappedBy(), Object::m_fieldNotifyFlags, Object::m_floatValues, Object::m_uint32Values, Object::m_valuesCount, MAX_SPELL_EFFECTS, CreatureTemplate::Modelid1, CreatureTemplate::Modelid2, OBJECT_FIELD_DYNAMIC_FLAGS, PER_CASTER_AURA_STATE_MASK, UpdateMask::SetBit(), UpdateMask::SetCount(), sObjectMgr, SPELL_AURA_EMPATHY, SPELL_AURA_MOD_STALKED, SPELL_AURA_TRANSFORM, sSpellMgr, sWorld, Object::ToCreature(), UF_FLAG_OWNER, UF_FLAG_PARTY_MEMBER, UF_FLAG_PRIVATE, UF_FLAG_PUBLIC, UF_FLAG_SPECIAL_INFO, UF_FLAG_VIEWER_DEPENDENT, UNIT_BYTE2_FLAG_SANCTUARY, UNIT_DYNFLAG_LOOTABLE, UNIT_DYNFLAG_SPECIALINFO, UNIT_DYNFLAG_TAPPED, UNIT_DYNFLAG_TAPPED_BY_PLAYER, UNIT_DYNFLAG_TRACK_UNIT, UNIT_FIELD_ATTACK_ROUND_BASE_TIME, UNIT_FIELD_AURA_STATE, UNIT_FIELD_DISPLAY_ID, UNIT_FIELD_FACTION_TEMPLATE, UNIT_FIELD_FLAGS, UNIT_FIELD_NPC_FLAGS, UNIT_FIELD_RANGED_ATTACK_ROUND_BASE_TIME, UNIT_FIELD_RESISTANCE_BUFF_MODS_NEGATIVE, UNIT_FIELD_RESISTANCE_BUFF_MODS_POSITIVE, UNIT_FIELD_SHAPESHIFT_FORM, UNIT_FIELD_STAT_NEG_BUFF, UNIT_FIELD_STAT_POS_BUFF, UNIT_FLAG_NOT_SELECTABLE, UNIT_NPC_FLAG_SPELLCLICK, UnitUpdateFieldFlags, and UPDATETYPE_VALUES.
| void Unit::CalcAbsorbResist | ( | Unit * | victim, |
| SpellSchoolMask | schoolMask, | ||
| DamageEffectType | damagetype, | ||
| uint32 const | damage, | ||
| uint32 * | absorb, | ||
| uint32 * | resist, | ||
| SpellInfo const * | spellInfo = NULL ) |
Definition at line 1115 of file UnitCombat.cpp.
References DamageInfo::AbsorbDamage(), AddPct(), AURA_REMOVE_BY_ENEMY_SPELL, BASE_ATTACK, CalcSpellResistance(), CalculatePct(), SpellEffectInfo::CalcValueMultiplier(), Aura::CallScriptEffectAbsorbHandlers(), Aura::CallScriptEffectAfterAbsorbHandlers(), Aura::CallScriptEffectAfterManaShieldHandlers(), Aura::CallScriptEffectManaShieldHandlers(), DealDamage(), DealDamageMods(), DIRECT_DAMAGE, SpellInfo::Effects, DamageInfo::GetAbsorb(), AuraEffect::GetAmount(), Aura::GetApplicationOfTarget(), GetAuraEffectsByType(), AuraApplication::GetBase(), AuraEffect::GetBase(), AuraEffect::GetCaster(), DamageInfo::GetDamage(), AuraEffect::GetEffIndex(), Object::GetGUID(), AuraEffect::GetMiscValue(), DamageInfo::GetResist(), AuraEffect::GetSpellInfo(), IsAlive(), Object::IsInWorld(), MELEE_HIT_NORMAL, ModifyPower(), POWER_MANA, Aura::Remove(), DamageInfo::ResistDamage(), RoundToInterval(), SendSpellNonMeleeDamageLog(), AuraEffect::SetAmount(), SPELL_AURA_MANA_SHIELD, SPELL_AURA_MOD_TARGET_ABILITY_ABSORB_SCHOOL, SPELL_AURA_MOD_TARGET_ABSORB_SCHOOL, SPELL_AURA_SCHOOL_ABSORB, SPELL_AURA_SPLIT_DAMAGE_PCT, and Unit().
Referenced by CalculateMeleeDamage(), CalculateSpellDamageTaken(), Player::EnvironmentalDamage(), misc_commandscript::HandleDamageCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
| uint32 Unit::CalcArmorReducedDamage | ( | Unit * | victim, |
| const uint32 | damage, | ||
| SpellInfo const * | spellInfo, | ||
| WeaponAttackType | attackType = WeaponAttackType::MAX_ATTACK ) |
Definition at line 987 of file UnitCombat.cpp.
References AddPct(), CalculatePct(), GetArmor(), GetAuraEffectsByType(), Object::GetGUID(), getLevel(), GetSpellModOwner(), GetTotalAuraModifierByMiscMask(), SpellInfo::Id, 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, SPELLMOD_IGNORE_ARMOR, and Unit().
Referenced by CalculateMeleeDamage(), CalculateSpellDamageTaken(), misc_commandscript::HandleDamageCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
| void Unit::CalcHealAbsorb | ( | Unit * | victim, |
| SpellInfo const * | spellInfo, | ||
| uint32 & | healAmount, | ||
| uint32 & | absorb ) |
Definition at line 1307 of file UnitCombat.cpp.
References AURA_REMOVE_BY_ENEMY_SPELL, AuraEffect::GetAmount(), GetAuraEffectsByType(), AuraEffect::GetBase(), m_removedAurasCount, Aura::Remove(), SpellInfo::SchoolMask, SPELL_AURA_SCHOOL_HEAL_ABSORB, and Unit().
Referenced by AuraEffect::HandlePeriodicHealAurasTick(), and HealBySpell().
Definition at line 4714 of file Unit.cpp.
References SpellInfo::GetDuration(), SpellInfo::GetMaxDuration(), and m_movedPlayer.
Referenced by Aura::CalcMaxDuration().
| uint32 Unit::CalcSpellResistance | ( | Unit * | victim, |
| SpellSchoolMask | schoolMask, | ||
| SpellInfo const * | spellInfo ) const |
Definition at line 1043 of file UnitCombat.cpp.
References ApplyPct(), SpellInfo::AttributesEx4, GetAuraEffectsByType(), getLevel(), GetResistance(), GetTotalAuraModifierByMiscMask(), rand_norm(), SPELL_ATTR4_IGNORE_RESISTANCES, SPELL_AURA_MOD_IGNORE_TARGET_RESIST, SPELL_AURA_MOD_TARGET_RESISTANCE, SPELL_SCHOOL_MASK_SPELL, Object::ToPlayer(), and Unit().
Referenced by CalcAbsorbResist().
| uint32 Unit::CalculateDamage | ( | WeaponAttackType | attType, |
| bool | normalized, | ||
| bool | addTotalPct ) |
Definition at line 1603 of file UnitCombat.cpp.
References BASE_ATTACK, Player::CalculateMinMaxDamage(), Object::GetFloatValue(), Object::GetTypeId(), OFF_ATTACK, RANGED_ATTACK, Object::ToPlayer(), TYPEID_PLAYER, UNIT_FIELD_MAX_DAMAGE, UNIT_FIELD_MAX_OFF_HAND_DAMAGE, UNIT_FIELD_MAX_RANGED_DAMAGE, UNIT_FIELD_MIN_DAMAGE, UNIT_FIELD_MIN_OFF_HAND_DAMAGE, and UNIT_FIELD_MIN_RANGED_DAMAGE.
Referenced by spell_dk_rune_weapon_scaling_02::spell_dk_rune_weapon_scaling_02_AuraScript::CalculateDamageDoneAmount(), and CalculateMeleeDamage().
| float Unit::CalculateDefaultCoefficient | ( | SpellInfo const * | spellInfo, |
| DamageEffectType | damagetype ) const |
Definition at line 6213 of file Unit.cpp.
References SpellInfo::CalcCastTime(), DOT, GetCastingTimeForBonus(), SpellInfo::GetDuration(), getLevel(), SpellInfo::GetMaxTicks(), and SpellInfo::IsChanneled().
Referenced by SpellDamageBonusDone(), SpellDamageBonusTaken(), SpellHealingBonusDone(), and SpellHealingBonusTaken().
| float Unit::CalculateLevelPenalty | ( | SpellInfo const * | spellProto | ) | const |
Definition at line 1642 of file UnitCombat.cpp.
References AddPct(), getLevel(), SpellInfo::MaxLevel, and SpellInfo::SpellLevel.
Referenced by SpellDamageBonusDone(), SpellDamageBonusTaken(), SpellHealingBonusDone(), and SpellHealingBonusTaken().
| void Unit::CalculateMeleeDamage | ( | Unit * | victim, |
| uint32 | damage, | ||
| CalcDamageInfo * | damageInfo, | ||
| WeaponAttackType | attackType = WeaponAttackType::BASE_ATTACK ) |
Definition at line 585 of file UnitCombat.cpp.
References CalcDamageInfo::absorb, AddPct(), ApplyResilience(), CalcDamageInfo::attacker, CalcDamageInfo::attackType, BASE_ATTACK, CalcDamageInfo::blocked_amount, CalcAbsorbResist(), CalcArmorReducedDamage(), CalculateDamage(), CalculatePct(), CalcDamageInfo::cleanDamage, CalcDamageInfo::damage, CalcDamageInfo::damageSchoolMask, DIRECT_DAMAGE, GetBlockPercent(), getLevel(), GetMeleeDamageSchoolMask(), GetTotalAuraModifier(), GetTotalAuraMultiplierByMiscMask(), CalcDamageInfo::HitInfo, HITINFO_AFFECTS_VICTIM, HITINFO_BLOCK, HITINFO_CRITICALHIT, HITINFO_CRUSHING, HITINFO_FULL_ABSORB, HITINFO_FULL_RESIST, HITINFO_GLANCING, HITINFO_MISS, HITINFO_NORMALSWING, HITINFO_OFFHAND, HITINFO_PARTIAL_ABSORB, HITINFO_PARTIAL_RESIST, HITINFO_SWINGNOHITSOUND, CalcDamageInfo::hitOutCome, IsAlive(), isBlockCritical(), IsDamageReducedByArmor(), IsImmunedToDamage(), MELEE_HIT_BLOCK, MELEE_HIT_CRIT, MELEE_HIT_CRUSHING, MELEE_HIT_DODGE, MELEE_HIT_EVADE, MELEE_HIT_GLANCING, MELEE_HIT_MISS, MELEE_HIT_NORMAL, MELEE_HIT_PARRY, MeleeDamageBonusDone(), MeleeDamageBonusTaken(), OFF_ATTACK, PROC_EX_ABSORB, PROC_EX_BLOCK, PROC_EX_CRITICAL_HIT, PROC_EX_DODGE, PROC_EX_EVADE, PROC_EX_IMMUNE, PROC_EX_MISS, PROC_EX_NONE, PROC_EX_NORMAL_HIT, PROC_EX_PARRY, PROC_FLAG_DONE_MAINHAND_ATTACK, PROC_FLAG_DONE_MELEE_AUTO_ATTACK, PROC_FLAG_DONE_OFFHAND_ATTACK, PROC_FLAG_NONE, PROC_FLAG_TAKEN_DAMAGE, PROC_FLAG_TAKEN_MELEE_AUTO_ATTACK, CalcDamageInfo::procAttacker, CalcDamageInfo::procEx, CalcDamageInfo::procVictim, RANGED_ATTACK, CalcDamageInfo::resist, RollMeleeOutcomeAgainst(), SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_DAMAGE, SPELL_AURA_MOD_ATTACKER_RANGED_CRIT_DAMAGE, SPELL_AURA_MOD_CRIT_DAMAGE_BONUS, sScriptMgr, CalcDamageInfo::target, CalcDamageInfo::TargetState, Unit(), VICTIMSTATE_DODGE, VICTIMSTATE_EVADE, VICTIMSTATE_IMMUNE, VICTIMSTATE_MISS, VICTIMSTATE_PARRY, and VICTIMSTATE_WOUND.
Referenced by AttackerStateUpdate().
| int32 Unit::CalculateSpellDamage | ( | Unit const * | target, |
| SpellInfo const * | spellProto, | ||
| uint8 | effect_index, | ||
| int32 const * | basePoints = NULL ) const |
Definition at line 4709 of file Unit.cpp.
References SpellEffectInfo::CalcValue(), SpellInfo::Effects, and Unit().
Referenced by HandleDummyAuraProc(), and AuraEffect::HandlePeriodicDummyAuraTick().
| void Unit::CalculateSpellDamageTaken | ( | SpellNonMeleeDamage * | damageInfo, |
| int32 | damage, | ||
| SpellInfo const * | spellInfo, | ||
| WeaponAttackType | attackType = WeaponAttackType::BASE_ATTACK, | ||
| bool | crit = false ) |
Definition at line 458 of file UnitCombat.cpp.
References SpellNonMeleeDamage::absorb, AddPct(), ApplyResilience(), SpellNonMeleeDamage::attacker, SpellNonMeleeDamage::blocked, CalcAbsorbResist(), CalcArmorReducedDamage(), CalculatePct(), SpellNonMeleeDamage::damage, SpellInfo::DmgClass, GetBlockPercent(), SpellInfo::GetSchoolMask(), GetSpellModOwner(), GetTotalAuraModifier(), GetTotalAuraMultiplierByMiscMask(), SpellNonMeleeDamage::HitInfo, SpellInfo::Id, IsAlive(), isBlockCritical(), IsDamageReducedByArmor(), isSpellBlocked(), RANGED_ATTACK, SpellNonMeleeDamage::resist, SpellNonMeleeDamage::schoolMask, SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_DAMAGE, SPELL_AURA_MOD_ATTACKER_RANGED_CRIT_DAMAGE, SPELL_AURA_MOD_CRIT_DAMAGE_BONUS, SPELL_DAMAGE_CLASS_MAGIC, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_NONE, SPELL_DAMAGE_CLASS_RANGED, SPELL_DIRECT_DAMAGE, SPELL_HIT_TYPE_CRIT, SPELL_SCHOOL_MASK_NORMAL, SpellCriticalDamageBonus(), SPELLMOD_CRIT_DAMAGE_BONUS, sScriptMgr, SpellNonMeleeDamage::target, and Unit().
Referenced by Spell::DoAllEffectOnTarget(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), AuraEffect::HandleProcTriggerDamageAuraProc(), and SpellNonMeleeDamageLog().
|
inline |
Definition at line 1437 of file Unit.h.
References m_canDualWield.
Referenced by Player::AutoUnequipOffhandIfNeed(), Player::CanEquipItem(), Player::FindEquipSlot(), and Player::UpdateAttackPowerAndDamage().
|
pure virtual |
Implemented in Creature, and Player.
Referenced by _ExitVehicle().
| bool Unit::CanFreeMove | ( | ) | const |
Definition at line 5144 of file Unit.cpp.
References GetOwnerGUID(), HasUnitState(), UNIT_STATE_CONFUSED, UNIT_STATE_DISTRACTED, UNIT_STATE_FLEEING, UNIT_STATE_IN_FLIGHT, UNIT_STATE_ROOT, and UNIT_STATE_STUNNED.
Referenced by SpellInfo::CheckTarget().
| bool Unit::CanHaveThreatList | ( | ) | const |
Definition at line 4424 of file Unit.cpp.
References GetOwnerGUID(), Object::GetTypeId(), HasUnitTypeMask(), IS_PLAYER_GUID(), IsAlive(), isDying(), IsTotem(), Object::ToCreature(), TYPEID_UNIT, UNIT_MASK_CONTROLABLE_GUARDIAN, UNIT_MASK_GUARDIAN, and UNIT_MASK_MINION.
Referenced by AddThreat(), DeleteThreatList(), CreatureAI::DoZoneInCombat(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleModTaunt(), Spell::HandleThreatSpells(), Creature::SelectVictim(), Creature::SetInCombatWithZone(), TauntApply(), TauntFadeOut(), and Update().
|
inline |
Definition at line 2410 of file Unit.h.
References m_canModifyStats.
Referenced by Player::_ApplyWeaponDamage(), Player::HandleBaseModValue(), HandleStatModifier(), and Player::UpdateRating().
|
inline |
Definition at line 2700 of file Unit.h.
References m_procDeep.
| bool Unit::CanUseAttackType | ( | WeaponAttackType | attacktype | ) | const |
Definition at line 744 of file Unit.cpp.
References BASE_ATTACK, Object::HasFlag(), OFF_ATTACK, RANGED_ATTACK, UNIT_FIELD_FLAGS, UNIT_FIELD_FLAGS2, UNIT_FLAG2_DISARM_OFFHAND, UNIT_FLAG2_DISARM_RANGED, and UNIT_FLAG_DISARMED.
Referenced by Player::_ApplyAllItemMods(), Player::_ApplyAllLevelScaleItemMods(), Player::_ApplyItemBonuses(), Player::_ApplyWeaponDependentAuraCritMod(), Player::_ApplyWeaponDependentAuraDamageMod(), Player::_RemoveAllItemMods(), Player::CalculateMinMaxDamage(), Player::CastItemCombatSpell(), Player::GetUseableItemByPos(), AuraEffect::HandleAuraModShapeshift(), Creature::UpdateDamagePhysical(), and Player::UpdateEquipSpellsAtFormChange().
| void Unit::CastCustomSpell | ( | uint32 | spellId, |
| CustomSpellValues const & | value, | ||
| Unit * | victim = NULL, | ||
| TriggerCastFlags | triggerFlags = TRIGGERED_NONE, | ||
| Item * | castItem = NULL, | ||
| AuraEffect const * | triggeredByAura = NULL, | ||
| uint64 | originalCaster = 0 ) |
Definition at line 401 of file UnitCombat.cpp.
References CastSpell(), Object::GetEntry(), Object::GetGUIDLow(), Object::GetTypeId(), SpellCastTargets::SetUnitTarget(), SF_LOG_ERROR, sSpellMgr, TYPEID_PLAYER, and Unit().
| void Unit::CastCustomSpell | ( | uint32 | spellId, |
| SpellValueMod | mod, | ||
| int32 | value, | ||
| Unit * | victim, | ||
| bool | triggered, | ||
| Item * | castItem = NULL, | ||
| AuraEffect const * | triggeredByAura = NULL, | ||
| uint64 | originalCaster = 0 ) |
Definition at line 387 of file UnitCombat.cpp.
References CustomSpellValues::AddSpellMod(), CastCustomSpell(), TRIGGERED_FULL_MASK, TRIGGERED_NONE, and Unit().
| void Unit::CastCustomSpell | ( | uint32 | spellId, |
| SpellValueMod | mod, | ||
| int32 | value, | ||
| Unit * | victim = NULL, | ||
| TriggerCastFlags | triggerFlags = TRIGGERED_NONE, | ||
| Item * | castItem = NULL, | ||
| AuraEffect const * | triggeredByAura = NULL, | ||
| uint64 | originalCaster = 0 ) |
Definition at line 394 of file UnitCombat.cpp.
References CustomSpellValues::AddSpellMod(), CastCustomSpell(), and Unit().
| void Unit::CastCustomSpell | ( | Unit * | victim, |
| uint32 | spellId, | ||
| int32 const * | bp0, | ||
| int32 const * | bp1, | ||
| int32 const * | bp2, | ||
| bool | triggered, | ||
| Item * | castItem = NULL, | ||
| AuraEffect const * | triggeredByAura = NULL, | ||
| uint64 | originalCaster = 0 ) |
Definition at line 375 of file UnitCombat.cpp.
References CustomSpellValues::AddSpellMod(), CastCustomSpell(), SPELLVALUE_BASE_POINT0, SPELLVALUE_BASE_POINT1, SPELLVALUE_BASE_POINT2, TRIGGERED_FULL_MASK, TRIGGERED_NONE, and Unit().
Referenced by spell_dru_survival_instincts::spell_dru_survival_instincts_AuraScript::AfterApply(), spell_the_lich_king_necrotic_plague_jump::spell_the_lich_king_necrotic_plague_AuraScript::AfterDispel(), spell_dru_lifebloom::spell_dru_lifebloom_AuraScript::AfterRemove(), Player::ApplyEnchantment(), CastCustomSpell(), CastCustomSpell(), CastCustomSpell(), Pet::CastPetAura(), spell_monk_expel_harm::spell_monk_expel_harm_SpellScript::DealAreaDamage(), EnterVehicle(), spell_dk_scourge_strike::spell_dk_scourge_strike_SpellScript::HandleAfterHit(), AuraEffect::HandleAuraLinked(), HandleAuraProc(), HandleAuraProcOnPowerAmount(), HandleAuraRaidProcFromChargeWithValue(), Aura::HandleAuraSpecificMods(), spell_pri_shadow_word_death::spell_pri_shadow_word_death_SpellScript::HandleDamage(), spell_deathbringer_blood_link::spell_deathbringer_blood_link_SpellScript::HandleDummy(), spell_dk_death_coil::spell_dk_death_coil_SpellScript::HandleDummy(), spell_dk_death_strike::spell_dk_death_strike_SpellScript::HandleDummy(), spell_gen_chaos_blast::spell_gen_chaos_blast_SpellScript::HandleDummy(), spell_gen_dummy_trigger::spell_gen_dummy_trigger_SpellScript::HandleDummy(), spell_hun_last_stand_pet::spell_hun_last_stand_pet_SpellScript::HandleDummy(), spell_sha_ancestral_awakening_proc::spell_sha_ancestral_awakening_proc_SpellScript::HandleDummy(), spell_warl_life_tap::spell_warl_life_tap_SpellScript::HandleDummy(), spell_warr_charge::spell_warr_charge_SpellScript::HandleDummy(), spell_warr_last_stand::spell_warr_last_stand_SpellScript::HandleDummy(), HandleDummyAuraProc(), spell_rog_stealth::spell_rog_stealth_AuraScript::HandleEffectApply(), spell_anubarak_leeching_swarm::spell_anubarak_leeching_swarm_AuraScript::HandleEffectPeriodic(), spell_biting_cold_dot::spell_biting_cold_dot_AuraScript::HandleEffectPeriodic(), spell_pal_eye_for_an_eye::spell_pal_eye_for_an_eye_AuraScript::HandleEffectProc(), spell_pri_vampiric_embrace::spell_pri_vampiric_embrace_AuraScript::HandleEffectProc(), spell_sha_ancestral_awakening::spell_sha_ancestral_awakening_AuraScript::HandleEffectProc(), spell_sha_glyph_of_healing_wave::spell_sha_glyph_of_healing_wave_AuraScript::HandleEffectProc(), spell_sha_telluric_currents::spell_sha_telluric_currents_AuraScript::HandleEffectProc(), spell_sha_tidal_waves::spell_sha_tidal_waves_AuraScript::HandleEffectProc(), spell_pri_evangelism::spell_pri_evangelism_AuraScript::HandleEffectStackProc(), spell_dru_eclipse_energize::spell_dru_eclipse_energize_SpellScript::HandleEnergize(), spell_mage_water_elemental_freeze::spell_mage_water_elemental_freeze_SpellScript::HandleImprovedFreeze(), spell_pri_power_word_shield::spell_pri_power_word_shield_AuraScript::HandleOnEffectApply(), AuraEffect::HandlePeriodicDummyAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), spell_devourer_of_souls_mirrored_soul_proc::spell_devourer_of_souls_mirrored_soul_proc_AuraScript::HandleProc(), spell_dk_blood_gorged::spell_dk_blood_gorged_AuraScript::HandleProc(), spell_dru_living_seed::spell_dru_living_seed_AuraScript::HandleProc(), spell_dru_living_seed_proc::spell_dru_living_seed_proc_AuraScript::HandleProc(), spell_gen_alchemist_stone::spell_gen_alchemist_stone_AuraScript::HandleProc(), spell_item_blessing_of_ancient_kings::spell_item_blessing_of_ancient_kings_AuraScript::HandleProc(), spell_item_necrotic_touch::spell_item_necrotic_touch_AuraScript::HandleProc(), spell_mage_ignite::spell_mage_ignite_AuraScript::HandleProc(), spell_pal_beacon_of_light::spell_pal_beacon_of_light_AuraScript::HandleProc(), spell_pal_seal_of_righteousness::spell_pal_seal_of_righteousness_AuraScript::HandleProc(), spell_pri_divine_aegis::spell_pri_divine_aegis_AuraScript::HandleProc(), spell_rog_blade_flurry::spell_rog_blade_flurry_AuraScript::HandleProc(), spell_sha_earth_shield::spell_sha_earth_shield_AuraScript::HandleProc(), spell_the_lich_king_dark_hunger::spell_the_lich_king_dark_hunger_AuraScript::HandleProc(), spell_uk_second_wind_proc::spell_uk_second_wind_proc_AuraScript::HandleProc(), spell_yogg_saron_grim_reprisal::spell_yogg_saron_grim_reprisal_AuraScript::HandleProc(), HandleProcTriggerSpell(), AuraEffect::HandleProcTriggerSpellWithValueAuraProc(), AuraEffect::HandleRaidProcFromChargeWithValueAuraProc(), spell_deathbringer_blood_nova::spell_deathbringer_blood_nova_SpellScript::HandleScript(), spell_deathbringer_rune_of_blood::spell_deathbringer_rune_of_blood_SpellScript::HandleScript(), spell_kelthuzad_detonate_mana::spell_kelthuzad_detonate_mana_AuraScript::HandleScript(), spell_q12919_gymers_grab::spell_q12919_gymers_grab_SpellScript::HandleScript(), spell_warr_rallying_cry::spell_warr_rallying_cry_SpellScript::HandleScript(), HandleSpellClick(), spell_marrowgar_bone_spike_graveyard::spell_marrowgar_bone_spike_graveyard_SpellScript::HandleSpikes(), spell_gen_two_forms::spell_gen_two_forms_SpellScript::HandleTransform(), spell_putricide_mutated_plague::spell_putricide_mutated_plague_AuraScript::HandleTriggerSpell(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnApply(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), spell_blood_queen_essence_of_the_blood_queen::spell_blood_queen_essence_of_the_blood_queen_AuraScript::OnProc(), spell_monk_serpents_zeal::spell_monk_serpents_zeal_AuraScript::OnProc(), spell_sha_nature_guardian::spell_sha_nature_guardian_AuraScript::OnProc(), spell_warl_fel_synergy::spell_warl_fel_synergy_AuraScript::OnProc(), spell_halion_marks::spell_halion_marks_AuraScript::OnRemove(), spell_sindragosa_instability::spell_sindragosa_instability_AuraScript::OnRemove(), spell_the_lich_king_necrotic_plague::spell_the_lich_king_necrotic_plague_AuraScript::OnRemove(), spell_the_lich_king_necrotic_plague_jump::spell_the_lich_king_necrotic_plague_AuraScript::OnRemove(), spell_blood_queen_pact_of_the_darkfallen_dmg::spell_blood_queen_pact_of_the_darkfallen_dmg_AuraScript::PeriodicTick(), spell_pri_power_word_shield::spell_pri_power_word_shield_AuraScript::ReflectDamage(), npc_combustion_consumption::npc_combustion_consumptionAI::SetData(), spell_boss_lady_malande_shield::spell_boss_lady_malande_shield_AuraScript::Trigger(), spell_dk_anti_magic_shell_self::spell_dk_anti_magic_shell_self_AuraScript::Trigger(), and spell_the_lich_king_life_siphon::spell_the_lich_king_life_siphon_SpellScript::TriggerHeal().
| void Unit::CastSpell | ( | float | x, |
| float | y, | ||
| float | z, | ||
| uint32 | spellId, | ||
| bool | triggered, | ||
| Item * | castItem = NULL, | ||
| AuraEffect const * | triggeredByAura = NULL, | ||
| uint64 | originalCaster = 0 ) |
Definition at line 415 of file UnitCombat.cpp.
References CastSpell(), Object::GetEntry(), Object::GetGUIDLow(), Position::GetOrientation(), Object::GetTypeId(), SpellCastTargets::SetDst(), SF_LOG_ERROR, sSpellMgr, TRIGGERED_FULL_MASK, TRIGGERED_NONE, and TYPEID_PLAYER.
| void Unit::CastSpell | ( | GameObject * | go, |
| uint32 | spellId, | ||
| bool | triggered, | ||
| Item * | castItem = NULL, | ||
| AuraEffect * | triggeredByAura = NULL, | ||
| uint64 | originalCaster = 0 ) |
Definition at line 429 of file UnitCombat.cpp.
References CastSpell(), Object::GetEntry(), Object::GetGUIDLow(), Object::GetTypeId(), SpellCastTargets::SetGOTarget(), SF_LOG_ERROR, sSpellMgr, TRIGGERED_FULL_MASK, TRIGGERED_NONE, and TYPEID_PLAYER.
| void Unit::CastSpell | ( | SpellCastTargets const & | targets, |
| SpellInfo const * | spellInfo, | ||
| CustomSpellValues const * | value, | ||
| TriggerCastFlags | triggerFlags = TRIGGERED_NONE, | ||
| Item * | castItem = NULL, | ||
| AuraEffect const * | triggeredByAura = NULL, | ||
| uint64 | originalCaster = 0 ) |
Definition at line 324 of file UnitCombat.cpp.
References CustomSpellValues::begin(), CustomSpellValues::end(), AuraEffect::GetCasterGUID(), Object::GetEntry(), Object::GetGUIDLow(), Object::GetTypeId(), Spell::m_CastItem, Spell::prepare(), Spell::SetSpellValue(), SF_LOG_ERROR, and TYPEID_PLAYER.
Referenced by Player::_LoadGlyphAuras(), BattlegroundAB::_NodeOccupied(), BattlegroundBFG::_NodeOccupied(), Battleground::_ProcessRessurect(), Player::_StoreItem(), spell_rog_cheat_death::spell_rog_cheat_death_AuraScript::Absorb(), spell_valkyr_essences::spell_valkyr_essences_AuraScript::Absorb(), instance_uldaman::instance_uldaman_InstanceMapScript::ActivateArchaedas(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ActivateCrystal(), boss_archaedas::boss_archaedasAI::ActivateMinion(), Player::ActivateSpec(), instance_uldaman::instance_uldaman_InstanceMapScript::ActivateWallMinions(), spell_halion_combustion_consumption::spell_halion_combustion_consumption_AuraScript::AddMarkStack(), Battleground::AddPlayer(), BattlegroundIC::AddPlayer(), BattlegroundSA::AddPlayer(), Battleground::AddPlayerToResurrectQueue(), Pet::addSpell(), Player::addSpell(), spell_astromancer_wrath_of_the_astromancer::spell_astromancer_wrath_of_the_astromancer_AuraScript::AfterRemove(), spell_gen_lifebloom::spell_gen_lifebloom_AuraScript::AfterRemove(), spell_gen_stop_time::spell_gen_stop_time_AuraScript::Apply(), Player::ApplyEnchantment(), Player::ApplyEquipSpell(), boss_morogrim_tidewalker::boss_morogrim_tidewalkerAI::ApplyWateryGrave(), AttackerStateUpdate(), Player::BuildPlayerRepop(), boss_gathios_the_shatterer::boss_gathios_the_shattererAI::CastAuraOnCouncil(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::CastConsumingMadness(), CastCustomSpell(), boss_essence_of_suffering::boss_essence_of_sufferingAI::CastFixate(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::CastGravityLapseFly(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::CastGravityLapseKnockUp(), Player::CastItemCombatSpell(), Pet::CastPetAura(), GameObject::CastSpell(), LuaUnit::CastSpell(), CastSpell(), CastSpell(), CastSpell(), CastSpell(), CastSpell(), CastSpell(), LuaUnit::CastSpellAoF(), spell_the_lich_king_defile::spell_the_lich_king_defile_SpellScript::ChangeDamageAndGrow(), Spell::CheckItems(), spell_the_lich_king_ice_burst_target_search::spell_the_lich_king_ice_burst_target_search_SpellScript::CheckTargetCount(), spell_the_lich_king_shadow_trap_periodic::spell_the_lich_king_shadow_trap_periodic_SpellScript::CheckTargetCount(), spell_the_lich_king_vile_spirit_damage_target_search::spell_the_lich_king_vile_spirit_damage_target_search_SpellScript::CheckTargetCount(), spell_yogg_saron_induce_madness::spell_yogg_saron_induce_madness_SpellScript::ClearShatteredIllusion(), AchievementMgr< Guild >::CompletedAchievement(), DealDamage(), DealMeleeDamage(), boss_magtheridon::boss_magtheridonAI::DebuffClicker(), BattlegroundIC::DoAction(), npc_halion_controller::npc_halion_controllerAI::DoAction(), boss_brutallus::boss_brutallusAI::DoIntro(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::DoSpawnPortal(), Spell::DoTriggersOnSpellHit(), spell_yogg_saron_brain_link::spell_yogg_saron_brain_link_AuraScript::DummyTick(), spell_yogg_saron_sanity::spell_yogg_saron_sanity_AuraScript::DummyTick(), Spell::EffectApplyGlyph(), Spell::EffectInebriate(), Battleground::EndBattleground(), boss_freya::boss_freyaAI::EnterCombat(), BattlegroundEY::EventPlayerClickedOnFlag(), BattlegroundTP::EventPlayerClickedOnFlag(), BattlegroundVOP::EventPlayerClickedOnFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), BattlegroundEY::EventPlayerDroppedFlag(), BattlegroundTP::EventPlayerDroppedFlag(), BattlegroundWS::EventPlayerDroppedFlag(), BattlegroundEY::EventTeamCapturedPoint(), boss_xt002::boss_xt002_AI::ExposeHeart(), spell_festergut_blighted_spores::spell_festergut_blighted_spores_AuraScript::ExtraEffect(), spell_alysrazor_fieroblast::spell_alysrazor_fieroblast_SpellScript::FireItUp(), boss_hodir::boss_hodirAI::FlashFreeze(), boss_archimonde::boss_archimondeAI::GainSoulCharge(), spell_monk_roll::spell_monk_roll_SpellScript::HandleAfterCast(), spell_monk_teachings_of_the_monastery::spell_monk_teachings_of_the_monastery_SpellScript::HandleAfterCast(), spell_ex_66244::spell_ex_66244AuraScript::HandleAfterEffectApply(), spell_ex_66244::spell_ex_66244AuraScript::HandleAfterEffectRemove(), spell_rog_deadly_poison::spell_rog_deadly_poison_SpellScript::HandleAfterHit(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), BattlegroundIC::HandleAreaTrigger(), OutdoorPvPSI::HandleAreaTrigger(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraLinked(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraMounted(), HandleAuraProc(), HandleAuraProcOnPowerAmount(), HandleAuraRaidProcFromCharge(), Aura::HandleAuraSpecificMods(), WorldSession::HandleBattlePetSummonCompanion(), misc_commandscript::HandleBindSightCommand(), spell_rotface_unstable_ooze_explosion_init::spell_rotface_unstable_ooze_explosion_init_SpellScript::HandleCast(), cast_commandscript::HandleCastBackCommand(), cast_commandscript::HandleCastCommand(), cast_commandscript::HandleCastDestCommand(), cast_commandscript::HandleCastDistCommand(), cast_commandscript::HandleCastSelfCommand(), cast_commandscript::HandleCastTargetCommad(), npc_akama_illidan::npc_akama_illidanAI::HandleChannelSequence(), spell_warr_charge::spell_warr_charge_SpellScript::HandleCharge(), spell_gen_mounted_charge::spell_gen_mounted_charge_SpellScript::HandleChargeEffect(), OutdoorPvPSI::HandleCustomSpell(), WorldSession::HandleDuelResponseOpcode(), spell_capacitus_polarity_shift::spell_capacitus_polarity_shift_SpellScript::HandleDummy(), spell_dru_starfall_dummy::spell_dru_starfall_dummy_SpellScript::HandleDummy(), spell_gen_cannibalize::spell_gen_cannibalize_SpellScript::HandleDummy(), spell_gen_fishing::spell_gen_fishing_SpellScript::HandleDummy(), spell_gen_gadgetzan_transporter_backfire::spell_gen_gadgetzan_transporter_backfire_SpellScript::HandleDummy(), spell_gen_gnomish_transporter::spell_gen_gnomish_transporter_SpellScript::HandleDummy(), spell_hun_pet_carrion_feeder::spell_hun_pet_carrion_feeder_SpellScript::HandleDummy(), spell_item_brewfest_mount_transformation::spell_item_brewfest_mount_transformation_SpellScript::HandleDummy(), spell_item_chicken_cover::spell_item_chicken_cover_SpellScript::HandleDummy(), spell_item_complete_raptor_capture::spell_item_complete_raptor_capture_SpellScript::HandleDummy(), spell_item_demon_broiled_surprise::spell_item_demon_broiled_surprise_SpellScript::HandleDummy(), spell_item_deviate_fish::spell_item_deviate_fish_SpellScript::HandleDummy(), spell_item_flask_of_the_north::spell_item_flask_of_the_north_SpellScript::HandleDummy(), spell_item_gnomish_death_ray::spell_item_gnomish_death_ray_SpellScript::HandleDummy(), spell_item_greatmothers_soulcatcher::spell_item_greatmothers_soulcatcher_SpellScript::HandleDummy(), spell_item_make_a_wish::spell_item_make_a_wish_SpellScript::HandleDummy(), spell_item_net_o_matic::spell_item_net_o_matic_SpellScript::HandleDummy(), spell_item_nigh_invulnerability::spell_item_nigh_invulnerability_SpellScript::HandleDummy(), spell_item_nitro_boots::spell_item_nitro_boots_SpellScript::HandleDummy(), spell_item_noggenfogger_elixir::spell_item_noggenfogger_elixir_SpellScript::HandleDummy(), spell_item_poultryizer::spell_item_poultryizer_SpellScript::HandleDummy(), spell_item_purify_helboar_meat::spell_item_purify_helboar_meat_SpellScript::HandleDummy(), spell_item_pygmy_oil::spell_item_pygmy_oil_SpellScript::HandleDummy(), spell_item_reindeer_transformation::spell_item_reindeer_transformation_SpellScript::HandleDummy(), spell_item_rocket_boots::spell_item_rocket_boots_SpellScript::HandleDummy(), spell_item_savory_deviate_delight::spell_item_savory_deviate_delight_SpellScript::HandleDummy(), spell_item_six_demon_bag::spell_item_six_demon_bag_SpellScript::HandleDummy(), spell_item_socrethars_stone::spell_item_socrethars_stone_SpellScript::HandleDummy(), spell_item_teach_language::spell_item_teach_language_SpellScript::HandleDummy(), spell_item_trigger_spell::spell_item_trigger_spell_SpellScript::HandleDummy(), spell_item_underbelly_elixir::spell_item_underbelly_elixir_SpellScript::HandleDummy(), spell_item_vanquished_clutches::spell_item_vanquished_clutches_SpellScript::HandleDummy(), spell_mage_conjure_refreshment::spell_mage_conjure_refreshment_SpellScript::HandleDummy(), spell_mage_conjure_refreshment_table::spell_mage_conjure_refreshment_table_SpellScript::HandleDummy(), spell_mage_mirror_image::spell_mage_mirror_image_SpellScript::HandleDummy(), spell_monk_legacy_of_the_emperor::spell_monk_legacy_of_the_emperor_SpellScript::HandleDummy(), spell_ooze_zap::spell_ooze_zap_SpellScript::HandleDummy(), spell_pal_blessing_of_faith::spell_pal_blessing_of_faith_SpellScript::HandleDummy(), spell_pal_holy_shock::spell_pal_holy_shock_SpellScript::HandleDummy(), spell_pal_judgment::spell_pal_judgment_SpellScript::HandleDummy(), spell_pri_penance::spell_pri_penance_SpellScript::HandleDummy(), spell_putricide_ooze_eruption_searcher::spell_putricide_ooze_eruption_searcher_SpellScript::HandleDummy(), spell_q11396_11399_scourging_crystal_controller::spell_q11396_11399_scourging_crystal_controller_SpellScript::HandleDummy(), spell_q11587_arcane_prisoner_rescue::spell_q11587_arcane_prisoner_rescue_SpellScript::HandleDummy(), spell_q11730_ultrasonic_screwdriver::spell_q11730_ultrasonic_screwdriver_SpellScript::HandleDummy(), spell_q12096_q12092_dummy::spell_q12096_q12092_dummy_SpellScript::HandleDummy(), spell_q12308_escape_from_silverbrook::spell_q12308_escape_from_silverbrook_SpellScript::HandleDummy(), spell_q12589_shoot_rjr::spell_q12589_shoot_rjr_SpellScript::HandleDummy(), spell_q12634_despawn_fruit_tosser::spell_q12634_despawn_fruit_tosser_SpellScript::HandleDummy(), spell_q12641_death_comes_from_on_high::spell_q12641_death_comes_from_on_high_SpellScript::HandleDummy(), spell_q12683_take_sputum_sample::spell_q12683_take_sputum_sample_SpellScript::HandleDummy(), spell_q12937_relief_for_the_fallen::spell_q12937_relief_for_the_fallen_SpellScript::HandleDummy(), spell_q13291_q13292_q13239_q13261_frostbrood_skytalon_grab_decoy::spell_q13291_q13292_q13239_q13261_frostbrood_skytalon_grab_decoy_SpellScript::HandleDummy(), spell_q5206_test_fetid_skull::spell_q5206_test_fetid_skull_SpellScript::HandleDummy(), spell_q9452_cast_net::spell_q9452_cast_net_SpellScript::HandleDummy(), spell_rotface_vile_gas_trigger::spell_rotface_vile_gas_trigger_SpellScript::HandleDummy(), spell_saviana_conflagration_init::spell_saviana_conflagration_init_SpellScript::HandleDummy(), spell_sha_fire_nova::spell_sha_fire_nova_SpellScript::HandleDummy(), spell_voodoo::spell_voodoo_SpellScript::HandleDummy(), spell_warl_soulshatter::spell_warl_soulshatter_SpellScript::HandleDummy(), spell_yogg_saron_boil_ominously::spell_yogg_saron_boil_ominously_SpellScript::HandleDummy(), HandleDummyAuraProc(), spell_ex_5581::spell_ex_5581SpellScript::HandleDummyHitTarget(), spell_blood_council_shadow_prison::spell_blood_council_shadow_prison_AuraScript::HandleDummyTick(), spell_mistress_kiss::spell_mistress_kiss_AuraScript::HandleDummyTick(), spell_shadowfang_keep_haunting_spirits::spell_shadowfang_keep_haunting_spirits_AuraScript::HandleDummyTick(), spell_warl_demonic_circle_summon::spell_warl_demonic_circle_summon_AuraScript::HandleDummyTick(), spell_murmur_sonic_boom::spell_murmur_sonic_boom_SpellScript::HandleEffect(), spell_pal_aura_mastery::spell_pal_aura_mastery_AuraScript::HandleEffectApply(), spell_pri_shadowform::spell_pri_shadowform_AuraScript::HandleEffectApply(), spell_q12851_going_bearback::spell_q12851_going_bearback_AuraScript::HandleEffectApply(), spell_dru_stampede::spell_dru_stampede_AuraScript::HandleEffectBearProc(), spell_dru_stampede::spell_dru_stampede_AuraScript::HandleEffectCatProc(), spell_pri_leap_of_faith::spell_pri_leap_of_faith_SpellScript::HandleEffectDummy(), spell_q13086_cannons_target::spell_q13086_cannons_target_SpellScript::HandleEffectDummy(), spell_biting_cold::spell_biting_cold_AuraScript::HandleEffectPeriodic(), spell_gen_whisper_gulch_yogg_saron_whisper::spell_gen_whisper_gulch_yogg_saron_whisper_AuraScript::HandleEffectPeriodic(), spell_ignis_slag_pot::spell_ignis_slag_pot_AuraScript::HandleEffectPeriodic(), spell_mage_ring_of_frost::spell_mage_ring_of_frost_AuraScript::HandleEffectPeriodic(), spell_dru_glyph_of_innervate::spell_dru_glyph_of_innervate_AuraScript::HandleEffectProc(), spell_dru_glyph_of_starfire_proc::spell_dru_glyph_of_starfire_proc_AuraScript::HandleEffectProc(), spell_mage_nether_vortex::spell_mage_nether_vortex_AuraScript::HandleEffectProc(), spell_pri_vampiric_touch::spell_pri_vampiric_touch_AuraScript::HandleEffectProc(), spell_sha_lava_surge::spell_sha_lava_surge_AuraScript::HandleEffectProc(), spell_warr_retaliation::spell_warr_retaliation_AuraScript::HandleEffectProc(), spell_rog_stealth::spell_rog_stealth_AuraScript::HandleEffectRemove(), spell_pal_selfless_healer::spell_pal_selfless_healer_AuraScript::HandleEffectStackProc(), spell_dru_eclipse_energize::spell_dru_eclipse_energize_SpellScript::HandleEnergize(), boss_felmyst::boss_felmystAI::HandleFlightSequence(), boss_illidan_stormrage::boss_illidan_stormrageAI::HandleFlightSequence(), spell_deathbringer_blood_nova_targeting::spell_deathbringer_blood_nova_targeting_SpellScript::HandleForceCast(), spell_dreamwalker_summon_suppresser_effect::spell_dreamwalker_summon_suppresser_effect_SpellScript::HandleForceCast(), spell_dreamwalker_summoner::spell_dreamwalker_summoner_SpellScript::HandleForceCast(), spell_kologarn_summon_focused_eyebeam::spell_kologarn_summon_focused_eyebeam_SpellScript::HandleForceCast(), OPvPCapturePointZM_GraveYard::HandleGossipOption(), spell_warl_soul_swap::spell_warl_soul_swap_SpellScript::HandleHit(), spell_warr_shockwave::spell_warr_shockwave_SpellScript::HandleHit(), spell_mage_blast_wave::spell_mage_blast_wave_SpellScript::HandleImprovedFlamestrike(), spell_sindragosa_frost_breath::spell_sindragosa_frost_breath_SpellScript::HandleInfusion(), OutdoorPvPHP::HandleKillImpl(), OutdoorPvPNA::HandleKillImpl(), OutdoorPvPZM::HandleKillImpl(), BattlegroundIC::HandleKillUnit(), spell_gen_running_wild::spell_gen_running_wild_AuraScript::HandleMount(), WorldSession::HandleMoveSplineDoneOpcode(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAckOpcode(), spell_pri_power_word_shield::spell_pri_power_word_shield_AuraScript::HandleOnEffectApply(), spell_ticking_time_bomb::spell_ticking_time_bomb_AuraScript::HandleOnEffectRemove(), spell_dk_gorefiends_grasp::spell_dk_gorefiends_grasp_SpellScript::HandleOnHit(), spell_hun_steady_shot::spell_hun_steady_shot_SpellScript::HandleOnHit(), spell_monk_breath_of_fire::spell_monk_breath_of_fire_SpellScript::HandleOnHit(), HandleOverrideClassScriptAuraProc(), spell_algalon_phase_punch::spell_algalon_phase_punch_AuraScript::HandlePeriodic(), spell_assembly_rune_of_summoning::spell_assembly_rune_of_summoning_AuraScript::HandlePeriodic(), spell_close_rift::spell_close_rift_AuraScript::HandlePeriodic(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicDummyAuraTick(), spell_bronjahm_soulstorm_channel::spell_bronjahm_soulstorm_channel_AuraScript::HandlePeriodicTick(), spell_bronjahm_soulstorm_visual::spell_bronjahm_soulstorm_visual_AuraScript::HandlePeriodicTick(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), OutdoorPvPHP::HandlePlayerEnterZone(), OutdoorPvPNA::HandlePlayerEnterZone(), OutdoorPvPSI::HandlePlayerEnterZone(), OutdoorPvPTF::HandlePlayerEnterZone(), OutdoorPvPZM::HandlePlayerEnterZone(), WorldSession::HandlePlayerLogin(), BattlegroundIC::HandlePlayerResurrect(), misc_commandscript::HandlePossessCommand(), spell_blood_queen_vampiric_bite::spell_blood_queen_vampiric_bite_SpellScript::HandlePresence(), spell_gen_adaptive_warding::spell_gen_adaptive_warding_AuraScript::HandleProc(), spell_gen_interrupt::spell_gen_interrupt_AuraScript::HandleProc(), spell_hun_misdirection::spell_hun_misdirection_AuraScript::HandleProc(), spell_item_aegis_of_preservation::spell_item_aegis_of_preservation_AuraScript::HandleProc(), spell_item_desperate_defense::spell_item_desperate_defense_AuraScript::HandleProc(), spell_item_shadowmourne::spell_item_shadowmourne_AuraScript::HandleProc(), spell_item_shadows_fate::spell_item_shadows_fate_AuraScript::HandleProc(), spell_monk_crackling_jade_lightning_aura::spell_monk_crackling_jade_lightning_aura_AuraScript::HandleProc(), spell_pal_item_healing_discount::spell_pal_item_healing_discount_AuraScript::HandleProc(), spell_pri_mana_leech::spell_pri_mana_leech_AuraScript::HandleProc(), spell_rog_tricks_of_the_trade::spell_rog_tricks_of_the_trade_AuraScript::HandleProc(), spell_warr_second_wind_proc::spell_warr_second_wind_proc_AuraScript::HandleProc(), spell_warr_sweeping_strikes::spell_warr_sweeping_strikes_AuraScript::HandleProc(), HandleProcTriggerSpell(), AuraEffect::HandleProcTriggerSpellAuraProc(), AuraEffect::HandleRaidProcFromChargeAuraProc(), spell_alexstrasza_bunny_destroy_platform_event::spell_alexstrasza_bunny_destroy_platform_event_SpellScript::HandleScript(), spell_archavon_rock_shards::spell_archavon_rock_shards_SpellScript::HandleScript(), spell_blood_queen_bloodbolt::spell_blood_queen_bloodbolt_SpellScript::HandleScript(), spell_bronjahm_consume_soul::spell_bronjahm_consume_soul_SpellScript::HandleScript(), spell_devourer_of_souls_mirrored_soul_target_selector::spell_devourer_of_souls_mirrored_soul_target_selector_SpellScript::HandleScript(), spell_dreamwalker_summon_dream_portal::spell_dreamwalker_summon_dream_portal_SpellScript::HandleScript(), spell_dreamwalker_summon_nightmare_portal::spell_dreamwalker_summon_nightmare_portal_SpellScript::HandleScript(), spell_dreamwalker_twisted_nightmares::spell_dreamwalker_twisted_nightmares_SpellScript::HandleScript(), spell_energize_aoe::spell_energize_aoe_SpellScript::HandleScript(), spell_festergut_gastric_bloat::spell_festergut_gastric_bloat_SpellScript::HandleScript(), spell_frost_giant_death_plague::spell_frost_giant_death_plague_SpellScript::HandleScript(), spell_gen_bandage::spell_gen_bandage_SpellScript::HandleScript(), spell_gen_create_lance::spell_gen_create_lance_SpellScript::HandleScript(), spell_gen_dalaran_disguise::spell_gen_dalaran_disguise_SpellScript::HandleScript(), spell_gen_elune_candle::spell_gen_elune_candle_SpellScript::HandleScript(), spell_gen_orc_disguise::spell_gen_orc_disguise_SpellScript::HandleScript(), spell_hallow_end_trick::spell_hallow_end_trick_SpellScript::HandleScript(), spell_hallow_end_trick_or_treat::spell_hallow_end_trick_or_treat_SpellScript::HandleScript(), spell_hallow_end_tricky_treat::spell_hallow_end_tricky_treat_SpellScript::HandleScript(), spell_hun_pet_heart_of_the_phoenix::spell_hun_pet_heart_of_the_phoenix_SpellScript::HandleScript(), spell_item_defibrillate::spell_item_defibrillate_SpellScript::HandleScript(), spell_item_red_rider_air_rifle::spell_item_red_rider_air_rifle_SpellScript::HandleScript(), spell_item_scroll_of_recall::spell_item_scroll_of_recall_SpellScript::HandleScript(), spell_mistress_kiss_area::spell_mistress_kiss_area_SpellScript::HandleScript(), spell_novos_summon_minions::spell_novos_summon_minions_SpellScript::HandleScript(), spell_occuthar_eyes_of_occuthar::spell_occuthar_eyes_of_occuthar_SpellScript::HandleScript(), spell_paletress_summon_memory::spell_paletress_summon_memory_SpellScript::HandleScript(), spell_putricide_choking_gas_bomb::spell_putricide_choking_gas_bomb_SpellScript::HandleScript(), spell_putricide_unbound_plague::spell_putricide_unbound_plague_SpellScript::HandleScript(), spell_putricide_unstable_experiment::spell_putricide_unstable_experiment_SpellScript::HandleScript(), spell_q12372_cast_from_gossip_trigger::spell_q12372_cast_from_gossip_trigger_SpellScript::HandleScript(), spell_q12619_emblazon_runeblade_effect::spell_q12619_emblazon_runeblade_effect_SpellScript::HandleScript(), spell_q12735_song_of_cleansing::spell_q12735_song_of_cleansing_SpellScript::HandleScript(), spell_q12919_gymers_grab::spell_q12919_gymers_grab_SpellScript::HandleScript(), spell_q12919_gymers_throw::spell_q12919_gymers_throw_SpellScript::HandleScript(), spell_rotface_large_ooze_buff_combine::spell_rotface_large_ooze_buff_combine_SpellScript::HandleScript(), spell_rotface_little_ooze_combine::spell_rotface_little_ooze_combine_SpellScript::HandleScript(), spell_rotface_ooze_flood::spell_rotface_ooze_flood_SpellScript::HandleScript(), spell_saviana_conflagration_throwback::spell_saviana_conflagration_throwback_SpellScript::HandleScript(), spell_sindragosa_icy_grip::spell_sindragosa_icy_grip_SpellScript::HandleScript(), spell_taldaram_glittering_sparks::spell_taldaram_glittering_sparks_SpellScript::HandleScript(), spell_taldaram_summon_flame_ball::spell_taldaram_summon_flame_ball_SpellScript::HandleScript(), spell_the_lich_king_cast_back_to_caster::spell_the_lich_king_cast_back_to_caster_SpellScript::HandleScript(), spell_the_lich_king_jump::spell_the_lich_king_jump_SpellScript::HandleScript(), spell_the_lich_king_raging_spirit::spell_the_lich_king_raging_spirit_SpellScript::HandleScript(), spell_the_lich_king_summon_spirit_bomb::spell_the_lich_king_summon_spirit_bomb_SpellScript::HandleScript(), spell_the_lich_king_valkyr_target_search::spell_the_lich_king_valkyr_target_search_SpellScript::HandleScript(), spell_ulduar_rubble_summon::spell_ulduar_rubble_summonSpellScript::HandleScript(), spell_winter_veil_mistletoe::spell_winter_veil_mistletoe_SpellScript::HandleScript(), spell_wintergrasp_force_building::spell_wintergrasp_force_building_SpellScript::HandleScript(), spell_yogg_saron_insane_periodic::spell_yogg_saron_insane_periodic_SpellScript::HandleScript(), spell_yogg_saron_target_selectors::spell_yogg_saron_target_selectors_SpellScript::HandleScript(), spell_fixate::spell_fixate_SpellScript::HandleScriptEffect(), spell_gen_clone::spell_gen_clone_SpellScript::HandleScriptEffect(), spell_gen_clone_weapon::spell_gen_clone_weapon_SpellScript::HandleScriptEffect(), spell_gen_mounted_charge::spell_gen_mounted_charge_SpellScript::HandleScriptEffect(), spell_hun_chimera_shot::spell_hun_chimera_shot_SpellScript::HandleScriptEffect(), spell_hun_cobra_shot::spell_hun_cobra_shot_SpellScript::HandleScriptEffect(), spell_marrowgar_coldflame::spell_marrowgar_coldflame_SpellScript::HandleScriptEffect(), spell_marrowgar_coldflame_bonestorm::spell_marrowgar_coldflame_SpellScript::HandleScriptEffect(), spell_q12527_zuldrak_rat::spell_q12527_zuldrak_rat_SpellScript::HandleScriptEffect(), spell_q12641_death_comes_from_on_high_summon_ghouls::spell_q12641_death_comes_from_on_high_summon_ghouls_SpellScript::HandleScriptEffect(), spell_q14112_14145_chum_the_water::spell_q14112_14145_chum_the_water_SpellScript::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), HandleSpellClick(), spell_putricide_mutated_transformation::spell_putricide_mutated_transformation_SpellScript::HandleSummon(), boss_alythess::boss_alythessAI::HandleTouchedSpells(), boss_sacrolash::boss_sacrolashAI::HandleTouchedSpells(), spell_trigger_spell_from_caster::spell_trigger_spell_from_caster_SpellScript::HandleTrigger(), spell_magic_eater_food::spell_magic_eater_food_AuraScript::HandleTriggerSpell(), spell_pal_righteous_defense::spell_pal_righteous_defense_SpellScript::HandleTriggerSpellHit(), spell_malygos_arcane_storm::spell_malygos_arcane_storm_SpellScript::HandleVisual(), npc_pet_mage_mirror_image::npc_pet_mage_mirror_imageAI::InitializeAI(), Totem::InitSummon(), npc_mechanolift::npc_mechanoliftAI::JustDied(), npc_nerubar_victim::npc_nerubar_victimAI::JustDied(), Kill(), spell_alysrazor_turn_monstrosity::spell_alysrazor_turn_monstrosity_SpellScript::KnockBarrage(), Player::learnQuestRewardedSpells(), Player::LeaveBattleground(), spell_gen_running_wild::spell_gen_running_wild_SpellScript::Load(), lfg::LFGMgr::MakeNewGroup(), boss_teron_gorefiend::boss_teron_gorefiendAI::MindControlGhost(), ModifyAuraState(), npc_air_force_bots::npc_air_force_botsAI::MoveInLineOfSight(), npc_dkc1_gothik::npc_dkc1_gothikAI::MoveInLineOfSight(), npc_fezzix_geartwist::npc_fezzix_geartwistAI::MoveInLineOfSight(), boss_selin_fireheart::boss_selin_fireheartAI::MovementInform(), boss_palehoof::boss_palehoofAI::NextPhase(), npc_overlord_morghor::npc_overlord_morghorAI::NextStep(), spell_yogg_saron_hodirs_protective_gaze::spell_yogg_saron_hodirs_protective_gaze_AuraScript::OnAbsorb(), spell_gen_turkey_marker::spell_gen_turkey_marker_AuraScript::OnApply(), spell_halion_combustion_consumption::spell_halion_combustion_consumption_AuraScript::OnApply(), spell_hun_ready_set_aim::spell_hun_ready_set_aim_AuraScript::OnApply(), spell_load_into_catapult::spell_load_into_catapult_AuraScript::OnApply(), spell_love_is_in_the_air_romantic_picnic::spell_love_is_in_the_air_romantic_picnic_AuraScript::OnApply(), spell_monk_crackling_jade_lightning::spell_monk_crackling_jade_lightning_AuraScript::OnApply(), spell_monk_soothing_mist::spell_monk_soothing_mist_AuraScript::OnApply(), spell_yogg_saron_constrictor_tentacle::spell_yogg_saron_constrictor_tentacle_AuraScript::OnApply(), spell_yogg_saron_insane::spell_yogg_saron_insane_AuraScript::OnApply(), spell_blood_queen_vampiric_bite::spell_blood_queen_vampiric_bite_SpellScript::OnCast(), BattlefieldWG::OnCreatureCreate(), spell_warl_soul_swap_exhale::spell_warl_soul_swap_exhale_SpellScript::OnEffectHit(), go_gauntlet_gate::OnGossipHello(), go_scourge_enclosure::OnGossipHello(), npc_marshal_dughan::OnGossipSelect(), Player::OnGossipSelect(), lfg::LFGPlayerScript::OnMapChanged(), spell_love_is_in_the_air_romantic_picnic::spell_love_is_in_the_air_romantic_picnic_AuraScript::OnPeriodic(), spell_mark_of_kazrogal::spell_mark_of_kazrogal_AuraScript::OnPeriodic(), spell_mark_of_kazzak::spell_mark_of_kazzak_AuraScript::OnPeriodic(), spell_the_lich_king_soul_reaper::spell_the_lich_king_soul_reaper_AuraScript::OnPeriodic(), spell_the_lich_king_vile_spirits::spell_the_lich_king_vile_spirits_AuraScript::OnPeriodic(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), BattlefieldWG::OnPlayerJoinWar(), spell_dk_scent_of_blood::spell_dk_scent_of_blood_AuraScript::OnProc(), spell_gen_obsidian_armor::spell_gen_obsidian_armor_AuraScript::OnProc(), spell_pri_item_greater_heal_refund::spell_pri_item_greater_heal_refund_AuraScript::OnProc(), spell_rog_crippling_poison::spell_rog_crippling_poison_AuraScript::OnProc(), spell_sha_item_lightning_shield::spell_sha_item_lightning_shield_AuraScript::OnProc(), spell_sha_item_lightning_shield_trigger::spell_sha_item_lightning_shield_trigger_AuraScript::OnProc(), spell_warl_shadow_trance_proc::spell_warl_shadow_trance_proc_AuraScript::OnProc(), spell_ignis_slag_pot::spell_ignis_slag_pot_AuraScript::OnRemove(), spell_mage_ring_of_frost_freeze::spell_mage_ring_of_frost_freeze_AuraScript::OnRemove(), spell_putricide_mutated_plague::spell_putricide_mutated_plague_AuraScript::OnRemove(), spell_putricide_mutation_init::spell_putricide_mutation_init_AuraScript::OnRemove(), spell_taldaram_flame_ball_visual::spell_flame_ball_visual_AuraScript::OnRemove(), spell_the_lich_king_harvest_soul::spell_the_lich_king_harvest_soul_AuraScript::OnRemove(), spell_the_lich_king_in_frostmourne_room::spell_the_lich_king_in_frostmourne_room_AuraScript::OnRemove(), spell_the_lich_king_shadow_trap_visual::spell_the_lich_king_shadow_trap_visual_AuraScript::OnRemove(), spell_ulduar_stone_grip_absorb::spell_ulduar_stone_grip_absorb_AuraScript::OnRemove(), spell_yogg_saron_malady_of_the_mind::spell_yogg_saron_malady_of_the_mind_AuraScript::OnRemove(), spell_yogg_saron_nondescript::spell_yogg_saron_nondescript_AuraScript::OnRemove(), lfg::LFGGroupScript::OnRemoveMember(), npc_firework_launcher::npc_firework_launcherAI::OnSpellClick(), spell_exploding_orb_hasty_grow::spell_exploding_orb_hasty_grow_AuraScript::OnStackChange(), spell_item_shadowmourne_soul_fragment::spell_item_shadowmourne_soul_fragment_AuraScript::OnStackChange(), spell_dreamwalker_summon_suppresser::spell_dreamwalker_summon_suppresser_AuraScript::PeriodicTick(), spell_random_ingredient_aura::spell_random_ingredient_aura_AuraScript::PeriodicTick(), spell_halion_twilight_phasing::spell_halion_twilight_phasing_SpellScript::Phase(), BattlegroundAV::PopulateNode(), spell_gen_break_shield::spell_gen_break_shield_SpellScript::PrepareSpellScript(), spell_ulduar_proximity_mines::spell_ulduar_proximity_minesSpellScript::PrepareSpellScript(), ProcDamageAndSpellFor(), SmartScript::ProcessAction(), ProcessCastaction(), Player::ProcessDelayedOperations(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::ProcessEvent(), ProcessUnlearnAction(), BattlefieldWG::PromotePlayer(), spell_gen_defend::spell_gen_defend_AuraScript::RefreshVisualShields(), Player::ReportedAfkBy(), npc_pulsing_pumpkin::npc_pulsing_pumpkinAI::Reset(), Player::ResurectUsingRequestData(), BfGraveyard::Resurrect(), Resurrect(), Player::ResurrectPlayer(), Player::RewardQuest(), Map::ScriptsProcess(), boss_selin_fireheart::boss_selin_fireheartAI::SelectNearestCrystal(), npc_sayge::SendAction(), go_skull_pile::SendActionMenu(), npc_prof_blacksmith::SendActionMenu(), Player::SendInitialPacketsAfterAddToMap(), spell_monk_mana_tea_stacks::spell_monk_mana_tea_stacks_AuraScript::SetData(), spell_monk_tigereye_brew_stacks::spell_monk_tigereye_brew_stacks_AuraScript::SetData(), Player::SetQuestStatus(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_vics_flying_machine::npc_vics_flying_machineAI::SpellHit(), boss_volazj::boss_volazjAI::SpellHitTarget(), boss_hydross_the_unstable::boss_hydross_the_unstableAI::SummonBeams(), npc_frostworn_general::npc_frostworn_generalAI::SummonClones(), go_wind_stone::SummonNPC(), SummonOokOokIfReady(), boss_mother_shahraz::boss_shahrazAI::TeleportPlayers(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::TeleportPlayersToSelf(), npc_orb_carrier::npc_orb_carrierAI::TriggerCutter(), spell_flame_warder_meteor_fists::spell_flame_warder_meteor_fists_AuraScript::TriggerFists(), spell_koralon_meteor_fists::spell_koralon_meteor_fists_AuraScript::TriggerFists(), spell_gen_darkflight::spell_gen_darkflight_SpellScript::TriggerTransform(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::Update(), instance_violet_hold::instance_violet_hold_InstanceMapScript::Update(), boss_alar::boss_alarAI::UpdateAI(), boss_blood_council_controller::boss_blood_council_controllerAI::UpdateAI(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI(), boss_curator::boss_curatorAI::UpdateAI(), boss_emalon::boss_emalonAI::UpdateAI(), boss_entropius::boss_entropiusAI::UpdateAI(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), boss_morogrim_tidewalker::boss_morogrim_tidewalkerAI::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_temple_guardian_anhuur::boss_temple_guardian_anhuurAI::UpdateAI(), boss_the_lich_king::boss_the_lich_kingAI::UpdateAI(), boss_vaelastrasz::boss_vaelAI::UpdateAI(), npc_egg_pile::npc_egg_pileAI::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), npc_head::npc_headAI::UpdateAI(), npc_image_of_medivh::npc_image_of_medivhAI::UpdateAI(), npc_slad_ran_constrictor::npc_slad_ran_constrictorAI::UpdateAI(), npc_thassarian::npc_thassarianAI::UpdateAI(), Player::UpdateAreaDependentAuras(), Player::UpdateUnderwaterState(), UpdateUnderwaterState(), Player::UpdateZoneDependentAuras(), GameObject::Use(), Player::VehicleSpellInitialize(), and instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::VortexHandling().
| void Unit::CastSpell | ( | Unit * | victim, |
| SpellInfo const * | spellInfo, | ||
| bool | triggered, | ||
| Item * | castItem = NULL, | ||
| AuraEffect const * | triggeredByAura = NULL, | ||
| uint64 | originalCaster = 0 ) |
Definition at line 363 of file UnitCombat.cpp.
References CastSpell(), TRIGGERED_FULL_MASK, TRIGGERED_NONE, and Unit().
| void Unit::CastSpell | ( | Unit * | victim, |
| SpellInfo const * | spellInfo, | ||
| TriggerCastFlags | triggerFlags = TRIGGERED_NONE, | ||
| Item * | castItem = NULL, | ||
| AuraEffect const * | triggeredByAura = NULL, | ||
| uint64 | originalCaster = 0 ) |
Definition at line 368 of file UnitCombat.cpp.
References CastSpell(), SpellCastTargets::SetUnitTarget(), and Unit().
| void Unit::CastSpell | ( | Unit * | victim, |
| uint32 | spellId, | ||
| bool | triggered, | ||
| Item * | castItem = NULL, | ||
| AuraEffect const * | triggeredByAura = NULL, | ||
| uint64 | originalCaster = 0 ) |
Definition at line 346 of file UnitCombat.cpp.
References CastSpell(), TRIGGERED_FULL_MASK, TRIGGERED_NONE, and Unit().
| void Unit::CastSpell | ( | Unit * | victim, |
| uint32 | spellId, | ||
| TriggerCastFlags | triggerFlags = TRIGGERED_NONE, | ||
| Item * | castItem = NULL, | ||
| AuraEffect const * | triggeredByAura = NULL, | ||
| uint64 | originalCaster = 0 ) |
Definition at line 351 of file UnitCombat.cpp.
References CastSpell(), Object::GetEntry(), Object::GetGUIDLow(), Object::GetTypeId(), SF_LOG_ERROR, sSpellMgr, TYPEID_PLAYER, and Unit().
| void Unit::CastStop | ( | uint32 | except_spellid = 0 | ) |
Definition at line 317 of file UnitCombat.cpp.
References CURRENT_FIRST_NON_MELEE_SPELL, CURRENT_MAX_SPELL, InterruptSpell(), and m_currentSpells.
Referenced by npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), RemoveCharmedBy(), SetCharmedBy(), SetControlled(), SetStunned(), and LuaUnit::StopSpellCast().
| void Unit::ChangeSeat | ( | int8 | seatId, |
| bool | next = true ) |
Definition at line 8274 of file Unit.cpp.
References ASSERT, AuraEffect::ChangeAmount(), Object::GetGUID(), WorldObject::GetTransSeat(), m_vehicle, and SPELL_AURA_CONTROL_VEHICLE.
Referenced by boss_xt002::boss_xt002_AI::ExposeHeart(), WorldSession::HandleChangeSeatsOnControlledVehicle(), and boss_xt002::boss_xt002_AI::SetPhaseOne().
| void Unit::CleanupBeforeRemoveFromMap | ( | bool | finalCleanup | ) |
Definition at line 5453 of file Unit.cpp.
References ASSERT, MotionMaster::Clear(), ClearComboPointHolders(), CombatStop(), DeleteThreatList(), Object::GetGUID(), getHostileRefManager(), GetMotionMaster(), InterruptNonMeleeSpells(), Object::IsInWorld(), m_cleanupDone, m_Events, RemoveAllAuras(), RemoveAllGameObjects(), RemoveFromWorld(), and HostileRefManager::setOnlineOfflineState().
Referenced by CleanupsBeforeDelete(), and Creature::FarTeleportTo().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 5479 of file Unit.cpp.
References CleanupBeforeRemoveFromMap(), WorldObject::GetTransport(), WorldObject::m_movementInfo, Transport::RemovePassenger(), and WorldObject::SetTransport().
Referenced by Player::CleanupsBeforeDelete(), and Map::RemoveAllObjectsInRemoveList().
| void Unit::ClearAllReactives | ( | ) |
Definition at line 5994 of file Unit.cpp.
References AURA_STATE_DEFENSE, AURA_STATE_HUNTER_PARRY, CLASS_HUNTER, CLASS_WARRIOR, Player::ClearComboPoints(), getClass(), Object::GetTypeId(), HasAuraState(), m_reactiveTimer, MAX_REACTIVE, ModifyAuraState(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Player::ActivateSpec(), and setDeathState().
| void Unit::ClearComboPointHolders | ( | ) |
Definition at line 5980 of file Unit.cpp.
References Player::ClearComboPoints(), ObjectAccessor::FindPlayer(), Player::GetComboTarget(), Object::GetGUID(), HIGHGUID_PLAYER, m_ComboPointHolders, and MAKE_NEW_GUID().
Referenced by Player::ActivateSpec(), CleanupBeforeRemoveFromMap(), and setDeathState().
|
inline |
| void Unit::ClearInCombat | ( | ) |
Definition at line 385 of file UnitCombatState.cpp.
References ClearUnitState(), GetOwner(), GetSpeedRate(), Object::HasFlag(), IsCharmed(), m_CombatTimer, MAX_MOVE_TYPE, OBJECT_FIELD_DYNAMIC_FLAGS, Object::RemoveFlag(), Object::SetFlag(), SetSpeed(), Object::SetUInt32Value(), Object::ToCreature(), Object::ToPlayer(), Unit(), UNIT_DYNFLAG_TAPPED, UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC, UNIT_FLAG_IN_COMBAT, UNIT_FLAG_PET_IN_COMBAT, UNIT_STATE_ATTACK_PLAYER, and Player::UpdatePotionCooldown().
Referenced by LuaUnit::ClearInCombat(), CombatStop(), Player::LoadFromDB(), and Update().
| void Unit::ClearPhases | ( | bool | update = false | ) |
Definition at line 7511 of file Unit.cpp.
References WorldObject::ClearPhases().
Referenced by npc_commandscript::HandleNpcSetPhaseCommand(), and npc_commandscript::HandleNpcSetPhaseGroup().
|
inline |
Definition at line 1489 of file Unit.h.
References m_state.
Referenced by HomeMovementGenerator< Creature >::_setTargetLocation(), Attack(), AttackStop(), ClearInCombat(), LuaUnit::ClearUnitState(), LuaUnit::DisableMelee(), ConfusedMovementGenerator< T >::DoFinalize(), ConfusedMovementGenerator< T >::DoFinalize(), FleeingMovementGenerator< Creature >::DoFinalize(), FleeingMovementGenerator< Creature >::DoFinalize(), FlightPathMovementGenerator::DoFinalize(), HomeMovementGenerator< Creature >::DoFinalize(), RandomMovementGenerator< T >::DoFinalize(), WaypointMovementGenerator< Creature >::DoFinalize(), RandomMovementGenerator< T >::DoUpdate(), WaypointMovementGenerator< Creature >::DoUpdate(), Spell::EffectSummonDeadPet(), AssistanceDistractMovementGenerator::Finalize(), DistractMovementGenerator::Finalize(), RotateMovementGenerator::Finalize(), TimedFleeingMovementGenerator::Finalize(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleFeignDeath(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), npc_counselor_talbot::npc_counselor_talbotAI::JustDied(), WaypointMovementGenerator< Creature >::OnArrived(), Creature::ReleaseFocus(), RemoveCharmedBy(), Player::ResetContestedPvP(), SetControlled(), Creature::setDeathState(), SetInCombatState(), spell_putricide_ooze_channel::spell_putricide_ooze_channel_SpellScript::StartAttack(), StopMoving(), instance_magtheridons_lair::instance_magtheridons_lair_InstanceMapScript::Update(), TimedFleeingMovementGenerator::Update(), and spell_alysrazor_aggro_closest::spell_alysrazor_aggro_closest_SpellScript::UpdateThreat().
| void Unit::CombatStart | ( | Unit * | target, |
| bool | initialAggro = true ) |
Definition at line 290 of file UnitCombatState.cpp.
References Creature::AI(), CreatureAI::AttackedBy(), UnitAI::AttackStart(), AURA_INTERRUPT_FLAG_ENTER_PVP_COMBAT, Player::duel, GetCharmerOrOwnerOrSelf(), GetCharmerOrOwnerPlayerOrPlayerItself(), Object::GetTypeId(), Creature::HasReactState(), IsAIEnabled, IsInCombat(), IsPet(), IsPvP(), IsStandState(), DuelInfo::opponent, REACT_PASSIVE, RemoveAurasWithInterruptFlags(), SetContestedPvP(), SetInCombatWith(), SetStandState(), Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, Unit(), UNIT_STAND_STATE_STAND, and Player::UpdatePvP().
Referenced by AttackerStateUpdate(), AssistDelayEvent::Execute(), spell_dk_gorefiends_grasp::spell_dk_gorefiends_grasp_SpellScript::HandleOnHit(), and go_wind_stone::SummonNPC().
| void Unit::CombatStop | ( | bool | includingCast = false | ) |
Definition at line 217 of file UnitCombatState.cpp.
References AttackStop(), ClearInCombat(), Object::GetTypeId(), InterruptNonMeleeSpells(), IsNonMeleeSpellCasted(), RemoveAllAttackers(), Player::SendAttackSwingCancelAttack(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Player::ActivateTaxiPathTo(), CleanupBeforeRemoveFromMap(), CombatStopWithPets(), Map::CreatureRespawnRelocation(), Battleground::EndBattleground(), Aura::HandleAuraSpecificMods(), misc_commandscript::HandleCombatStopCommand(), AuraEffect::HandleFeignDeath(), misc_commandscript::HandleFreezeCommand(), AuraEffect::HandleModUnattackable(), npc_commandscript::HandleNpcDeleteCommand(), wp_commandscript::HandleWpShowCommand(), Battlefield::HideNpc(), boss_freya::boss_freyaAI::JustDied(), RemoveCharmedBy(), Player::RemovePet(), ResetCryForTheMoonActor(), SetCharmedBy(), setDeathState(), LuaUnit::SetSanctuary(), Player::TeleportTo(), and Totem::UnSummon().
| void Unit::CombatStopWithPets | ( | bool | includingCast = false | ) |
Definition at line 229 of file UnitCombatState.cpp.
References CombatStop(), and m_Controlled.
Referenced by DealDamage(), Battleground::EndBattleground(), WorldSession::HandleDuelResponseOpcode(), Player::SetGameMaster(), LuaUnit::SetSanctuary(), and Player::UpdateArea().
Definition at line 1637 of file Unit.h.
References CalculatePct(), and GetHealth().
Referenced by LuaUnit::CountPctFromCurHealth().
Definition at line 1633 of file Unit.h.
References CalculatePct(), and GetMaxHealth().
Referenced by spell_monk_dampen_harm::spell_monk_dampen_harm_AuraScript::Absorb(), spell_rog_cheat_death::spell_rog_cheat_death_AuraScript::Absorb(), spell_dru_survival_instincts::spell_dru_survival_instincts_AuraScript::AfterApply(), spell_dk_anti_magic_shell_self::spell_dk_anti_magic_shell_self_AuraScript::CalculateAmount(), spell_dk_vampiric_blood::spell_dk_vampiric_blood_AuraScript::CalculateAmount(), spell_dru_might_of_ursoc::spell_dru_might_of_ursoc_AuraScript::CalculateAmount(), LuaUnit::CountPctFromMaxHealth(), Spell::EffectHeal(), Spell::EffectResurrect(), Spell::EffectResurrectWithAura(), Spell::EffectSummonDeadPet(), AuraEffect::HandleAuraModIncreaseHealthPercent(), spell_hun_last_stand_pet::spell_hun_last_stand_pet_SpellScript::HandleDummy(), spell_warl_life_tap::spell_warl_life_tap_SpellScript::HandleDummy(), spell_warr_last_stand::spell_warr_last_stand_SpellScript::HandleDummy(), HandleDummyAuraProc(), spell_q28813_set_health_random::spell_q28813_set_health_random_SpellScript::HandleDummyEffect(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicDummyAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), HealthAbovePct(), HealthAbovePctHealed(), HealthBelowPct(), HealthBelowPctDamaged(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), and spell_sha_nature_guardian::spell_sha_nature_guardian_AuraScript::OnProc().
Definition at line 1667 of file Unit.h.
References CalculatePct(), and GetMaxPower().
Definition at line 6255 of file Unit.cpp.
References Pet::CreateBaseAtCreature(), getLevel(), Object::GetTypeId(), HUNTER_PET, InitTamedPet(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by npc_commandscript::HandleNpcTameCommand().
Definition at line 6275 of file Unit.cpp.
References Pet::CreateBaseAtCreatureInfo(), getLevel(), Object::GetTypeId(), HUNTER_PET, InitTamedPet(), sObjectMgr, Object::ToPlayer(), and TYPEID_PLAYER.
Definition at line 7163 of file Unit.cpp.
References m_unitTypeMask, Object::m_updateFlag, m_vehicleKit, SendSetVehicleRecId(), sVehicleStore, UNIT_MASK_VEHICLE, and UPDATEFLAG_VEHICLE.
Referenced by Creature::CreateFromProto(), AuraEffect::HandleAuraSetVehicle(), and Mount().
| uint32 Unit::DealDamage | ( | Unit * | victim, |
| uint32 | damage, | ||
| CleanDamage const * | cleanDamage = NULL, | ||
| DamageEffectType | damagetype = DIRECT_DAMAGE, | ||
| SpellSchoolMask | damageSchoolMask = SPELL_SCHOOL_MASK_NORMAL, | ||
| SpellInfo const * | spellProto = NULL, | ||
| bool | durabilityLoss = true ) |
Definition at line 63 of file UnitCombat.cpp.
References CleanDamage::absorbed_damage, ACHIEVEMENT_CRITERIA_TYPE_DAMAGE_DONE, ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HIT_DEALT, ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HIT_RECEIVED, ACHIEVEMENT_CRITERIA_TYPE_TOTAL_DAMAGE_RECEIVED, AddThreat(), Creature::AI(), ASSERT, CreatureAI::AttackedBy(), CleanDamage::attackType, SpellInfo::AttributesEx4, AURA_INTERRUPT_FLAG_DIRECT_DAMAGE, AURA_INTERRUPT_FLAG_TAKE_DAMAGE, BASE_ATTACK, CalculatePct(), CastSpell(), CHANNEL_FLAG_DELAY, CHEAT_GOD, CombatStopWithPets(), CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, UnitAI::DamageDealt(), UnitAI::DamageTaken(), DealDamage(), DealDamageMods(), DIRECT_DAMAGE, DOT, Player::duel, DUEL_WON, Player::DuelComplete(), Player::DurabilityPointLossForEquipSlot(), EQUIPMENT_SLOT_END, GetAI(), GetAttackTime(), GetAuraEffectsByType(), Player::GetBattleground(), GetCharmer(), GetCharmerGUID(), Player::GetCommandStatus(), Object::GetGUID(), GetHealth(), GetOwnerGUID(), Player::GetPet(), getPowerType(), SpellInfo::GetSchoolMask(), Object::GetTypeId(), Creature::hasLootRecipient(), SpellInfo::Id, InterruptNonMeleeSpells(), IsAIEnabled, IsAlive(), IsControlledByPlayer(), DuelInfo::isMounted, IsPet(), IsVehicle(), Kill(), Creature::LowerPlayerDamageReq(), m_currentSpells, ModifyHealth(), NODAMAGE, OFF_ATTACK, DuelInfo::opponent, CreatureAI::OwnerAttackedBy(), POWER_RAGE, RATE_DURABILITY_LOSS_DAMAGE, RemoveAurasWithInterruptFlags(), RewardRage(), roll_chance_f(), SCORE_DAMAGE_DONE, SetHealth(), SetLastDamagedTime(), Creature::SetLootRecipient(), SF_LOG_DEBUG, SPELL_ATTR4_DAMAGE_DOESNT_BREAK_AURAS, SPELL_AURA_SHARE_DAMAGE_PCT, SPELL_DIRECT_DAMAGE, SPELL_INTERRUPT_FLAG_ABORT_ON_DMG, SPELL_INTERRUPT_FLAG_PUSH_BACK, SPELL_STATE_CASTING, SPELL_STATE_PREPARING, sScriptMgr, sWorld, Object::ToCreature(), ToPet(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, UI64FMTD, Unit(), and Player::UpdateAchievementCriteria().
Referenced by CalcAbsorbResist(), LuaUnit::DealDamage(), DealDamage(), DealMeleeDamage(), DealSpellDamage(), Player::EnvironmentalDamage(), misc_commandscript::HandleDamageCommand(), misc_commandscript::HandleDieCommand(), HandleDummyAuraProc(), spell_egg_explosion::spell_egg_explosion_SpellScript::HandleDummyHitTarget(), spell_ex_66244::spell_ex_66244AuraScript::HandleEffectPeriodic(), spell_algalon_collapse::spell_algalon_collapse_AuraScript::HandlePeriodic(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicDummyAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::Reset(), npc_illidari_council::npc_illidari_councilAI::UpdateAI(), and Player::UpdateCharmedAI().
Definition at line 53 of file UnitCombat.cpp.
References Object::GetTypeId(), HasUnitState(), IsAlive(), Creature::IsInEvadeMode(), Object::ToCreature(), TYPEID_UNIT, Unit(), and UNIT_STATE_IN_FLIGHT.
Referenced by AttackerStateUpdate(), CalcAbsorbResist(), DealDamage(), DealMeleeDamage(), Spell::DoAllEffectOnTarget(), Player::EnvironmentalDamage(), misc_commandscript::HandleDamageCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), AuraEffect::HandleProcTriggerDamageAuraProc(), and SpellNonMeleeDamageLog().
Definition at line 2687 of file Unit.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_HEALING_DONE, ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HEAL_CASTED, ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HEALING_RECEIVED, ACHIEVEMENT_CRITERIA_TYPE_TOTAL_HEALING_RECEIVED, GetAI(), GetOwner(), Object::GetTypeId(), UnitAI::HealDone(), UnitAI::HealReceived(), IsAIEnabled, IsTotem(), ModifyHealth(), SCORE_HEALING_DONE, sScriptMgr, Object::ToCreature(), Object::ToPlayer(), TYPEID_UNIT, and Unit().
Referenced by AuraEffect::HandlePeriodicHealAurasTick(), and HealBySpell().
| void Unit::DealMeleeDamage | ( | CalcDamageInfo * | damageInfo, |
| bool | durabilityLoss ) |
Definition at line 777 of file UnitCombat.cpp.
References CalcDamageInfo::absorb, CalcDamageInfo::attackType, BASE_ATTACK, CalcDamageInfo::blocked_amount, Player::CastItemCombatSpell(), CastSpell(), CalcDamageInfo::cleanDamage, CalcDamageInfo::damage, CalcDamageInfo::damageSchoolMask, DealDamage(), DealDamageMods(), DIRECT_DAMAGE, EMOTE_ONESHOT_PARRY_SHIELD, EMOTE_ONESHOT_WOUND_CRITICAL, ByteBuffer::FlushBits(), GetAttackTime(), getAttackTimer(), GetAuraEffectsByType(), Object::GetGUID(), GetHealth(), getLevel(), GetMaxSkillValueForLevel(), SpellInfo::GetSchoolMask(), Object::GetTypeId(), HandleEmoteCommand(), Position::HasInArc(), HasUnitState(), haveOffhandWeapon(), CalcDamageInfo::HitInfo, HITINFO_CRITICALHIT, CalcDamageInfo::hitOutCome, SpellInfo::Id, IsAlive(), IsControlledByPlayer(), IsImmunedToDamage(), Creature::IsInEvadeMode(), IsVehicle(), Creature::isWorldBoss(), M_PI, MELEE_HIT_CRIT, MELEE_HIT_CRUSHING, MELEE_HIT_GLANCING, MELEE_HIT_NORMAL, OFF_ATTACK, CalcDamageInfo::procEx, CalcDamageInfo::procVictim, roll_chance_f(), SpellInfo::SchoolMask, WorldObject::SendMessageToSet(), SendSpellDamageImmune(), SendSpellMiss(), setAttackTimer(), SMSG_SPELLDAMAGESHIELD, SPELL_AURA_DAMAGE_SHIELD, SPELL_DIRECT_DAMAGE, SpellDamageBonusTaken(), SpellHitResult(), CalcDamageInfo::target, CalcDamageInfo::TargetState, Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, Unit(), UNIT_STATE_IN_FLIGHT, VICTIMSTATE_BLOCK, VICTIMSTATE_PARRY, ByteBuffer::WriteBit(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by AttackerStateUpdate().
| void Unit::DealSpellDamage | ( | SpellNonMeleeDamage * | damageInfo, |
| bool | durabilityLoss ) |
Definition at line 559 of file UnitCombat.cpp.
References SpellNonMeleeDamage::absorb, BASE_ATTACK, SpellNonMeleeDamage::cleanDamage, SpellNonMeleeDamage::damage, DealDamage(), Object::GetTypeId(), HasUnitState(), IsAlive(), Creature::IsInEvadeMode(), MELEE_HIT_NORMAL, SpellNonMeleeDamage::schoolMask, SF_LOG_DEBUG, SPELL_DIRECT_DAMAGE, SpellNonMeleeDamage::SpellID, sSpellMgr, SpellNonMeleeDamage::target, Object::ToCreature(), TYPEID_UNIT, Unit(), and UNIT_STATE_IN_FLIGHT.
Referenced by Spell::DoAllEffectOnTarget(), spell_sindragosa_s_fury::spell_sindragosa_s_fury_SpellScript::HandleDummy(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), AuraEffect::HandleProcTriggerDamageAuraProc(), and SpellNonMeleeDamageLog().
Definition at line 977 of file UnitAuraState.cpp.
References Aura::GetCasterGUID(), Aura::GetDuration(), Object::GetGUIDLow(), Aura::GetId(), m_ownedAuras, Aura::SetDuration(), Aura::SetNeedClientUpdateForTargets(), and SF_LOG_DEBUG.
| void Unit::DeleteCharmInfo | ( | ) |
| void Unit::DeleteThreatList | ( | ) |
Definition at line 4472 of file Unit.cpp.
References CanHaveThreatList(), Object::GetObjectGUID(), m_ThreatManager, and SendClearThreatListOpcode().
Referenced by CleanupBeforeRemoveFromMap(), boss_freya::boss_freyaAI::JustDied(), Kill(), RemoveCharmedBy(), SetCharmedBy(), setDeathState(), spell_putricide_ooze_channel::spell_putricide_ooze_channel_SpellScript::StartAttack(), and boss_reliquary_of_souls::boss_reliquary_of_soulsAI::UpdateAI().
| void Unit::DeMorph | ( | ) |
Definition at line 1536 of file Unit.cpp.
References GetNativeDisplayId(), and SetDisplayId().
Referenced by LuaUnit::DeMorph(), and modify_commandscript::HandleDeMorphCommand().
|
protected |
Definition at line 430 of file Unit.cpp.
References WorldObject::m_movementInfo, MOVEMENTFLAG_FORWARD, and movespline.
Referenced by NearTeleportTo(), setDeathState(), Player::TeleportTo(), and UpdateSplineMovement().
| void Unit::Dismount | ( | ) |
Definition at line 3685 of file Unit.cpp.
References AURA_INTERRUPT_FLAG_NOT_MOUNTED, Object::GetGUID(), Object::GetTypeId(), GetVehicleKit(), IsMounted(), RemoveAurasWithInterruptFlags(), Object::RemoveFlag(), RemoveVehicleKit(), WorldObject::SendMessageToSet(), Object::SetUInt32Value(), SMSG_DISMOUNT, Object::ToPlayer(), TYPEID_PLAYER, UNIT_FIELD_FLAGS, UNIT_FIELD_MOUNT_DISPLAY_ID, UNIT_FLAG_MOUNT, UNIT_FLAG_STUNNED, UNIT_STATE_STUNNED, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by Player::CleanupAfterTaxiFlight(), LuaUnit::Dismount(), FlightPathMovementGenerator::DoFinalize(), AuraEffect::HandleAuraMounted(), misc_commandscript::HandleDismountCommand(), npc_marshal_dughan::OnGossipSelect(), and SetInCombatState().
Definition at line 3045 of file Unit.cpp.
References getHostileRefManager(), ModifyPower(), SendEnergizeSpellLog(), sSpellMgr, HostileRefManager::threatAssist(), and Unit().
Referenced by AuraEffect::HandlePeriodicTriggerSpellAuraTick().
Definition at line 8234 of file Unit.cpp.
References CastCustomSpell(), SPELLVALUE_BASE_POINT0, TRIGGERED_IGNORE_CASTER_MOUNTED_OR_ON_VEHICLE, Unit(), and VEHICLE_SPELL_RIDE_HARDCODED.
Referenced by debug_commandscript::HandleDebugEnterVehicleCommand(), spell_vehicle_throw_passenger::spell_vehicle_throw_passenger_SpellScript::HandleScript(), spell_putricide_mutated_transformation::spell_putricide_mutated_transformation_SpellScript::HandleSummon(), and npc_hot_air_balloon::npc_hot_air_balloonAI::OnSpellClick().
| void Unit::ExitVehicle | ( | Position const * | exitPosition = NULL | ) |
This function can be called at upper level code to initialize an exit from the passenger's side.
The following call would not even be executed successfully as the SPELL_AURA_CONTROL_VEHICLE unapply handler already calls _ExitVehicle without specifying an exitposition. The subsequent call below would return on if (!m_vehicle).
To do: We need to allow SPELL_AURA_CONTROL_VEHICLE unapply handlers in spellscripts to specify exit coordinates and either store those per passenger, or we need to init spline movement based on those coordinates in unapply handlers, and relocate exiting passengers based on Unit::moveSpline data. Either way, Coming Soon(TM)
Definition at line 8306 of file Unit.cpp.
References Object::GetGUID(), GetVehicleBase(), m_vehicle, RemoveAurasByType(), and SPELL_AURA_CONTROL_VEHICLE.
Referenced by _EnterVehicle(), Player::ActivateSpec(), Player::ActivateTaxiPathTo(), Vehicle::AddPassenger(), WorldSession::HandleEjectPassenger(), spell_ulduar_squeezed_lifeless::spell_ulduar_squeezed_lifeless_SpellScript::HandleInstaKill(), WorldSession::HandleRequestVehicleExit(), RemoveFromWorld(), setDeathState(), npc_vics_flying_machine::npc_vics_flying_machineAI::SpellHit(), Player::StopCastingCharm(), Player::TeleportTo(), and npc_freed_protodrake::npc_freed_protodrakeAI::UpdateAI().
Definition at line 1448 of file Unit.cpp.
References CURRENT_MAX_SPELL, and m_currentSpells.
Referenced by Player::CastItemCombatSpell(), GetCurrentSpellCastTime(), WorldSession::HandleUpdateProjectilePosition(), isSpellCrit(), and Aura::UpdateOwner().
| void Unit::FinishSpell | ( | CurrentSpellTypes | spellType, |
| bool | ok = true ) |
Definition at line 1390 of file Unit.cpp.
References CURRENT_CHANNELED_SPELL, Spell::finish(), m_currentSpells, and Spell::SendChannelUpdate().
Referenced by AuraEffect::HandleFeignDeath(), and GameObject::Use().
| Player * Unit::GetAffectingPlayer | ( | ) | const |
Definition at line 2364 of file Unit.cpp.
References GetCharmerOrOwner(), GetCharmerOrOwnerGUID(), GetCharmerOrOwnerPlayerOrPlayerItself(), Object::ToPlayer(), and Unit().
Referenced by _IsValidAssistTarget(), _IsValidAttackTarget(), GetFactionReactionTo(), and GetReactionTo().
|
inline |
Definition at line 1393 of file Unit.h.
References i_AI.
Referenced by spell_marrowgar_bone_spike_graveyard::spell_marrowgar_bone_spike_graveyard_SpellScript::CheckCast(), spell_algalon_big_bang::spell_algalon_big_bang_SpellScript::CheckTargets(), spell_marrowgar_bone_slice::spell_marrowgar_bone_slice_SpellScript::ClearSpikeImmunities(), DealDamage(), DealHeal(), spell_yogg_saron_brain_link::spell_yogg_saron_brain_link_AuraScript::DummyTick(), spell_blood_queen_bloodbolt::spell_blood_queen_bloodbolt_SpellScript::FilterTargets(), spell_intense_cold::spell_intense_cold_AuraScript::HandlePeriodicTick(), spell_frostwarden_handler_focus_fire::spell_frostwarden_handler_focus_fire_SpellScript::HandleScript(), spell_xt002_gravity_bomb_damage::spell_xt002_gravity_bomb_damage_SpellScript::HandleScript(), spell_the_lich_king_quake::spell_the_lich_king_quake_SpellScript::HandleSendEvent(), boss_freya::boss_freyaAI::JustDied(), spell_tyrannus_overlord_brand::spell_tyrannus_overlord_brand_AuraScript::OnApply(), spell_xt002_gravity_bomb_aura::spell_xt002_gravity_bomb_aura_AuraScript::OnPeriodic(), spell_tyrannus_overlord_brand::spell_tyrannus_overlord_brand_AuraScript::OnRemove(), spell_yogg_saron_brain_link::spell_yogg_saron_brain_link_AuraScript::OnRemove(), ActiveConstellationFilter::operator()(), Creature::ProhibitSpellSchool(), spell_marrowgar_coldflame::spell_marrowgar_coldflame_SpellScript::SelectTarget(), spell_the_lich_king_valkyr_target_search::spell_the_lich_king_valkyr_target_search_SpellScript::SelectTarget(), spell_marrowgar_bone_slice::spell_marrowgar_bone_slice_SpellScript::SplitDamage(), and spell_alysrazor_aggro_closest::spell_alysrazor_aggro_closest_SpellScript::UpdateThreat().
Definition at line 2592 of file Unit.cpp.
References Object::GetEntry(), Object::GetTypeId(), IsSummon(), m_Controlled, Object::ToCreature(), TYPEID_UNIT, and Unit().
Referenced by spell_mage_ring_of_frost::spell_mage_ring_of_frost_AuraScript::Apply(), spell_item_gift_of_the_harvester::spell_item_gift_of_the_harvester_SpellScript::CheckRequirement(), and npc_scarlet_ghoul::npc_scarlet_ghoulAI::FindMinions().
| float Unit::GetAPMultiplier | ( | WeaponAttackType | attType, |
| bool | normalized ) |
Definition at line 794 of file UnitCombatBonus.cpp.
References GetAttackTime(), Item::GetTemplate(), Object::GetTypeId(), Player::GetWeaponForAttack(), ItemTemplate::InventoryType, INVTYPE_2HWEAPON, INVTYPE_RANGED, INVTYPE_RANGEDRIGHT, INVTYPE_THROWN, INVTYPE_WEAPON, INVTYPE_WEAPONMAINHAND, INVTYPE_WEAPONOFFHAND, ITEM_SUBCLASS_WEAPON_DAGGER, ItemTemplate::SubClass, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Player::CalculateMinMaxDamage(), MeleeDamageBonusDone(), and Creature::UpdateDamagePhysical().
|
inline |
Definition at line 2204 of file Unit.h.
References m_appliedAuras.
Referenced by Player::ApplyEquipSpell(), ApplySpellDispelImmunity(), AuraEffect::ApplySpellMod(), Player::DuelComplete(), GetProcAurasTriggeredOnEvent(), AuraEffect::HandleAuraModSchoolImmunity(), spell_warl_soul_swap_dot_marker::spell_warl_soul_swap_dot_marker_SpellScript::HandleHit(), list_commandscript::HandleListAurasCommand(), AuraEffect::HandlePeriodicDummyAuraTick(), spell_gen_mounted_charge::spell_gen_mounted_charge_SpellScript::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), ModifyAuraState(), spell_gen_break_shield::spell_gen_break_shield_SpellScript::PrepareSpellScript(), ProcDamageAndSpellFor(), and SpellHealingBonusDone().
|
inline |
Definition at line 2208 of file Unit.h.
References m_appliedAuras.
|
inline |
Definition at line 1581 of file Unit.h.
References GetResistance(), and SPELL_SCHOOL_NORMAL.
Referenced by boss_high_astromancer_solarian::boss_high_astromancer_solarianAI::boss_high_astromancer_solarianAI(), CalcArmorReducedDamage(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArmorAmount(), npc_commandscript::HandleNpcInfoCommand(), Guardian::InitStatsForLevel(), Player::outDebugValues(), and boss_faction_championsAI::UpdateThreat().
| void Unit::GetAttackableUnitListInRange | ( | std::list< Unit * > & | list, |
| float | fMaxSearchRange ) const |
Definition at line 8973 of file Unit.cpp.
References Skyfire::ComputeCellCoord(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), Cell::SetNoCreate(), and Cell::Visit().
| Unit * Unit::getAttackerForHelper | ( | ) | const |
Definition at line 63 of file UnitCombatState.cpp.
References GetVictim(), m_attackers, and Unit().
Referenced by Creature::_IsTargetAcceptable(), Creature::CanStartAttack(), CreatureAI::DoZoneInCombat(), Creature::SelectVictim(), SetFeared(), npc_scarlet_ghoul::npc_scarlet_ghoulAI::UpdateAI(), and PetAI::UpdateAI().
|
inline |
Definition at line 1463 of file Unit.h.
References m_attackers.
Referenced by Spell::CheckCast(), GetRandomContactPoint(), Group::InCombatToInstance(), and StopAttackFaction().
| uint32 Unit::GetAttackTime | ( | WeaponAttackType | att | ) | const |
Definition at line 4122 of file Unit.cpp.
References Object::GetFloatValue(), m_modAttackSpeedPct, and UNIT_FIELD_ATTACK_ROUND_BASE_TIME.
Referenced by Player::AddSpellAndCategoryCooldowns(), ApplyAttackTimePercentMod(), Player::CastItemCombatSpell(), DealDamage(), DealMeleeDamage(), GetAPMultiplier(), GetWeaponProcChance(), HandleDummyAuraProc(), IsTriggeredAtSpellProcEvent(), Player::outDebugValues(), resetAttackTimer(), and Guardian::UpdateDamagePhysical().
|
inline |
Definition at line 1428 of file Unit.h.
References m_attackTimer.
Referenced by _UpdateAutoRepeatSpell(), DealMeleeDamage(), Player::Update(), and Update().
| Aura * Unit::GetAura | ( | uint32 | spellId, |
| uint64 | casterGUID = 0, | ||
| uint64 | itemCasterGUID = 0, | ||
| uint32 | reqEffMask = 0 ) const |
Definition at line 1089 of file UnitAuraState.cpp.
References GetAuraApplication(), and AuraApplication::GetBase().
Referenced by spell_marrowgar_coldflame_damage::spell_marrowgar_coldflame_damage_AuraScript::CanBeAppliedOn(), spell_pal_beacon_of_light::spell_pal_beacon_of_light_AuraScript::CheckProc(), spell_mage_nether_vortex::spell_mage_nether_vortex_AuraScript::DoCheck(), Spell::DoTriggersOnSpellHit(), getOrphanGUID(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraLinked(), Aura::HandleAuraSpecificMods(), spell_item_pygmy_oil::spell_item_pygmy_oil_SpellScript::HandleDummy(), HandleDummyAuraProc(), spell_mage_glyph_of_polymorph::spell_mage_glyph_of_polymorph_AuraScript::HandleEffectProc(), spell_warl_soul_swap_dot_marker::spell_warl_soul_swap_dot_marker_SpellScript::HandleHit(), spell_sindragosa_frost_breath::spell_sindragosa_frost_breath_SpellScript::HandleInfusion(), spell_monk_diffuse_magic::spell_monk_diffuse_magic_SpellScript::HandleOnHit(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), HandleProcTriggerSpell(), spell_festergut_gastric_bloat::spell_festergut_gastric_bloat_SpellScript::HandleScript(), spell_putricide_eat_ooze::spell_putricide_eat_ooze_SpellScript::HandleScript(), BattlefieldWG::PromotePlayer(), RemoveAurasDueToSpellBySteal(), Player::ResurrectPlayer(), SetAuraStack(), and npc_slad_ran_constrictor::npc_slad_ran_constrictorAI::UpdateAI().
| AuraApplication * Unit::GetAuraApplication | ( | uint32 | spellId, |
| uint64 | casterGUID = 0, | ||
| uint64 | itemCasterGUID = 0, | ||
| uint32 | reqEffMask = 0, | ||
| AuraApplication * | except = NULL ) const |
Definition at line 1070 of file UnitAuraState.cpp.
References AuraApplication::GetBase(), Aura::GetCasterGUID(), Aura::GetCastItemGUID(), Aura::GetEffectMask(), and m_appliedAuras.
Referenced by GetAura(), GetAuraApplicationOfRankedSpell(), HasAura(), and Spell::UpdateChanneledTargetList().
| AuraApplication * Unit::GetAuraApplicationOfRankedSpell | ( | uint32 | spellId, |
| uint64 | casterGUID = 0, | ||
| uint64 | itemCasterGUID = 0, | ||
| uint32 | reqEffMask = 0, | ||
| AuraApplication * | except = NULL ) const |
Definition at line 1095 of file UnitAuraState.cpp.
References GetAuraApplication(), and sSpellMgr.
Referenced by GetAuraOfRankedSpell().
Definition at line 1166 of file UnitAuraState.cpp.
References m_appliedAuras.
Referenced by spell_hallow_end_tricky_treat::spell_hallow_end_tricky_treat_SpellScript::HandleScript().
| AuraEffect * Unit::GetAuraEffect | ( | AuraType | type, |
| SpellFamilyNames | family, | ||
| uint32 | familyFlag1, | ||
| uint32 | familyFlag2, | ||
| uint32 | familyFlag3, | ||
| uint64 | casterGUID = 0 ) const |
Definition at line 1049 of file UnitAuraState.cpp.
References GetAuraEffectsByType(), flag128::HasFlag(), SpellInfo::SpellFamilyFlags, and SpellInfo::SpellFamilyName.
| AuraEffect * Unit::GetAuraEffect | ( | AuraType | type, |
| SpellFamilyNames | name, | ||
| uint32 | iconId, | ||
| uint8 | effIndex ) const |
Definition at line 1035 of file UnitAuraState.cpp.
References GetAuraEffectsByType(), SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, and SpellInfo::SpellIconID.
| AuraEffect * Unit::GetAuraEffect | ( | uint32 | spellId, |
| uint8 | effIndex, | ||
| uint64 | casterGUID = 0 ) const |
Definition at line 1009 of file UnitAuraState.cpp.
References m_appliedAuras.
Referenced by spell_dk_pet_scaling_01::spell_dk_pet_scaling_01_AuraScript::CalculateStrengthAmount(), Spell::CanAutoCast(), GetAuraEffectOfRankedSpell(), GetDummyAuraEffect(), AuraEffect::HandleAuraModShapeshift(), Aura::HandleAuraSpecificMods(), spell_dk_scourge_strike::spell_dk_scourge_strike_SpellScript::HandleDummy(), HandleDummyAuraProc(), spell_rog_stealth::spell_rog_stealth_AuraScript::HandleEffectApply(), spell_mage_water_elemental_freeze::spell_mage_water_elemental_freeze_SpellScript::HandleImprovedFreeze(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), spell_item_blessing_of_ancient_kings::spell_item_blessing_of_ancient_kings_AuraScript::HandleProc(), spell_pri_divine_aegis::spell_pri_divine_aegis_AuraScript::HandleProc(), HandleProcTriggerSpell(), AuraEffect::HandleShapeshiftBoosts(), isSpellCrit(), ModSpellDuration(), SpellDamageBonusDone(), and SpellHealingBonusTaken().
| AuraEffect * Unit::GetAuraEffectOfRankedSpell | ( | uint32 | spellId, |
| uint8 | effIndex, | ||
| uint64 | casterGUID = 0 ) const |
Definition at line 1023 of file UnitAuraState.cpp.
References GetAuraEffect(), and sSpellMgr.
Referenced by spell_pri_power_word_shield::spell_pri_power_word_shield_AuraScript::ReflectDamage().
|
inline |
Definition at line 2243 of file Unit.h.
References m_modAuras.
Referenced by Player::_ApplyWeaponDependentAuraMods(), KillRewarder::_RewardXP(), CalcAbsorbResist(), CalcArmorReducedDamage(), CalcHealAbsorb(), CalcSpellResistance(), DealDamage(), DealMeleeDamage(), GetAuraEffect(), GetAuraEffect(), GetDoTsByCaster(), GetMagicHitRedirectTarget(), GetMaxNegativeAuraModifier(), GetMaxNegativeAuraModifierByAffectMask(), GetMaxNegativeAuraModifierByMiscMask(), GetMaxNegativeAuraModifierByMiscValue(), GetMaxPositiveAuraModifier(), GetMaxPositiveAuraModifierByAffectMask(), GetMaxPositiveAuraModifierByMiscMask(), GetMaxPositiveAuraModifierByMiscValue(), GetMeleeHitRedirectTarget(), GetRemainingPeriodicAmount(), Player::GetResurrectionSpellId(), Player::GetRuneTypeBaseCooldown(), GetTotalAuraModifier(), GetTotalAuraModifierByAffectMask(), GetTotalAuraModifierByMiscMask(), GetTotalAuraModifierByMiscValue(), GetTotalAuraMultiplier(), GetTotalAuraMultiplierByAffectMask(), GetTotalAuraMultiplierByMiscMask(), GetTotalAuraMultiplierByMiscValue(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleAuraModSchoolImmunity(), AuraEffect::HandleAuraTransform(), WorldSession::HandleCastSpellOpcode(), list_commandscript::HandleListAurasCommand(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleMirrorImageDataRequest(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleShapeshiftBoosts(), HasAuraState(), HasAuraTypeWithAffectMask(), HasAuraTypeWithCaster(), HasAuraTypeWithFamilyFlags(), HasAuraTypeWithMiscvalue(), HasAuraTypeWithValue(), HasBreakableByDamageAuraType(), HasVisionObscured(), IsImmunedToSpellEffect(), Player::IsPetNeedBeTemporaryUnsummoned(), IsScriptOverriden(), isSpellCrit(), Player::isTotalImmune(), Player::isTotalImmunity(), Kill(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), MeleeSpellHitResult(), Mount(), Creature::Regenerate(), Player::Regenerate(), Creature::RegenerateHealth(), Player::RegenerateHealth(), Creature::RegenerateMana(), RestoreDisplayId(), Player::RewardQuest(), Creature::SelectVictim(), Player::SendInitialPacketsAfterAddToMap(), Player::SetBattlegroundEntryPoint(), SetFeared(), Player::SetSkill(), SpellBaseDamageBonusDone(), SpellBaseDamageBonusTaken(), SpellBaseHealingBonusDone(), SpellBaseHealingBonusTaken(), SpellDamageBonusDone(), SpellDamageBonusTaken(), SpellHealingBonusDone(), SpellHealingBonusTaken(), SpellHitResult(), Player::UpdateCharmedAI(), Guardian::UpdateDamagePhysical(), Player::UpdateExpertise(), Player::UpdateRating(), Player::UpdateSpellDamageAndHealingBonus(), and Player::UpdateStats().
| Aura * Unit::GetAuraOfRankedSpell | ( | uint32 | spellId, |
| uint64 | casterGUID = 0, | ||
| uint64 | itemCasterGUID = 0, | ||
| uint32 | reqEffMask = 0 ) const |
Definition at line 1107 of file UnitAuraState.cpp.
References GetAuraApplicationOfRankedSpell(), and AuraApplication::GetBase().
Referenced by spell_dru_eclipse::spell_dru_eclipse_AuraScript::ApplyEffect(), and Aura::HandleAuraSpecificMods().
|
inlinevirtual |
Reimplemented in Player.
Definition at line 1812 of file Unit.h.
Referenced by CalculateMeleeDamage(), and CalculateSpellDamageTaken().
| uint32 Unit::GetCastingTimeForBonus | ( | SpellInfo const * | spellProto, |
| DamageEffectType | damagetype, | ||
| uint32 | CastingTime ) const |
Definition at line 6120 of file Unit.cpp.
References SpellEffectInfo::ApplyAuraName, SpellInfo::CalcCastTime(), DOT, SpellEffectInfo::Effect, SpellInfo::Effects, SpellInfo::GetDuration(), getLevel(), Object::GetTypeId(), SpellInfo::IsChanneled(), IsPet(), SpellEffectInfo::IsTargetingArea(), MAX_SPELL_EFFECTS, SPELL_AURA_PERIODIC_DAMAGE, SPELL_AURA_PERIODIC_HEAL, SPELL_AURA_PERIODIC_LEECH, SPELL_EFFECT_APPLY_AURA, SPELL_EFFECT_ENVIRONMENTAL_DAMAGE, SPELL_EFFECT_HEAL, SPELL_EFFECT_HEALTH_LEECH, SPELL_EFFECT_POWER_BURN, SPELL_EFFECT_POWER_DRAIN, SPELL_EFFECT_SCHOOL_DAMAGE, Object::ToCreature(), and TYPEID_UNIT.
Referenced by CalculateDefaultCoefficient().
| Unit * Unit::GetCharm | ( | ) | const |
Definition at line 2405 of file Unit.cpp.
References GetCharmGUID(), ObjectAccessor::GetUnit(), GUID_LOPART(), Object::SetUInt64Value(), SF_LOG_ERROR, Unit(), and UNIT_FIELD_CHARM.
Referenced by GetFirstControlled(), isPossessing(), Player::PossessSpellInitialize(), and Player::StopCastingCharm().
| Unit * Unit::GetCharmer | ( | ) | const |
Definition at line 2348 of file Unit.cpp.
References GetCharmerGUID(), ObjectAccessor::GetUnit(), and Unit().
Referenced by DealDamage(), GetCharmerOrOwner(), spell_gen_mounted_charge::spell_gen_mounted_charge_SpellScript::HandleScriptEffect(), KnockbackFrom(), npc_salanar_the_horseman::npc_salanar_the_horsemanAI::MoveInLineOfSight(), npc_vereth_the_cunning::npc_vereth_the_cunningAI::MoveInLineOfSight(), spell_gen_break_shield::spell_gen_break_shield_SpellScript::PrepareSpellScript(), RemoveCharmedBy(), npc_salanar_the_horseman::npc_salanar_the_horsemanAI::SpellHit(), Player::Update(), Player::UpdateCharmedAI(), and UpdateSpeed().
|
inline |
Definition at line 2071 of file Unit.h.
References Object::GetUInt64Value(), and UNIT_FIELD_CHARMED_BY.
Referenced by Spell::CheckCast(), Spell::CheckEffectTarget(), DealDamage(), GetCharmer(), LuaUnit::GetCharmerGUID(), GetCharmerOrOwner(), GetCharmerOrOwnerGUID(), Player::GetNPCIfCanInteractWith(), WorldSession::HandlePetActionHelper(), IsCharmed(), isPossessedByPlayer(), OutDebugInfo(), RemoveAllControlled(), RemoveFromWorld(), SetCharm(), SetCharmedBy(), and Player::StopCastingCharm().
| Unit * Unit::GetCharmerOrOwner | ( | ) | const |
Definition at line 2419 of file Unit.cpp.
References GetCharmer(), GetCharmerGUID(), GetOwner(), and Unit().
Referenced by HostileReference::addThreat(), ApplyDiminishingToDuration(), Creature::CanCreatureAttack(), WorldObject::CanDetect(), SpellInfo::CheckTarget(), GetAffectingPlayer(), GetCharmerOrOwnerOrSelf(), WorldSession::HandlePetActionHelper(), and UpdateSpeed().
| uint64 Unit::GetCharmerOrOwnerGUID | ( | ) | const |
Definition at line 5806 of file Unit.cpp.
References GetCharmerGUID(), and GetOwnerGUID().
Referenced by Creature::CanAssistTo(), Spell::DoSpellHitOnUnit(), GetAffectingPlayer(), GetCharmerOrOwnerOrOwnGUID(), GetCharmerOrOwnerPlayerOrPlayerItself(), LuaUnit::GetControllerGUID(), IsAlwaysVisibleFor(), KillRewarder::KillRewarder(), Creature::RegenerateHealth(), and Creature::RegenerateMana().
| uint64 Unit::GetCharmerOrOwnerOrOwnGUID | ( | ) | const |
Definition at line 5811 of file Unit.cpp.
References GetCharmerOrOwnerGUID(), and Object::GetGUID().
Referenced by LuaUnit::GetControllerGUIDS(), and IsCharmedOwnedByPlayerOrPlayer().
| Unit * Unit::GetCharmerOrOwnerOrSelf | ( | ) | const |
Definition at line 2424 of file Unit.cpp.
References GetCharmerOrOwner(), and Unit().
Referenced by CombatStart(), GetPartyMembers(), GetReactionTo(), IsInPartyWith(), IsInRaidWith(), and SetInCombatWith().
| Player * Unit::GetCharmerOrOwnerPlayerOrPlayerItself | ( | ) | const |
Definition at line 2355 of file Unit.cpp.
References GetCharmerOrOwnerGUID(), ObjectAccessor::GetPlayer(), IS_PLAYER_GUID(), Object::ToPlayer(), and Unit().
Referenced by ApplyResilience(), FollowerAI::AssistPlayerInCombat(), npc_escortAI::AssistPlayerInCombat(), SmartAI::AssistPlayerInCombat(), BuildValuesUpdate(), CombatStart(), npc_lurking_potion::npc_lurking_potionAI::DamageTaken(), npc_private_hendel::npc_private_hendelAI::DamageTaken(), Spell::DoSpellHitOnUnit(), GetAffectingPlayer(), Object::GetUpdateFieldData(), spell_q12851_going_bearback::spell_q12851_going_bearback_AuraScript::HandleEffectApply(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::JustDied(), GuardAI::JustDied(), npc_darnavan::npc_darnavanAI::JustDied(), npc_elemental_lord::npc_elemental_lordAI::JustDied(), npc_korrak_bloodrager::npc_korrak_bloodragerAI::JustDied(), npc_stinkbeard::npc_stinkbeardAI::JustDied(), npc_yggdras::npc_yggdrasAI::JustDied(), Kill(), GameObject::ModifyHealth(), npc_mageguard_dalaran::npc_mageguard_dalaranAI::MoveInLineOfSight(), SetCharm(), SetContestedPvP(), Creature::SetLootRecipient(), GameObject::SetLootRecipient(), Creature::Update(), and Creature::UpdateEntry().
|
inline |
Definition at line 2079 of file Unit.h.
References Object::GetUInt64Value(), and UNIT_FIELD_CHARM.
Referenced by spell_hun_tame_beast::spell_hun_tame_beast_SpellScript::CheckCast(), GetCharm(), LuaUnit::GetCharmGUID(), Guardian::InitSummon(), isPossessing(), OutDebugInfo(), RemoveAllControlled(), SetCharm(), SetMinion(), Player::StopCastingCharm(), and lfg::LFGMgr::TeleportPlayer().
|
inline |
Definition at line 2148 of file Unit.h.
References m_charmInfo.
Referenced by Pet::AddToWorld(), Player::CharmSpellInitialize(), AuraEffect::HandleModPossessPet(), WorldSession::HandlePetActionHelper(), pet_commandscript::HandlePetCreateCommand(), WorldSession::HandlePetRename(), WorldSession::HandlePetSpellAutocastOpcode(), InitTamedPet(), Pet::LoadPetFromDB(), Player::PetSpellInitialize(), Player::PossessSpellInitialize(), RemoveCharmedBy(), Player::ResetPetTalents(), Pet::resetTalentsForAllPetsOf(), WorldSession::SendStablePetCallback(), SetCharmedBy(), Player::SummonPet(), and Player::UnsummonPetTemporaryIfAny().
|
inline |
Definition at line 1543 of file Unit.h.
References Object::GetByteValue(), and UNIT_FIELD_SEX.
Referenced by Player::_LoadHomeBind(), Player::_LoadSkills(), Player::_LoadSpells(), Player::ActivateSpec(), Player::ActivateTaxiPathTo(), AchievementMgr< T >::AdditionalRequirementsSatisfied(), Player::ApplyEnchantment(), Player::ApplyRatingMod(), Player::BuildPlayerTalentsInfoData(), Player::CanRollForItemInLFG(), Player::CanUseItem(), Spell::CheckRuneCost(), ClearAllReactives(), Player::Create(), WorldSession::DoLootRelease(), Player::DuelComplete(), Spell::EffectActivateRune(), Player::EquipItem(), Player::FindEquipSlot(), boss_archimonde::boss_archimondeAI::GainSoulCharge(), LuaUnit::GetClass(), LuaUnit::GetClassAsString(), getClassMask(), GetCreatePowers(), Player::GetDodgeFromAgility(), SocialMgr::GetFriendInfo(), LuaUnit::GetMaxPower(), Player::GetMeleeCritFromAgility(), spell_gen_on_tournament_mount::spell_gen_on_tournament_mount_AuraScript::GetPennatSpellId(), LuaUnit::GetPower(), GetPowerIndex(), Player::GetRatingMultiplier(), Player::GetSpellCritFromIntellect(), Player::GetStartPosition(), Player::GiveLevel(), AuraEffect::HandleAuraConvertRune(), AuraEffect::HandleAuraModShapeshift(), Aura::HandleAuraSpecificMods(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleCastSpellOpcode(), WorldSession::HandleCharCreateCallback(), spell_item_flask_of_the_north::spell_item_flask_of_the_north_SpellScript::HandleDummy(), HandleDummyAuraProc(), misc_commandscript::HandleFreezeCommand(), learn_commandscript::HandleLearnAllMySpellsCommand(), learn_commandscript::HandleLearnAllMyTalentsCommand(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMirrorImageDataRequest(), modify_commandscript::HandleModifyGenderCommand(), AuraEffect::HandlePeriodicDummyAuraTick(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), HandleProcTriggerSpell(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsOrLevelHelper(), spell_gen_pet_summoned::spell_gen_pet_summoned_SpellScript::HandleScript(), WorldSession::HandleWhoOpcode(), Player::InitDataForForm(), Player::InitDisplayIds(), Player::InitRunes(), Guardian::InitStatsForLevel(), Player::InitStatsForLevel(), Player::InitTaxiNodesForLevel(), Creature::isCanTrainingAndResetTalentsOf(), Pet::IsPermanentPetFor(), Kill(), Player::learnDefaultSpells(), Player::LearnTalent(), Player::LoadFromDB(), AchievementCriteriaData::Meets(), Player::OCTRegenMPPerSpirit(), Skyfire::WorldObjectSpellTargetCheck::operator()(), Player::PrepareGossipMenu(), ProcDamageAndSpellFor(), Player::RegenerateAll(), RemoveCharmedBy(), Player::resetSpells(), Player::ResetTalents(), Player::RewardHonor(), Player::SaveToDB(), Creature::SelectLevel(), Player::SendInspectResult(), SetCharmedBy(), Guild::Member::SetStats(), Player::StoreNewItemInBestSlots(), Player::TeleportTo(), Player::UpdateAttackPowerAndDamage(), Player::UpdateDodgePercentage(), Player::UpdateParryPercentage(), UpdateReactives(), and Guardian::UpdateStats().
|
inline |
Definition at line 1547 of file Unit.h.
References getClass().
Referenced by Player::_ApplyWeaponDependentAuraDamageMod(), Player::CanRollForItemInLFG(), Player::CanUseItem(), AuraEffect::HandleAuraModRangedAttackPower(), AuraEffect::HandleAuraModRangedAttackPowerPercent(), learn_commandscript::HandleLearnSkillRecipesHelper(), Player::IsSpellFitByClassAndRace(), Player::learnSkillRewardedSpells(), and Player::SatisfyQuestClass().
|
private |
Definition at line 7632 of file Unit.cpp.
References CalculatePct(), and GetCombatRatingReduction().
Referenced by GetCritDamageReduction(), and GetDamageReduction().
|
private |
Definition at line 7620 of file Unit.cpp.
References GetOwner(), IsPet(), and Object::ToPlayer().
Referenced by GetCombatRatingDamageReduction().
|
inline |
Definition at line 1445 of file Unit.h.
References Object::m_floatValues, and UNIT_FIELD_COMBAT_REACH.
Referenced by WorldObject::CanDetectStealthOf(), GetRandomContactPoint(), and IsWithinCombatRange().
|
inline |
Definition at line 1904 of file Unit.h.
References m_CombatTimer.
Referenced by Spell::DoSpellHitOnUnit(), and LuaUnit::GetCombatTime().
|
inline |
Definition at line 2321 of file Unit.h.
References Object::GetUInt32Value(), and UNIT_FIELD_BASE_HEALTH.
Referenced by Player::GiveLevel(), npc_commandscript::HandleNpcInfoCommand(), HandleProcTriggerSpell(), Guardian::UpdateMaxHealth(), and Player::UpdateMaxHealth().
|
inline |
Definition at line 2329 of file Unit.h.
References Object::GetUInt32Value(), and UNIT_FIELD_BASE_MANA.
Referenced by GetCreatePowers(), Player::GiveLevel(), and HandleDummyAuraProc().
Definition at line 5359 of file Unit.cpp.
References CLASS_HUNTER, getClass(), GetCreateMana(), Object::GetTypeId(), HUNTER_PET, IsPet(), POWER_ARCANE_CHARGES, POWER_BURNING_EMBERS, POWER_CHI, POWER_DEMONIC_FURY, POWER_ECLIPSE, POWER_ENERGY, POWER_FOCUS, POWER_HEALTH, POWER_HOLY_POWER, POWER_MANA, POWER_RAGE, POWER_RUNES, POWER_RUNIC_POWER, POWER_SHADOW_ORBS, POWER_SOUL_SHARDS, and TYPEID_PLAYER.
Referenced by Player::InitStatsForLevel(), setPowerType(), Guardian::UpdateMaxPower(), and Player::UpdateMaxPower().
|
inline |
Definition at line 2343 of file Unit.h.
References m_createStats.
Referenced by Player::GetDodgeFromAgility(), GetTotalStatValue(), Player::GiveLevel(), Guardian::UpdateMaxHealth(), and Guardian::UpdateMaxPower().
|
inline |
Definition at line 2055 of file Unit.h.
References Object::GetUInt64Value(), and UNIT_FIELD_CREATED_BY.
Referenced by LuaUnit::GetCreatorGUID(), and Condition::Meets().
|
static |
Definition at line 4905 of file Unit.cpp.
References Map::GetCreature(), WorldObject::GetMap(), and WorldObject::WorldObject().
Referenced by boss_moroes_guestAI::AcquireGUID(), boss_priestess_lackey_commonAI::AcquireGUIDs(), boss_moroes::boss_moroesAI::AddsAttack(), boss_erekem::boss_erekemAI::AttackStart(), npc_living_mojo::npc_living_mojoAI::AttackStart(), boss_ionar::boss_ionarAI::CallBackSparks(), npc_anubisath_sentinel::aqsentinelAI::CallBuddiesToAttack(), boss_sartharion::boss_sartharionAI::CallDragon(), npc_greyheart_spellbinder::npc_greyheart_spellbinderAI::CastChanneling(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::CastConsumingMadness(), boss_kelidan_the_breaker::boss_kelidan_the_breakerAI::ChannelerDied(), boss_kelidan_the_breaker::boss_kelidan_the_breakerAI::ChannelerEngaged(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::CheckChannelers(), spell_rotface_unstable_ooze_explosion::spell_rotface_unstable_ooze_explosion_SpellScript::CheckTarget(), netherspite_infernal::netherspite_infernalAI::Cleanup(), boss_drakkari_elemental::boss_drakkari_elementalAI::DamageTaken(), boss_illidari_councilAI::DamageTaken(), boss_julianne::boss_julianneAI::DamageTaken(), boss_romulo::boss_romuloAI::DamageTaken(), SummonList::DespawnAll(), boss_ymiron::boss_ymironAI::DespawnBoatGhosts(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::DespawnDemon(), npc_brann_hos::npc_brann_hosAI::DespawnDwarf(), SummonList::DespawnEntry(), boss_volkhan::boss_volkhanAI::DespawnGolem(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::DespawnNPC(), hyjalAI::DeSpawnVeins(), boss_netherspite::boss_netherspiteAI::DestroyPortals(), boss_hydross_the_unstable::boss_hydross_the_unstableAI::DeSummonBeams(), npc_head::npc_headAI::Disappear(), boss_drakkari_elemental::boss_drakkari_elementalAI::DoAction(), boss_professor_putricide::boss_professor_putricideAI::DoAction(), SummonList::DoAction(), boss_four_horsemen::boss_four_horsemenAI::DoEncounteraction(), boss_gothik::boss_gothikAI::DoGothikSummon(), boss_brutallus::boss_brutallusAI::DoIntro(), npc_parasitic_shadowfiend::npc_parasitic_shadowfiendAI::DoMeleeAttackIfReady(), boss_warbringer_omrogg::boss_warbringer_omroggAI::DoYellForThreat(), SummonList::DoZoneInCombat(), boss_alythess::boss_alythessAI::EnterCombat(), boss_emalon::boss_emalonAI::EnterCombat(), boss_faction_championsAI::EnterCombat(), boss_priestess_lackey_commonAI::EnterCombat(), boss_romulo::boss_romuloAI::EnterCombat(), boss_rotface::boss_rotfaceAI::EnterCombat(), boss_sacrolash::boss_sacrolashAI::EnterCombat(), boss_warbringer_omrogg::boss_warbringer_omroggAI::EnterCombat(), npc_elemental_lord::npc_elemental_lordAI::EnterCombat(), npc_fel_orc_convert::npc_fel_orc_convertAI::EnterCombat(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::EnterCombat(), npc_tempest_minion::npc_tempest_minionAI::EnterCombat(), boss_kiljaeden::boss_kiljaedenAI::EnterEvadeMode(), boss_rotface::boss_rotfaceAI::EnterEvadeMode(), AssistDelayEvent::Execute(), boss_sartharion::boss_sartharionAI::FetchDragons(), npc_azure_saboteur::npc_azure_saboteurAI::FinishPointReached(), boss_erekem::boss_erekemAI::GetChainHealTargetGUID(), boss_kelidan_the_breaker::boss_kelidan_the_breakerAI::GetChanneled(), boss_twinemperorsAI::GetOtherBoss(), npc_anubisath_sentinel::aqsentinelAI::GetOtherSentinels(), boss_twin_baseAI::GetSister(), npc_air_force_bots::npc_air_force_botsAI::GetSummonedGuard(), GrandChampionsOutVehicle(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), spell_rotface_large_ooze_buff_combine::spell_rotface_large_ooze_buff_combine_SpellScript::HandleScript(), SummonList::HasEntry(), boss_alythess::boss_alythessAI::IntroStep(), isAttackingPlayer(), npc_ashtongue_defender::npc_ashtongue_defenderAI::IsSummonedBy(), npc_ashtongue_elementalist::npc_ashtongue_elementalistAI::IsSummonedBy(), npc_ashtongue_rogue::npc_ashtongue_rogueAI::IsSummonedBy(), npc_ashtongue_sorcerer::npc_ashtongue_sorcererAI::IsSummonedBy(), npc_ashtongue_spiritbinder::npc_ashtongue_spiritbinderAI::IsSummonedBy(), npc_big_ooze::npc_big_oozeAI::IsSummonedBy(), boss_drakkari_elemental::boss_drakkari_elementalAI::JustDied(), boss_faction_championsAI::JustDied(), boss_fathomguard_caribdis::boss_fathomguard_caribdisAI::JustDied(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::JustDied(), boss_fathomguard_tidalvess::boss_fathomguard_tidalvessAI::JustDied(), boss_interrogator_vishas::boss_interrogator_vishasAI::JustDied(), boss_jormungarAI::JustDied(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::JustDied(), boss_palehoof::boss_palehoofAI::JustDied(), boss_priestess_lackey_commonAI::JustDied(), boss_rotface::boss_rotfaceAI::JustDied(), boss_sartharion::boss_sartharionAI::JustDied(), boss_sathrovarr::boss_sathrovarrAI::JustDied(), boss_terestian_illhoof::boss_terestianAI::JustDied(), boss_the_black_stalker::boss_the_black_stalkerAI::JustDied(), boss_warbringer_omrogg::boss_warbringer_omroggAI::JustDied(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), npc_big_ooze::npc_big_oozeAI::JustDied(), npc_counselor_talbot::npc_counselor_talbotAI::JustDied(), npc_elemental_lord::npc_elemental_lordAI::JustDied(), npc_enslaved_soul::npc_enslaved_soulAI::JustDied(), npc_fel_crystal::npc_fel_crystalAI::JustDied(), npc_fel_orc_convert::npc_fel_orc_convertAI::JustDied(), npc_ferocious_rhino::npc_ferocious_rhinoAI::JustDied(), npc_fizzlebang_toc::npc_fizzlebang_tocAI::JustDied(), npc_frenzied_worgen::npc_frenzied_worgenAI::JustDied(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::JustDied(), npc_ichor_globule::npc_ichor_globuleAI::JustDied(), npc_illidari_spawn::npc_illidari_spawnAI::JustDied(), npc_massive_jormungar::npc_massive_jormungarAI::JustDied(), npc_precious_icc::npc_precious_iccAI::JustDied(), npc_qiraj_war_spawn::npc_qiraj_war_spawnAI::JustDied(), npc_ravenous_furbolg::npc_ravenous_furbolgAI::JustDied(), npc_tainted_elemental::npc_tainted_elementalAI::JustDied(), npc_tempest_minion::npc_tempest_minionAI::JustDied(), npc_tito::npc_titoAI::JustDied(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::JustDied(), boss_faction_championsAI::JustReachedHome(), boss_skadi::boss_skadiAI::JustReachedHome(), boss_rotface::boss_rotfaceAI::JustSummoned(), npc_crystal_channel_target::npc_crystal_channel_targetAI::JustSummoned(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::JustSummoned(), boss_faction_championsAI::KilledUnit(), boss_headless_horseman::boss_headless_horsemanAI::KilledUnit(), boss_priestess_lackey_commonAI::KilledUnit(), boss_sathrovarr::boss_sathrovarrAI::KilledUnit(), boss_warbringer_omrogg::boss_warbringer_omroggAI::KilledUnit(), npc_drakuru_shackles::npc_drakuru_shacklesAI::LockRageclaw(), npc_grizzlemaw_cw_trigger::npc_grizzlemaw_cw_triggerAI::MoveInLineOfSight(), boss_professor_putricide::boss_professor_putricideAI::MovementInform(), npc_living_mojo::npc_living_mojoAI::MovementInform(), npc_palehoof_orb::npc_palehoof_orbAI::MovementInform(), boss_palehoof::boss_palehoofAI::NextPhase(), npc_geezle::npc_geezleAI::NextStep(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), spell_anhuur_disable_beacon_beams::spell_anhuur_disable_beacon_beams_SpellScript::Notify(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::NPCChangeTarget(), containment_sphere::OnGossipHello(), go_acherus_soul_prison::OnGossipHello(), go_broggok_lever::OnGossipHello(), go_harpoon_launcher::OnGossipHello(), go_manticron_cube::OnGossipHello(), go_orb_of_domination::OnGossipHello(), go_orb_of_the_blue_flight::OnGossipHello(), go_palehoof_sphere::OnGossipHello(), npc_announcer_toc10::OnGossipSelect(), npc_taretha::OnGossipSelect(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::OnPlayerEnter(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), at_hor_waves_restarter::OnTrigger(), at_kelthuzad_center::OnTrigger(), item_tainted_core::OnUse(), npc_doctor::npc_doctorAI::PatientSaved(), boss_kaelthas::boss_kaelthasAI::PrepareAdvisors(), boss_warchief_kargath_bladefist::boss_warchief_kargath_bladefistAI::removeAdds(), SummonList::RemoveNotExisting(), boss_black_knight::boss_black_knightAI::RemoveSummons(), advisorbase_ai::Reset(), boss_alythess::boss_alythessAI::Reset(), boss_bjarngrim::boss_bjarngrimAI::Reset(), boss_erekem::boss_erekemAI::Reset(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::Reset(), boss_fathomlord_karathress::boss_fathomlord_karathressAI::Reset(), boss_headless_horseman::boss_headless_horsemanAI::Reset(), boss_kalecgos::boss_kalecgosAI::Reset(), boss_kiljaeden::boss_kiljaedenAI::Reset(), boss_palehoof::boss_palehoofAI::Reset(), boss_paletress::boss_paletressAI::Reset(), boss_priestess_lackey_commonAI::Reset(), boss_sacrolash::boss_sacrolashAI::Reset(), boss_sartharion::boss_sartharionAI::Reset(), boss_sathrovarr::boss_sathrovarrAI::Reset(), boss_selin_fireheart::boss_selin_fireheartAI::Reset(), boss_skadi::boss_skadiAI::Reset(), boss_terestian_illhoof::boss_terestianAI::Reset(), npc_acolyte_of_shadron::npc_acolyte_of_shadronAI::Reset(), npc_anubisath_sentinel::aqsentinelAI::Reset(), npc_ferocious_rhino::npc_ferocious_rhinoAI::Reset(), npc_frenzied_worgen::npc_frenzied_worgenAI::Reset(), npc_greyheart_spellbinder::npc_greyheart_spellbinderAI::Reset(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::Reset(), npc_illidari_council::npc_illidari_councilAI::Reset(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::Reset(), npc_massive_jormungar::npc_massive_jormungarAI::Reset(), npc_ravenous_furbolg::npc_ravenous_furbolgAI::Reset(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::RestoreAll(), npc_anubisath_sentinel::aqsentinelAI::SendMyListToBuddies(), boss_toc_champion_controller::boss_toc_champion_controllerAI::SetData(), npc_announcer_toc5::npc_announcer_toc5AI::SetData(), SetPhased(), SetPhaseMask(), boss_volkhan::boss_volkhanAI::ShatterGolem(), boss_selin_fireheart::boss_selin_fireheartAI::ShatterRemainingCrystals(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::SpawnNPC(), boss_gothik::boss_gothikAI::SpellHit(), npc_drakuru_shackles::npc_drakuru_shacklesAI::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), npc_announcer_toc5::npc_announcer_toc5AI::StartGrandChampionsAttack(), boss_brutallus::boss_brutallusAI::StartIntro(), boss_kelidan_the_breaker::boss_kelidan_the_breakerAI::SummonChannelers(), boss_volazj::boss_volazjAI::SummonedCreatureDespawn(), boss_illidan_stormrage::boss_illidan_stormrageAI::Talk(), npc_drakuru_shackles::npc_drakuru_shacklesAI::UnlockRageclaw(), boss_vazruden_the_herald::boss_vazruden_the_heraldAI::UnsummonAdds(), UnsummonAllTotems(), boss_alythess::boss_alythessAI::UpdateAI(), boss_anub_arak::boss_anub_arakAI::UpdateAI(), boss_anubarak_trial::boss_anubarak_trialAI::UpdateAI(), boss_attumen::boss_attumenAI::UpdateAI(), boss_brutallus::boss_brutallusAI::UpdateAI(), boss_emalon::boss_emalonAI::UpdateAI(), boss_erekem::boss_erekemAI::UpdateAI(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::UpdateAI(), boss_fathomlord_karathress::boss_fathomlord_karathressAI::UpdateAI(), boss_headless_horseman::boss_headless_horsemanAI::UpdateAI(), boss_high_inquisitor_whitemane::boss_high_inquisitor_whitemaneAI::UpdateAI(), boss_ichoron::boss_ichoronAI::UpdateAI(), boss_julianne::boss_julianneAI::UpdateAI(), boss_kaelthas::boss_kaelthasAI::UpdateAI(), boss_kalecgos::boss_kalecgosAI::UpdateAI(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), boss_lich_king_toc::boss_lich_king_tocAI::UpdateAI(), boss_moroes::boss_moroesAI::UpdateAI(), boss_nazan::boss_nazanAI::UpdateAI(), boss_palehoof::boss_palehoofAI::UpdateAI(), boss_paletress::boss_paletressAI::UpdateAI(), boss_ragnaros::boss_ragnarosAI::UpdateAI(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::UpdateAI(), boss_romulo::boss_romuloAI::UpdateAI(), boss_sathrovarr::boss_sathrovarrAI::UpdateAI(), boss_svala::boss_svalaAI::UpdateAI(), boss_terestian_illhoof::boss_terestianAI::UpdateAI(), boss_vazruden_the_herald::boss_vazruden_the_heraldAI::UpdateAI(), boss_warbringer_omrogg::boss_warbringer_omroggAI::UpdateAI(), npc_announcer_toc5::npc_announcer_toc5AI::UpdateAI(), npc_arthas::npc_arthasAI::UpdateAI(), npc_barnes::npc_barnesAI::UpdateAI(), npc_blood_elf_council_voice_trigger::npc_blood_elf_council_voice_triggerAI::UpdateAI(), npc_doom_blossom::npc_doom_blossomAI::UpdateAI(), npc_elemental_lord::npc_elemental_lordAI::UpdateAI(), npc_enchanted_elemental::npc_enchanted_elementalAI::UpdateAI(), npc_ethereal_sphere::npc_ethereal_sphereAI::UpdateAI(), npc_fizzlebang_toc::npc_fizzlebang_tocAI::UpdateAI(), npc_grimstone::npc_grimstoneAI::UpdateAI(), npc_gurgthock::npc_gurgthockAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_ichor_globule::npc_ichor_globuleAI::UpdateAI(), npc_illidari_council::npc_illidari_councilAI::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), npc_koltira_deathweaver::npc_koltira_deathweaverAI::UpdateAI(), npc_lesser_doomguard::npc_lesser_doomguardAI::UpdateAI(), npc_margrave_dhakar::npc_margrave_dhakarAI::UpdateAI(), npc_palehoof_orb::npc_palehoof_orbAI::UpdateAI(), npc_scarlet_miner::npc_scarlet_minerAI::UpdateAI(), npc_shadowy_construct::npc_shadowy_constructAI::UpdateAI(), npc_tirion_toc::npc_tirion_tocAI::UpdateAI(), npc_towering_infernal::npc_towering_infernalAI::UpdateAI(), npc_tribuna_controller::npc_tribuna_controllerAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_water_elemental::npc_water_elementalAI::UpdateAI(), npc_wrathbone_flayer::npc_wrathbone_flayerAI::UpdateAI(), npc_brann_hos::npc_brann_hosAI::UpdateEscortAI(), npc_tooga::npc_toogaAI::UpdateFollowerAI(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), hyjalAI::WaypointReached(), npc_emily::npc_emilyAI::WaypointReached(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::WaypointReached(), and npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::WaypointReached().
| uint32 Unit::GetCreatureType | ( | ) | const |
Definition at line 4910 of file Unit.cpp.
References CREATURE_TYPE_HUMANOID, SpellShapeshiftFormEntry::creatureType, Creature::GetCreatureTemplate(), GetShapeshiftForm(), Object::GetTypeId(), sSpellShapeshiftFormStore, Object::ToCreature(), CreatureTemplate::type, and TYPEID_PLAYER.
Referenced by AchievementMgr< T >::AdditionalRequirementsSatisfied(), Creature::CanStartAttack(), Spell::CheckCast(), spell_item_unsated_craving::spell_item_unsated_craving_AuraScript::CheckProc(), LuaUnit::GetCreatureType(), GetCreatureTypeMask(), GetUnitParryChance(), AuraEffect::HandleAuraEmpathy(), spell_dru_starfall_dummy::spell_dru_starfall_dummy_SpellScript::HandleDummy(), Creature::InitializeReactState(), Kill(), Skyfire::AnyUnfriendlyAttackableVisibleUnitInObjectRangeCheck::operator()(), Skyfire::AnyUnfriendlyNoTotemUnitInObjectRangeCheck::operator()(), and FactorySelector::selectAI().
| uint32 Unit::GetCreatureTypeMask | ( | ) | const |
Definition at line 4925 of file Unit.cpp.
References GetCreatureType().
Referenced by SpellInfo::CheckTarget(), SpellInfo::CheckTargetCreatureType(), isSpellCrit(), MeleeDamageBonusDone(), and SpellDamageBonusDone().
Definition at line 1788 of file Unit.h.
References CR_RESILIENCE_CRIT_TAKEN, and GetCombatRatingDamageReduction().
Referenced by ApplyResilience().
|
inline |
Definition at line 2095 of file Unit.h.
References Object::GetUInt64Value(), and UNIT_FIELD_CRITTER.
Referenced by SpellInfo::CheckExplicitTarget(), LuaUnit::GetCritterGUID(), and SetMinion().
|
inline |
Definition at line 2363 of file Unit.h.
References m_currentSpells.
Referenced by Player::ActivateTaxiPathTo(), spell_monk_crackling_jade_lightning_aura::spell_monk_crackling_jade_lightning_aura_AuraScript::CheckProc(), LuaUnit::GetCurrentSpell(), AuraEffect::HandleAuraModSilence(), AuraEffect::HandleFeignDeath(), WorldSession::HandleUpdateMissileTrajectory(), HasBreakableByDamageCrowdControlAura(), SmartScript::ProcessEvent(), Player::RemoveItemDependentAurasAndCasts(), and GameObject::Use().
Definition at line 2367 of file Unit.h.
References m_currentSpells.
Definition at line 1456 of file Unit.cpp.
References FindCurrentSpellBySpellId().
Definition at line 1792 of file Unit.h.
References CR_RESILIENCE_PLAYER_DAMAGE_TAKEN, and GetCombatRatingDamageReduction().
Referenced by ApplyResilience().
|
inline |
Definition at line 2044 of file Unit.h.
References m_deathState.
Referenced by _ExitVehicle(), Creature::RemoveCorpse(), Creature::Respawn(), Pet::setDeathState(), and SetHealth().
| DiminishingLevels Unit::GetDiminishing | ( | DiminishingGroup | group | ) |
Definition at line 4837 of file Unit.cpp.
References DIMINISHING_LEVEL_1, getMSTime(), getMSTimeDiff(), and m_Diminishing.
Referenced by Spell::DoSpellHitOnUnit().
| TransportBase * Unit::GetDirectTransport | ( | ) | const |
Returns the transport this unit is on directly (if on vehicle and transport, return vehicle).
Definition at line 7227 of file Unit.cpp.
References WorldObject::GetTransport(), and GetVehicle().
Referenced by WaypointMovementGenerator< Creature >::StartMove(), and UpdateSplinePosition().
Definition at line 1282 of file UnitAuraState.cpp.
References DISPEL_DISEASE, m_modAuras, RemoveAura(), SPELL_AURA_LINKED, SPELL_AURA_NONE, and SPELL_AURA_PERIODIC_DAMAGE.
| void Unit::GetDispellableAuraList | ( | Unit * | caster, |
| uint32 | dispelMask, | ||
| DispelChargesList & | dispelList ) |
Definition at line 1113 of file UnitAuraState.cpp.
References SpellInfo::AttributesEx7, SpellInfo::Dispel, DISPEL_DISEASE, DISPEL_MAGIC, Aura::GetApplicationOfTarget(), Aura::GetCharges(), SpellInfo::GetDispelMask(), Object::GetGUID(), GetOwnedAuras(), Aura::GetSpellInfo(), Aura::GetStackAmount(), HasAura(), IsFriendlyTo(), Aura::IsPassive(), AuraApplication::IsPositive(), SPELL_ATTR7_DISPEL_CHARGES, and Unit().
|
inline |
Definition at line 2490 of file Unit.h.
References Object::GetUInt32Value(), and UNIT_FIELD_DISPLAY_ID.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket(), GameEventMgr::ChangeEquipOrModel(), Pet::CreateBaseAtCreature(), LuaUnit::GetDisplayId(), AuraEffect::HandleAuraCloneCaster(), WorldSession::HandleMirrorImageDataRequest(), npc_commandscript::HandleNpcInfoCommand(), wp_commandscript::HandleWpShowCommand(), Guardian::InitStatsForLevel(), MoltenEggCheck::operator()(), and Creature::SetObjectScale().
Definition at line 1315 of file UnitAuraState.cpp.
References GetAuraEffectsByType(), SPELL_AURA_NONE, SPELL_AURA_PERIODIC_DAMAGE, and SPELL_AURA_PERIODIC_DAMAGE_PERCENT.
Referenced by SpellDamageBonusDone().
| AuraEffect * Unit::GetDummyAuraEffect | ( | SpellFamilyNames | name, |
| uint32 | iconId, | ||
| uint8 | effIndex ) const |
Definition at line 1065 of file UnitAuraState.cpp.
References GetAuraEffect(), and SPELL_AURA_DUMMY.
Referenced by Aura::HandleAuraSpecificMods(), spell_warl_life_tap::spell_warl_life_tap_SpellScript::HandleDummy(), and isSpellCrit().
| DynamicObject * Unit::GetDynObject | ( | uint32 | spellId | ) |
Definition at line 1618 of file Unit.cpp.
References DynamicObject::GetSpellId(), and m_dynObj.
|
inline |
Definition at line 2653 of file Unit.h.
References WorldObject::m_movementInfo.
Referenced by Object::BuildMovementUpdate(), debug_commandscript::HandleDebugMoveflagsCommand(), and WriteMovementInfo().
|
inline |
Definition at line 1695 of file Unit.h.
References Object::GetUInt32Value(), and UNIT_FIELD_FACTION_TEMPLATE.
Referenced by instance_uldaman::instance_uldaman_InstanceMapScript::ActivateWallMinions(), BuildValuesUpdate(), Creature::CanAssistTo(), instance_uldaman::instance_uldaman_InstanceMapScript::DeActivateMinions(), LuaUnit::GetFaction(), GetFactionTemplateEntry(), Player::GetNPCIfCanInteractWith(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionListItems(), WorldSession::HandleAuctionListOwnerItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleGossipHelloOpcode(), modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcInfoCommand(), pet_commandscript::HandlePetCreateCommand(), Minion::InitStats(), TempSummon::InitStats(), InitTamedPet(), Pet::LoadPetFromDB(), npc_cooshcoosh::npc_cooshcooshAI::npc_cooshcooshAI(), npc_engineer_spark_overgrind::npc_engineer_spark_overgrindAI::npc_engineer_spark_overgrindAI(), npc_floon::npc_floonAI::npc_floonAI(), npc_raliq_the_drunk::npc_raliq_the_drunkAI::npc_raliq_the_drunkAI(), npc_taskmaster_fizzule::npc_taskmaster_fizzuleAI::npc_taskmaster_fizzuleAI(), WorldSession::SendAuctionHello(), LuaPlayer::SendAuctionMenu(), SetCharmedBy(), Player::SetGameMaster(), LuaUnit::SummonGuardian(), Spell::SummonGuardian(), and Player::SummonPet().
|
static |
Definition at line 2231 of file Unit.cpp.
References FactionTemplateEntry::faction, FACTION_TEMPLATE_FLAG_CONTESTED_GUARD, FACTION_TEMPLATE_FLAG_HOSTILE_BY_DEFAULT, FactionTemplateEntry::factionFlags, GetAffectingPlayer(), GetFactionTemplateEntry(), Object::HasFlag(), FactionTemplateEntry::IsFriendlyTo(), FactionTemplateEntry::IsHostileTo(), PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_CONTESTED_PVP, REP_FRIENDLY, REP_HOSTILE, REP_NEUTRAL, sFactionStore, Unit(), UNIT_FIELD_FLAGS2, and UNIT_FLAG2_IGNORE_REPUTATION.
Referenced by GetReactionTo().
| FactionTemplateEntry const * Unit::GetFactionTemplateEntry | ( | ) | const |
Definition at line 2117 of file Unit.cpp.
References getFaction(), Object::GetGUID(), WorldObject::GetName(), Object::GetTypeId(), SF_LOG_ERROR, sFactionTemplateStore, Object::ToCreature(), and Object::ToPlayer().
Referenced by _IsValidAttackTarget(), BuildValuesUpdate(), Player::CanUseBattlegroundObject(), HostileRefManager::deleteReferencesForFaction(), Spell::EffectGameObjectDamage(), GetFactionReactionTo(), GetReactionTo(), Player::GetReputationPriceDiscount(), IsContestedGuard(), IsHostileToPlayers(), IsNeutralToAll(), and RestoreFaction().
| Unit * Unit::GetFirstControlled | ( | ) | const |
Definition at line 2769 of file Unit.cpp.
References GetCharm(), GetMinionGUID(), GetPetGUID(), ObjectAccessor::GetUnit(), and Unit().
Referenced by Player::CharmSpellInitialize(), and RemoveCharmedBy().
| Minion * Unit::GetFirstMinion | ( | ) | const |
Definition at line 2375 of file Unit.cpp.
References ObjectAccessor::GetCreatureOrPetOrVehicle(), GetMinionGUID(), GUID_LOPART(), SetMinionGUID(), SF_LOG_ERROR, Unit(), and UNIT_MASK_MINION.
|
inlinevirtual |
Reimplemented in Minion.
Definition at line 2788 of file Unit.h.
References M_PI.
Referenced by Spell::EffectSummonType(), npc_commandscript::HandleNpcFollowCommand(), and WorldSession::HandlePetActionHelper().
| GameObject * Unit::GetGameObject | ( | uint32 | spellId | ) | const |
Definition at line 1654 of file Unit.cpp.
References m_gameObj.
Referenced by Player::GetGameObjectIfCanInteractWith(), and Player::TeleportTo().
|
inline |
Definition at line 1551 of file Unit.h.
References Object::GetByteValue(), and UNIT_FIELD_SEX.
Referenced by Player::CreateCorpse(), LuaUnit::GetGender(), GetModelForForm(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraTransform(), WorldSession::HandleCharCreateCallback(), spell_item_savory_deviate_delight::spell_item_savory_deviate_delight_SpellScript::HandleDummy(), WorldSession::HandleMirrorImageDataRequest(), modify_commandscript::HandleModifyGenderCommand(), spell_gen_running_wild::spell_gen_running_wild_AuraScript::HandleMount(), misc_commandscript::HandlePInfoCommand(), reset_commandscript::HandleResetStatsOrLevelHelper(), WorldSession::HandleWhoOpcode(), Player::InitDisplayIds(), SpellArea::IsFitToRequirements(), AchievementCriteriaData::Meets(), spell_gen_aura_service_uniform::spell_gen_aura_service_uniform_AuraScript::OnApply(), and Player::SaveToDB().
| Guardian * Unit::GetGuardianPet | ( | ) | const |
Definition at line 2390 of file Unit.cpp.
References ObjectAccessor::GetCreatureOrPetOrVehicle(), GetPetGUID(), SetPetGUID(), SF_LOG_FATAL, UI64FMTD, Unit(), and UNIT_MASK_GUARDIAN.
Referenced by spell_warl_fel_synergy::spell_warl_fel_synergy_AuraScript::CheckProc(), GetNextRandomRaidMemberOrPet(), GetPartyMembers(), AuraEffect::HandleAuraDummy(), HandleDummyAuraProc(), AuraEffect::HandleModDamageDone(), SetMinion(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 1600 of file Unit.h.
References Object::GetUInt32Value(), and UNIT_FIELD_HEALTH.
Referenced by spell_rog_cheat_death::spell_rog_cheat_death_AuraScript::Absorb(), boss_twilight_halion::boss_twilight_halionAI::boss_twilight_halionAI(), WorldSession::BuildPartyMemberStatsChangedPacket(), boss_supremus::boss_supremusAI::CalculateHatefulStrikeTarget(), spell_razorscale_flame_breath::spell_razorscale_flame_breath_SpellScript::CheckDamage(), CountPctFromCurHealth(), boss_twinemperorsAI::DamageTaken(), DealDamage(), DealMeleeDamage(), LuaUnit::GetHealth(), GetHealthGain(), GetHealthPct(), AuraEffect::HandleAuraModIncreaseHealth(), AuraEffect::HandleAuraModIncreaseMaxHealth(), misc_commandscript::HandleDieCommand(), HandleDummyAuraProc(), Player::HandleFall(), npc_commandscript::HandleNpcInfoCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), HandleProcTriggerSpell(), HealthAbovePct(), HealthAbovePctHealed(), HealthBelowPct(), HealthBelowPctDamaged(), IsFullHealth(), Kill(), ModifyHealth(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), spell_xt002_gravity_bomb_aura::spell_xt002_gravity_bomb_aura_AuraScript::OnPeriodic(), Skyfire::HealthPctOrderPred::operator()(), Skyfire::MostHPMissingInRange::operator()(), Creature::RegenerateHealth(), Player::RegenerateHealth(), boss_warchief_kargath_bladefist::boss_warchief_kargath_bladefistAI::removeAdds(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::Reset(), Creature::ResetPlayerDamageReq(), Pet::SavePetToDB(), Creature::SaveToDB(), Player::SaveToDB(), SendAttackStateUpdate(), SendSpellNonMeleeDamageLog(), SetMaxHealth(), boss_xt002::boss_xt002_AI::SetPhaseOne(), boss_twinemperorsAI::SpellHit(), boss_attumen::boss_attumenAI::UpdateAI(), boss_patchwerk::boss_patchwerkAI::UpdateAI(), npc_illidari_council::npc_illidari_councilAI::UpdateAI(), Player::UpdateCharmedAI(), and boss_faction_championsAI::UpdateThreat().
Definition at line 4055 of file Unit.cpp.
References GetHealth(), and GetMaxHealth().
|
inline |
Definition at line 1629 of file Unit.h.
References GetHealth(), and GetMaxHealth().
Referenced by AchievementMgr< T >::AdditionalRequirementsSatisfied(), LuaUnit::GetHealthPct(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleModTotalPercentStat(), and spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic().
|
inline |
Definition at line 2466 of file Unit.h.
References m_HostileRefManager.
Referenced by Player::CleanupAfterTaxiFlight(), CleanupBeforeRemoveFromMap(), FlightPathMovementGenerator::DoFinalize(), FlightPathMovementGenerator::DoReset(), Spell::DoSpellHitOnUnit(), Battleground::EndBattleground(), EnergizeBySpell(), AuraEffect::HandleAuraModTotalThreat(), misc_commandscript::HandleCombatStopCommand(), debug_commandscript::HandleDebugHostileRefListCommand(), AuraEffect::HandleFeignDeath(), AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), Spell::HandleThreatSpells(), RemoveCharmedBy(), Player::SendCinematicStart(), setDeathState(), Player::SetGameMaster(), Player::SetInWater(), SetPhased(), SetPhaseMask(), StopAttackFaction(), and Player::StopCinematic().
|
inline |
Definition at line 2479 of file Unit.h.
References m_interruptMask.
|
inline |
Definition at line 2840 of file Unit.h.
References _lastDamagedTime.
Referenced by Creature::SelectVictim().
|
inline |
Definition at line 1528 of file Unit.h.
References Object::GetUInt32Value(), and UNIT_FIELD_LEVEL.
Referenced by Player::_ApplyItemBonuses(), Player::_LoadGroup(), Player::_LoadSkills(), Player::_LoadSpells(), KillRewarder::_RewardPlayer(), KillRewarder::_RewardXP(), Player::_SaveStats(), AchievementMgr< T >::AdditionalRequirementsSatisfied(), Group::AddMember(), BattlegroundAV::AddPlayer(), Pet::addSpell(), Spell::AddUnitTarget(), Player::ApplyEnchantment(), BattlegroundMgr::BuildBattlegroundListPacket(), WorldSession::BuildPartyMemberStatsChangedPacket(), CalcArmorReducedDamage(), SpellInfo::CalcCastTime(), SpellEffectInfo::CalcRadius(), CalcSpellResistance(), spell_item_arcane_shroud::spell_item_arcane_shroud_AuraScript::CalculateAmount(), spell_item_the_eye_of_diminution::spell_item_the_eye_of_diminution_AuraScript::CalculateAmount(), CalculateDefaultCoefficient(), CalculateLevelPenalty(), CalculateMeleeDamage(), Player::CalculateReputationGain(), Player::CalculateTalentsPoints(), SpellEffectInfo::CalcValue(), Player::CanEquipItem(), Group::CanJoinBattlegroundQueue(), Player::CanRollForItemInLFG(), Player::CanSeeStartQuest(), Player::CanUseItem(), Player::CheckAreaExploreAndOutdoor(), Spell::CheckCast(), spell_hun_tame_beast::spell_hun_tame_beast_SpellScript::CheckCast(), Spell::CheckEffectTarget(), Pet::CreateBaseAtTamed(), CreateTamedPetFrom(), CreateTamedPetFrom(), DealMeleeDamage(), DoLowUnlearnCost(), DoMedUnlearnCost(), Spell::EffectSkinning(), Spell::EffectTameCreature(), lfg::LFGMgr::FinishDungeon(), Skyfire::XP::Gain(), Player::GetBarberShopCost(), Player::GetBGAccessByLevel(), LuaAura::GetCasterLevel(), GetCastingTimeForBonus(), Pet::GetCurrentFoodBenefitLevel(), WorldSession::getDialogStatus(), Player::GetDodgeFromAgility(), SocialMgr::GetFriendInfo(), Player::GetHealthBonusFromStamina(), LuaItem::GetItemLink(), LuaUnit::GetLevel(), Creature::getLevelForTarget(), getLevelForTarget(), lfg::LFGMgr::GetLockedDungeons(), GetMaxSkillValueForLevel(), Player::GetMeleeCritFromAgility(), Player::GetQuestLevel(), Player::GetRatingMultiplier(), Player::GetSpellCritFromIntellect(), Player::GetsRecruitAFriendBonus(), Player::GetTrainerSpellState(), GetUnitMeleeSkill(), Player::GiveLevel(), Pet::GivePetLevel(), Pet::GivePetXP(), LuaPlayer::GiveXP(), Player::GiveXP(), WorldSession::HandleCastSpellOpcode(), character_commandscript::HandleCharacterLevelCommand(), WorldSession::HandleCharCreateCallback(), Player::HandleDrowning(), spell_mage_conjure_refreshment::spell_mage_conjure_refreshment_SpellScript::HandleDummy(), spell_mage_conjure_refreshment_table::spell_mage_conjure_refreshment_table_SpellScript::HandleDummy(), WorldSession::HandleGrantLevel(), WorldSession::HandleInitiateTradeOpcode(), character_commandscript::HandleLevelUpCommand(), WorldSession::HandleMessagechatOpcode(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), spell_pri_divine_aegis::spell_pri_divine_aegis_AuraScript::HandleProc(), reset_commandscript::HandleResetLevelCommand(), spell_item_scroll_of_recall::spell_item_scroll_of_recall_SpellScript::HandleScript(), WorldSession::HandleSendMail(), WorldSession::HandleWhoOpcode(), Player::InitGlyphsForLevel(), Pet::InitLevelupSpellsForLevel(), Guardian::InitStats(), Puppet::InitStats(), TempSummon::InitStats(), Totem::InitStats(), Guardian::InitStatsForLevel(), Player::InitStatsForLevel(), Pet::InitTalentForLevel(), Player::InitTalentForLevel(), Player::InitTaxiNodesForLevel(), Battlefield::InvitePlayerToWar(), Creature::isCanTrainingAndResetTalentsOf(), Player::isHonorOrXPTarget(), Player::IsResearchDigsiteAvailable(), Pet::LearnSpecializationSpells(), Pet::LoadPetFromDB(), AchievementCriteriaData::Meets(), Player::OCTRegenMPPerSpirit(), Player::OnGossipSelect(), Player::PetSpellInitialize(), Player::PrepareGossipMenu(), ProcDamageAndSpellFor(), Player::RegenerateHealth(), Player::RemovedInsignia(), Pet::removeSpell(), Player::ResetTalents(), Player::ResurrectPlayer(), Player::RewardHonor(), Player::RewardQuest(), Player::RewardReputation(), RollMeleeOutcomeAgainst(), Player::Satisfy(), Player::SatisfyQuestLevel(), Pet::SavePetToDB(), Player::SaveToDB(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInvite(), WorldSession::SendLfgPlayerLockInfo(), WorldSession::SendLfgRoleCheckUpdate(), Player::SendLoot(), Player::SendQuestReward(), WorldSession::SendStablePetCallback(), Player::SetRestBonus(), Guild::Member::SetStats(), LuaUnit::SummonGuardian(), Spell::SummonGuardian(), Player::SummonPet(), Pet::SynchronizeLevelWithOwner(), AchievementMgr< T >::UpdateAchievementCriteria(), Player::UpdateAttackPowerAndDamage(), Creature::UpdateEntry(), GameObject::Use(), and Quest::XPValue().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 1532 of file Unit.h.
References getLevel(), and WorldObject::WorldObject().
Referenced by Creature::GetAggroRange(), Creature::GetAttackDistance(), Creature::getLevelForTarget(), GetMaxSkillValueForLevel(), GetUnitMeleeSkill(), MagicSpellHitResult(), and RollMeleeOutcomeAgainst().
Definition at line 2729 of file Unit.cpp.
References _IsValidAttackTarget(), SpellInfo::Attributes, SpellInfo::AttributesEx, AURA_REMOVE_BY_EXPIRE, SpellInfo::CheckExplicitTarget(), SpellInfo::CheckTarget(), GetAuraEffectsByType(), SPELL_ATTR0_ABILITY, SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY, SPELL_ATTR1_CANT_BE_REDIRECTED, SPELL_AURA_SPELL_MAGNET, SPELL_CAST_OK, and Unit().
|
inline |
Definition at line 1604 of file Unit.h.
References Object::GetUInt32Value(), and UNIT_FIELD_MAX_HEALTH.
Referenced by Player::_SaveStats(), boss_prince_keleseth_icc::boss_prince_kelesethAI::boss_prince_kelesethAI(), boss_prince_taldaram_icc::boss_prince_taldaramAI::boss_prince_taldaramAI(), boss_prince_valanar_icc::boss_prince_valanarAI::boss_prince_valanarAI(), WorldSession::BuildPartyMemberStatsChangedPacket(), spell_monk_touch_of_karma::spell_monk_touch_of_karma_AuraScript::CalculateAmount(), CountPctFromMaxHealth(), boss_twinemperorsAI::DamageTaken(), GetHealthGain(), GetHealthPct(), LuaUnit::GetMaxHealth(), AuraEffect::HandleAuraModIncreaseMaxHealth(), HandleAuraProc(), Player::HandleDrowning(), Player::HandleFall(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcInfoCommand(), AuraEffect::HandlePeriodicDummyAuraTick(), HandleProcTriggerSpell(), spell_stinky_precious_decimate::spell_stinky_precious_decimate_SpellScript::HandleScript(), IsFullHealth(), Creature::LoadCreatureFromDB(), Player::LoadFromDB(), Pet::LoadPetFromDB(), ModifyHealth(), Skyfire::HealthPctOrderPred::operator()(), Skyfire::MostHPMissingInRange::operator()(), Player::outDebugValues(), Player::ProcessDelayedOperations(), Creature::RegenerateHealth(), Player::RegenerateHealth(), Player::ResetAllPowers(), Player::ResurectUsingRequestData(), Player::ResurrectPlayer(), RewardRage(), SetFullHealth(), SetHealth(), boss_xt002::boss_xt002_AI::SetPhaseOne(), and boss_twinemperorsAI::SpellHit().
Definition at line 1379 of file UnitAuraState.cpp.
References GetAuraEffectsByType().
Referenced by AuraEffect::HandlePeriodicHealAurasTick(), SpellHealingBonusTaken(), and UpdateSpeed().
| int32 Unit::GetMaxNegativeAuraModifierByAffectMask | ( | AuraType | auratype, |
| SpellInfo const * | affectedSpell ) const |
Definition at line 1555 of file Unit.cpp.
References GetAuraEffectsByType().
Definition at line 1446 of file UnitAuraState.cpp.
References GetAuraEffectsByType().
Definition at line 1512 of file UnitAuraState.cpp.
References GetAuraEffectsByType().
Referenced by ModSpellDuration().
Definition at line 1365 of file UnitAuraState.cpp.
References GetAuraEffectsByType().
Referenced by AuraEffect::HandlePeriodicHealAurasTick(), Player::RewardHonor(), SpellHealingBonusTaken(), and UpdateSpeed().
| int32 Unit::GetMaxPositiveAuraModifierByAffectMask | ( | AuraType | auratype, |
| SpellInfo const * | affectedSpell ) const |
Definition at line 1541 of file Unit.cpp.
References GetAuraEffectsByType().
| int32 Unit::GetMaxPositiveAuraModifierByMiscMask | ( | AuraType | auratype, |
| uint32 | misc_mask, | ||
| const AuraEffect * | except = NULL ) const |
Definition at line 1432 of file UnitAuraState.cpp.
References GetAuraEffectsByType(), and AuraEffect::GetMiscValue().
Referenced by AuraEffect::HandleAuraModResistanceExclusive().
Definition at line 1498 of file UnitAuraState.cpp.
References GetAuraEffectsByType().
Definition at line 5246 of file Unit.cpp.
References Object::GetInt32Value(), GetPowerIndex(), MAX_POWERS, and UNIT_FIELD_MAX_POWER.
Referenced by Player::_SaveStats(), WorldSession::BuildPartyMemberStatsChangedPacket(), CountPctFromMaxPower(), Player::Create(), Spell::EffectResurrect(), Spell::EffectResurrectWithAura(), Spell::EffectSelfResurrect(), LuaUnit::GetMaxPower(), LuaUnit::GetPowerPct(), Player::GiveLevel(), Aura::HandleAuraSpecificMods(), modify_commandscript::HandleModifyEnergyCommand(), AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), spell_kelthuzad_detonate_mana::spell_kelthuzad_detonate_mana_AuraScript::HandleScript(), Guardian::InitStatsForLevel(), Player::InitStatsForLevel(), Creature::LoadCreatureFromDB(), Pet::LoadPetFromDB(), ModifyPower(), ModifyPowerPct(), Skyfire::PowerPctOrderPred::operator()(), Player::outDebugValues(), Player::ProcessDelayedOperations(), spell_bronjahm_magic_bane::spell_bronjahm_magic_bane_SpellScript::RecalculateDamage(), Creature::Regenerate(), Player::Regenerate(), Creature::RegenerateMana(), Player::ResetAllPowers(), Player::ResurectUsingRequestData(), Player::ResurrectPlayer(), SetPower(), Player::SummonPet(), and Player::UpdateManaRegen().
Definition at line 1757 of file Unit.h.
References getLevel(), getLevelForTarget(), and Unit().
Referenced by Player::addSpell(), DealMeleeDamage(), misc_commandscript::HandleSetSkillCommand(), Player::removeSpell(), RollMeleeOutcomeAgainst(), Player::UpdateCritPercentage(), and Player::UpdateSkillsForLevel().
| uint32 Unit::GetMechanicImmunityMask | ( | ) | const |
Definition at line 3570 of file Unit.cpp.
References IMMUNITY_MECHANIC, and m_spellImmune.
Definition at line 722 of file Unit.cpp.
References SpellInfo::Effects, SpellInfo::GetEffectMechanic(), GetTotalAuraModifierByMiscValue(), SpellEffectInfo::IsEffect(), MAX_SPELL_EFFECTS, and SPELL_AURA_MOD_MECHANIC_RESISTANCE.
Referenced by MagicSpellHitResult(), and MeleeSpellHitResult().
|
protectedvirtual |
Reimplemented in Creature.
Definition at line 5801 of file Unit.cpp.
References SPELL_SCHOOL_MASK_NORMAL.
Referenced by CalculateMeleeDamage(), and MeleeDamageBonusTaken().
Definition at line 2751 of file Unit.cpp.
References _IsValidAttackTarget(), AURA_REMOVE_BY_EXPIRE, SpellInfo::CheckExplicitTarget(), SpellInfo::CheckTarget(), GetAuraEffectsByType(), roll_chance_i(), SPELL_AURA_ADD_CASTER_HIT_TRIGGER, SPELL_CAST_OK, and Unit().
Referenced by AttackerStateUpdate().
| float Unit::GetMeleeReach | ( | ) | const |
Definition at line 441 of file Unit.cpp.
References Object::m_floatValues, MIN_MELEE_REACH, and UNIT_FIELD_COMBAT_REACH.
Referenced by IsWithinMeleeRange().
|
inline |
Definition at line 2063 of file Unit.h.
References Object::GetUInt64Value(), and UNIT_FIELD_SUMMON.
Referenced by GetFirstControlled(), GetFirstMinion(), Guardian::InitSummon(), OutDebugInfo(), and RemoveAllControlled().
| uint32 Unit::GetModelForForm | ( | ShapeshiftForm | form | ) | const |
Glyph of Arctic Wolf
Definition at line 7638 of file Unit.cpp.
References ALLIANCE, FORM_BEAR, FORM_CAT, FORM_FLIGHT, FORM_FLIGHT_EPIC, FORM_GHOSTWOLF, FORM_MOONKIN, FORM_TRAVEL, GENDER_MALE, Object::GetByteValue(), getGender(), getRace(), Object::GetTypeId(), HasAura(), HORDE, SpellShapeshiftFormEntry::modelID_A, SpellShapeshiftFormEntry::modelID_H, PLAYER_FIELD_HAIR_COLOR_ID, RACE_NIGHTELF, RACE_TAUREN, RACE_TROLL, RACE_WORGEN, sSpellShapeshiftFormStore, Player::TeamForRace(), and TYPEID_PLAYER.
Referenced by AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraTransform(), and RestoreDisplayId().
Definition at line 7989 of file Unit.cpp.
References getRace(), RACE_DRAENEI, RACE_DWARF, RACE_GOBLIN, RACE_ORC, RACE_PANDAREN_ALLIANCE, RACE_PANDAREN_HORDE, RACE_PANDAREN_NEUTRAL, RACE_TAUREN, RACE_TROLL, SUMMON_TYPE_LIGHTSPRING, SUMMON_TYPE_STATUE_JADE, SUMMON_TYPE_STATUE_OX, SUMMON_TYPE_TOTEM_AIR, SUMMON_TYPE_TOTEM_EARTH, SUMMON_TYPE_TOTEM_FIRE, and SUMMON_TYPE_TOTEM_WATER.
Referenced by Totem::InitStats().
| float Unit::GetModifierValue | ( | UnitMods | unitMod, |
| UnitModifierType | modifierType ) const |
Definition at line 5027 of file Unit.cpp.
References m_auraModifiersGroup, MODIFIER_TYPE_END, SF_LOG_ERROR, TOTAL_PCT, and UNIT_MOD_END.
Referenced by Player::CalculateMinMaxDamage(), Guardian::UpdateArmor(), Player::UpdateArmor(), Creature::UpdateAttackPowerAndDamage(), Guardian::UpdateAttackPowerAndDamage(), Player::UpdateAttackPowerAndDamage(), Creature::UpdateDamagePhysical(), Guardian::UpdateDamagePhysical(), Guardian::UpdateMaxHealth(), Player::UpdateMaxHealth(), Guardian::UpdateMaxPower(), and Player::UpdateMaxPower().
|
inline |
Definition at line 2605 of file Unit.h.
References i_motionMaster.
Referenced by HomeMovementGenerator< Creature >::_setTargetLocation(), BattlegroundAV::AddAVCreature(), boss_illidan_stormrage::boss_illidan_stormrageAI::CastEyeBlast(), CleanupBeforeRemoveFromMap(), Map::CreatureRespawnRelocation(), Creature::DoFleeToGetAssistance(), Spell::EffectSummonType(), boss_sartharion::boss_sartharionAI::FetchDragons(), AssistanceMovementGenerator::Finalize(), EffectMovementGenerator::Finalize(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), misc_commandscript::HandleAppearCommand(), AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), WorldSession::HandleCharCreateCallback(), misc_commandscript::HandleComeToMeCommand(), spell_malygos_random_portal::spell_malygos_random_portal_SpellScript::HandleDummy(), spell_q12589_shoot_rjr::spell_q12589_shoot_rjr_SpellScript::HandleDummy(), go_commandscript::HandleGoCreatureCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoObjectCommand(), go_commandscript::HandleGoTaxinodeCommand(), go_commandscript::HandleGoTicketCommand(), go_commandscript::HandleGoTriggerCommand(), go_commandscript::HandleGoXYZCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), AuraEffect::HandleModPossessPet(), misc_commandscript::HandleMovegensCommand(), WorldSession::HandleMoveWorldportAckOpcode(), npc_commandscript::HandleNpcAddMoveCommand(), npc_commandscript::HandleNpcFollowCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetSpawnDistCommand(), npc_commandscript::HandleNpcUnFollowCommand(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleRecallCommand(), spell_nexus_lord_align_disk_aggro::spell_nexus_lord_align_disk_aggro_SpellScript::HandleScript(), spell_saviana_conflagration_throwback::spell_saviana_conflagration_throwback_SpellScript::HandleScript(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), tele_commandscript::HandleTeleNameCommand(), wp_commandscript::HandleWpLoadCommand(), wp_commandscript::HandleWpUnLoadCommand(), JumpTo(), JumpTo(), LuaUnit::JumpToCoords(), npc_counselor_talbot::npc_counselor_talbotAI::JustDied(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), npc_fel_crystal::npc_fel_crystalAI::JustDied(), KnockbackFrom(), spell_alysrazor_turn_monstrosity::spell_alysrazor_turn_monstrosity_SpellScript::KnockBarrage(), spell_svalna_revive_champion::spell_svalna_revive_champion_SpellScript::Land(), CreatureGroup::LeaderMoveTo(), boss_teron_gorefiend::boss_teron_gorefiendAI::MindControlGhost(), boss_midnight::boss_midnightAI::Mount(), LuaUnit::MoveCharge(), LuaUnit::MoveChase(), LuaUnit::MoveClear(), instance_deadmines::instance_deadmines_InstanceMapScript::MoveCreatureInside(), LuaUnit::MoveFollow(), LuaUnit::MoveRandom(), LuaUnit::MoveRotate(), LuaUnit::MoveTo(), boss_palehoof::boss_palehoofAI::NextPhase(), npc_geezle::npc_geezleAI::NextStep(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), npc_argent_valiant::npc_argent_valiantAI::npc_argent_valiantAI(), npc_freya_ward_summon::npc_freya_ward_summonAI::npc_freya_ward_summonAI(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), spell_gen_rock_jump_a::spell_gen_rock_jump_a_SpellScript::PrepareSpellScript(), spell_gen_rock_jump_b::spell_gen_rock_jump_b_SpellScript::PrepareSpellScript(), spell_gen_rock_jump_c::spell_gen_rock_jump_c_SpellScript::PrepareSpellScript(), PretendToDie(), npc_jungle_punch_target::npc_jungle_punch_targetAI::proceedCwEvent(), propagateSpeedChange(), boss_warchief_kargath_bladefist::boss_warchief_kargath_bladefistAI::removeAdds(), RemoveCharmedBy(), Skyfire::PetTransport::RemoveOwnerHunterPet(), boss_fathomlord_karathress::boss_fathomlord_karathressAI::Reset(), boss_sartharion::boss_sartharionAI::Reset(), ResetCryForTheMoonActor(), Creature::Respawn(), instance_uldaman::instance_uldaman_InstanceMapScript::RespawnMinions(), Resurrect(), WorldSession::SendDoFlight(), SetCharmedBy(), SetConfused(), setDeathState(), SetFeared(), SetInCombatState(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::SpawnPyramidWave(), instance_violet_hold::instance_violet_hold_InstanceMapScript::StartBossEncounter(), WaypointMovementGenerator< Creature >::StartMove(), Player::SummonIfPossible(), LuaPlayer::Teleport(), lfg::LFGMgr::TeleportPlayer(), instance_violet_hold::instance_violet_hold_InstanceMapScript::Update(), boss_krick::boss_krickAI::UpdateAI(), boss_malygos::boss_malygosAI::UpdateAI(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::UpdateAI(), boss_sartharion::boss_sartharionAI::UpdateAI(), boss_the_lich_king::boss_the_lich_kingAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_elder_kekek::npc_elder_kekekAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), Player::UpdateCharmedAI(), and Creature::UpdateMovementFlags().
|
inline |
Definition at line 2609 of file Unit.h.
References i_motionMaster.
| MountCapabilityEntry const * Unit::GetMountCapability | ( | uint32 | mountType | ) | const |
Definition at line 3728 of file Unit.cpp.
References MountCapabilityEntry::Flags, WorldLocation::GetMapId(), Player::GetSkillValue(), Object::GetTypeId(), WorldObject::GetZoneAndAreaId(), HasAura(), HasExtraUnitMovementFlag(), HasSpell(), HasUnitMovementFlag(), MAX_MOUNT_CAPABILITIES, MOUNT_FLAG_CAN_PITCH, MOUNT_FLAG_CAN_SWIM, MountTypeEntry::MountCapability, MOVEMENTFLAG2_FULL_SPEED_PITCHING, MOVEMENTFLAG_SWIMMING, MountCapabilityEntry::RequiredArea, MountCapabilityEntry::RequiredAura, MountCapabilityEntry::RequiredMap, MountCapabilityEntry::RequiredSpell, SKILL_RIDING, sMountCapabilityStore, sMountTypeStore, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by SpellInfo::CheckLocation().
|
inline |
Definition at line 1746 of file Unit.h.
References Object::GetUInt32Value(), and UNIT_FIELD_MOUNT_DISPLAY_ID.
Referenced by LuaUnit::GetMountDisplayId(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), and AuraEffect::HandleAuraTransform().
|
inline |
Definition at line 2849 of file Unit.h.
References m_movementCounter.
Referenced by Object::BuildMovementUpdate().
|
inline |
Definition at line 2495 of file Unit.h.
References Object::GetUInt32Value(), and UNIT_FIELD_NATIVE_DISPLAY_ID.
Referenced by Creature::Create(), Player::CreateCorpse(), DeMorph(), Player::GetCollisionHeight(), LuaUnit::GetNativeDisplayId(), AuraEffect::HandleAuraCloneCaster(), npc_commandscript::HandleNpcInfoCommand(), MoltenEggCheck::operator()(), Creature::Respawn(), RestoreDisplayId(), Pet::SavePetToDB(), and Creature::SaveToDB().
|
inline |
Definition at line 2339 of file Unit.h.
References Object::GetFloatValue(), and UNIT_FIELD_STAT_NEG_BUFF.
| Unit * Unit::GetNextRandomRaidMemberOrPet | ( | float | radius | ) |
Definition at line 2826 of file Unit.cpp.
References Group::GetFirstMember(), Player::GetGroup(), GetGuardianPet(), Group::GetMembersCount(), GetOwner(), Object::GetTypeId(), IsHostileTo(), IsPet(), WorldObject::IsWithinDistInMap(), GroupReference::next(), Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, and Unit().
Referenced by HandleAuraRaidProcFromCharge(), HandleAuraRaidProcFromChargeWithValue(), AuraEffect::HandleRaidProcFromChargeAuraProc(), and AuraEffect::HandleRaidProcFromChargeWithValueAuraProc().
| Aura * Unit::GetOwnedAura | ( | uint32 | spellId, |
| uint64 | casterGUID = 0, | ||
| uint64 | itemCasterGUID = 0, | ||
| uint32 | reqEffMask = 0, | ||
| Aura * | except = NULL ) const |
Definition at line 443 of file UnitAuraState.cpp.
References m_ownedAuras.
Referenced by _TryStackingOrRefreshingExistingAura().
|
inline |
Definition at line 2188 of file Unit.h.
References m_ownedAuras.
Referenced by GetDispellableAuraList().
|
inline |
Definition at line 2192 of file Unit.h.
References m_ownedAuras.
| Unit * Unit::GetOwner | ( | ) | const |
Definition at line 2339 of file Unit.cpp.
References GetOwnerGUID(), ObjectAccessor::GetUnit(), and Unit().
Referenced by ApplyResilience(), spell_sha_mana_tide_totem::spell_sha_mana_tide_totem_AuraScript::CalculateAmount(), spell_dk_rune_weapon_scaling_02::spell_dk_rune_weapon_scaling_02_AuraScript::CalculateDamageDoneAmount(), spell_dk_pet_scaling_01::spell_dk_pet_scaling_01_AuraScript::CalculateStaminaAmount(), spell_dk_pet_scaling_01::spell_dk_pet_scaling_01_AuraScript::CalculateStrengthAmount(), spell_dk_blood_gorged::spell_dk_blood_gorged_AuraScript::CheckProc(), spell_pri_mana_leech::spell_pri_mana_leech_AuraScript::CheckProc(), ClearInCombat(), DealHeal(), GetCharmerOrOwner(), GetCombatRatingReduction(), GetNextRandomRaidMemberOrPet(), LuaUnit::GetOwner(), GetSpellModOwner(), Aura::HandleAuraSpecificMods(), spell_q12277_wintergarde_mine_explosion::spell_q12277_wintergarde_mine_explosion_SpellScript::HandleDummy(), spell_sha_healing_stream_totem::spell_sha_healing_stream_totem_SpellScript::HandleDummy(), HandleDummyAuraProc(), spell_mage_water_elemental_freeze::spell_mage_water_elemental_freeze_SpellScript::HandleImprovedFreeze(), WorldSession::HandlePetActionHelper(), reset_commandscript::HandleResetTalentsCommand(), spell_hun_pet_heart_of_the_phoenix::spell_hun_pet_heart_of_the_phoenix_SpellScript::HandleScript(), IsAlwaysVisibleFor(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::JustDied(), Kill(), npc_dkc1_gothik::npc_dkc1_gothikAI::MoveInLineOfSight(), npc_fezzix_geartwist::npc_fezzix_geartwistAI::MoveInLineOfSight(), npc_khunok_the_behemoth::npc_khunok_the_behemothAI::MoveInLineOfSight(), npc_ancestral_wolf::npc_ancestral_wolfAI::npc_ancestral_wolfAI(), spell_monk_soothing_mist::spell_monk_soothing_mist_AuraScript::OnApply(), spell_monk_serpents_zeal::spell_monk_serpents_zeal_AuraScript::OnProc(), RemoveFromWorld(), RestoreFaction(), Creature::SelectVictim(), SendPetActionFeedback(), SendPetAIReaction(), SendPetTalk(), SetHealth(), SetMaxHealth(), SetMaxPower(), SetPower(), setPowerType(), SetStunned(), SpellDamageBonusDone(), SpellHealingBonusDone(), npc_scarlet_courier::npc_scarlet_courierAI::UpdateAI(), and UpdateAuraForGroup().
|
inline |
Definition at line 2050 of file Unit.h.
References Object::GetUInt64Value(), and UNIT_FIELD_SUMMONED_BY.
Referenced by FollowMovementGenerator< T >::_updateSpeed(), Skyfire::PetTransport::AttachHunterPetToOwnerTransport(), BuildValuesUpdate(), CanFreeMove(), CanHaveThreatList(), DealDamage(), GetCharmerOrOwnerGUID(), GetOwner(), LuaUnit::GetOwnerGUID(), WorldSession::HandlePetActionHelper(), HandleSpellClick(), isSpellCrit(), Condition::Meets(), OutDebugInfo(), RemoveAllControlled(), Player::RemovePet(), Pet::SavePetToDB(), SetCharm(), SetMinion(), SetOwnerGUID(), SpellDamageBonusDone(), and Pet::Update().
| void Unit::GetPartyMembers | ( | std::list< Unit * > & | units | ) |
Definition at line 7272 of file Unit.cpp.
References GetCharmerOrOwnerOrSelf(), Group::GetFirstMember(), Player::GetGroup(), GetGuardianPet(), Player::GetSubGroup(), Object::GetTypeId(), IsAlive(), IsHostileTo(), WorldObject::IsInMap(), GroupReference::next(), Object::ToPlayer(), TYPEID_PLAYER, and Unit().
Referenced by spell_monk_soothing_mist::spell_monk_soothing_mist_AuraScript::OnApply().
|
inline |
Definition at line 2087 of file Unit.h.
References m_SummonSlot, and SUMMON_SLOT_PET.
Referenced by BeforeVisibilityDestroy< Creature >(), spell_hun_tame_beast::spell_hun_tame_beast_SpellScript::CheckCast(), Player::DuelComplete(), GetFirstControlled(), GetGuardianPet(), LuaUnit::GetMinionGUID(), Player::GetPet(), LuaUnit::GetPetGUID(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), RemoveAllControlled(), Player::ResummonPetTemporaryUnSummonedIfAny(), Pet::SavePetToDB(), SetMinion(), and Pet::Update().
|
static |
Definition at line 4900 of file Unit.cpp.
References ObjectAccessor::GetPlayer(), and WorldObject::WorldObject().
Referenced by World::FindPlayerInZone(), LuaGuild::GetMembers(), LuaGlobalFunctions::GetPlayersInWorld(), character_commandscript::HandleCharacterRenameCommand(), misc_commandscript::HandleMuteCommand(), ticket_commandscript::HandleTicketCloseByIdCommand(), ticket_commandscript::HandleTicketDeleteByIdCommand(), misc_commandscript::HandleUnmuteCommand(), CreatureTextMgr::SendChatPacket(), and CreatureTextMgr::SendNonChatPacket().
| float Unit::GetPositionZMinusOffset | ( | ) | const |
Definition at line 6660 of file Unit.cpp.
References Object::GetFloatValue(), Position::GetPositionZ(), HasUnitMovementFlag(), MOVEMENTFLAG_HOVER, and UNIT_FIELD_HOVER_HEIGHT.
Referenced by Object::BuildMovementUpdate(), Creature::SaveToDB(), SendTeleportPacket(), SetFacingTo(), SetFacingToObject(), and Creature::UpdateMovementFlags().
|
inline |
Definition at line 2335 of file Unit.h.
References Object::GetFloatValue(), and UNIT_FIELD_STAT_POS_BUFF.
Definition at line 5237 of file Unit.cpp.
References GetPowerIndex(), Object::GetUInt32Value(), MAX_POWERS, and UNIT_FIELD_POWER.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket(), spell_pal_templar_s_verdict::spell_pal_templar_s_verdict_SpellScript::ChangeDamage(), LuaUnit::GetPower(), LuaUnit::GetPowerPct(), Player::GiveLevel(), AuraEffect::HandleAuraModShapeshift(), HandleAuraProcOnPowerAmount(), spell_dru_eclipse_energize::spell_dru_eclipse_energize_SpellScript::HandleEnergize(), Spell::HandleHolyPower(), AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicDummyAuraTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), Player::InitStatsForLevel(), ModifyPower(), spell_mark_of_kazrogal::spell_mark_of_kazrogal_AuraScript::OnPeriodic(), spell_mark_of_kazzak::spell_mark_of_kazzak_AuraScript::OnPeriodic(), Skyfire::PowerPctOrderPred::operator()(), ProcDamageAndSpellFor(), Creature::Regenerate(), Player::Regenerate(), Creature::RegenerateHealth(), Creature::RegenerateMana(), Pet::SavePetToDB(), Creature::SaveToDB(), SetMaxPower(), and boss_kelthuzad::boss_kelthuzadAI::UpdateAI().
This is here because hunter pets are of the warrior class. With the current implementation, the core only gives them POWER_RAGE, so we enforce the class to hunter so that they effectively get focus power.
Definition at line 5346 of file Unit.cpp.
References getClass(), and GetPowerIndexByClass().
Referenced by GetMaxPower(), GetPower(), Player::LoadFromDB(), Player::Regenerate(), Player::SaveToDB(), SetMaxPower(), SetPower(), SpellBaseDamageBonusDone(), and SpellBaseHealingBonusDone().
|
inline |
Definition at line 1651 of file Unit.h.
References Object::GetUInt32Value(), and UNIT_FIELD_DISPLAY_POWER.
Referenced by Player::ActivateSpec(), WorldSession::BuildPartyMemberStatsChangedPacket(), Player::Create(), DealDamage(), LuaUnit::GetPowerPct(), LuaUnit::GetPowerType(), AuraEffect::HandleAuraModShapeshift(), HandleDummyAuraProc(), AuraEffect::HandleObsModPowerAuraTick(), HandleOverrideClassScriptAuraProc(), AuraEffect::HandlePeriodicDummyAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), Player::InitDataForForm(), ManaVoidSelector::operator()(), MistressKissTargetSelector::operator()(), Player::ResetAllPowers(), boss_faction_championsAI::SelectEnemyCaster(), setDeathState(), Creature::Update(), Pet::Update(), boss_kelthuzad::boss_kelthuzadAI::UpdateAI(), boss_vaelastrasz::boss_vaelAI::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), and Player::UpdateTalentSpecializationManaBonus().
Definition at line 5096 of file Unit.cpp.
References POWER_ARCANE_CHARGES, POWER_BURNING_EMBERS, POWER_CHI, POWER_DEMONIC_FURY, POWER_ECLIPSE, POWER_ENERGY, POWER_FOCUS, POWER_HOLY_POWER, POWER_MANA, POWER_RAGE, POWER_RUNES, POWER_RUNIC_POWER, POWER_SHADOW_ORBS, POWER_SOUL_SHARDS, UNIT_MOD_ARCANE_CHARGES, UNIT_MOD_BURNING_EMBERS, UNIT_MOD_CHI, UNIT_MOD_DEMONIC_FURY, UNIT_MOD_ECLIPSE, UNIT_MOD_ENERGY, UNIT_MOD_FOCUS, UNIT_MOD_HOLY_POWER, UNIT_MOD_MANA, UNIT_MOD_RAGE, UNIT_MOD_RUNE, UNIT_MOD_RUNIC_POWER, UNIT_MOD_SHADOW_ORBS, and UNIT_MOD_SOUL_SHARDS.
Referenced by HandleStatModifier().
Definition at line 75 of file UnitProcEvent.cpp.
References GetSpellModOwner(), SpellInfo::Id, and SPELLMOD_PROC_PER_MINUTE.
Referenced by Player::CastItemCombatSpell(), and IsTriggeredAtSpellProcEvent().
| void Unit::GetProcAurasTriggeredOnEvent | ( | AuraApplicationList & | aurasTriggeringProc, |
| AuraApplicationList * | procAuras, | ||
| ProcEventInfo | eventInfo ) |
Definition at line 610 of file UnitProcEvent.cpp.
References ASSERT, and GetAppliedAuras().
Referenced by TriggerAurasProcOnEvent().
|
inline |
Definition at line 1535 of file Unit.h.
References Object::GetByteValue(), and UNIT_FIELD_SEX.
Referenced by Player::_LoadHomeBind(), AchievementMgr< T >::AdditionalRequirementsSatisfied(), Player::BuildPlayerRepop(), Player::CreateCorpse(), GetModelForForm(), GetModelForTotem(), LuaUnit::GetRace(), getRaceMask(), Player::GetStartPosition(), Player::GiveLevel(), AuraEffect::HandleAuraTransform(), WorldSession::HandleCharCreateCallback(), WorldSession::HandleMirrorImageDataRequest(), modify_commandscript::HandleModifyGenderCommand(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), reset_commandscript::HandleResetStatsOrLevelHelper(), misc_commandscript::HandleUnFreezeCommand(), WorldSession::HandleWhoOpcode(), Player::InitDisplayIds(), Player::InitStatsForLevel(), Player::InitTaxiNodesForLevel(), Player::learnDefaultSpells(), Player::LoadFromDB(), AchievementCriteriaData::Meets(), npc_Spirit_of_Master_Shang_Xi::OnGossipHello(), RestoreFaction(), Player::ResurrectPlayer(), Player::RewardHonor(), Player::SaveToDB(), Player::SetGameMaster(), Player::StoreNewItemInBestSlots(), and npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI().
|
inline |
Definition at line 1539 of file Unit.h.
References getRace().
Referenced by Player::_LoadSpells(), Player::CanRollForItemInLFG(), Player::CanUseItem(), Player::GiveLevel(), SpellArea::IsFitToRequirements(), Player::IsSpellFitByClassAndRace(), Player::learnSkillRewardedSpells(), Player::ResetTalents(), and Player::SatisfyQuestRace().
| void Unit::GetRandomContactPoint | ( | const Unit * | target, |
| float & | x, | ||
| float & | y, | ||
| float & | z, | ||
| float | distance2dMin, | ||
| float | distance2dMax ) const |
Definition at line 479 of file Unit.cpp.
References DEFAULT_COMBAT_REACH, Position::GetAngle(), getAttackers(), GetCombatReach(), WorldObject::GetNearPoint(), M_PI, rand_norm(), and Unit().
| ReputationRank Unit::GetReactionTo | ( | Unit const * | target | ) | const |
Definition at line 2140 of file Unit.cpp.
References Player::duel, FACTION_TEMPLATE_FLAG_CONTESTED_GUARD, GetAffectingPlayer(), Object::GetByteValue(), GetCharmerOrOwnerOrSelf(), GetFactionReactionTo(), GetFactionTemplateEntry(), ReputationMgr::GetForcedRankIfAny(), Player::GetReputationMgr(), Object::HasFlag(), ReputationMgr::IsAtWar(), IsInRaidWith(), DuelInfo::opponent, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_CONTESTED_PVP, REP_FRIENDLY, REP_HOSTILE, sFactionStore, DuelInfo::startTime, Unit(), UNIT_BYTE2_FLAG_FFA_PVP, UNIT_FIELD_FLAGS, UNIT_FIELD_FLAGS2, UNIT_FIELD_SHAPESHIFT_FORM, UNIT_FLAG2_IGNORE_REPUTATION, and UNIT_FLAG_PVP_ATTACKABLE.
Referenced by _IsValidAssistTarget(), _IsValidAttackTarget(), IsFriendlyTo(), IsHostileTo(), and Condition::Meets().
|
inline |
Definition at line 2728 of file Unit.h.
References _redirectThreadInfo.
Referenced by ThreatManager::doAddThreat().
| Unit * Unit::GetRedirectThreatTarget | ( | ) |
Definition at line 7158 of file Unit.cpp.
References _redirectThreadInfo, ObjectAccessor::GetUnit(), and Unit().
Referenced by spell_hun_misdirection::spell_hun_misdirection_AuraScript::CheckProc(), spell_rog_tricks_of_the_trade::spell_rog_tricks_of_the_trade_AuraScript::CheckProc(), and ThreatManager::doAddThreat().
| uint32 Unit::GetRemainingPeriodicAmount | ( | uint64 | caster, |
| uint32 | spellId, | ||
| AuraType | auraType, | ||
| uint8 | effectIndex = 0 ) const |
Definition at line 9031 of file Unit.cpp.
References GetAuraEffectsByType().
Referenced by HandleDummyAuraProc(), spell_mage_ignite::spell_mage_ignite_AuraScript::HandleProc(), and HandleProcTriggerSpell().
| uint32 Unit::GetResistance | ( | SpellSchoolMask | mask | ) | const |
Definition at line 9056 of file Unit.cpp.
References GetResistance(), MAX_SPELL_SCHOOL, and SPELL_SCHOOL_NORMAL.
|
inline |
Definition at line 1590 of file Unit.h.
References Object::GetUInt32Value(), and UNIT_FIELD_RESISTANCES.
Referenced by Player::_SaveStats(), CalcSpellResistance(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArcaneResistanceAmount(), 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(), GetArmor(), GetResistance(), and Player::outDebugValues().
| float Unit::GetResistanceBuffMods | ( | SpellSchools | school, |
| bool | positive ) const |
Definition at line 1569 of file Unit.cpp.
References Object::GetFloatValue(), UNIT_FIELD_RESISTANCE_BUFF_MODS_NEGATIVE, and UNIT_FIELD_RESISTANCE_BUFF_MODS_POSITIVE.
| uint32 Unit::GetSchoolImmunityMask | ( | ) | const |
Definition at line 3560 of file Unit.cpp.
References IMMUNITY_SCHOOL, and m_spellImmune.
|
inline |
Definition at line 2377 of file Unit.h.
References Object::GetByteValue(), and UNIT_FIELD_SHAPESHIFT_FORM.
Referenced by Player::ApplyEquipSpell(), Player::CalculateMinMaxDamage(), spell_dru_savage_roar::spell_dru_savage_roar_SpellScript::CheckCast(), GetCreatureType(), Aura::HandleAuraSpecificMods(), AuraEffect::HandleAuraTransform(), HandleProcTriggerSpell(), reset_commandscript::HandleResetStatsOrLevelHelper(), Player::InitDataForForm(), IsInDisallowedMountForm(), IsInFeralForm(), Player::IsNeedCastPassiveSpellAtLearn(), RestoreDisplayId(), and Player::UpdateAttackPowerAndDamage().
|
inline |
Definition at line 2157 of file Unit.h.
References m_sharedVision.
Referenced by Skyfire::MessageDistDeliverer::Visit(), Skyfire::MessageDistDeliverer::Visit(), WorldObjectChangeAccumulator::Visit(), and WorldObjectChangeAccumulator::Visit().
|
inline |
Definition at line 1685 of file Unit.h.
References Object::GetByteValue(), and UNIT_FIELD_SHAPESHIFT_FORM.
|
inline |
Definition at line 2247 of file Unit.h.
References m_scAuras.
Referenced by _AddAura(), spell_pal_beacon_of_light::spell_pal_beacon_of_light_AuraScript::HandleProc(), RemoveAurasDueToSpellBySteal(), RemoveNotOwnSingleTargetAuras(), and Aura::UnregisterSingleTarget().
|
inline |
| float Unit::GetSpeed | ( | UnitMoveType | mtype | ) | const |
Definition at line 4313 of file Unit.cpp.
References baseMoveSpeed, IsControlledByPlayer(), m_speed_rate, and playerBaseMoveSpeed.
Referenced by Object::BuildMovementUpdate(), and SetSpeed().
|
inline |
Definition at line 2581 of file Unit.h.
References m_speed_rate.
Referenced by boss_alar::boss_alarAI::boss_alarAI(), boss_lord_marrowgar::boss_lord_marrowgarAI::boss_lord_marrowgarAI(), ClearInCombat(), spell_item_brewfest_mount_transformation::spell_item_brewfest_mount_transformation_SpellScript::HandleDummy(), spell_item_reindeer_transformation::spell_item_reindeer_transformation_SpellScript::HandleDummy(), and UpdateSpeed().
Definition at line 4877 of file Unit.cpp.
References SpellInfo::GetMaxRange(), IsHostileTo(), SpellRangeEntry::maxRangeFriend, SpellRangeEntry::maxRangeHostile, SpellInfo::RangeEntry, and Unit().
Referenced by GameObject::TriggeringLinkedGameObject().
Definition at line 4886 of file Unit.cpp.
References SpellInfo::GetMinRange(), IsHostileTo(), SpellRangeEntry::minRangeFriend, SpellRangeEntry::minRangeHostile, SpellInfo::RangeEntry, and Unit().
| Player * Unit::GetSpellModOwner | ( | ) | const |
Definition at line 5818 of file Unit.cpp.
References GetOwner(), IsPet(), IsTotem(), Object::ToCreature(), Object::ToPlayer(), and Unit().
Referenced by Creature::AddCreatureSpellCooldown(), ApplyEffectModifiers(), CalcArmorReducedDamage(), SpellEffectInfo::CalcBonusMultiplier(), SpellEffectInfo::CalcDamageMultiplier(), Aura::CalcDispelChance(), Aura::CalcMaxCharges(), Aura::CalcMaxDuration(), Aura::CalcProcChance(), SpellEffectInfo::CalcRadius(), ThreatCalcHelper::calcThreat(), AuraEffect::CalculatePeriodic(), CalculateSpellDamageTaken(), SpellEffectInfo::CalcValueMultiplier(), SpellInfo::GetMaxRange(), GetPPMProcChance(), Spell::HandleHolyPower(), isSpellCrit(), IsTriggeredAtSpellProcEvent(), MagicSpellHitResult(), MeleeDamageBonusDone(), MeleeSpellMissChance(), ModSpellCastTime(), Aura::SetDuration(), SpellCriticalDamageBonus(), SpellDamageBonusDone(), SpellDamageBonusTaken(), SpellHealingBonusDone(), SpellHealingBonusTaken(), and Aura::UpdateOwner().
| SpellSchools Unit::GetSpellSchoolByAuraGroup | ( | UnitMods | unitMod | ) | const |
Definition at line 5057 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 HandleStatModifier().
|
inline |
Definition at line 1724 of file Unit.h.
References Object::GetByteValue(), and UNIT_FIELD_ANIM_TIER.
Referenced by LuaUnit::GetStandState(), IsSitState(), IsStandState(), spell_love_is_in_the_air_romantic_picnic::spell_love_is_in_the_air_romantic_picnic_AuraScript::OnPeriodic(), and boss_kaelthas::boss_kaelthasAI::UpdateAI().
|
inline |
Definition at line 1573 of file Unit.h.
References Object::GetUInt32Value(), and UNIT_FIELD_STATS.
Referenced by Player::_SaveStats(), spell_dk_pet_scaling_01::spell_dk_pet_scaling_01_AuraScript::CalculateStrengthAmount(), Pet::CastPetAura(), Player::GetDodgeFromAgility(), Player::GetHealthBonusFromStamina(), Player::GetMeleeCritFromAgility(), Player::GetSpellCritFromIntellect(), LuaUnit::GetStat(), HandleProcTriggerSpell(), Guardian::InitStatsForLevel(), Player::OCTRegenMPPerSpirit(), Player::outDebugValues(), Creature::RegenerateHealth(), Creature::RegenerateMana(), SpellBaseDamageBonusDone(), SpellBaseHealingBonusDone(), Guardian::UpdateAttackPowerAndDamage(), Player::UpdateAttackPowerAndDamage(), Guardian::UpdateMaxHealth(), Guardian::UpdateMaxPower(), Player::UpdateRating(), and Guardian::UpdateStats().
Definition at line 5077 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 HandleStatModifier().
|
inline |
Definition at line 2830 of file Unit.h.
References Object::GetUInt64Value(), and UNIT_FIELD_TARGET.
Referenced by Spell::CheckCast(), ChatHandler::ExecuteCommandInTable(), misc_commandscript::HandleDamageCommand(), debug_commandscript::HandleDebugPlaySoundCommand(), misc_commandscript::HandleDieCommand(), misc_commandscript::HandleGUIDCommand(), misc_commandscript::HandleRespawnCommand(), Aura::RefreshSpellMods(), and GameObject::Use().
|
inline |
Definition at line 2455 of file Unit.h.
References m_ThreatManager.
Referenced by LuaUnit::ClearThreatList(), CreatureAI::DoZoneInCombat(), LuaCreature::GetAITargetsCount(), debug_commandscript::HandleDebugThreatListCommand(), spell_alysrazor_aggro_closest::spell_alysrazor_aggro_closest_SpellScript::HandleEffect(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::MergeThreatList(), spell_sha_nature_guardian::spell_sha_nature_guardian_AuraScript::OnProc(), SendChangeCurrentVictimOpcode(), SendThreatListUpdate(), SetPhased(), SetPhaseMask(), boss_headless_horseman::boss_headless_horsemanAI::SpellHit(), and Update().
| float Unit::GetTotalAttackPowerValue | ( | WeaponAttackType | attType | ) | const |
Definition at line 5118 of file Unit.cpp.
References Object::GetFloatValue(), Object::GetInt32Value(), RANGED_ATTACK, UNIT_FIELD_ATTACK_POWER, UNIT_FIELD_ATTACK_POWER_MULTIPLIER, UNIT_FIELD_RANGED_ATTACK_POWER, and UNIT_FIELD_RANGED_ATTACK_POWER_MULTIPLIER.
Referenced by spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateAttackPowerAmount(), spell_dk_rune_weapon_scaling_02::spell_dk_rune_weapon_scaling_02_AuraScript::CalculateDamageDoneAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateDamageDoneAmount(), Player::CalculateMinMaxDamage(), spell_pal_seal_of_righteousness::spell_pal_seal_of_righteousness_AuraScript::HandleProc(), HandleProcTriggerSpell(), Guardian::InitStatsForLevel(), SpellBaseDamageBonusDone(), SpellBaseHealingBonusDone(), SpellDamageBonusDone(), SpellHealingBonusDone(), Guardian::UpdateAttackPowerAndDamage(), Creature::UpdateDamagePhysical(), and Guardian::UpdateDamagePhysical().
Definition at line 1338 of file UnitAuraState.cpp.
References GetAuraEffectsByType(), and sSpellMgr.
Referenced by Player::BuyItemFromVendorSlot(), Aura::CalcDispelChance(), CalculateMeleeDamage(), Player::CalculateReputationGain(), CalculateSpellDamageTaken(), Creature::GetAggroRange(), Creature::GetAttackDistance(), Player::GetRuneTypeBaseCooldown(), GetUnitBlockChance(), GetUnitCriticalChance(), GetUnitDodgeChance(), GetUnitMissChance(), GetUnitParryChance(), Player::HandleFall(), WorldSession::HandleLootMoneyOpcode(), isBlockCritical(), isSpellCrit(), MagicSpellHitResult(), MeleeDamageBonusDone(), MeleeDamageBonusTaken(), MeleeSpellHitResult(), Creature::RegenerateHealth(), Player::RegenerateHealth(), RewardRage(), RollMeleeOutcomeAgainst(), Player::SetDrunkValue(), SpellDamageBonusDone(), SpellHitResult(), Player::UpdateBlockPercentage(), Player::UpdateDodgePercentage(), Player::UpdateManaRegen(), Player::UpdateMastery(), Player::UpdateMeleeHitChances(), Player::UpdateParryPercentage(), Player::UpdatePvpPower(), Player::UpdateRangedHitChances(), UpdateSpeed(), Player::UpdateSpellCritChance(), and Player::UpdateSpellHitChances().
| int32 Unit::GetTotalAuraModifierByAffectMask | ( | AuraType | auratype, |
| SpellInfo const * | affectedSpell ) const |
Definition at line 1526 of file UnitAuraState.cpp.
References GetAuraEffectsByType(), and sSpellMgr.
Definition at line 1391 of file UnitAuraState.cpp.
References GetAuraEffectsByType(), and sSpellMgr.
Referenced by CalcArmorReducedDamage(), CalcSpellResistance(), isSpellCrit(), MagicSpellHitResult(), and SpellDamageBonusDone().
Definition at line 1460 of file UnitAuraState.cpp.
References GetAuraEffectsByType(), and sSpellMgr.
Referenced by Player::AddSpellAndCategoryCooldowns(), Player::CalculateReputationGain(), GetMechanicResistChance(), MeleeDamageBonusDone(), MeleeSpellHitResult(), ModSpellDuration(), Creature::Regenerate(), Player::Regenerate(), Creature::RegenerateMana(), RollMeleeOutcomeAgainst(), SpellDamageBonusDone(), and Player::UpdateManaRegen().
| float Unit::GetTotalAuraModValue | ( | UnitMods | unitMod | ) | const |
Definition at line 1740 of file UnitAuraState.cpp.
References BASE_PCT, BASE_VALUE, m_auraModifiersGroup, SF_LOG_ERROR, TOTAL_PCT, TOTAL_VALUE, and UNIT_MOD_END.
Referenced by Creature::UpdateArmor(), Creature::UpdateMaxHealth(), Creature::UpdateMaxPower(), Creature::UpdateResistances(), Guardian::UpdateResistances(), and Player::UpdateResistances().
| float Unit::GetTotalAuraMultiplier | ( | AuraType | auratype | ) | const |
Definition at line 1354 of file UnitAuraState.cpp.
References AddPct(), and GetAuraEffectsByType().
Referenced by Player::DurabilityLoss(), MeleeSpellHitResult(), RollMeleeOutcomeAgainst(), SpellCriticalHealingBonus(), and UpdateSpeed().
| float Unit::GetTotalAuraMultiplierByAffectMask | ( | AuraType | auratype, |
| SpellInfo const * | affectedSpell ) const |
Definition at line 1545 of file UnitAuraState.cpp.
References AddPct(), GetAuraEffectsByType(), and sSpellMgr.
Definition at line 1409 of file UnitAuraState.cpp.
References AddPct(), GetAuraEffectsByType(), and sSpellMgr.
Referenced by CalculateMeleeDamage(), CalculateSpellDamageTaken(), Spell::DoAllEffectOnLaunchTarget(), MeleeDamageBonusTaken(), SpellCriticalDamageBonus(), and SpellDamageBonusTaken().
Definition at line 1479 of file UnitAuraState.cpp.
References AddPct(), GetAuraEffectsByType(), and sSpellMgr.
Referenced by Player::ModifyCurrency(), and Player::UpdateManaRegen().
| float Unit::GetTotalStatValue | ( | Stats | stat | ) | const |
Definition at line 5041 of file Unit.cpp.
References BASE_PCT, BASE_VALUE, GetCreateStat(), m_auraModifiersGroup, TOTAL_PCT, TOTAL_VALUE, and UNIT_MOD_STAT_START.
Referenced by Player::UpdateAllStats(), Guardian::UpdateStats(), and Player::UpdateStats().
|
inline |
Definition at line 2508 of file Unit.h.
References m_transform.
Referenced by BuildValuesUpdate(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraTransform(), and IsPolymorphed().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 7217 of file Unit.cpp.
References Object::GetGUID(), WorldObject::GetTransport(), GetVehicle(), and GetVehicleBase().
Referenced by AuraEffect::HandlePlayScene(), SpellCastTargets::Read(), UpdateSplinePosition(), Movement::PacketBuilder::WriteMonsterMove(), WriteMovementInfo(), and Movement::PacketBuilder::WriteStopMovement().
|
static |
Definition at line 4895 of file Unit.cpp.
References ObjectAccessor::GetUnit(), Unit(), and WorldObject::WorldObject().
Referenced by instance_uldaman::instance_uldaman_InstanceMapScript::ActivateArchaedas(), boss_archaedas::boss_archaedasAI::ActivateMinion(), boss_malchezaar::boss_malchezaarAI::AxesCleanup(), boss_supremus::boss_supremusAI::CalculateHatefulStrikeTarget(), boss_archimonde::boss_archimondeAI::CanUseFingerOfDeath(), boss_gathios_the_shatterer::boss_gathios_the_shattererAI::CastAuraOnCouncil(), boss_gurtogg_bloodboil::boss_gurtogg_bloodboilAI::CastBloodboil(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::CastConsumingMadness(), boss_essence_of_suffering::boss_essence_of_sufferingAI::CastFixate(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::CastGravityLapseFly(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::CastGravityLapseKnockUp(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::CheckBanish(), npc_shadowy_construct::npc_shadowy_constructAI::CheckPlayers(), boss_headless_horseman::boss_headless_horsemanAI::DamageTaken(), boss_scarlet_commander_mograine::boss_scarlet_commander_mograineAI::DamageTaken(), npc_ember_of_alar::npc_ember_of_alarAI::DamageTaken(), npc_pulsing_pumpkin::npc_pulsing_pumpkinAI::Despawn(), UnitAI::DoAddAuraToAllHostilePlayers(), UnitAI::DoCastToAllHostilePlayers(), ScriptedAI::DoResetThreat(), npc_time_rift::npc_time_riftAI::DoSummonAtRift(), boss_faction_championsAI::EnemiesInRange(), boss_malchezaar::boss_malchezaarAI::EnfeebleHealthEffect(), boss_malchezaar::boss_malchezaarAI::EnfeebleResetHealth(), boss_priestess_delrissa::boss_priestess_delrissaAI::EnterCombat(), boss_priestess_lackey_commonAI::EnterCombat(), boss_illidari_councilAI::EnterEvadeMode(), AssistDelayEvent::Execute(), boss_shade_of_aran::boss_aranAI::FlameWreathEffect(), SmartScript::GetTargets(), WorldSession::HandleChangeSeatsOnControlledVehicle(), npc_akama_illidan::npc_akama_illidanAI::HandleChannelSequence(), boss_felmyst::boss_felmystAI::HandleFlightSequence(), boss_illidan_stormrage::boss_illidan_stormrageAI::HandleFlightSequence(), boss_malchezaar::boss_malchezaarAI::InfernalCleanup(), boss_priestess_delrissa::boss_priestess_delrissaAI::InitializeLackeys(), boss_attumen::boss_attumenAI::JustDied(), boss_kaelthas::boss_kaelthasAI::JustDied(), dummy_dragonAI::JustDied(), npc_claw_tentacle::claw_tentacleAI::JustDied(), npc_demon_chain::npc_demon_chainAI::JustDied(), npc_eye_tentacle::eye_tentacleAI::JustDied(), npc_giant_claw_tentacle::giant_claw_tentacleAI::JustDied(), npc_giant_eye_tentacle::giant_eye_tentacleAI::JustDied(), npc_inner_demon::npc_inner_demonAI::JustDied(), npc_kilrek::npc_kilrekAI::JustDied(), npc_shadow_demon::shadow_demonAI::JustDied(), npc_webwrap::npc_webwrapAI::JustDied(), boss_archimonde::boss_archimondeAI::JustSummoned(), boss_exarch_maladaar::boss_exarch_maladaarAI::JustSummoned(), boss_kologarn::boss_kologarnAI::JustSummoned(), boss_shirrak_the_dead_watcher::boss_shirrak_the_dead_watcherAI::JustSummoned(), npc_orinoko_tuskbreaker::npc_orinoko_tuskbreakerAI::JustSummoned(), npc_akama_illidan::npc_akama_illidanAI::KillAllElites(), boss_midnight::boss_midnightAI::KilledUnit(), netherspite_infernal::netherspite_infernalAI::KilledUnit(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::MergeThreatList(), boss_teron_gorefiend::boss_teron_gorefiendAI::MindControlGhost(), boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::MoveDown(), boss_four_horsemen::boss_four_horsemenAI::MovementInform(), boss_headless_horseman::boss_headless_horsemanAI::MovementInform(), boss_selin_fireheart::boss_selin_fireheartAI::MovementInform(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::MovementInform(), boss_magtheridon::boss_magtheridonAI::NeedCheckCubeStatus(), SmartScript::ProcessAction(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::RemoveGravityLapse(), boss_najentus::boss_najentusAI::RemoveImpalingSpine(), boss_garaxxas::boss_garaxxasAI::Reset(), boss_lady_vashj::boss_lady_vashjAI::Reset(), boss_warbringer_omrogg::boss_warbringer_omroggAI::Reset(), boss_gurtogg_bloodboil::boss_gurtogg_bloodboilAI::RevertThreatOnTarget(), boss_fathomguard_caribdis::boss_fathomguard_caribdisAI::selectAdvisorUnit(), boss_gathios_the_shatterer::boss_gathios_the_shattererAI::SelectCouncilMember(), boss_faction_championsAI::SelectEnemyCaster(), boss_moroes_guestAI::SelectGuestTarget(), boss_selin_fireheart::boss_selin_fireheartAI::SelectNearestCrystal(), boss_cthun::cthunAI::SelectRandomNotStomach(), boss_magtheridon::boss_magtheridonAI::SetClicker(), npc_webwrap::npc_webwrapAI::SetGUID(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::SetThreatList(), boss_teron_gorefiend::boss_teron_gorefiendAI::SetThreatList(), boss_headless_horseman::boss_headless_horsemanAI::SpellHit(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::TeleportPlayersToSelf(), advisorbase_ai::UpdateAI(), boss_alythess::boss_alythessAI::UpdateAI(), boss_archaedas::boss_archaedasAI::UpdateAI(), boss_archimonde::boss_archimondeAI::UpdateAI(), boss_attumen::boss_attumenAI::UpdateAI(), boss_azuregos::boss_azuregosAI::UpdateAI(), boss_bigbadwolf::boss_bigbadwolfAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), boss_fathomguard_caribdis::boss_fathomguard_caribdisAI::UpdateAI(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::UpdateAI(), boss_fathomguard_tidalvess::boss_fathomguard_tidalvessAI::UpdateAI(), boss_fathomlord_karathress::boss_fathomlord_karathressAI::UpdateAI(), boss_grand_astromancer_capernian::boss_grand_astromancer_capernianAI::UpdateAI(), boss_harbinger_skyriss::boss_harbinger_skyrissAI::UpdateAI(), boss_high_botanist_freywinn::boss_high_botanist_freywinnAI::UpdateAI(), boss_high_inquisitor_whitemane::boss_high_inquisitor_whitemaneAI::UpdateAI(), boss_hunter_toc5::boss_hunter_toc5AI::UpdateAI(), boss_kaelthas::boss_kaelthasAI::UpdateAI(), boss_krosh_firehand::boss_krosh_firehandAI::UpdateAI(), boss_lady_vashj::boss_lady_vashjAI::UpdateAI(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_midnight::boss_midnightAI::UpdateAI(), boss_mother_shahraz::boss_shahrazAI::UpdateAI(), boss_priestess_delrissa::boss_priestess_delrissaAI::UpdateAI(), boss_sacrolash::boss_sacrolashAI::UpdateAI(), boss_sartharion::boss_sartharionAI::UpdateAI(), boss_sathrovarr::boss_sathrovarrAI::UpdateAI(), boss_scarlet_commander_mograine::boss_scarlet_commander_mograineAI::UpdateAI(), boss_selin_fireheart::boss_selin_fireheartAI::UpdateAI(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_teron_gorefiend::boss_teron_gorefiendAI::UpdateAI(), boss_the_black_stalker::boss_the_black_stalkerAI::UpdateAI(), boss_vaelastrasz::boss_vaelAI::UpdateAI(), boss_void_reaver::boss_void_reaverAI::UpdateAI(), boss_warlord_salaris::boss_warlord_salarisAI::UpdateAI(), boss_yauj::boss_yaujAI::UpdateAI(), boss_yazzai::boss_yazzaiAI::UpdateAI(), boss_zelfan::boss_zelfanAI::UpdateAI(), guard_shattrath_aldor::guard_shattrath_aldorAI::UpdateAI(), guard_shattrath_scryer::guard_shattrath_scryerAI::UpdateAI(), hyjalAI::UpdateAI(), npc_ancient_wisp::npc_ancient_wispAI::UpdateAI(), npc_blackhole::npc_blackholeAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI(), npc_doomfire_targetting::npc_doomfire_targettingAI::UpdateAI(), npc_elemental_lord::npc_elemental_lordAI::UpdateAI(), npc_garments_of_quests::npc_garments_of_questsAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), npc_greyheart_spellbinder::npc_greyheart_spellbinderAI::UpdateAI(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::UpdateAI(), npc_head::npc_headAI::UpdateAI(), npc_image_of_medivh::npc_image_of_medivhAI::UpdateAI(), npc_inner_demon::npc_inner_demonAI::UpdateAI(), npc_manaforge_control_console::npc_manaforge_control_consoleAI::UpdateAI(), npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), npc_restless_soul::npc_restless_soulAI::UpdateAI(), npc_rocknot::npc_rocknotAI::UpdateAI(), npc_shadowmoon_channeler::npc_shadowmoon_channelerAI::UpdateAI(), npc_shield_generator_channel::npc_shield_generator_channelAI::UpdateAI(), npc_shield_orb::npc_shield_orbAI::UpdateAI(), npc_solarium_priest::npc_solarium_priestAI::UpdateAI(), npc_spring_rabbit::npc_spring_rabbitAI::UpdateAI(), npc_steamrigger_mechanic::npc_steamrigger_mechanicAI::UpdateAI(), npc_stinkbeard::npc_stinkbeardAI::UpdateAI(), npc_toxic_sporebat::npc_toxic_sporebatAI::UpdateAI(), npc_warp_splinter_treant::npc_warp_splinter_treantAI::UpdateAI(), npc_yggdras::npc_yggdrasAI::UpdateAI(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), boss_faction_championsAI::UpdateThreat(), boss_anetheron::boss_anetheronAI::WaypointReached(), boss_azgalor::boss_azgalorAI::WaypointReached(), boss_kazrogal::boss_kazrogalAI::WaypointReached(), boss_rage_winterchill::boss_rage_winterchillAI::WaypointReached(), npc_abomination::npc_abominationAI::WaypointReached(), npc_banshee::npc_bansheeAI::WaypointReached(), npc_crypt_fiend::npc_crypt_fiendAI::WaypointReached(), npc_fel_stalker::npc_fel_stalkerAI::WaypointReached(), npc_frost_wyrm::npc_frost_wyrmAI::WaypointReached(), npc_gargoyle::npc_gargoyleAI::WaypointReached(), npc_ghoul::npc_ghoulAI::WaypointReached(), npc_giant_infernal::npc_giant_infernalAI::WaypointReached(), and npc_necromancer::npc_necromancerAI::WaypointReached().
| float Unit::GetUnitBlockChance | ( | ) | const |
Definition at line 1126 of file Unit.cpp.
References EQUIPMENT_SLOT_OFFHAND, Object::GetFloatValue(), GetTotalAuraModifier(), HasUnitState(), INVENTORY_SLOT_BAG_0, Item::IsBroken(), IsNonMeleeSpellCasted(), IsTotem(), PLAYER_FIELD_BLOCK_PERCENTAGE, SPELL_AURA_MOD_BLOCK_PERCENT, Object::ToCreature(), Object::ToPlayer(), and UNIT_STATE_CONTROLLED.
Referenced by isSpellBlocked(), MeleeSpellHitResult(), and RollMeleeOutcomeAgainst().
| float Unit::GetUnitCriticalChance | ( | WeaponAttackType | attackType, |
| const Unit * | victim ) const |
Definition at line 1155 of file Unit.cpp.
References BASE_ATTACK, Object::GetFloatValue(), GetTotalAuraModifier(), Object::GetTypeId(), OFF_ATTACK, PLAYER_FIELD_CRIT_PERCENTAGE, PLAYER_FIELD_OFFHAND_CRIT_PERCENTAGE, PLAYER_FIELD_RANGED_CRIT_PERCENTAGE, RANGED_ATTACK, SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_CHANCE, SPELL_AURA_MOD_ATTACKER_SPELL_AND_WEAPON_CRIT_CHANCE, SPELL_AURA_MOD_CRIT_PCT, SPELL_AURA_MOD_WEAPON_CRIT_PERCENT, TYPEID_PLAYER, and Unit().
Referenced by isSpellCrit(), and RollMeleeOutcomeAgainst().
| float Unit::GetUnitDodgeChance | ( | ) | const |
Definition at line 1063 of file Unit.cpp.
References Object::GetFloatValue(), GetTotalAuraModifier(), Object::GetTypeId(), HasUnitState(), IsNonMeleeSpellCasted(), IsTotem(), PLAYER_FIELD_DODGE_PERCENTAGE, SPELL_AURA_MOD_DODGE_PERCENT, Object::ToCreature(), TYPEID_PLAYER, and UNIT_STATE_CONTROLLED.
Referenced by MeleeSpellHitResult(), and RollMeleeOutcomeAgainst().
Definition at line 1058 of file Unit.cpp.
References getLevel(), getLevelForTarget(), and Unit().
| float Unit::GetUnitMissChance | ( | WeaponAttackType | attType | ) | const |
Definition at line 1114 of file Unit.cpp.
References GetTotalAuraModifier(), RANGED_ATTACK, SPELL_AURA_MOD_ATTACKER_MELEE_HIT_CHANCE, and SPELL_AURA_MOD_ATTACKER_RANGED_HIT_CHANCE.
Referenced by MeleeSpellMissChance().
|
inline |
Definition at line 2632 of file Unit.h.
References WorldObject::m_movementInfo.
Referenced by Object::BuildMovementUpdate(), debug_commandscript::HandleDebugMoveflagsCommand(), Player::TeleportTo(), and WriteMovementInfo().
| float Unit::GetUnitParryChance | ( | ) | const |
Definition at line 1083 of file Unit.cpp.
References BASE_ATTACK, CREATURE_TYPE_HUMANOID, GetCreatureType(), Object::GetFloatValue(), GetTotalAuraModifier(), Object::GetTypeId(), HasUnitState(), IsNonMeleeSpellCasted(), OFF_ATTACK, PLAYER_FIELD_PARRY_PERCENTAGE, SPELL_AURA_MOD_PARRY_PERCENT, Object::ToPlayer(), TYPEID_UNIT, and UNIT_STATE_CONTROLLED.
Referenced by MeleeSpellHitResult(), and RollMeleeOutcomeAgainst().
|
inline |
Definition at line 2743 of file Unit.h.
References m_vehicle.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket(), SpellInfo::CheckVehicle(), GetDirectTransport(), SmartScript::GetTargets(), GetTransGUID(), LuaUnit::GetVehicle(), WorldSession::HandleChangeSeatsOnControlledVehicle(), WorldSession::HandleMovementOpcodes(), spell_ulduar_cancel_stone_grip::spell_ulduar_cancel_stone_gripSpellScript::HandleScript(), OutDebugInfo(), Vehicle::RemovePassenger(), Creature::SelectVictim(), SetControlled(), Player::SetViewpoint(), lfg::LFGMgr::TeleportPlayer(), npc_mechanolift::npc_mechanoliftAI::UpdateAI(), UpdateSpeed(), GameObject::Use(), Skyfire::MessageDistDeliverer::Visit(), Movement::PacketBuilder::WriteMonsterMove(), and Movement::PacketBuilder::WriteStopMovement().
| Unit * Unit::GetVehicleBase | ( | ) | const |
Definition at line 7203 of file Unit.cpp.
References m_vehicle, and Unit().
Referenced by Spell::EffectScriptEffect(), ExitVehicle(), GetTransGUID(), GetVehicleCreatureBase(), spell_gen_on_tournament_mount::spell_gen_on_tournament_mount_AuraScript::HandleApplyEffect(), WorldSession::HandleChangeSeatsOnControlledVehicle(), HandleDummyAuraProc(), AuraEffect::HandlePeriodicDummyAuraTick(), spell_svalna_remove_spear::spell_svalna_remove_spear_SpellScript::HandleScript(), achievement_denyin_the_scion::OnCheck(), OutDebugInfo(), npc_tournament_training_dummy::npc_tournament_training_dummyAI::SpellHit(), Player::UpdateAreaDependentAuras(), and UpdateSpeed().
| Creature * Unit::GetVehicleCreatureBase | ( | ) | const |
Definition at line 7208 of file Unit.cpp.
References GetVehicleBase(), Object::ToCreature(), and Unit().
Referenced by spell_xt002_heart_overload_periodic::spell_xt002_heart_overload_periodic_AuraScript::HandlePeriodic(), achievement_bg_ic_glaive_grave::OnCheck(), achievement_bg_ic_mowed_down::OnCheck(), achievement_bg_sa_artillery::OnCheck(), achievement_three_car_garage_chopper::OnCheck(), achievement_three_car_garage_demolisher::OnCheck(), achievement_three_car_garage_siege::OnCheck(), BattlefieldWG::OnPlayerLeaveWar(), Player::UpdateAreaDependentAuras(), and Player::VehicleSpellInitialize().
|
inline |
Definition at line 2739 of file Unit.h.
References m_vehicleKit.
Referenced by _EnterVehicle(), Creature::AddToWorld(), Creature::AIM_Initialize(), boss_deathbringer_saurfang::boss_deathbringer_saurfangAI::boss_deathbringer_saurfangAI(), Object::BuildMovementUpdate(), Player::CanSeeSpellClickOn(), Aura::CanStackWith(), Map::CreatureRelocation(), Dismount(), AuraEffect::HandleAuraControlVehicle(), AuraEffect::HandleAuraSetVehicle(), spell_q13280_13283_plant_battle_standard::spell_q13280_13283_plant_battle_standard_SpellScript::HandleDummy(), spell_the_lich_king_eject_all_passengers::spell_the_lich_king_eject_all_passengers_SpellScript::HandleDummy(), WorldSession::HandlePetCastSpellOpcode(), spell_auto_repair::spell_auto_repair_SpellScript::HandleScript(), spell_pursue::spell_pursue_SpellScript::HandleScript(), spell_q12919_gymers_throw::spell_q12919_gymers_throw_SpellScript::HandleScript(), HandleSpellClick(), IsOnVehicle(), Mount(), Map::MoveAllCreaturesInMoveList(), npc_bone_spike::npc_bone_spikeAI::npc_bone_spikeAI(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::npc_high_overlord_saurfangAI(), npc_orb_carrier::npc_orb_carrierAI::npc_orb_carrierAI(), spell_blood_queen_frenzied_bloodthirst::spell_blood_queen_frenzied_bloodthirst_AuraScript::OnRemove(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), FlameLeviathanPursuedTargetSelector::operator()(), OutDebugInfo(), Map::PlayerRelocation(), SmartScript::ProcessAction(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), spell_malygos_surge_of_power_warning_selector_25::spell_malygos_surge_of_power_warning_selector_25_SpellScript::SendThreeTargets(), Creature::SetPosition(), Creature::Update(), npc_snobold_vassal::npc_snobold_vassalAI::UpdateAI(), Player::UpdateForQuestWorldObjects(), UpdateHeight(), and UpdateOrientation().
|
inline |
Definition at line 1468 of file Unit.h.
References m_attacking, and Unit().
Referenced by FollowerAI::AssistPlayerInCombat(), npc_escortAI::AssistPlayerInCombat(), SmartAI::AssistPlayerInCombat(), Object::BuildMovementUpdate(), Creature::CallAssistance(), Creature::CallForHelp(), ConfusedMovementGenerator< T >::DoFinalize(), FleeingMovementGenerator< Creature >::DoFinalize(), Creature::DoFleeToGetAssistance(), CreatureAI::DoZoneInCombat(), boss_alythess::boss_alythessAI::EnterCombat(), boss_emalon::boss_emalonAI::EnterCombat(), boss_romulo::boss_romuloAI::EnterCombat(), boss_sacrolash::boss_sacrolashAI::EnterCombat(), boss_sartharion::boss_sartharionAI::FetchDragons(), EffectMovementGenerator::Finalize(), TimedFleeingMovementGenerator::Finalize(), getAttackerForHelper(), LuaUnit::GetVictim(), cast_commandscript::HandleCastTargetCommad(), HandleDummyAuraProc(), AuraEffect::HandleModPossessPet(), WorldSession::HandlePetActionHelper(), spell_nexus_lord_align_disk_aggro::spell_nexus_lord_align_disk_aggro_SpellScript::HandleScript(), RotateMovementGenerator::Initialize(), npc_fel_crystal::npc_fel_crystalAI::JustDied(), CreatureGroup::LeaderMoveTo(), CreatureGroup::MemberAttackStart(), npc_air_force_bots::npc_air_force_botsAI::MoveInLineOfSight(), Creature::ReleaseFocus(), ResolveAmpuleTarget(), Resurrect(), SelectNearbyTarget(), Creature::SelectVictim(), Player::SendInitialVisiblePackets(), SetConfused(), SetFeared(), SetStunned(), StopAttackFaction(), SummonCroneIfReady(), TauntApply(), TauntFadeOut(), Creature::Update(), Player::Update(), boss_alythess::boss_alythessAI::UpdateAI(), boss_moroes::boss_moroesAI::UpdateAI(), boss_vazruden_the_herald::boss_vazruden_the_heraldAI::UpdateAI(), npc_stalagg::npc_stalaggAI::UpdateAI(), Player::UpdateCharmedAI(), and InstanceScript::UpdateMinionState().
|
inline |
Definition at line 1555 of file Unit.h.
References Object::GetUInt32Value(), and PLAYER_FIELD_VIRTUAL_PLAYER_REALM.
Referenced by WorldSession::HandleCharCreateCallback(), WorldSession::HandleSetTradeGoldOpcode(), WorldSession::HandleSetTradeItemOpcode(), and Guild::Member::SetStats().
| AuraApplication * Unit::GetVisibleAura | ( | uint8 | slot | ) | const |
Definition at line 492 of file Unit.cpp.
References m_visibleAuras.
|
inline |
Definition at line 2471 of file Unit.h.
References m_visibleAuras.
Referenced by AuraApplication::AuraApplication(), and Player::SendAurasForTarget().
| float Unit::GetWeaponDamageRange | ( | WeaponAttackType | attType, |
| WeaponDamageRange | type ) const |
Definition at line 5136 of file Unit.cpp.
References haveOffhandWeapon(), m_weaponDamage, and OFF_ATTACK.
Referenced by Player::CalculateMinMaxDamage(), Creature::UpdateDamagePhysical(), and Guardian::UpdateDamagePhysical().
| float Unit::GetWeaponProcChance | ( | ) | const |
Definition at line 64 of file UnitProcEvent.cpp.
References BASE_ATTACK, GetAttackTime(), haveOffhandWeapon(), isAttackReady(), and OFF_ATTACK.
Referenced by Player::CastItemCombatSpell().
|
private |
Possible hack alert Don't drop charges on proc, they will be dropped on SpellMod removal Before this change, it was dropping two charges per attack, one in ProcDamageAndSpellFor, and one in RemoveSpellMods. The reason of this behaviour is Recklessness having three auras, 2 of them can not proc (isTriggeredAura array) but the other one can, making the whole spell proc.
Definition at line 1471 of file UnitProc.cpp.
References Player::AddSpellCooldown(), CalculatePct(), SpellEffectInfo::CalcValue(), CastCustomSpell(), CastSpell(), CLASS_DEATH_KNIGHT, SpellEffectInfo::Effect, EFFECT_0, EFFECT_1, SpellInfo::Effects, Aura::GetCaster(), Aura::GetCasterGUID(), Aura::GetEffect(), Object::GetGUID(), Player::GetLastUsedRune(), WorldObject::GetMap(), GetMaxHealth(), Map::GetSpawnMode(), Aura::GetSpellInfo(), Aura::GetStackAmount(), Object::GetTypeId(), SpellInfo::Id, MAX_RUNES, MAX_SPELL_EFFECTS, RemoveAuraFromStack(), AuraEffect::ResetPeriodic(), RUNE_BLOOD, RUNE_DEATH, SPELL_EFFECT_ENERGIZE, SPELLFAMILY_DEATHKNIGHT, SPELLFAMILY_GENERIC, SPELLFAMILY_PALADIN, SPELLFAMILY_WARRIOR, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, SPELLVALUE_BASE_POINT0, Object::ToPlayer(), TYPEID_PLAYER, and Unit().
Referenced by ProcDamageAndSpellFor().
|
private |
Definition at line 64 of file UnitProc.cpp.
References Player::AddSpellCooldown(), CastCustomSpell(), CastSpell(), SpellInfo::Effects, AuraEffect::GetAmount(), AuraEffect::GetBase(), Aura::GetCastItemGUID(), AuraEffect::GetEffIndex(), Player::GetItemByGuid(), GetPower(), AuraEffect::GetSpellInfo(), Object::GetTypeId(), HasAura(), SpellInfo::HasEffect(), SpellInfo::Id, SpellInfo::IsPositive(), m_extraAttacks, SpellEffectInfo::MiscValue, PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_POS, PROC_FLAG_DONE_SPELL_NONE_DMG_CLASS_POS, RemoveAurasDueToSpell(), SF_LOG_ERROR, SPELL_EFFECT_ADD_EXTRA_ATTACKS, SPELLFAMILY_DRUID, SpellInfo::SpellFamilyName, sSpellMgr, Object::ToPlayer(), SpellEffectInfo::TriggerSpell, TYPEID_PLAYER, and Unit().
Referenced by ProcDamageAndSpellFor().
|
private |
Definition at line 829 of file UnitProcEvent.cpp.
References SpellEffectInfo::CalcRadius(), CastSpell(), SpellInfo::Effects, AuraEffect::GetBase(), AuraEffect::GetCaster(), AuraEffect::GetCasterGUID(), Aura::GetCharges(), AuraEffect::GetEffIndex(), GetNextRandomRaidMemberOrPet(), AuraEffect::GetSpellInfo(), SpellInfo::Id, Aura::SetCharges(), SF_LOG_ERROR, and Unit().
Referenced by ProcDamageAndSpellFor().
|
private |
Definition at line 789 of file UnitProcEvent.cpp.
References SpellEffectInfo::CalcRadius(), CastCustomSpell(), SpellInfo::Effects, AuraEffect::GetAmount(), AuraEffect::GetBase(), AuraEffect::GetCaster(), AuraEffect::GetCasterGUID(), Aura::GetCharges(), AuraEffect::GetEffIndex(), GetNextRandomRaidMemberOrPet(), AuraEffect::GetSpellInfo(), SpellInfo::Id, Aura::SetCharges(), SF_LOG_DEBUG, SPELLFAMILY_PRIEST, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, and Unit().
Referenced by ProcDamageAndSpellFor().
|
private |
Definition at line 193 of file UnitProc.cpp.
References AddPct(), Player::AddSpellCooldown(), SpellEffectInfo::ApplyAuraTickCount, ApplyPct(), Player::ApplySpellMod(), BASE_ATTACK, CalculatePct(), CalculateSpellDamage(), SpellEffectInfo::CalcValue(), CastCustomSpell(), CastSpell(), CLASS_DEATH_KNIGHT, CLASS_DRUID, CLASS_HUNTER, CLASS_MAGE, CLASS_PALADIN, CLASS_PRIEST, CLASS_ROGUE, CLASS_SHAMAN, CLASS_WARLOCK, CLASS_WARRIOR, CountPctFromMaxHealth(), DealDamage(), InstanceScript::DoCastSpellOnPlayers(), EFFECT_0, SpellInfo::Effects, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, SpellInfo::EquippedItemClass, SpellInfo::GetAllEffectsMechanicMask(), AuraEffect::GetAmount(), Player::GetAttackBySlot(), GetAttackTime(), GetAura(), GetAuraEffect(), AuraEffect::GetBase(), AuraEffect::GetCaster(), Aura::GetCastItemGUID(), Aura::GetCharges(), getClass(), GetCreateMana(), WorldObject::GetDistance(), Aura::GetDuration(), Aura::GetEffect(), AuraEffect::GetEffIndex(), Item::GetEnchantmentId(), Object::GetEntry(), Player::GetGroup(), GetGuardianPet(), Object::GetGUID(), GetHealth(), AuraEffect::GetId(), WorldObject::GetInstanceScript(), Player::GetItemByGuid(), Aura::GetMaxDuration(), SpellInfo::GetMaxDuration(), Object::GetObjectGUID(), GetOwner(), getPowerType(), SpellInfo::GetRank(), GetRemainingPeriodicAmount(), Player::GetReputationRank(), SpellInfo::GetSchoolMask(), Player::GetSelectedUnit(), Player::GetSession(), Item::GetSlot(), Player::GetSpellCooldownDelay(), AuraEffect::GetSpellInfo(), SpellInfo::GetSpellSpecific(), Aura::GetStackAmount(), Object::GetTypeId(), GetVehicleBase(), GetVictim(), Player::GetWeaponForAttack(), Player::HasSpellCooldown(), haveOffhandWeapon(), SpellInfo::Id, IsAlive(), flag128::IsEqual(), Item::IsEquipped(), IsFriendlyTo(), LANG_UNIVERSAL, m_Controlled, MECHANIC_ROOT, MECHANIC_SNARE, ModifyHealth(), OFF_ATTACK, POWER_ENERGY, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, PROC_EX_CRITICAL_HIT, PROC_EX_NORMAL_HIT, PROC_FLAG_DONE_MAINHAND_ATTACK, PROC_FLAG_DONE_OFFHAND_ATTACK, PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_POS, RAND(), RemoveAuraFromStack(), RemoveAurasDueToSpell(), Player::RemoveSpellCooldown(), REP_EXALTED, roll_chance_f(), roll_chance_i(), Player::Say(), WorldSession::SendModifyCooldown(), SendSpellNonMeleeDamageLog(), AuraEffect::SetAmount(), Aura::SetDuration(), Aura::SetMaxDuration(), SF_LOG_ERROR, SPELL_AURA_PERIODIC_DAMAGE, SPELL_AURA_PERIODIC_HEAL, SPELL_AURA_PROC_TRIGGER_SPELL, SPELL_DIRECT_DAMAGE, SPELL_SCHOOL_MASK_FIRE, SPELL_SCHOOL_MASK_FROST, SPELL_SCHOOL_MASK_SHADOW, SPELL_SPECIFIC_JUDGEMENT, SpellBaseDamageBonusDone(), SpellBaseDamageBonusTaken(), SPELLFAMILY_DEATHKNIGHT, SPELLFAMILY_DRUID, SPELLFAMILY_GENERIC, SPELLFAMILY_MAGE, SPELLFAMILY_PALADIN, SPELLFAMILY_PRIEST, SPELLFAMILY_SHAMAN, SPELLFAMILY_WARLOCK, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, SpellItemEnchantmentEntry::spellid, SPELLMOD_CHANCE_OF_SUCCESS, SPELLVALUE_BASE_POINT0, SpellInfo::SpellVisual, sSpellItemEnchantmentStore, sSpellMgr, TEMP_ENCHANTMENT_SLOT, Object::ToPlayer(), SpellEffectInfo::TriggerSpell, TYPEID_PLAYER, TYPEID_UNIT, and Unit().
Referenced by ProcDamageAndSpellFor().
| void Unit::HandleEmoteCommand | ( | uint32 | anim_id | ) |
Definition at line 940 of file UnitCombat.cpp.
References Object::GetGUID(), Object::GetUInt32Value(), WorldObject::SendMessageToSet(), Object::SetUInt32Value(), SMSG_EMOTE, and UNIT_FIELD_NPC_EMOTESTATE.
Referenced by DealMeleeDamage(), LuaUnit::Emote(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), debug_commandscript::HandleDebugAnimCommand(), WorldSession::HandleEmoteOpcode(), npc_commandscript::HandleNpcSayCommand(), npc_commandscript::HandleNpcYellCommand(), WorldSession::HandleTextEmoteOpcode(), npc_overlord_morghor::npc_overlord_morghorAI::NextStep(), spell_gen_spectator_cheer_trigger::spell_gen_spectator_cheer_trigger_SpellScript::PrepareSpellScript(), CreatureTextMgr::SendEmote(), boss_illidan_stormrage::boss_illidan_stormrageAI::Talk(), boss_headless_horseman::boss_headless_horsemanAI::UpdateAI(), and npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI().
|
private |
Definition at line 2211 of file UnitProc.cpp.
References Player::AddSpellCooldown(), CastSpell(), AuraEffect::GetBase(), Aura::GetCastItemGUID(), Player::GetItemByGuid(), AuraEffect::GetMiscValue(), getPowerType(), Object::GetTypeId(), IsAlive(), POWER_ENERGY, POWER_MANA, POWER_RAGE, roll_chance_i(), SF_LOG_ERROR, sSpellMgr, Object::ToPlayer(), TYPEID_PLAYER, and Unit().
Referenced by ProcDamageAndSpellFor().
| void Unit::HandleProcExtraAttackFor | ( | Unit * | victim | ) |
Definition at line 1417 of file UnitCombat.cpp.
References AttackerStateUpdate(), BASE_ATTACK, m_extraAttacks, and Unit().
|
private |
Definition at line 1663 of file UnitProc.cpp.
References Player::AddSpellCooldown(), SpellEffectInfo::ApplyAuraTickCount, AURA_REMOVE_BY_ENEMY_SPELL, BASE_ATTACK, CalculatePct(), SpellEffectInfo::CalcValue(), CastCustomSpell(), CastSpell(), CLASS_DEATH_KNIGHT, CLASS_DRUID, CLASS_PALADIN, CLASS_PRIEST, CLASS_SHAMAN, SpellInfo::Effects, FORM_BEAR, FORM_CAT, FORM_MOONKIN, FORM_NONE, FORM_TREE, AuraEffect::GetAmount(), GetAura(), GetAuraEffect(), AuraEffect::GetAuraType(), AuraEffect::GetBase(), Aura::GetCastItemGUID(), getClass(), GetCreateHealth(), AuraEffect::GetEffIndex(), Object::GetEntry(), Object::GetGUID(), GetHealth(), Player::GetItemByGuid(), SpellInfo::GetMaxDuration(), GetMaxHealth(), SpellInfo::GetRank(), GetRemainingPeriodicAmount(), GetShapeshiftForm(), AuraEffect::GetSpellInfo(), Aura::GetStackAmount(), GetStat(), GetTotalAttackPowerValue(), Object::GetTypeId(), HasAura(), SpellInfo::HasEffect(), HealthAbovePct(), HealthBelowPct(), HealthBelowPctDamaged(), SpellInfo::Id, IsAlive(), IsFullHealth(), SpellInfo::IsPositive(), m_extraAttacks, MAX_RUNES, Aura::ModStackAmount(), PROC_EX_CRITICAL_HIT, PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_POS, PROC_FLAG_DONE_SPELL_NONE_DMG_CLASS_POS, RemoveAura(), RemoveAurasDueToSpell(), roll_chance_i(), SF_LOG_ERROR, SPELL_AURA_PERIODIC_DAMAGE, SPELL_AURA_PROC_TRIGGER_SPELL_WITH_VALUE, SPELL_EFFECT_ADD_EXTRA_ATTACKS, SPELLFAMILY_DEATHKNIGHT, SPELLFAMILY_DRUID, SPELLFAMILY_GENERIC, SPELLFAMILY_HUNTER, SPELLFAMILY_MAGE, SPELLFAMILY_PALADIN, SPELLFAMILY_ROGUE, SPELLFAMILY_WARRIOR, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, sSpellMgr, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STRENGTH, Object::ToPlayer(), SpellEffectInfo::TriggerSpell, TYPEID_PLAYER, and Unit().
Referenced by ProcDamageAndSpellFor().
First check simple relations from clicker to clickee
Check database conditions
Definition at line 8160 of file Unit.cpp.
References Creature::AI(), SpellEffectInfo::ApplyAuraName, SpellEffectInfo::BasePoints, CastCustomSpell(), CastSpell(), SpellInfo::Effects, Vehicle::GetCreatureEntry(), Object::GetEntry(), Object::GetGUID(), GetOwnerGUID(), GetVehicleKit(), IsAIEnabled, WorldObject::IsInMap(), MAX_EFFECT_MASK, MAX_SPELL_EFFECTS, NPC_CLICK_CAST_CASTER_CLICKER, NPC_CLICK_CAST_ORIG_CASTER_OWNER, NPC_CLICK_CAST_TARGET_CLICKER, CreatureAI::OnSpellClick(), sConditionMgr, SF_LOG_ERROR, sObjectMgr, SPELL_AURA_CONTROL_VEHICLE, SPELLVALUE_BASE_POINT0, sSpellMgr, Object::ToCreature(), TRIGGERED_IGNORE_CASTER_MOUNTED_OR_ON_VEHICLE, TRIGGERED_NONE, Aura::TryRefreshStackOrCreate(), and Unit().
Referenced by WorldSession::HandleSpellClick().
| bool Unit::HandleStatModifier | ( | UnitMods | unitMod, |
| UnitModifierType | modifierType, | ||
| float | amount, | ||
| bool | apply ) |
Definition at line 4955 of file Unit.cpp.
References ApplyPercentModFloatVar(), BASE_ATTACK, BASE_PCT, BASE_VALUE, CanModifyStats(), GetPowerTypeByAuraGroup(), GetSpellSchoolByAuraGroup(), GetStatByAuraGroup(), m_auraModifiersGroup, MODIFIER_TYPE_END, OFF_ATTACK, RANGED_ATTACK, SF_LOG_ERROR, TOTAL_PCT, TOTAL_VALUE, UNIT_MOD_ARCANE_CHARGES, UNIT_MOD_ARMOR, UNIT_MOD_ATTACK_POWER, UNIT_MOD_ATTACK_POWER_RANGED, UNIT_MOD_BURNING_EMBERS, UNIT_MOD_CHI, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, UNIT_MOD_DAMAGE_RANGED, UNIT_MOD_DEMONIC_FURY, UNIT_MOD_ECLIPSE, UNIT_MOD_END, UNIT_MOD_ENERGY, UNIT_MOD_FOCUS, UNIT_MOD_HEALTH, UNIT_MOD_HOLY_POWER, UNIT_MOD_MANA, UNIT_MOD_RAGE, UNIT_MOD_RESISTANCE_ARCANE, UNIT_MOD_RESISTANCE_FIRE, UNIT_MOD_RESISTANCE_FROST, UNIT_MOD_RESISTANCE_HOLY, UNIT_MOD_RESISTANCE_NATURE, UNIT_MOD_RESISTANCE_SHADOW, UNIT_MOD_RUNE, UNIT_MOD_RUNIC_POWER, UNIT_MOD_SHADOW_ORBS, UNIT_MOD_SOUL_SHARDS, UNIT_MOD_STAT_AGILITY, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_STAT_STAMINA, UNIT_MOD_STAT_STRENGTH, UpdateArmor(), UpdateAttackPowerAndDamage(), UpdateDamagePhysical(), UpdateMaxHealth(), UpdateMaxPower(), UpdateResistances(), and UpdateStats().
Referenced by Player::_ApplyItemBonuses(), Player::_ApplyWeaponDependentAuraDamageMod(), Player::ApplyEnchantment(), Player::ApplyReforgeEnchantment(), AuraEffect::HandleAuraIncreaseBaseHealthPercent(), AuraEffect::HandleAuraModAttackPower(), AuraEffect::HandleAuraModAttackPowerPercent(), AuraEffect::HandleAuraModBaseResistancePCT(), AuraEffect::HandleAuraModIncreaseEnergyPercent(), AuraEffect::HandleAuraModIncreaseHealth(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModIncreaseMaxHealth(), AuraEffect::HandleAuraModIncreaseMaxPowerFlat(), AuraEffect::HandleAuraModRangedAttackPower(), AuraEffect::HandleAuraModRangedAttackPowerPercent(), AuraEffect::HandleAuraModResistance(), AuraEffect::HandleAuraModResistanceExclusive(), AuraEffect::HandleAuraModStat(), AuraEffect::HandleModBaseResistance(), AuraEffect::HandleModDamageDone(), AuraEffect::HandleModDamagePercentDone(), AuraEffect::HandleModOffhandDamagePercent(), AuraEffect::HandleModPercentStat(), AuraEffect::HandleModResistancePercent(), and AuraEffect::HandleModTotalPercentStat().
| bool Unit::HasAura | ( | uint32 | spellId, |
| uint64 | casterGUID = 0, | ||
| uint64 | itemCasterGUID = 0, | ||
| uint32 | reqEffMask = 0 ) const |
Definition at line 1182 of file UnitAuraState.cpp.
References GetAuraApplication().
Referenced by Player::_StoreItem(), AchievementMgr< T >::AdditionalRequirementsSatisfied(), spell_marrowgar_coldflame_damage::spell_marrowgar_coldflame_damage_AuraScript::CanBeAppliedOn(), Player::CanJoinToBattleground(), Player::CanUseBattlegroundObject(), boss_sapphiron::boss_sapphironAI::CastExplosion(), spell_pal_templar_s_verdict::spell_pal_templar_s_verdict_SpellScript::ChangeDamage(), spell_pal_aura_mastery_immune::spell_pal_aura_mastery_immune_AuraScript::CheckAreaTarget(), Spell::CheckCast(), SpellInfo::CheckTarget(), Spell::EffectHeal(), Spell::EffectResurrectWithAura(), BattlegroundVOP::EventPlayerClickedOnFlag(), boss_hodir::boss_hodirAI::FlashFreeze(), GetDispellableAuraList(), GetModelForForm(), GetMountCapability(), instance_sunwell_plateau::instance_sunwell_plateau_InstanceMapScript::GetPlayerInMap(), go_wind_stone::GetPlayerRank(), LuaPlayer::GiveXP(), Player::GiveXP(), spell_monk_roll::spell_monk_roll_SpellScript::HandleAfterCast(), BattlegroundDS::HandleAreaTrigger(), OutdoorPvPSI::HandleAreaTrigger(), AuraEffect::HandleAuraMounted(), HandleAuraProcOnPowerAmount(), Aura::HandleAuraSpecificMods(), spell_capacitus_polarity_charge::spell_capacitus_polarity_charge_SpellScript::HandleDamage(), spell_thaddius_pos_neg_charge::spell_thaddius_pos_neg_charge_SpellScript::HandleDamage(), spell_impale::spell_impale_SpellScript::HandleDamageCalc(), spell_q12851_going_bearback::spell_q12851_going_bearback_AuraScript::HandleEffectApply(), spell_rog_stealth::spell_rog_stealth_AuraScript::HandleEffectRemove(), spell_dru_eclipse_energize::spell_dru_eclipse_energize_SpellScript::HandleEnergize(), spell_putricide_gaseous_bloat::spell_putricide_gaseous_bloat_AuraScript::HandleExtraEffect(), Player::HandleFall(), gm_commandscript::HandleGMVisibleCommand(), spell_sindragosa_frost_breath::spell_sindragosa_frost_breath_SpellScript::HandleInfusion(), lookup_commandscript::HandleLookupSpellCommand(), lookup_commandscript::HandleLookupSpellIdCommand(), WorldSession::HandleMessagechatOpcode(), OPvPCapturePointZM_GraveYard::HandleOpenGo(), HandleProcTriggerSpell(), spell_freya_attuned_to_nature_dose_reduction::spell_freya_attuned_to_nature_dose_reduction_SpellScript::HandleScript(), spell_hallow_end_tricky_treat::spell_hallow_end_tricky_treat_SpellScript::HandleScript(), spell_hun_pet_heart_of_the_phoenix::spell_hun_pet_heart_of_the_phoenix_SpellScript::HandleScript(), spell_dru_glyph_of_starfire::spell_dru_glyph_of_starfire_SpellScript::HandleScriptEffect(), AuraEffect::HandleShapeshiftBoosts(), boss_alythess::boss_alythessAI::HandleTouchedSpells(), boss_sacrolash::boss_sacrolashAI::HandleTouchedSpells(), LuaPlayer::HasAura(), Guardian::InitStatsForLevel(), SpellArea::IsFitToRequirements(), IsVampire(), lfg::LFGMgr::JoinLfg(), npc_acolyte_of_shadron::npc_acolyte_of_shadronAI::JustDied(), npc_acolyte_of_vesperon::npc_acolyte_of_vesperonAI::JustDied(), npc_inner_demon::npc_inner_demonAI::JustDied(), boss_illidan_stormrage::boss_illidan_stormrageAI::JustSummoned(), Creature::LoadCreaturesAddon(), boss_teron_gorefiend::boss_teron_gorefiendAI::MindControlGhost(), ModSpellCastTime(), ModSpellDuration(), npc_mageguard_dalaran::npc_mageguard_dalaranAI::MoveInLineOfSight(), boss_magtheridon::boss_magtheridonAI::NeedCheckCubeStatus(), go_gauntlet_gate::OnGossipHello(), spell_love_is_in_the_air_romantic_picnic::spell_love_is_in_the_air_romantic_picnic_AuraScript::OnPeriodic(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), spell_fetch_ingredient_aura::spell_fetch_ingredient_aura_AuraScript::OnRemove(), at_bring_your_orphan_to::OnTrigger(), BoneSpikeTargetSelector::operator()(), DeathPlagueTargetSelector::operator()(), DefaultTargetSelector::operator()(), FrostBeaconSelector::operator()(), NecroticPlagueTargetCheck::operator()(), Skyfire::FriendlyMissingBuffInRange::operator()(), Skyfire::UnitAuraCheck::operator()(), ProcDamageAndSpellFor(), spell_mage_pyroblast::spell_mage_pyroblast_SpellScript::RecalculateDamage(), npc_halion_controller::npc_halion_controllerAI::RemoveCorporeality(), boss_najentus::boss_najentusAI::RemoveImpalingSpine(), Player::ReportedAfkBy(), Player::RewardHonor(), RewardRage(), Player::SetQuestStatus(), SpellDamageBonusDone(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), instance_violet_hold::instance_violet_hold_InstanceMapScript::Update(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI(), boss_kalecgos::boss_kalecgosAI::UpdateAI(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), boss_lady_vashj::boss_lady_vashjAI::UpdateAI(), boss_sathrovarr::boss_sathrovarrAI::UpdateAI(), npc_chaotic_rift::npc_chaotic_riftAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_eye_tentacle::eye_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), npc_giant_eye_tentacle::giant_eye_tentacleAI::UpdateAI(), npc_ice_tomb::npc_ice_tombAI::UpdateAI(), npc_scorch_ground::npc_scorch_groundAI::UpdateAI(), npc_shield_generator_channel::npc_shield_generator_channelAI::UpdateAI(), Player::UpdateAreaDependentAuras(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), Player::UpdateUnderwaterState(), UpdateUnderwaterState(), Player::UpdateZoneDependentAuras(), and instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::VortexHandling().
Definition at line 1152 of file UnitAuraState.cpp.
References m_appliedAuras.
Referenced by Spell::CanAutoCast(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), spell_q12683_take_sputum_sample::spell_q12683_take_sputum_sample_SpellScript::HandleDummy(), and AchievementCriteriaData::Meets().
| bool Unit::HasAuraState | ( | AuraStateType | flag, |
| SpellInfo const * | spellProto = NULL, | ||
| Unit const * | Caster = NULL ) const |
Definition at line 1633 of file UnitAuraState.cpp.
References GetAuraEffectsByType(), Object::GetGUID(), Object::HasFlag(), m_auraStateAuras, PER_CASTER_AURA_STATE_MASK, SPELL_AURA_ABILITY_IGNORE_AURASTATE, Unit(), and UNIT_FIELD_AURA_STATE.
Referenced by Pet::addSpell(), SpellInfo::CheckTarget(), ClearAllReactives(), isFrozen(), Player::IsNeedCastPassiveSpellAtLearn(), isSpellCrit(), MeleeDamageBonusDone(), SpellDamageBonusDone(), and UpdateReactives().
| bool Unit::HasAuraType | ( | AuraType | auraType | ) | const |
Definition at line 1189 of file UnitAuraState.cpp.
References m_modAuras.
Referenced by AchievementMgr< T >::AdditionalRequirementsSatisfied(), Player::ApplySpellPowerBonus(), ApplyTotalThreatModifier(), Attack(), Player::CanTameExoticPets(), spell_q11010_q11102_q11023_q11008_check_fly_mount::spell_q11010_q11102_q11023_q11008_check_fly_mount_SpellScript::CheckRequirement(), SpellInfo::CheckTarget(), Creature::DoFleeToGetAssistance(), Battleground::EndBattleground(), Player::getMaxTimer(), AuraEffect::HandleArenaPreparation(), AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraAllowOnlyAbility(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraEmpathy(), AuraEffect::HandleAuraFeatherFall(), AuraEffect::HandleAuraGhost(), AuraEffect::HandleAuraHover(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleAuraModFakeInebriation(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), AuraEffect::HandleAuraModPacify(), AuraEffect::HandleAuraModPacifyAndSilence(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraModSilence(), AuraEffect::HandleAuraModStalked(), AuraEffect::HandleAuraTrackStealthed(), AuraEffect::HandleAuraUntrackable(), AuraEffect::HandleAuraWaterWalk(), AuraEffect::HandleComprehendLanguage(), spell_item_brewfest_mount_transformation::spell_item_brewfest_mount_transformation_SpellScript::HandleDummy(), spell_item_reindeer_transformation::spell_item_reindeer_transformation_SpellScript::HandleDummy(), spell_rog_master_of_subtlety::spell_rog_master_of_subtlety_AuraScript::HandleEffectPeriodic(), Player::HandleFall(), AuraEffect::HandleForceMoveForward(), WorldSession::HandleMirrorImageDataRequest(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleModInvisibilityDetect(), AuraEffect::HandleModStealth(), AuraEffect::HandleModStealthDetect(), AuraEffect::HandleModUnattackable(), AuraEffect::HandlePreventFleeing(), reset_commandscript::HandleResetStatsOrLevelHelper(), spell_gen_two_forms::spell_gen_two_forms_SpellScript::HandleTransform(), HasAuraTypeWithFamilyFlags(), HasInvisibilityAura(), HasStealthAura(), isFeared(), SpellArea::IsFitToRequirements(), isInRoots(), Player::IsPetNeedBeTemporaryUnsummoned(), isSpellBlocked(), Player::KillPlayer(), MagicSpellHitResult(), MeleeSpellHitResult(), Mount(), Skyfire::AnyDeadUnitObjectInRangeCheck::operator()(), Player::ReadMovementInfo(), Player::Regenerate(), Player::RegenerateAll(), Player::RegenerateHealth(), Battleground::RemovePlayerAtLeave(), Player::RewardHonor(), RollMeleeOutcomeAgainst(), Player::SendAurasForTarget(), Player::SendInitialPacketsAfterAddToMap(), SetControlled(), Player::SetDrunkValue(), Player::Update(), Player::UpdateAttackPowerAndDamage(), Player::UpdateSpellDamageAndHealingBonus(), Player::UpdateTriggerVisibility(), and Player::UpdateZone().
Definition at line 1212 of file UnitAuraState.cpp.
References GetAuraEffectsByType().
Referenced by _UpdateAutoRepeatSpell(), and RemoveAurasWithInterruptFlags().
Definition at line 1194 of file UnitAuraState.cpp.
References GetAuraEffectsByType().
Referenced by BuildValuesUpdate(), and IsAlwaysDetectableFor().
| bool Unit::HasAuraTypeWithFamilyFlags | ( | AuraType | auraType, |
| uint32 | familyName, | ||
| uint32 | familyFlags ) const |
Definition at line 567 of file Unit.cpp.
References GetAuraEffectsByType(), and HasAuraType().
Definition at line 1203 of file UnitAuraState.cpp.
References GetAuraEffectsByType().
Referenced by WorldObject::CanDetectStealthOf().
Definition at line 1221 of file UnitAuraState.cpp.
References GetAuraEffectsByType().
Referenced by Player::Regenerate().
| bool Unit::HasAuraWithMechanic | ( | uint32 | mechanicMask | ) | const |
Definition at line 1253 of file UnitAuraState.cpp.
References SpellEffectInfo::Effect, SpellInfo::Effects, m_appliedAuras, MAX_SPELL_EFFECTS, SpellEffectInfo::Mechanic, and SpellInfo::Mechanic.
Referenced by isSpellCrit(), and SpellDamageBonusDone().
Definition at line 579 of file Unit.cpp.
References AURA_INTERRUPT_FLAG_TAKE_DAMAGE, and GetAuraEffectsByType().
Referenced by HasBreakableByDamageCrowdControlAura().
| bool Unit::HasBreakableByDamageCrowdControlAura | ( | Unit * | excludeCasterChannel = NULL | ) | const |
Definition at line 589 of file Unit.cpp.
References CURRENT_CHANNELED_SPELL, GetCurrentSpell(), HasBreakableByDamageAuraType(), SPELL_AURA_MOD_CONFUSE, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_FEAR_2, SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_STUN, SPELL_AURA_TRANSFORM, and Unit().
Referenced by PetAI::CanAttack().
Definition at line 2649 of file Unit.h.
References WorldObject::m_movementInfo.
Referenced by Object::BuildMovementUpdate(), GetMountCapability(), and WriteMovementInfo().
|
inline |
Definition at line 1921 of file Unit.h.
References HasAuraType(), and SPELL_AURA_MOD_INVISIBILITY.
Referenced by Player::CanCaptureTowerPoint(), Player::GetNextRandomRaidMember(), and Player::IsOutdoorPvPActive().
Definition at line 1242 of file UnitAuraState.cpp.
References SpellInfo::Attributes, Aura::GetCasterGUID(), Aura::GetSpellInfo(), and m_appliedAuras.
Definition at line 1230 of file UnitAuraState.cpp.
References m_interruptableAuras, and m_interruptMask.
Referenced by ThreatContainer::selectNextVictim().
|
inline |
Definition at line 2163 of file Unit.h.
References m_sharedVision.
Referenced by Skyfire::MessageDistDeliverer::Visit(), and Skyfire::MessageDistDeliverer::Visit().
|
inlinevirtual |
Reimplemented in Creature, Pet, and Player.
Definition at line 1910 of file Unit.h.
Referenced by GetMountCapability(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetSetAction(), and ModSpellDuration().
|
inline |
Definition at line 1917 of file Unit.h.
References HasAuraType(), and SPELL_AURA_MOD_STEALTH.
Referenced by Player::CanCaptureTowerPoint(), and Player::IsOutdoorPvPActive().
|
inline |
Definition at line 2628 of file Unit.h.
References WorldObject::m_movementInfo.
Referenced by Object::BuildMovementUpdate(), Creature::Create(), Map::CreatureRelocation(), GetMountCapability(), GetPositionZMinusOffset(), Player::IsOutdoorPvPActive(), Map::PlayerRelocation(), SetCanFly(), SetDisableGravity(), SetFall(), SetFeatherFall(), Creature::SetFlying(), SetHover(), SetSwim(), SetWaterWalking(), Creature::UpdateMovementFlags(), UpdateSplinePosition(), and WriteMovementInfo().
|
inline |
Definition at line 1485 of file Unit.h.
References m_state.
Referenced by Creature::_IsTargetAcceptable(), _IsValidAssistTarget(), _IsValidAttackTarget(), HomeMovementGenerator< Creature >::_setTargetLocation(), Player::ActivateTaxiPathTo(), Attack(), AttackerStateUpdate(), Player::BuildPlayerRepop(), Player::CanEquipItem(), CanFreeMove(), SpellInfo::CheckTarget(), CreatureUnitRelocationWorker(), DealDamageMods(), DealMeleeDamage(), DealSpellDamage(), Spell::DoSpellHitOnUnit(), RandomMovementGenerator< T >::DoUpdate(), WaypointMovementGenerator< Creature >::DoUpdate(), EffectMovementGenerator::Finalize(), GetUnitBlockChance(), GetUnitDodgeChance(), GetUnitParryChance(), spell_dru_starfall_dummy::spell_dru_starfall_dummy_SpellScript::HandleDummy(), spell_mistress_kiss::spell_mistress_kiss_AuraScript::HandleDummyTick(), WorldSession::HandleInitiateTradeOpcode(), AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), WorldSession::HandlePlayerLogin(), LuaUnit::HasUnitState(), isAttackingPlayer(), Creature::IsInEvadeMode(), IsInFlight(), isPossessed(), isPossessedByPlayer(), IsStopped(), isTargetableForAttack(), Skyfire::FriendlyCCedInRange::operator()(), RemoveCharmedBy(), Player::ResurrectPlayer(), Player::SendInitialVisiblePackets(), WorldSession::SendListInventory(), SetContestedPvP(), SetControlled(), SetInCombatState(), SetInFront(), SetStunned(), lfg::LFGMgr::TeleportPlayer(), Player::Update(), TimedFleeingMovementGenerator::Update(), and UpdateSplinePosition().
Definition at line 1495 of file Unit.h.
References m_unitTypeMask.
Referenced by _ExitVehicle(), CanHaveThreatList(), Spell::EffectSummonType(), WorldSession::HandlePetActionHelper(), Guardian::InitStats(), RestoreFaction(), FactorySelector::selectAI(), SetCharm(), SetMinion(), SpellDamageBonusDone(), Player::StopCastingCharm(), LuaUnit::SummonGuardian(), and Spell::SummonGuardian().
| bool Unit::HasVisionObscured | ( | Unit const * | target | ) | const |
Definition at line 523 of file Unit.cpp.
References GetAuraEffectsByType(), IsFriendlyTo(), SPELL_AURA_INTERFERE_TARGETTING, and Unit().
| bool Unit::haveOffhandWeapon | ( | ) | const |
Definition at line 350 of file Unit.cpp.
References Object::GetTypeId(), Player::GetWeaponForAttack(), m_canDualWield, OFF_ATTACK, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Attack(), DealMeleeDamage(), GetWeaponDamageRange(), GetWeaponProcChance(), HandleDummyAuraProc(), MeleeSpellMissChance(), Player::Update(), and Player::UpdateAttackPowerAndDamage().
| int32 Unit::HealBySpell | ( | Unit * | victim, |
| SpellInfo const * | spellInfo, | ||
| uint32 | addHealth, | ||
| bool | critical = false ) |
Definition at line 2963 of file Unit.cpp.
References CalcHealAbsorb(), DealHeal(), Object::GetObjectGUID(), SpellInfo::Id, SendHealSpellLog(), and Unit().
Referenced by Spell::DoAllEffectOnTarget(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), and AuraEffect::HandlePeriodicTriggerSpellAuraTick().
|
inline |
Definition at line 1621 of file Unit.h.
References CountPctFromMaxHealth(), and GetHealth().
Referenced by boss_erekem::boss_erekemAI::GetChainHealTargetGUID(), Aura::HandleAuraSpecificMods(), HandleProcTriggerSpell(), LuaUnit::HealthAbovePct(), IsWeakenedLurkingWorgen(), AchievementCriteriaData::Meets(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), Update(), and boss_nazan::boss_nazanAI::UpdateAI().
Definition at line 1625 of file Unit.h.
References CountPctFromMaxHealth(), and GetHealth().
|
inline |
Definition at line 1613 of file Unit.h.
References CountPctFromMaxHealth(), and GetHealth().
Referenced by spell_pal_sacred_shield::spell_pal_sacred_shield_SpellScript::CheckCast(), AuraEffect::HandlePeriodicDamageAurasTick(), HandleProcTriggerSpell(), LuaUnit::HealthBelowPct(), Update(), and npc_akama_illidan::npc_akama_illidanAI::UpdateAI().
Definition at line 1617 of file Unit.h.
References CountPctFromMaxHealth(), and GetHealth().
Referenced by spell_sha_nature_guardian::spell_sha_nature_guardian_AuraScript::CheckProc(), and HandleProcTriggerSpell().
| void Unit::IncrDiminishing | ( | DiminishingGroup | group | ) |
Definition at line 4863 of file Unit.cpp.
References DIMINISHING_LEVEL_2, GetDiminishingReturnsMaxLevel(), getMSTime(), and m_Diminishing.
Referenced by Spell::DoSpellHitOnUnit().
| CharmInfo * Unit::InitCharmInfo | ( | ) |
Definition at line 5518 of file Unit.cpp.
References m_charmInfo.
Referenced by Guardian::Guardian(), Minion::Minion(), Pet::Pet(), and SetCharmedBy().
| void Unit::InitStatBuffMods | ( | ) |
Definition at line 1589 of file Unit.cpp.
References MAX_STATS, Object::SetFloatValue(), STAT_STRENGTH, UNIT_FIELD_STAT_NEG_BUFF, and UNIT_FIELD_STAT_POS_BUFF.
Referenced by Player::InitStatsForLevel().
Definition at line 6295 of file Unit.cpp.
References GetCharmInfo(), Object::GetEntry(), getFaction(), Object::GetGUID(), WorldObject::GetPhases(), Object::GetTypeId(), Pet::InitPetCreateSpells(), Guardian::InitStatsForLevel(), SetCreatorGUID(), setFaction(), SetFullHealth(), CharmInfo::SetPetNumber(), SetPhased(), Object::SetUInt32Value(), SF_LOG_ERROR, sObjectMgr, TYPEID_PLAYER, UNIT_FIELD_CREATED_BY_SPELL, UNIT_FIELD_FLAGS, and UNIT_FLAG_PVP_ATTACKABLE.
Referenced by CreateTamedPetFrom(), and CreateTamedPetFrom().
| void Unit::InterruptNonMeleeSpells | ( | bool | withDelayed, |
| uint32 | spellid = 0, | ||
| bool | withInstant = true ) |
Definition at line 1433 of file Unit.cpp.
References CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, InterruptSpell(), and m_currentSpells.
Referenced by Player::ActivateSpec(), CleanupBeforeRemoveFromMap(), CombatStop(), DealDamage(), boss_magtheridon::boss_magtheridonAI::DebuffClicker(), npc_akama_illidan::npc_akama_illidanAI::HandleChannelSequence(), AuraEffect::HandleFeignDeath(), misc_commandscript::HandleFreezeCommand(), WorldSession::HandleLootOpcode(), WorldSession::HandlePetActionHelper(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), PretendToDie(), SmartScript::ProcessAction(), RemoveAurasWithInterruptFlags(), setDeathState(), StopAttackFaction(), and Player::TeleportTo().
| void Unit::InterruptSpell | ( | CurrentSpellTypes | spellType, |
| bool | withDelayed = true, | ||
| bool | withInstant = true ) |
Definition at line 1365 of file Unit.cpp.
References Spell::cancel(), CURRENT_AUTOREPEAT_SPELL, Spell::GetCastTime(), Spell::getState(), Object::GetTypeId(), Spell::IsInterruptable(), m_currentSpells, Player::SendAutoRepeatCancel(), Spell::SetReferencedFromCurrent(), SPELL_STATE_DELAYED, SPELL_STATE_FINISHED, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by _UpdateAutoRepeatSpell(), Player::ActivateTaxiPathTo(), Attack(), AttackStop(), CastStop(), AuraEffect::HandleAuraModSilence(), WorldSession::HandleCancelChanneling(), spell_hun_scatter_shot::spell_hun_scatter_shot_SpellScript::HandleDummy(), spell_yogg_saron_diminsh_power::spell_yogg_saron_diminsh_power_AuraScript::HandleProc(), InterruptNonMeleeSpells(), LuaUnit::InterruptSpell(), Player::RemoveItemDependentAurasAndCasts(), and SetCurrentCastedSpell().
|
inline |
Definition at line 2032 of file Unit.h.
References ALIVE, and m_deathState.
Referenced by _CreateAuraApplication(), _EnterVehicle(), _IsValidAssistTarget(), _IsValidAttackTarget(), Player::_LoadItem(), KillRewarder::_RewardHonor(), KillRewarder::_RewardKillCredit(), KillRewarder::_RewardXP(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ActivateCrystal(), boss_archaedas::boss_archaedasAI::ActivateMinion(), instance_uldaman::instance_uldaman_InstanceMapScript::ActivateStoneKeepers(), instance_uldaman::instance_uldaman_InstanceMapScript::ActivateWallMinions(), AddAura(), AchievementMgr< T >::AdditionalRequirementsSatisfied(), boss_moroes::boss_moroesAI::AddsAttack(), HostileReference::addThreat(), Spell::AddUnitTarget(), Skyfire::PetTransport::AttachHunterPetToOwnerTransport(), Attack(), AttackerStateUpdate(), boss_malchezaar::boss_malchezaarAI::AxesCleanup(), WorldSession::BuildPartyMemberStatsChangedPacket(), Player::BuyCurrencyFromVendorSlot(), Player::BuyItemFromVendorSlot(), CalcAbsorbResist(), CalculateMeleeDamage(), CalculateSpellDamageTaken(), Creature::CanAssistTo(), PetAI::CanAttack(), Player::CanCaptureTowerPoint(), CanHaveThreatList(), Player::CanInteractWithQuestGiver(), MapManager::CanPlayerEnter(), Player::CanUseBattlegroundObject(), boss_archimonde::boss_archimondeAI::CanUseFingerOfDeath(), Player::CanUseItem(), boss_gurtogg_bloodboil::boss_gurtogg_bloodboilAI::CastBloodboil(), npc_greyheart_spellbinder::npc_greyheart_spellbinderAI::CastChanneling(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::CastConsumingMadness(), boss_essence_of_suffering::boss_essence_of_sufferingAI::CastFixate(), Player::CastItemCombatSpell(), boss_kelidan_the_breaker::boss_kelidan_the_breakerAI::ChannelerDied(), Player::CheckAreaExploreAndOutdoor(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::CheckBanish(), Spell::CheckCast(), npc_shadowy_construct::npc_shadowy_constructAI::CheckPlayers(), spell_devourer_of_souls_mirrored_soul_proc::spell_devourer_of_souls_mirrored_soul_proc_AuraScript::CheckProc(), spell_item_necrotic_touch::spell_item_necrotic_touch_AuraScript::CheckProc(), spell_item_shadowmourne::spell_item_shadowmourne_AuraScript::CheckProc(), spell_putricide_mutation_init::spell_putricide_mutation_init_SpellScript::CheckRequirementInternal(), SpellInfo::CheckTarget(), instance_violet_hold::instance_violet_hold_InstanceMapScript::CheckWipe(), netherspite_infernal::netherspite_infernalAI::Cleanup(), CreatureUnitRelocationWorker(), boss_headless_horseman::boss_headless_horsemanAI::DamageTaken(), boss_taldaram::boss_taldaramAI::DamageTaken(), DealDamage(), DealDamageMods(), DealMeleeDamage(), DealSpellDamage(), boss_magtheridon::boss_magtheridonAI::DebuffClicker(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::DespawnDemon(), npc_brann_hos::npc_brann_hosAI::DespawnDwarf(), npc_head::npc_headAI::Disappear(), Creature::DisappearAndDie(), Spell::DoAllEffectOnTarget(), boss_four_horsemen::boss_four_horsemenAI::DoEncounteraction(), RandomMovementGenerator< T >::DoInitialize(), WorldSession::DoLootRelease(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::DoSpeech(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomcheck(), Spell::EffectFeedPet(), Spell::EffectSkinPlayerCorpse(), Spell::EffectSummonDeadPet(), Battleground::EndBattleground(), boss_malchezaar::boss_malchezaarAI::EnfeebleResetHealth(), boss_alythess::boss_alythessAI::EnterCombat(), boss_emalon::boss_emalonAI::EnterCombat(), boss_sacrolash::boss_sacrolashAI::EnterCombat(), Player::EnvironmentalDamage(), Player::EquipItem(), boss_sartharion::boss_sartharionAI::FetchDragons(), AssistanceMovementGenerator::Finalize(), EffectMovementGenerator::Finalize(), TimedFleeingMovementGenerator::Finalize(), boss_shade_of_aran::boss_aranAI::FlameWreathEffect(), boss_hodir::boss_hodirAI::FlashFreeze(), Creature::ForcedDespawn(), Battleground::GetAlivePlayersCountByTeam(), boss_erekem::boss_erekemAI::GetChainHealTargetGUID(), instance_ahnkahet::instance_ahnkahet_InstanceScript::GetData(), instance_ahnkahet::instance_ahnkahet_InstanceScript::GetData64(), FollowerAI::GetLeaderForFollower(), Player::getMaxTimer(), Player::GetNPCIfCanInteractWith(), GetPartyMembers(), npc_air_force_bots::npc_air_force_botsAI::GetSummonedGuard(), Pet::GivePetXP(), Player::GiveXP(), BattlegroundEY::HandleAreaTrigger(), WorldSession::HandleAreaTriggerOpcode(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModTotalThreat(), WorldSession::HandleAutostoreLootItemOpcode(), misc_commandscript::HandleDamageCommand(), misc_commandscript::HandleDieCommand(), Player::HandleDrowning(), HandleDummyAuraProc(), Player::HandleFall(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleLootMoneyOpcode(), AuraEffect::HandleModTaunt(), AuraEffect::HandleModTotalPercentStat(), WorldSession::HandleMovementOpcodes(), npc_commandscript::HandleNpcAddMoveCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetSpawnDistCommand(), AuraEffect::HandleObsModPowerAuraTick(), HandleOverrideClassScriptAuraProc(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), misc_commandscript::HandlePInfoCommand(), HandleProcTriggerSpell(), AuraEffect::HandleSpiritOfRedemption(), WorldSession::HandleStablePet(), WorldSession::HandleStableSwapPetCallback(), WorldSession::HandleUnstablePetCallback(), LuaUnit::IsAlive(), Player::IsAtGroupRewardDistance(), Player::IsAtRecruitAFriendDistance(), Creature::IsInvisibleDueToDespawn(), Player::IsOutdoorPvPActive(), Player::IsPetNeedBeTemporaryUnsummoned(), isTargetableForAttack(), Spell::IsValidDeadOrAliveTarget(), ThreatCalcHelper::isValidProcess(), boss_palehoof::boss_palehoofAI::JustDied(), boss_priestess_lackey_commonAI::JustDied(), boss_sartharion::boss_sartharionAI::JustDied(), npc_acolyte_of_shadron::npc_acolyte_of_shadronAI::JustDied(), npc_acolyte_of_vesperon::npc_acolyte_of_vesperonAI::JustDied(), npc_fel_crystal::npc_fel_crystalAI::JustDied(), npc_kilrek::npc_kilrekAI::JustDied(), npc_tito::npc_titoAI::JustDied(), Kill(), CreatureGroup::LeaderMoveTo(), Player::LoadCorpse(), Player::LoadFromDB(), MagicSpellHitResult(), CreatureGroup::MemberAttackStart(), boss_teron_gorefiend::boss_teron_gorefiendAI::MindControlGhost(), boss_selin_fireheart::boss_selin_fireheartAI::MovementInform(), boss_palehoof::boss_palehoofAI::NextPhase(), containment_sphere::OnGossipHello(), go_dragonflayer_cage::OnGossipHello(), go_jotunheim_cage::OnGossipHello(), go_manticron_cube::OnGossipHello(), go_palehoof_sphere::OnGossipHello(), prince_taldaram_sphere::OnGossipHello(), npc_announcer_toc10::OnGossipSelect(), spell_sha_nature_guardian::spell_sha_nature_guardian_AuraScript::OnProc(), SmartTrigger::OnTrigger(), AELootCreatureCheck::operator()(), FrostwingVrykulSearcher::operator()(), RisenArchmageCheck::operator()(), Skyfire::AllFriendlyCreaturesInGrid::operator()(), Skyfire::AnyDeadUnitCheck::operator()(), Skyfire::AnyDeadUnitObjectInRangeCheck::operator()(), Skyfire::AnyDeadUnitObjectInRangeCheck::operator()(), Skyfire::AnyFriendlyUnitInObjectRangeCheck::operator()(), Skyfire::AnyGroupedUnitInObjectRangeCheck::operator()(), Skyfire::AnyPlayerInObjectRangeCheck::operator()(), Skyfire::AnyUnfriendlyAttackableVisibleUnitInObjectRangeCheck::operator()(), Skyfire::AnyUnfriendlyNoTotemUnitInObjectRangeCheck::operator()(), Skyfire::AnyUnfriendlyUnitInObjectRangeCheck::operator()(), Skyfire::AnyUnitInObjectRangeCheck::operator()(), Skyfire::FriendlyCCedInRange::operator()(), Skyfire::FriendlyMissingBuffInRange::operator()(), Skyfire::MostHPMissingInRange::operator()(), Skyfire::NearestCreatureEntryWithLiveStateInObjectRangeCheck::operator()(), Skyfire::NearestPlayerInObjectRangeCheck::operator()(), Skyfire::PlayerAtMinimumRangeAway::operator()(), TrashRespawnWorker::operator()(), ProcDamageAndSpell(), instance_ulduar::instance_ulduar_InstanceMapScript::ProcessEvent(), boss_warchief_kargath_bladefist::boss_warchief_kargath_bladefistAI::removeAdds(), Group::RemoveMember(), Battleground::RemovePlayerAtLeave(), Player::RepopAtGraveyard(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::Reset(), boss_fathomlord_karathress::boss_fathomlord_karathressAI::Reset(), boss_palehoof::boss_palehoofAI::Reset(), boss_sartharion::boss_sartharionAI::Reset(), npc_ferocious_rhino::npc_ferocious_rhinoAI::Reset(), npc_frenzied_worgen::npc_frenzied_worgenAI::Reset(), npc_greyheart_spellbinder::npc_greyheart_spellbinderAI::Reset(), npc_illidari_council::npc_illidari_councilAI::Reset(), npc_massive_jormungar::npc_massive_jormungarAI::Reset(), npc_ravenous_furbolg::npc_ravenous_furbolgAI::Reset(), ResetCryForTheMoonActor(), instance_blood_furnace::instance_blood_furnace_InstanceMapScript::ResetPrisoner(), Creature::Respawn(), Player::RewardPlayerAndGroupAtEvent(), boss_moroes_guestAI::SelectGuestTarget(), boss_selin_fireheart::boss_selin_fireheartAI::SelectNearestCrystal(), Creature::SelectVictim(), Player::SendInitialVisiblePackets(), Player::SendLoot(), WorldSession::SendStablePetCallback(), SetConfused(), instance_magtheridons_lair::instance_magtheridons_lair_InstanceMapScript::SetData(), instance_scarlet_monastery::instance_scarlet_monastery_InstanceMapScript::SetData(), Player::setDeathState(), SetFeared(), SetInCombatState(), SetStunned(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::SetThreatList(), boss_teron_gorefiend::boss_teron_gorefiendAI::SetThreatList(), boss_selin_fireheart::boss_selin_fireheartAI::ShatterRemainingCrystals(), Battlefield::ShowNpc(), boss_headless_horseman::boss_headless_horsemanAI::SpellHit(), boss_volazj::boss_volazjAI::SpellHitTarget(), npc_illidari_council::npc_illidari_councilAI::StartEvent(), Player::SwapItem(), lfg::LFGMgr::TeleportPlayer(), boss_mother_shahraz::boss_shahrazAI::TeleportPlayers(), Creature::Update(), instance_magtheridons_lair::instance_magtheridons_lair_InstanceMapScript::Update(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::Update(), Pet::Update(), Player::Update(), Puppet::Update(), TempSummon::Update(), TimedFleeingMovementGenerator::Update(), Totem::Update(), Update(), boss_emalon::boss_emalonAI::UpdateAI(), boss_erekem::boss_erekemAI::UpdateAI(), boss_fathomguard_caribdis::boss_fathomguard_caribdisAI::UpdateAI(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::UpdateAI(), boss_fathomlord_karathress::boss_fathomlord_karathressAI::UpdateAI(), boss_headless_horseman::boss_headless_horsemanAI::UpdateAI(), boss_julianne::boss_julianneAI::UpdateAI(), boss_lich_king_toc::boss_lich_king_tocAI::UpdateAI(), boss_moroes::boss_moroesAI::UpdateAI(), boss_mother_shahraz::boss_shahrazAI::UpdateAI(), boss_nazan::boss_nazanAI::UpdateAI(), boss_palehoof::boss_palehoofAI::UpdateAI(), boss_patchwerk::boss_patchwerkAI::UpdateAI(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::UpdateAI(), boss_sartharion::boss_sartharionAI::UpdateAI(), boss_sathrovarr::boss_sathrovarrAI::UpdateAI(), boss_selin_fireheart::boss_selin_fireheartAI::UpdateAI(), boss_shirrak_the_dead_watcher::boss_shirrak_the_dead_watcherAI::UpdateAI(), boss_taldaram::boss_taldaramAI::UpdateAI(), boss_terestian_illhoof::boss_terestianAI::UpdateAI(), boss_vazruden_the_herald::boss_vazruden_the_heraldAI::UpdateAI(), boss_void_reaver::boss_void_reaverAI::UpdateAI(), hyjalAI::UpdateAI(), npc_doom_blossom::npc_doom_blossomAI::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), npc_grimstone::npc_grimstoneAI::UpdateAI(), npc_illidari_council::npc_illidari_councilAI::UpdateAI(), npc_inner_demon::npc_inner_demonAI::UpdateAI(), npc_koltira_deathweaver::npc_koltira_deathweaverAI::UpdateAI(), npc_shadowy_construct::npc_shadowy_constructAI::UpdateAI(), npc_shield_generator_channel::npc_shield_generator_channelAI::UpdateAI(), npc_snobold_vassal::npc_snobold_vassalAI::UpdateAI(), npc_spark_of_ionar::npc_spark_of_ionarAI::UpdateAI(), npc_toxic_sporebat::npc_toxic_sporebatAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_tooga::npc_toogaAI::UpdateFollowerAI(), InstanceScript::UpdateMinionState(), boss_netherspite::boss_netherspiteAI::UpdatePortals(), Player::UpdateZone(), boss_anetheron::boss_anetheronAI::WaypointReached(), boss_azgalor::boss_azgalorAI::WaypointReached(), boss_kazrogal::boss_kazrogalAI::WaypointReached(), boss_rage_winterchill::boss_rage_winterchillAI::WaypointReached(), npc_abomination::npc_abominationAI::WaypointReached(), npc_banshee::npc_bansheeAI::WaypointReached(), npc_crypt_fiend::npc_crypt_fiendAI::WaypointReached(), npc_fel_stalker::npc_fel_stalkerAI::WaypointReached(), npc_frost_wyrm::npc_frost_wyrmAI::WaypointReached(), npc_gargoyle::npc_gargoyleAI::WaypointReached(), npc_ghoul::npc_ghoulAI::WaypointReached(), npc_giant_infernal::npc_giant_infernalAI::WaypointReached(), and npc_necromancer::npc_necromancerAI::WaypointReached().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 4147 of file Unit.cpp.
References Object::GetGUID(), HasAuraTypeWithCaster(), WorldObject::IsAlwaysDetectableFor(), SPELL_AURA_MOD_STALKED, and WorldObject::WorldObject().
Referenced by Player::IsAlwaysDetectableFor().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 4128 of file Unit.cpp.
References GetCharmerOrOwnerGUID(), Object::GetGUID(), GetOwner(), WorldObject::IsAlwaysVisibleFor(), Object::ToPlayer(), Unit(), and WorldObject::WorldObject().
|
inline |
Definition at line 1877 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_REPAIR.
Referenced by WorldSession::HandleGossipHelloOpcode(), LuaUnit::IsArmorer(), and WorldSession::SendListInventory().
| bool Unit::isAttackingPlayer | ( | ) | const |
Definition at line 237 of file UnitCombatState.cpp.
References GetCreature(), WorldObject::GetMap(), HasUnitState(), m_Controlled, m_SummonSlot, MAX_SUMMON_SLOT, and UNIT_STATE_ATTACK_PLAYER.
Referenced by LuaUnit::IsAttackingPlayer().
|
inline |
Definition at line 1432 of file Unit.h.
References BASE_ATTACK, and m_attackTimer.
Referenced by _UpdateAutoRepeatSpell(), GetWeaponProcChance(), and Player::Update().
|
inline |
Definition at line 1873 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_AUCTIONEER.
Referenced by LuaUnit::IsAuctioneer().
|
inline |
Definition at line 1853 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_BANKER.
Referenced by LuaUnit::IsBanker().
|
inline |
Definition at line 1849 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_BATTLEMASTER.
Referenced by WorldSession::HandleBattlemasterHelloOpcode(), LuaUnit::IsBattleMaster(), and Creature::isCanInteractWithBattleMaster().
|
inlinevirtual |
| bool Unit::isBlockCritical | ( | ) |
Definition at line 715 of file Unit.cpp.
References GetTotalAuraModifier(), roll_chance_i(), and SPELL_AURA_MOD_BLOCK_CRIT_CHANCE.
Referenced by CalculateMeleeDamage(), and CalculateSpellDamageTaken().
|
inline |
Definition at line 1886 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_BMAH.
Referenced by WorldSession::HandleGossipHelloOpcode().
|
inline |
Definition at line 2136 of file Unit.h.
References GetCharmerGUID().
Referenced by Creature::CallAssistance(), Creature::CallForHelp(), ClearInCombat(), LuaUnit::IsCharmed(), NotCharmedTargetSelector::operator()(), Skyfire::FriendlyCCedInRange::operator()(), RemoveCharmedBy(), Player::Update(), boss_kelthuzad::boss_kelthuzadAI::UpdateAI(), and UpdateCharmAI().
|
inline |
Definition at line 2106 of file Unit.h.
References GetCharmerOrOwnerOrOwnGUID(), and IS_PLAYER_GUID().
| bool Unit::IsContestedGuard | ( | ) | const |
Definition at line 7309 of file Unit.cpp.
References GetFactionTemplateEntry().
|
inline |
Definition at line 2100 of file Unit.h.
References m_ControlledByPlayer.
Referenced by BuildValuesUpdate(), SpellEffectInfo::CalcValue(), SpellInfo::CheckTarget(), DealDamage(), DealMeleeDamage(), Spell::DoSpellHitOnUnit(), GetSpeed(), RollMeleeOutcomeAgainst(), Update(), and UpdateSpeed().
|
static |
Definition at line 964 of file UnitCombat.cpp.
References SpellEffectInfo::ApplyAuraName, SpellInfo::AttributesCu, SpellEffectInfo::Effect, SpellInfo::Effects, SpellInfo::GetEffectMechanicMask(), MAX_SPELL_EFFECTS, MECHANIC_BLEED, SPELL_ATTR0_CU_IGNORE_ARMOR, SPELL_AURA_PERIODIC_DAMAGE, SPELL_EFFECT_SCHOOL_DAMAGE, and SPELL_SCHOOL_MASK_NORMAL.
Referenced by CalculateMeleeDamage(), CalculateSpellDamageTaken(), misc_commandscript::HandleDamageCommand(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
|
inline |
Definition at line 2040 of file Unit.h.
References CORPSE, DEAD, and m_deathState.
Referenced by MapManager::CanPlayerEnter(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), instance_uldaman::instance_uldaman_InstanceMapScript::DeActivateMinions(), Spell::EffectSummonPet(), npc_ethereal_beacon::npc_ethereal_beaconAI::EnterCombat(), Player::HandleFall(), misc_commandscript::HandleRespawnCommand(), Player::isAllowedToLoot(), LuaUnit::IsDead(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), Player::OnGossipSelect(), at_bring_your_orphan_to::OnTrigger(), Player::PrepareGossipMenu(), Player::RepopAtGraveyard(), instance_uldaman::instance_uldaman_InstanceMapScript::RespawnMinions(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), SendMeleeAttackStop(), instance_violet_hold::instance_violet_hold_InstanceMapScript::StartBossEncounter(), boss_kelidan_the_breaker::boss_kelidan_the_breakerAI::SummonChannelers(), boss_alythess::boss_alythessAI::UpdateAI(), boss_anomalus::boss_anomalusAI::UpdateAI(), boss_dalronn_the_controller::boss_dalronn_the_controllerAI::UpdateAI(), boss_sacrolash::boss_sacrolashAI::UpdateAI(), boss_skarvald_the_constructor::boss_skarvald_the_constructorAI::UpdateAI(), npc_arthas::npc_arthasAI::UpdateAI(), npc_ethereal_beacon::npc_ethereal_beaconAI::UpdateAI(), npc_grimstone::npc_grimstoneAI::UpdateAI(), npc_ice_tomb::npc_ice_tombAI::UpdateAI(), npc_inner_demon::npc_inner_demonAI::UpdateAI(), npc_lesser_doomguard::npc_lesser_doomguardAI::UpdateAI(), and npc_towering_infernal::npc_towering_infernalAI::UpdateAI().
|
inline |
Definition at line 2798 of file Unit.h.
References m_duringRemoveFromWorld.
Referenced by _AddAura(), and Aura::CanBeAppliedOn().
|
inline |
Definition at line 2036 of file Unit.h.
References JUST_DIED, and m_deathState.
Referenced by CanHaveThreatList(), and LuaUnit::IsDying().
| bool Unit::IsFalling | ( | ) | const |
Definition at line 8388 of file Unit.cpp.
References WorldObject::m_movementInfo, MOVEMENTFLAG_FALLING, MOVEMENTFLAG_FALLING_FAR, and movespline.
Referenced by LuaPlayer::IsFalling(), lfg::LFGMgr::TeleportPlayer(), and Creature::UpdateMovementFlags().
|
inline |
Definition at line 1925 of file Unit.h.
References HasAuraType(), and SPELL_AURA_MOD_FEAR.
Referenced by Skyfire::FriendlyCCedInRange::operator()().
|
inline |
Definition at line 2780 of file Unit.h.
References WorldObject::m_movementInfo, MOVEMENTFLAG_DISABLE_GRAVITY, and MOVEMENTFLAG_FLYING.
Referenced by ArcherAI::AttackStart(), LuaUnit::IsFlying(), Player::KillPlayer(), npc_air_force_bots::npc_air_force_botsAI::MoveInLineOfSight(), Vehicle::RemovePassenger(), and Creature::setDeathState().
| bool Unit::IsFriendlyTo | ( | Unit const * | unit | ) | const |
Definition at line 2283 of file Unit.cpp.
References GetReactionTo(), REP_FRIENDLY, and Unit().
Referenced by AuraApplication::_InitFlags(), Creature::_IsTargetAcceptable(), Creature::CanAssistTo(), Spell::CheckCast(), spell_dk_death_coil::spell_dk_death_coil_SpellScript::CheckCast(), spell_pal_holy_shock::spell_pal_holy_shock_SpellScript::CheckCast(), spell_pri_penance::spell_pri_penance_SpellScript::CheckCast(), CreatureAI::DoZoneInCombat(), GetDispellableAuraList(), spell_dk_death_coil::spell_dk_death_coil_SpellScript::HandleDummy(), spell_pal_holy_shock::spell_pal_holy_shock_SpellScript::HandleDummy(), spell_pri_penance::spell_pri_penance_SpellScript::HandleDummy(), HandleDummyAuraProc(), HasVisionObscured(), GameObject::IsAlwaysVisibleFor(), SpellClickInfo::IsFitToRequirements(), Skyfire::AllFriendlyCreaturesInGrid::operator()(), and Player::SendLoot().
| bool Unit::isFrozen | ( | ) | const |
Definition at line 5796 of file Unit.cpp.
References AURA_STATE_FROZEN, and HasAuraState().
Referenced by Skyfire::FriendlyCCedInRange::operator()().
|
inline |
Definition at line 1609 of file Unit.h.
References GetHealth(), and GetMaxHealth().
Referenced by AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealAurasTick(), HandleProcTriggerSpell(), and LuaUnit::IsFullHealth().
|
inline |
Definition at line 1837 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_GOSSIP.
Referenced by LuaUnit::IsGossip().
|
inline |
Definition at line 1507 of file Unit.h.
References m_unitTypeMask, and UNIT_MASK_GUARDIAN.
Referenced by spell_monk_soothing_mist::spell_monk_soothing_mist_AuraScript::OnApply(), spell_monk_serpents_zeal::spell_monk_serpents_zeal_AuraScript::OnProc(), RemoveCharmedBy(), and UpdateSpeed().
|
inline |
Definition at line 1845 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_PETITIONER.
Referenced by LuaUnit::IsGuildMaster().
| bool Unit::IsHostileTo | ( | Unit const * | unit | ) | const |
Definition at line 2278 of file Unit.cpp.
References GetReactionTo(), REP_HOSTILE, and Unit().
Referenced by Creature::_IsTargetAcceptable(), AchievementMgr< T >::AdditionalRequirementsSatisfied(), Creature::CanAssistTo(), CreatureAI::DoZoneInCombat(), Player::GetNextRandomRaidMember(), GetNextRandomRaidMemberOrPet(), Player::GetNPCIfCanInteractWith(), GetPartyMembers(), GetSpellMaxRangeForTarget(), GetSpellMinRangeForTarget(), WorldSession::HandleQuestgiverStatusQueryOpcode(), Skyfire::NearestHostileUnitInAggroRangeCheck::operator()(), WorldSession::SendQuestgiverStatusMultiple(), and SpellHitResult().
| bool Unit::IsHostileToPlayers | ( | ) | const |
Definition at line 2288 of file Unit.cpp.
References FactionTemplateEntry::faction, GetFactionTemplateEntry(), FactionTemplateEntry::IsHostileToPlayers(), FactionEntry::reputationListID, and sFactionStore.
|
inline |
Definition at line 1515 of file Unit.h.
References m_unitTypeMask, and UNIT_MASK_HUNTER_PET.
Referenced by Creature::Regenerate(), Guardian::UpdateArmor(), Guardian::UpdateAttackPowerAndDamage(), and Player::UpdateAttackPowerAndDamage().
| bool Unit::IsImmunedToDamage | ( | SpellInfo const * | spellInfo | ) | const |
Definition at line 3432 of file Unit.cpp.
References SpellInfo::Attributes, SpellInfo::CanPierceImmuneAura(), SpellInfo::GetSchoolMask(), SpellInfo::Id, IMMUNITY_DAMAGE, IMMUNITY_SCHOOL, m_spellImmune, SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY, and sSpellMgr.
| bool Unit::IsImmunedToDamage | ( | SpellSchoolMask | meleeSchoolMask | ) | const |
Definition at line 3415 of file Unit.cpp.
References IMMUNITY_DAMAGE, IMMUNITY_SCHOOL, and m_spellImmune.
Referenced by CalculateMeleeDamage(), DealMeleeDamage(), Spell::DoSpellHitOnUnit(), Player::HandleFall(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), ThreatContainer::selectNextVictim(), and SpellHitResult().
|
virtual |
Reimplemented in Creature.
Definition at line 3456 of file Unit.cpp.
References SpellInfo::Attributes, SpellInfo::CanPierceImmuneAura(), SpellInfo::Dispel, SpellInfo::Effects, SpellInfo::GetSchoolMask(), SpellInfo::Id, IMMUNITY_DISPEL, IMMUNITY_ID, IMMUNITY_MECHANIC, IMMUNITY_SCHOOL, SpellEffectInfo::IsEffect(), IsImmunedToSpellEffect(), SpellInfo::IsPositive(), m_spellImmune, MAX_SPELL_EFFECTS, SpellInfo::Mechanic, SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY, and sSpellMgr.
Referenced by AddAura(), Spell::DoSpellHitOnUnit(), spell_dk_gorefiends_grasp::spell_dk_gorefiends_grasp_SpellScript::HandleOnHit(), Creature::IsImmunedToSpell(), and SpellHitResult().
Reimplemented in Creature, and Totem.
Definition at line 3520 of file Unit.cpp.
References SpellEffectInfo::ApplyAuraName, SpellInfo::AttributesEx3, SpellInfo::Dispel, DISPEL_MAGIC, SpellEffectInfo::Effect, SpellInfo::Effects, GetAuraEffectsByType(), SpellInfo::GetSchoolMask(), IMMUNITY_EFFECT, IMMUNITY_MECHANIC, IMMUNITY_STATE, SpellEffectInfo::IsEffect(), SpellInfo::IsPositiveEffect(), m_spellImmune, SpellEffectInfo::Mechanic, SPELL_ATTR3_IGNORE_HIT_RESULT, and SPELL_AURA_MOD_IMMUNE_AURA_APPLY_SCHOOL.
Referenced by AddAura(), Spell::AddUnitTarget(), Spell::DoSpellHitOnUnit(), IsImmunedToSpell(), and Creature::IsImmunedToSpellEffect().
| bool Unit::isInAccessiblePlaceFor | ( | Creature const * | c | ) | const |
Definition at line 1473 of file Unit.cpp.
References Creature::CanFly(), Creature::CanSwim(), Creature::CanWalk(), and IsInWater().
Referenced by Creature::CanCreatureAttack(), LuaUnit::IsInAccessiblePlaceFor(), FollowerAI::MoveInLineOfSight(), npc_escortAI::MoveInLineOfSight(), Creature::SelectVictim(), and HostileReference::updateOnlineStatus().
Definition at line 1468 of file Unit.cpp.
References Position::HasInArc(), WorldObject::IsWithinDistInMap(), M_PI, and Unit().
|
inline |
Definition at line 1896 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_FLAGS, and UNIT_FLAG_IN_COMBAT.
Referenced by Player::ActivateTaxiPathTo(), npc_anubisath_sentinel::aqsentinelAI::CallBuddiesToAttack(), Creature::CanAssistTo(), Player::CanEquipItem(), Creature::CanStartAttack(), Player::CanUnequipItem(), boss_kelidan_the_breaker::boss_kelidan_the_breakerAI::ChannelerEngaged(), Spell::CheckCast(), SpellInfo::CheckTarget(), CombatStart(), Spell::DoSpellHitOnUnit(), RandomMovementGenerator< T >::DoUpdate(), boss_twinemperorsAI::EnterCombat(), npc_ethereal_beacon::npc_ethereal_beaconAI::EnterCombat(), Player::EquipItem(), boss_sartharion::boss_sartharionAI::FetchDragons(), WorldSession::HandleBattlePetWildRequest(), WorldSession::HandleLogoutRequestOpcode(), tele_commandscript::HandleTeleCommand(), misc_commandscript::HandleUnstuckCommand(), LuaUnit::IsInCombat(), RisenArchmageCheck::operator()(), Skyfire::FriendlyCCedInRange::operator()(), Skyfire::FriendlyMissingBuffInRange::operator()(), Skyfire::MostHPMissingInRange::operator()(), SmartScript::ProcessEvent(), Player::Regenerate(), Player::RegenerateAll(), Player::RegenerateHealth(), Creature::RegenerateMana(), SetInCombatState(), SetSpeed(), lfg::LFGMgr::TeleportPlayer(), Creature::Update(), TempSummon::Update(), Update(), boss_sathrovarr::boss_sathrovarrAI::UpdateAI(), npc_ethereal_beacon::npc_ethereal_beaconAI::UpdateAI(), npc_scarlet_ghoul::npc_scarlet_ghoulAI::UpdateAI(), SimpleCharmedAI::UpdateAI(), Player::UpdateCharmedAI(), Player::UpdateContestedPvP(), InstanceScript::UpdateMinionState(), Creature::UpdateMovementFlags(), Player::UpdatePotionCooldown(), and UpdateSpeed().
| bool Unit::IsInDisallowedMountForm | ( | ) | const |
Definition at line 4942 of file Unit.cpp.
References FORM_BATTLESTANCE, FORM_BERSERKERSTANCE, FORM_DEFENSIVESTANCE, FORM_FIERCE_TIGER, FORM_MOONKIN, FORM_NONE, FORM_SHADOW, FORM_STEALTH, FORM_STURDY_OX, FORM_UNDEAD, FORM_WISE_SERPENT, and GetShapeshiftForm().
Referenced by Player::ActivateTaxiPathTo().
| bool Unit::IsInFeralForm | ( | ) | const |
Definition at line 4936 of file Unit.cpp.
References FORM_BEAR, FORM_CAT, and GetShapeshiftForm().
Referenced by Player::_ApplyWeaponDamage(), Player::CalculateMinMaxDamage(), Player::CastItemCombatSpell(), spell_dru_survival_instincts::spell_dru_survival_instincts_SpellScript::CheckCast(), Player::GetWeaponForAttack(), AuraEffect::HandleAuraModDisarm(), Aura::IsProcTriggeredOnEvent(), IsTriggeredAtSpellProcEvent(), and Player::IsUseEquipedWeapon().
|
inline |
Definition at line 1891 of file Unit.h.
References HasUnitState(), and UNIT_STATE_IN_FLIGHT.
Referenced by Player::CheckAreaExploreAndOutdoor(), CreatureUnitRelocationWorker(), Spell::EffectStuck(), Player::GetNPCIfCanInteractWith(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), misc_commandscript::HandleDismountCommand(), go_commandscript::HandleGoCreatureCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoObjectCommand(), go_commandscript::HandleGoTaxinodeCommand(), go_commandscript::HandleGoTicketCommand(), go_commandscript::HandleGoTriggerCommand(), go_commandscript::HandleGoXYZCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleLogoutRequestOpcode(), modify_commandscript::HandleModifyASpeedCommand(), modify_commandscript::HandleModifyBWalkCommand(), modify_commandscript::HandleModifySpeedCommand(), modify_commandscript::HandleModifySwimCommand(), WorldSession::HandleMovementOpcodes(), misc_commandscript::HandleRecallCommand(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), tele_commandscript::HandleTeleNameCommand(), misc_commandscript::HandleUnstuckCommand(), Battlefield::InvitePlayerToWar(), Player::IsOutdoorPvPActive(), Player::SummonIfPossible(), LuaPlayer::Teleport(), lfg::LFGMgr::TeleportPlayer(), and Player::UpdateUnderwaterState().
Definition at line 1463 of file Unit.cpp.
References Position::HasInArc(), WorldObject::IsWithinDistInMap(), and Unit().
|
inline |
Definition at line 1857 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_INNKEEPER.
Referenced by LuaUnit::IsInnkeeper().
| bool Unit::IsInPartyWith | ( | Unit const * | unit | ) | const |
Definition at line 7234 of file Unit.cpp.
References CREATURE_TYPEFLAGS_PARTY_MEMBER, GetCharmerOrOwnerOrSelf(), Creature::GetCreatureTemplate(), Object::GetTypeId(), Player::IsInSameGroupWith(), Object::ToCreature(), Object::ToPlayer(), CreatureTemplate::type_flags, TYPEID_PLAYER, TYPEID_UNIT, and Unit().
Referenced by SpellInfo::CheckExplicitTarget(), SpellClickInfo::IsFitToRequirements(), and Condition::Meets().
| bool Unit::IsInRaidWith | ( | Unit const * | unit | ) | const |
Definition at line 7253 of file Unit.cpp.
References CREATURE_TYPEFLAGS_PARTY_MEMBER, GetCharmerOrOwnerOrSelf(), Creature::GetCreatureTemplate(), Object::GetTypeId(), Player::IsInSameRaidWith(), Object::ToCreature(), Object::ToPlayer(), CreatureTemplate::type_flags, TYPEID_PLAYER, TYPEID_UNIT, and Unit().
Referenced by BuildValuesUpdate(), SpellInfo::CheckExplicitTarget(), GetReactionTo(), SpellClickInfo::IsFitToRequirements(), and Condition::Meets().
|
inline |
Definition at line 1929 of file Unit.h.
References HasAuraType(), and SPELL_AURA_MOD_ROOT.
|
virtual |
Reimplemented in Player.
Definition at line 1481 of file Unit.cpp.
References WorldObject::GetBaseMap(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and Map::IsInWater().
Referenced by isInAccessiblePlaceFor(), LuaUnit::IsInWater(), and Creature::UpdateMovementFlags().
|
inline |
Definition at line 2003 of file Unit.h.
References WorldObject::m_movementInfo, and MOVEMENTFLAG_DISABLE_GRAVITY.
Referenced by AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), SetCanFly(), SetDisableGravity(), and Creature::SetFlying().
|
inline |
Definition at line 1742 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_FLAGS, and UNIT_FLAG_MOUNT.
Referenced by Player::ActivateTaxiPathTo(), Attack(), Spell::CheckEffectTarget(), LuaUnit::Dismount(), Dismount(), AuraEffect::HandleAuraTransform(), misc_commandscript::HandleDismountCommand(), spell_dru_starfall_dummy::spell_dru_starfall_dummy_SpellScript::HandleDummy(), LuaUnit::IsMounted(), Player::IsPetNeedBeTemporaryUnsummoned(), npc_marshal_dughan::OnGossipSelect(), Player::SetBattlegroundEntryPoint(), Player::SetObjectScale(), SetStunned(), and UpdateSpeed().
|
inline |
Definition at line 2771 of file Unit.h.
References WorldObject::m_movementInfo, and MOVEMENTFLAG_MASK_MOVING.
Referenced by _UpdateAutoRepeatSpell(), spell_biting_cold::spell_biting_cold_AuraScript::HandleEffectPeriodic(), spell_biting_cold_dot::spell_biting_cold_dot_AuraScript::HandleEffectPeriodic(), and LuaUnit::IsMoving().
| bool Unit::IsNeutralToAll | ( | ) | const |
Definition at line 2301 of file Unit.cpp.
References FactionTemplateEntry::faction, GetFactionTemplateEntry(), FactionTemplateEntry::IsNeutralToAll(), FactionEntry::reputationListID, and sFactionStore.
Referenced by Creature::CanStartAttack(), AggressorAI::Permissible(), and ReactorAI::Permissible().
| bool Unit::IsNonMeleeSpellCasted | ( | bool | withDelayed, |
| bool | skipChanneled = false, | ||
| bool | skipAutorepeat = false, | ||
| bool | isAutoshoot = false, | ||
| bool | skipInstant = true ) const |
Definition at line 1402 of file Unit.cpp.
References CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, m_currentSpells, SPELL_ATTR2_NOT_RESET_AUTO_ACTIONS, SPELL_STATE_DELAYED, and SPELL_STATE_FINISHED.
Referenced by _UpdateAutoRepeatSpell(), Player::ActivateSpec(), Player::ActivateTaxiPathTo(), Player::CanEquipItem(), CombatStop(), GetUnitBlockChance(), GetUnitDodgeChance(), GetUnitParryChance(), misc_commandscript::HandleFreezeCommand(), SmartScript::ProcessEvent(), setDeathState(), StopAttackFaction(), and Player::TeleportTo().
| bool Unit::IsOnVehicle | ( | const Unit * | vehicle | ) | const |
Definition at line 7198 of file Unit.cpp.
References GetVehicleKit(), m_vehicle, and Unit().
Referenced by _EnterVehicle(), Creature::_IsTargetAcceptable(), _IsValidAssistTarget(), _IsValidAttackTarget(), WorldSession::HandleEjectPassenger(), Condition::Meets(), and RemoveCharmedBy().
|
inline |
Definition at line 1511 of file Unit.h.
References m_unitTypeMask, and UNIT_MASK_PET.
Referenced by FollowMovementGenerator< T >::_updateSpeed(), Map::AddToActive(), Attack(), BeforeVisibilityDestroy< Creature >(), Creature::CallAssistance(), Creature::CallForHelp(), Creature::CanSwim(), CombatStart(), hyjal_trashAI::DamageTaken(), DealDamage(), Spell::EffectTameCreature(), Creature::GetAggroRange(), GetCastingTimeForBonus(), GetCombatRatingReduction(), GetCreatePowers(), GetNextRandomRaidMemberOrPet(), GetSpellModOwner(), AuraEffect::HandleAuraModBaseResistancePCT(), AuraEffect::HandleAuraModResistance(), AuraEffect::HandleAuraModStat(), debug_commandscript::HandleDebugThreatListCommand(), AuraEffect::HandleModBaseResistance(), AuraEffect::HandleModPossessPet(), AuraEffect::HandleModResistancePercent(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcDeleteCommand(), npc_commandscript::HandleNpcSetLevelCommand(), npc_commandscript::HandleNpcSetModelCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetPhaseCommand(), npc_commandscript::HandleNpcSetPhaseGroup(), npc_commandscript::HandleNpcTameCommand(), WorldSession::HandlePetAbandon(), WorldSession::HandlePetActionHelper(), pet_commandscript::HandlePetCreateCommand(), WorldSession::HandlePetSetAction(), WorldSession::HandlePetSpellAutocastOpcode(), reset_commandscript::HandleResetTalentsCommand(), misc_commandscript::HandleRespawnCommand(), TempSummon::InitStats(), Guardian::InitStatsForLevel(), DisableMgr::IsDisabledFor(), Creature::isElite(), Minion::IsGuardianPet(), Creature::isWorldBoss(), Kill(), Map::MoveAllCreaturesInMoveList(), spell_monk_soothing_mist::spell_monk_soothing_mist_AuraScript::OnApply(), spell_monk_serpents_zeal::spell_monk_serpents_zeal_AuraScript::OnProc(), PlayerOrPetCheck::operator()(), PetAI::Permissible(), Map::RemoveFromActive(), RollMeleeOutcomeAgainst(), FactorySelector::selectAI(), Creature::SelectLevel(), WorldSession::SendPetNameQuery(), Creature::setDeathState(), SetInCombatState(), SetMinion(), SpellDamageBonusDone(), ToPet(), ToPet(), TempSummon::UnSummon(), Update(), Guardian::UpdateArmor(), Guardian::UpdateAttackPowerAndDamage(), UpdateAuraForGroup(), Guardian::UpdateResistances(), UpdateSpeed(), UpdateUnderwaterState(), and ObjectGridEvacuator::Visit().
| bool Unit::IsPolymorphed | ( | ) | const |
Definition at line 5928 of file Unit.cpp.
References SpellInfo::GetSpellSpecific(), getTransForm(), SPELL_SPECIFIC_MAGE_POLYMORPH, and sSpellMgr.
Referenced by AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraTransform(), Player::RegenerateAll(), Player::RegenerateHealth(), and Creature::Update().
|
inline |
Definition at line 2140 of file Unit.h.
References HasUnitState(), and UNIT_STATE_POSSESSED.
Referenced by WorldSession::HandlePetActionHelper(), isPossessing(), Pet::Update(), Player::Update(), and UpdateCharmAI().
| bool Unit::isPossessedByPlayer | ( | ) | const |
Definition at line 2808 of file Unit.cpp.
References GetCharmerGUID(), HasUnitState(), IS_PLAYER_GUID(), and UNIT_STATE_POSSESSED.
| bool Unit::isPossessing | ( | ) | const |
Definition at line 2818 of file Unit.cpp.
References GetCharm(), and Unit().
Referenced by misc_commandscript::HandleUnbindSightCommand().
| bool Unit::isPossessing | ( | Unit * | u | ) | const |
Definition at line 2813 of file Unit.cpp.
References GetCharmGUID(), Object::GetGUID(), isPossessed(), and Unit().
|
inline |
Definition at line 1716 of file Unit.h.
References Object::HasByteFlag(), UNIT_BYTE2_FLAG_PVP, and UNIT_FIELD_SHAPESHIFT_FORM.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket(), CombatStart(), Spell::DoAllEffectOnTarget(), WorldSession::HandleMoveTeleportAck(), Player::IsOutdoorPvPActive(), LuaUnit::IsPvPFlagged(), SetInCombatWith(), Player::UpdatePvPFlag(), and Player::UpdatePvPState().
|
inline |
Definition at line 1833 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_QUESTGIVER.
Referenced by WorldSession::HandleGossipHelloOpcode(), LuaUnit::IsQuestGiver(), and npc_Spirit_of_Master_Shang_Xi::OnGossipHello().
| AuraEffect * Unit::IsScriptOverriden | ( | SpellInfo const * | spell, |
| int32 | script ) const |
Definition at line 1270 of file UnitAuraState.cpp.
References GetAuraEffectsByType(), and SPELL_AURA_OVERRIDE_CLASS_SCRIPTS.
| bool Unit::IsServiceProvider | ( | ) | const |
Definition at line 3786 of file Unit.cpp.
References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, UNIT_NPC_FLAG_AUCTIONEER, UNIT_NPC_FLAG_BANKER, UNIT_NPC_FLAG_BATTLEMASTER, UNIT_NPC_FLAG_FLIGHTMASTER, UNIT_NPC_FLAG_INNKEEPER, UNIT_NPC_FLAG_PETITIONER, UNIT_NPC_FLAG_SPIRITGUIDE, UNIT_NPC_FLAG_SPIRITHEALER, UNIT_NPC_FLAG_TABARDDESIGNER, UNIT_NPC_FLAG_TRAINER, and UNIT_NPC_FLAG_VENDOR.
Referenced by WorldSession::HandleGossipHelloOpcode(), and LuaUnit::IsServiceProvider().
| bool Unit::IsSitState | ( | ) | const |
Definition at line 5889 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 _ApplyAura(), and IsStandState().
| bool Unit::isSpellBlocked | ( | Unit * | victim, |
| SpellInfo const * | spellProto, | ||
| WeaponAttackType | attackType = WeaponAttackType::BASE_ATTACK ) |
Definition at line 696 of file Unit.cpp.
References SpellInfo::Attributes, CREATURE_FLAG_EXTRA_NO_BLOCK, CreatureTemplate::flags_extra, Creature::GetCreatureTemplate(), Object::GetTypeId(), GetUnitBlockChance(), HasAuraType(), Position::HasInArc(), M_PI, roll_chance_f(), SPELL_ATTR0_IMPOSSIBLE_DODGE_PARRY_BLOCK, SPELL_AURA_IGNORE_HIT_DIRECTION, Object::ToCreature(), TYPEID_UNIT, and Unit().
Referenced by CalculateSpellDamageTaken().
| bool Unit::isSpellCrit | ( | Unit * | victim, |
| SpellInfo const * | spellProto, | ||
| SpellSchoolMask | schoolMask, | ||
| WeaponAttackType | attackType = WeaponAttackType::BASE_ATTACK ) const |
Mobs can't crit with spells. Player Totems can Fire Elemental (from totem) can too - but this part is a hack and needs more research
Definition at line 3111 of file Unit.cpp.
References ApplyPct(), SpellInfo::AttributesEx2, AURA_STATE_BLEEDING, AURA_STATE_FAERIE_FIRE, AURA_STATE_FROZEN, CREATURE_TYPEMASK_DEMON_OR_UNDEAD, SpellInfo::DmgClass, EFFECT_0, FindCurrentSpellBySpellId(), GetAuraEffect(), GetAuraEffectsByType(), SpellInfo::GetCategory(), GetCreatureTypeMask(), GetDummyAuraEffect(), Object::GetEntry(), GetFirstSchoolInMask(), Object::GetFloatValue(), Object::GetGUID(), GetOwnerGUID(), GetSpellModOwner(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), Object::GetTypeId(), GetUnitCriticalChance(), HasAuraState(), HasAuraWithMechanic(), SpellInfo::Id, IS_CREATURE_GUID(), IS_PLAYER_GUID(), SpellInfo::IsPositive(), IsTotem(), m_baseSpellCritChance, MECHANIC_KNOCKOUT, MECHANIC_STUN, PLAYER_FIELD_SPELL_CRIT_PERCENTAGE, roll_chance_f(), SPELL_ATTR2_CANT_CRIT, SPELL_AURA_MOD_ATTACKER_SPELL_AND_WEAPON_CRIT_CHANCE, SPELL_AURA_MOD_ATTACKER_SPELL_CRIT_CHANCE, SPELL_AURA_MOD_CRIT_CHANCE_FOR_CASTER, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_AURA_PERIODIC_DAMAGE, SPELL_DAMAGE_CLASS_MAGIC, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_NONE, SPELL_DAMAGE_CLASS_RANGED, SPELL_SCHOOL_MASK_NORMAL, SPELLFAMILY_DRUID, SPELLFAMILY_MAGE, SPELLFAMILY_PALADIN, SPELLFAMILY_ROGUE, SPELLFAMILY_SHAMAN, SPELLFAMILY_WARRIOR, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, SPELLMOD_CRITICAL_CHANCE, TYPEID_PLAYER, and Unit().
Referenced by Spell::DoAllEffectOnTarget(), and AuraEffect::IsPeriodicTickCrit().
|
inline |
Definition at line 1865 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_SPIRITGUIDE.
Referenced by Creature::Create(), WorldSession::HandleGossipHelloOpcode(), and LuaUnit::IsSpiritGuide().
|
inline |
Definition at line 1861 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_SPIRITHEALER.
Referenced by Creature::Create(), and LuaUnit::IsSpiritHealer().
|
inline |
Definition at line 1882 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, UNIT_NPC_FLAG_SPIRITGUIDE, and UNIT_NPC_FLAG_SPIRITHEALER.
Referenced by WorldSession::HandleAreaSpiritHealerQueryOpcode(), WorldSession::HandleAreaSpiritHealerQueueOpcode(), Creature::InitializeReactState(), and LuaUnit::IsSpiritService().
| bool Unit::IsSplineEnabled | ( | ) | const |
Definition at line 9355 of file Unit.cpp.
References movespline.
Referenced by Object::BuildMovementUpdate(), and WriteMovementInfo().
| bool Unit::IsStandState | ( | ) | const |
Definition at line 5896 of file Unit.cpp.
References getStandState(), IsSitState(), UNIT_STAND_STATE_KNEEL, and UNIT_STAND_STATE_SLEEP.
Referenced by CombatStart(), Spell::DoAllEffectOnTarget(), WorldSession::HandlePlayerLogin(), AuraEffect::HandleSpiritOfRedemption(), Player::RegenerateHealth(), RollMeleeOutcomeAgainst(), and SetStandState().
|
inline |
Definition at line 2614 of file Unit.h.
References HasUnitState(), and UNIT_STATE_MOVING.
Referenced by WaypointMovementGenerator< Creature >::DoUpdate(), RotateMovementGenerator::Initialize(), LuaUnit::IsStopped(), IdleMovementGenerator::Reset(), and SetFacingToObject().
|
inline |
Definition at line 1503 of file Unit.h.
References m_unitTypeMask, and UNIT_MASK_SUMMON.
Referenced by _TryStackingOrRefreshingExistingAura(), spell_item_unsated_craving::spell_item_unsated_craving_AuraScript::CheckProc(), CreatureAI::DoZoneInCombat(), GetAllMinionsByEntry(), WorldSession::HandleDismissCritter(), TempSummon::InitStats(), SpellClickInfo::IsFitToRequirements(), npc_blackfathom_deeps_event::npc_blackfathom_deeps_eventAI::npc_blackfathom_deeps_eventAI(), spell_monk_soothing_mist::spell_monk_soothing_mist_AuraScript::OnApply(), spell_monk_serpents_zeal::spell_monk_serpents_zeal_AuraScript::OnProc(), RemoveAllControlled(), RemoveAllMinionsByEntry(), Creature::SaveRespawnTime(), Creature::SearchFormation(), Creature::SelectVictim(), ToTempSummon(), ToTempSummon(), and Player::VehicleSpellInitialize().
|
inline |
Definition at line 1869 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_TABARDDESIGNER.
Referenced by LuaUnit::IsTabardDesigner().
| bool Unit::isTargetableForAttack | ( | bool | checkFakeDeath = true | ) | const |
Definition at line 3795 of file Unit.cpp.
References Object::GetTypeId(), Object::HasFlag(), HasUnitState(), IsAlive(), Object::ToPlayer(), TYPEID_PLAYER, UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC, UNIT_FLAG_NON_ATTACKABLE, UNIT_FLAG_NOT_SELECTABLE, UNIT_STATE_DIED, and UNIT_STATE_UNATTACKABLE.
Referenced by Creature::_IsTargetAcceptable(), Player::IsImmuneToEnvironmentalDamage(), LuaCreature::IsTargetAcceptable(), FollowerAI::MoveInLineOfSight(), npc_escortAI::MoveInLineOfSight(), NecroticPlagueTargetCheck::operator()(), Skyfire::AnyUnfriendlyNoTotemUnitInObjectRangeCheck::operator()(), Skyfire::NearestAttackableUnitInObjectRangeCheck::operator()(), and TotemAI::UpdateAI().
|
inline |
Definition at line 1841 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_FLIGHTMASTER.
Referenced by LuaUnit::IsTaxi().
|
inline |
Definition at line 1519 of file Unit.h.
References m_unitTypeMask, and UNIT_MASK_TOTEM.
Referenced by _UnapplyAura(), CanHaveThreatList(), Creature::Create(), DealHeal(), Spell::EffectDestroyAllTotems(), Spell::EffectSummonType(), GetSpellModOwner(), GetUnitBlockChance(), GetUnitDodgeChance(), debug_commandscript::HandleDebugThreatListCommand(), npc_commandscript::HandleNpcDeleteCommand(), WorldSession::HandleTotemDestroyed(), Creature::InitializeReactState(), isSpellCrit(), Kill(), NecroticPlagueTargetCheck::operator()(), Skyfire::WorldObjectSpellTargetCheck::operator()(), TotemAI::Permissible(), FactorySelector::selectAI(), SetMinion(), SpellDamageBonusDone(), SpellHealingBonusDone(), Spell::SummonGuardian(), TotemAI::TotemAI(), ToTotem(), and ToTotem().
|
inline |
Definition at line 1829 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_TRAINER.
Referenced by LuaUnit::IsTrainer().
|
private |
Definition at line 685 of file UnitProcEvent.cpp.
References SpellInfo::AttributesEx3, BASE_ATTACK, ItemTemplate::Class, SpellProcEventEntry::customChance, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, SpellInfo::EquippedItemClass, SpellInfo::EquippedItemSubClassMask, GetAttackTime(), Aura::GetId(), GetPPMProcChance(), Aura::GetSpellInfo(), GetSpellModOwner(), Item::GetTemplate(), Object::GetTypeId(), Player::GetUseableItemByPos(), SpellInfo::Id, INVENTORY_SLOT_BAG_0, Item::IsBroken(), Player::isHonorOrXPTarget(), IsInFeralForm(), ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, OFF_ATTACK, SpellProcEventEntry::ppmRate, PROC_EX_INTERNAL_TRIGGERED, PROC_FLAG_DONE_TRAP_ACTIVATION, PROC_FLAG_KILL, PROC_FLAG_TAKEN_PERIODIC, SpellInfo::ProcChance, SpellInfo::ProcFlags, SpellProcEventEntry::procFlags, RANGED_ATTACK, roll_chance_f(), SPELL_ATTR3_CAN_PROC_WITH_TRIGGERED, SPELLMOD_CHANCE_OF_SUCCESS, sSpellMgr, ItemTemplate::SubClass, Object::ToPlayer(), TYPEID_PLAYER, and Unit().
Referenced by ProcDamageAndSpellFor().
|
inline |
Definition at line 2775 of file Unit.h.
References WorldObject::m_movementInfo, and MOVEMENTFLAG_MASK_TURNING.
|
virtual |
Reimplemented in Player.
Definition at line 1486 of file Unit.cpp.
References WorldObject::GetBaseMap(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and Map::IsUnderWater().
Referenced by LuaUnit::IsUnderWater().
| bool Unit::IsValidAssistTarget | ( | Unit const * | target | ) | const |
Definition at line 3930 of file Unit.cpp.
References _IsValidAssistTarget(), and Unit().
| bool Unit::IsValidAttackTarget | ( | Unit const * | target | ) | const |
Definition at line 3810 of file Unit.cpp.
References _IsValidAttackTarget(), and Unit().
Referenced by Creature::CanCreatureAttack(), spell_pal_holy_shock::spell_pal_holy_shock_SpellScript::CheckCast(), spell_pri_penance::spell_pri_penance_SpellScript::CheckCast(), CreatureGroup::MemberAttackStart(), Creature::SelectVictim(), SimpleCharmedAI::UpdateAI(), and Player::UpdateCharmedAI().
|
inline |
Definition at line 1523 of file Unit.h.
References m_unitTypeMask, and UNIT_MASK_VEHICLE.
Referenced by Creature::AddToWorld(), ApplyResilience(), Spell::CheckEffectTarget(), SpellInfo::CheckTarget(), Map::CreatureRelocation(), DealDamage(), DealMeleeDamage(), Spell::EffectSummonType(), AuraEffect::HandleAuraControlVehicle(), debug_commandscript::HandleDebugEnterVehicleCommand(), debug_commandscript::HandleDebugSetVehicleIdCommand(), spell_q13280_13283_plant_battle_standard::spell_q13280_13283_plant_battle_standard_SpellScript::HandleDummy(), BattlegroundIC::HandleKillUnit(), WorldSession::HandlePetActionHelper(), spell_q12919_gymers_throw::spell_q12919_gymers_throw_SpellScript::HandleScript(), spell_putricide_mutated_transformation::spell_putricide_mutated_transformation_SpellScript::HandleSummon(), TempSummon::InitStats(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustDied(), KillRewarder::KillRewarder(), spell_the_lich_king_eject_all_passengers::spell_the_lich_king_eject_all_passengers_SpellScript::Load(), Map::MoveAllCreaturesInMoveList(), BattlefieldWG::OnUnitDeath(), OutDebugInfo(), Map::PlayerRelocation(), RemoveCharmedBy(), RemoveFromWorld(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), FactorySelector::selectAI(), SetCharmedBy(), Creature::SetLootRecipient(), GameObject::SetLootRecipient(), Creature::SetPosition(), Player::StopCastingCharm(), Creature::Update(), UpdateCharmAI(), Creature::UpdateEntry(), UpdateHeight(), UpdateOrientation(), and UpdateUnderwaterState().
|
inline |
Definition at line 1825 of file Unit.h.
References Object::HasFlag(), UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_VENDOR.
Referenced by npc_commandscript::HandleNpcDeleteVendorItemCommand(), and LuaUnit::IsVendor().
| bool Unit::IsVisible | ( | ) | const |
Definition at line 4158 of file Unit.cpp.
References WorldObject::m_serverSideVisibility, SEC_PLAYER, and SERVERSIDE_VISIBILITY_GM.
Referenced by SpellInfo::CheckTarget(), AuraEffect::HandlePhase(), AuraEffect::HandlePhaseGroup(), LuaUnit::IsVisible(), Player::IsVisibleGloballyFor(), Skyfire::AllFriendlyCreaturesInGrid::operator()(), and npc_oliver_harris::npc_oliver_harrisAI::StartSceneImpl().
|
inline |
Definition at line 2007 of file Unit.h.
References WorldObject::m_movementInfo, and MOVEMENTFLAG_WALKING.
Referenced by SetCharm(), and SetWalk().
| bool Unit::IsWithinCombatRange | ( | const Unit * | obj, |
| float | dist2compare ) const |
Definition at line 447 of file Unit.cpp.
References GetCombatReach(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), WorldObject::InSamePhase(), WorldObject::IsInMap(), and Unit().
Referenced by HostileReference::updateOnlineStatus().
| bool Unit::IsWithinMeleeRange | ( | const Unit * | obj, |
| float | dist = MELEE_RANGE ) const |
Definition at line 463 of file Unit.cpp.
References GetMeleeReach(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), WorldObject::InSamePhase(), WorldObject::IsInMap(), and Unit().
Referenced by ThreatContainer::selectNextVictim(), and Player::Update().
| void Unit::JumpTo | ( | float | speedXY, |
| float | speedZ, | ||
| bool | forward = true ) |
Definition at line 8139 of file Unit.cpp.
References GetMotionMaster(), Position::GetOrientation(), Object::GetTypeId(), M_PI, MotionMaster::MoveJumpTo(), SendMoveKnockBack(), Object::ToPlayer(), and TYPEID_UNIT.
Referenced by LuaUnit::Jump(), LuaUnit::JumpTo(), and npc_stalagg::npc_stalaggAI::UpdateAI().
| void Unit::JumpTo | ( | WorldObject * | obj, |
| float | speedZ ) |
Definition at line 8152 of file Unit.cpp.
References WorldObject::GetContactPoint(), Position::GetExactDist2d(), GetMotionMaster(), MotionMaster::MoveJump(), and WorldObject::WorldObject().
| void Unit::Kill | ( | Unit * | victim, |
| bool | durabilityLoss = true ) |
Definition at line 6342 of file Unit.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_GET_KILLING_BLOWS, ACHIEVEMENT_CRITERIA_TYPE_KILLED_BY_CREATURE, ACHIEVEMENT_CRITERIA_TYPE_KILLED_BY_PLAYER, Creature::AI(), BASE_ATTACK, CastSpell(), CLASS_PRIEST, Loot::clear(), CONFIG_DURABILITY_LOSS_IN_PVP, CREATURE_FLAG_EXTRA_INSTANCE_BIND, CREATURE_TYPE_CRITTER, DeleteThreatList(), DUEL_INTERRUPTED, Loot::FillLoot(), ObjectAccessor::FindPlayer(), CreatureTemplate::flags_extra, Loot::generateMoneyLoot(), GetAuraEffectsByType(), Player::GetBattleground(), GetCharmerOrOwnerPlayerOrPlayerItself(), getClass(), Creature::GetCreatureTemplate(), GetCreatureType(), Object::GetEntry(), Player::GetGroup(), Object::GetGUID(), GetHealth(), WorldObject::GetInstanceId(), Creature::GetLootMode(), Creature::GetLootRecipient(), WorldObject::GetMap(), Player::GetOutdoorPvP(), GetOwner(), Player::GetPet(), Creature::GetRespawnTimeEx(), Player::GetResurrectionSpellId(), Object::GetTypeId(), Object::GetUInt32Value(), WorldObject::GetZoneId(), HOUR, Player::InBattleground(), IsAIEnabled, IsAlive(), Pet::isControlled(), Creature::IsDamageEnoughForLootingAndReward(), Map::IsInstance(), IsPet(), Map::IsRaidOrHeroicDungeon(), IsTotem(), JUST_DIED, CreatureAI::JustDied(), CreatureAI::KilledUnit(), Creature::loot, Creature::lootForPickPocketed, CreatureTemplate::lootid, LootTemplates_Creature, CreatureTemplate::maxgold, CreatureTemplate::mingold, OBJECT_FIELD_DYNAMIC_FLAGS, PLAYER_FIELD_SELF_RES_SPELL, PROC_EX_NONE, PROC_FLAG_DEATH, PROC_FLAG_KILL, PROC_FLAG_KILLED, PROC_FLAG_NONE, ProcDamageAndSpell(), RATE_DURABILITY_LOSS_ON_DEATH, RemoveAllAurasOnDeath(), Player::RewardPlayerAndGroupAtKill(), sBattlefieldMgr, Player::SendDirectMessage(), SendDurabilityLoss(), Player::SendMessageToSet(), setDeathState(), Object::SetFlag(), Creature::SetLootRecipient(), Object::SetUInt32Value(), SF_LOG_DEBUG, sInstanceSaveMgr, SMSG_LOOT_LIST, SMSG_PARTYKILLLOG, SPELL_AURA_DUMMY, SPELL_AURA_MOD_DURABILITY_LOSS, sScriptMgr, sWorld, Object::ToCreature(), Object::ToPlayer(), ToTempSummon(), TYPEID_PLAYER, TYPEID_UNIT, Unit(), UNIT_DYNFLAG_LOOTABLE, Player::UpdateAchievementCriteria(), ByteBuffer::WriteBit(), ByteBuffer::WriteByteSeq(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by instance_violet_hold::instance_violet_hold_InstanceMapScript::ActivateCrystal(), boss_malchezaar::boss_malchezaarAI::AxesCleanup(), DealDamage(), AuraEffect::HandleAuraControlVehicle(), misc_commandscript::HandleDieCommand(), spell_ooze_zap_channel_end::spell_ooze_zap_channel_end_SpellScript::HandleDummy(), spell_q12589_shoot_rjr::spell_q12589_shoot_rjr_SpellScript::HandleDummy(), spell_cultist_dark_martyrdom::spell_cultist_dark_martyrdom_SpellScript::HandleEffect(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), spell_yogg_saron_titanic_storm::spell_yogg_saron_titanic_storm_SpellScript::HandleScript(), npc_counselor_talbot::npc_counselor_talbotAI::JustDied(), LuaUnit::Kill(), spell_yogg_saron_insane::spell_yogg_saron_insane_AuraScript::OnRemove(), instance_scarlet_monastery::instance_scarlet_monastery_InstanceMapScript::SetData(), boss_selin_fireheart::boss_selin_fireheartAI::ShatterRemainingCrystals(), boss_selin_fireheart::boss_selin_fireheartAI::UpdateAI(), npc_crusade_persuaded::npc_crusade_persuadedAI::UpdateAI(), and SimpleCharmedAI::UpdateAI().
| void Unit::KnockbackFrom | ( | float | x, |
| float | y, | ||
| float | speedXY, | ||
| float | speedZ ) |
Definition at line 7597 of file Unit.cpp.
References GetCharmer(), GetMotionMaster(), Position::GetSinCos(), Player::m_mover, MotionMaster::MoveKnockbackFrom(), SendMoveKnockBack(), Object::ToPlayer(), and Unit().
Referenced by LuaUnit::KnockbackFrom().
| SpellMissInfo Unit::MagicSpellHitResult | ( | Unit * | victim, |
| SpellInfo const * | spellInfo ) |
Definition at line 934 of file Unit.cpp.
References SpellInfo::AttributesEx3, getLevelForTarget(), GetMechanicResistChance(), SpellInfo::GetSchoolMask(), GetSpellModOwner(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), Object::GetTypeId(), HasAuraType(), Position::HasInArc(), SpellInfo::Id, IsAlive(), m_modSpellHitChance, M_PI, RoundToInterval(), SPELL_ATTR3_IGNORE_HIT_RESULT, SPELL_AURA_DEFLECT_SPELLS, SPELL_AURA_IGNORE_HIT_DIRECTION, SPELL_AURA_MOD_ATTACKER_SPELL_HIT_CHANCE, SPELL_MISS_DEFLECT, SPELL_MISS_MISS, SPELL_MISS_NONE, SPELL_MISS_RESIST, SpellInfo::SpellLevel, SPELLMOD_RESIST_MISS_CHANCE, Object::ToCreature(), TYPEID_PLAYER, TYPEID_UNIT, and Unit().
Referenced by SpellHitResult().
| uint32 Unit::MeleeDamageBonusDone | ( | Unit * | pVictim, |
| uint32 | damage, | ||
| WeaponAttackType | attType, | ||
| SpellInfo const * | spellProto = NULL ) |
Definition at line 578 of file UnitCombatBonus.cpp.
References AddPct(), SpellInfo::AttributesEx6, SpellEffectInfo::Effect, SpellInfo::Effects, GetAPMultiplier(), GetAuraEffectsByType(), GetCreatureTypeMask(), SpellInfo::GetSchoolMask(), GetSpellModOwner(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscValue(), HasAuraState(), SpellInfo::Id, MAX_SPELL_EFFECTS, SpellInfo::Mechanic, RANGED_ATTACK, SPELL_ATTR5_SPECIAL_ITEM_CLASS_CHECK, SPELL_ATTR6_NO_DONE_PCT_DAMAGE_MODS, SPELL_AURA_MELEE_ATTACK_POWER_ATTACKER_BONUS, SPELL_AURA_MOD_DAMAGE_DONE_CREATURE, SPELL_AURA_MOD_DAMAGE_DONE_FOR_MECHANIC, SPELL_AURA_MOD_DAMAGE_DONE_VERSUS, SPELL_AURA_MOD_DAMAGE_DONE_VERSUS_AURASTATE, SPELL_AURA_MOD_DAMAGE_PERCENT_DONE, SPELL_AURA_MOD_MELEE_ATTACK_POWER_VERSUS, SPELL_AURA_MOD_RANGED_ATTACK_POWER_VERSUS, SPELL_AURA_RANGED_ATTACK_POWER_ATTACKER_BONUS, SPELL_EFFECT_NORMALIZED_WEAPON_DMG, SPELL_SCHOOL_MASK_NORMAL, SPELLMOD_DAMAGE, Object::ToPlayer(), and Unit().
Referenced by CalculateMeleeDamage().
| uint32 Unit::MeleeDamageBonusTaken | ( | Unit * | attacker, |
| uint32 | pdamage, | ||
| WeaponAttackType | attType, | ||
| SpellInfo const * | spellProto = NULL ) |
Definition at line 682 of file UnitCombatBonus.cpp.
References AddPct(), CalculatePct(), CR_RESILIENCE_PLAYER_DAMAGE_TAKEN, SpellInfo::GetAllEffectsMechanicMask(), GetAuraEffectsByType(), Object::GetGUID(), GetMeleeDamageSchoolMask(), Player::GetRatingBonusValue(), SpellInfo::GetSchoolMask(), GetTotalAuraModifier(), GetTotalAuraMultiplierByMiscMask(), Object::GetTypeId(), MECHANIC_BLEED, RANGED_ATTACK, SPELL_AURA_DUMMY, SPELL_AURA_MOD_DAMAGE_FROM_CASTER, SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN, SPELL_AURA_MOD_DAMAGE_TAKEN, SPELL_AURA_MOD_IGNORE_TARGET_RESIST, SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCENT, SPELL_AURA_MOD_MELEE_DAMAGE_TAKEN, SPELL_AURA_MOD_MELEE_DAMAGE_TAKEN_PCT, SPELL_AURA_MOD_RANGED_DAMAGE_TAKEN, SPELL_AURA_MOD_RANGED_DAMAGE_TAKEN_PCT, SPELL_SCHOOL_MASK_NORMAL, SPELLFAMILY_DRUID, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, Object::ToPlayer(), TYPEID_PLAYER, and Unit().
Referenced by CalculateMeleeDamage().
| SpellMissInfo Unit::MeleeSpellHitResult | ( | Unit * | victim, |
| SpellInfo const * | spellInfo ) |
Definition at line 760 of file Unit.cpp.
References SpellInfo::Attributes, SpellInfo::AttributesCu, SpellInfo::AttributesEx3, BASE_ATTACK, CREATURE_FLAG_EXTRA_NO_BLOCK, CREATURE_FLAG_EXTRA_NO_PARRY, SpellInfo::DmgClass, CreatureTemplate::flags_extra, GetAuraEffectsByType(), Creature::GetCreatureTemplate(), SpellInfo::GetEffectMechanic(), GetMechanicResistChance(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscValue(), GetTotalAuraMultiplier(), Object::GetTypeId(), GetUnitBlockChance(), GetUnitDodgeChance(), GetUnitParryChance(), HasAuraType(), Position::HasInArc(), SpellInfo::Id, M_PI, MAX_SPELL_EFFECTS, MELEE_HIT_BLOCK, MELEE_HIT_DODGE, MELEE_HIT_PARRY, MeleeSpellMissChance(), RANGED_ATTACK, SF_LOG_DEBUG, SPELL_ATTR0_CU_REQ_CASTER_BEHIND_TARGET, SPELL_ATTR0_IMPOSSIBLE_DODGE_PARRY_BLOCK, SPELL_ATTR3_BLOCKABLE_SPELL, SPELL_ATTR3_IGNORE_HIT_RESULT, SPELL_AURA_DEFLECT_SPELLS, SPELL_AURA_IGNORE_COMBAT_RESULT, SPELL_AURA_IGNORE_HIT_DIRECTION, SPELL_AURA_MOD_COMBAT_RESULT_CHANCE, SPELL_AURA_MOD_ENEMY_DODGE, SPELL_AURA_MOD_EXPERTISE, SPELL_AURA_MOD_MECHANIC_RESISTANCE, 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, Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, Unit(), and VICTIMSTATE_DODGE.
Referenced by SpellHitResult().
| float Unit::MeleeSpellMissChance | ( | Unit const * | victim, |
| WeaponAttackType | attType, | ||
| uint32 | spellId ) const |
Definition at line 7421 of file Unit.cpp.
References GetSpellModOwner(), GetUnitMissChance(), haveOffhandWeapon(), m_modMeleeHitChance, m_modRangedHitChance, RANGED_ATTACK, SPELLMOD_RESIST_MISS_CHANCE, and Unit().
Referenced by MeleeSpellHitResult(), and RollMeleeOutcomeAgainst().
| void Unit::ModifyAuraState | ( | AuraStateType | flag, |
| bool | apply ) |
Definition at line 1564 of file UnitAuraState.cpp.
References AURA_STATE_ENRAGE, SpellInfo::CasterAuraState, CastSpell(), GetAppliedAuras(), Player::GetSpellMap(), Object::GetTypeId(), Object::HasFlag(), SpellInfo::IsPassive(), PETSPELL_REMOVED, PLAYERSPELL_REMOVED, RemoveAura(), Object::RemoveFlag(), Object::SetFlag(), sSpellMgr, Object::ToCreature(), ToPet(), Object::ToPlayer(), TYPEID_PLAYER, and UNIT_FIELD_AURA_STATE.
Referenced by _ApplyAura(), _UnapplyAura(), ClearAllReactives(), debug_commandscript::HandleDebugSetAuraStateCommand(), ProcDamageAndSpellFor(), setDeathState(), Update(), and UpdateReactives().
Definition at line 4023 of file Unit.cpp.
References GetHealth(), GetMaxHealth(), and SetHealth().
Referenced by DealDamage(), DealHeal(), AuraEffect::HandleAuraModIncreaseHealth(), HandleDummyAuraProc(), AuraEffect::HandlePeriodicHealthFunnelAuraTick(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), Creature::RegenerateHealth(), and Player::RegenerateHealth().
Definition at line 4081 of file Unit.cpp.
References GetMaxPower(), GetMinPower(), GetPower(), and SetPower().
Referenced by CalcAbsorbResist(), EnergizeBySpell(), AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicManaLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), spell_kelthuzad_detonate_mana::spell_kelthuzad_detonate_mana_AuraScript::HandleScript(), ModifyPowerPct(), Creature::Regenerate(), Creature::RegenerateMana(), RewardRage(), and Spell::TakeRunePower().
Definition at line 4114 of file Unit.cpp.
References ApplyPercentModFloatVar(), GetMaxPower(), and ModifyPower().
Referenced by AuraEffect::HandleAuraModIncreaseEnergyPercent().
|
inline |
Definition at line 2724 of file Unit.h.
References _redirectThreadInfo.
| void Unit::ModSpellCastTime | ( | SpellInfo const * | spellProto, |
| int32 & | castTime, | ||
| Spell * | spell = NULL ) |
Definition at line 4821 of file Unit.cpp.
References SpellInfo::Attributes, SpellInfo::AttributesEx2, Object::GetFloatValue(), GetSpellModOwner(), Object::GetTypeId(), HasAura(), SpellInfo::Id, m_modAttackSpeedPct, RANGED_ATTACK, SPELL_ATTR0_ABILITY, SPELL_ATTR0_REQ_AMMO, SPELL_ATTR0_TRADESPELL, SPELL_ATTR2_AUTOREPEAT_FLAG, SpellInfo::SpellFamilyName, SPELLMOD_CASTING_TIME, SpellInfo::SpellVisual, TYPEID_PLAYER, TYPEID_UNIT, and UNIT_FIELD_MOD_CASTING_SPEED.
Referenced by SpellInfo::CalcCastTime(), and AuraEffect::CalculatePeriodic().
| int32 Unit::ModSpellDuration | ( | SpellInfo const * | spellProto, |
| Unit const * | target, | ||
| int32 | duration, | ||
| bool | positive, | ||
| uint32 | effectMask ) |
Definition at line 4736 of file Unit.cpp.
References AddPct(), SpellInfo::Dispel, SpellInfo::Effects, GetAuraEffect(), GetMaxNegativeAuraModifierByMiscValue(), SpellInfo::GetSpellMechanicMaskByEffectMask(), GetTotalAuraModifierByMiscValue(), Object::GetTypeId(), HasAura(), HasSpell(), SpellInfo::Id, IN_MILLISECONDS, MECHANIC_ENRAGED, MINUTE, SPELL_AURA_MECHANIC_DURATION_MOD, SPELL_AURA_MECHANIC_DURATION_MOD_NOT_STACK, SPELL_AURA_MOD_AURA_DURATION_BY_DISPEL, SPELL_GROUP_ELIXIR_BATTLE, SPELL_GROUP_ELIXIR_GUARDIAN, SPELLFAMILY_DRUID, SPELLFAMILY_POTION, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, sSpellMgr, SpellEffectInfo::TriggerSpell, TYPEID_PLAYER, and Unit().
| void Unit::MonsterMoveWithSpeed | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | speed, | ||
| bool | generatePath = false, | ||
| bool | forceDestination = false ) |
Definition at line 358 of file Unit.cpp.
References Movement::MoveSplineInit::Launch(), Movement::MoveSplineInit::MoveTo(), and Movement::MoveSplineInit::SetVelocity().
Referenced by Map::ScriptsProcess().
Definition at line 3635 of file Unit.cpp.
References Creature::AI(), AURA_INTERRUPT_FLAG_MOUNT, CreateVehicleKit(), CreatureAI::EnterEvadeMode(), GetAuraEffectsByType(), Player::GetBattleground(), GetVehicleKit(), HasAuraType(), Object::HasFlag(), Vehicle::InstallAllAccessories(), Battleground::isArena(), RemoveAurasWithInterruptFlags(), Object::RemoveFlag(), Object::SetFlag(), Object::SetUInt32Value(), Skyfire::PetTransport::ShouldClearMountedPetStunForTransport(), Skyfire::PetTransport::ShouldTemporarilyUnsummonMountedPet(), sMountCapabilityStore, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_AURA_MOUNTED, sSpellMgr, Object::ToPlayer(), UNIT_FIELD_FLAGS, UNIT_FIELD_MOUNT_DISPLAY_ID, UNIT_FLAG_MOUNT, and UNIT_FLAG_STUNNED.
Referenced by AuraEffect::HandleAuraMounted(), modify_commandscript::HandleModifyMountCommand(), spell_gen_running_wild::spell_gen_running_wild_AuraScript::HandleMount(), Creature::LoadCreaturesAddon(), LuaUnit::Mount(), and WorldSession::SendDoFlight().
| void Unit::NearTeleportTo | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | orientation, | ||
| bool | casting = false ) |
Definition at line 8393 of file Unit.cpp.
References DisableSpline(), WorldLocation::GetMapId(), Object::GetTypeId(), SendTeleportPacket(), TELE_TO_NOT_LEAVE_COMBAT, TELE_TO_NOT_LEAVE_TRANSPORT, TELE_TO_NOT_UNSUMMON_PET, TELE_TO_SPELL, Player::TeleportTo(), Object::ToPlayer(), TYPEID_PLAYER, UpdateObjectVisibility(), and UpdatePosition().
Referenced by boss_krick::boss_krickAI::DoAction(), Spell::EffectSummonPet(), spell_freya_iron_roots::spell_freya_iron_roots_SpellScript::HandleSummon(), ResetCryForTheMoonActor(), and Map::ScriptsProcess().
| void Unit::OutDebugInfo | ( | ) | const |
Definition at line 8989 of file Unit.cpp.
References GetCharmerGUID(), GetCharmGUID(), Object::GetEntry(), Object::GetGUID(), WorldLocation::GetMapId(), GetMinionGUID(), WorldObject::GetName(), GetOwnerGUID(), Object::GetTypeId(), ObjectAccessor::GetUnit(), GetVehicle(), GetVehicleBase(), GetVehicleKit(), Object::IsInWorld(), IsVehicle(), m_appliedAuras, m_Controlled, m_SummonSlot, m_unitTypeMask, MAX_SUMMON_SLOT, SF_LOG_ERROR, SF_LOG_INFO, UI64FMTD, and Unit().
Referenced by SetMinion().
| void Unit::PlayOneShotAnimKit | ( | uint32 | id | ) |
Definition at line 6328 of file Unit.cpp.
References WorldObject::SendMessageToSet(), SMSG_PLAY_ONE_SHOT_ANIM_KIT, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by spell_alysrazor_turn_monstrosity::spell_alysrazor_turn_monstrosity_SpellScript::TurnBird().
| void Unit::ProcDamageAndSpell | ( | Unit * | victim, |
| uint32 | procAttacker, | ||
| uint32 | procVictim, | ||
| uint32 | procEx, | ||
| uint32 | amount, | ||
| WeaponAttackType | attType = WeaponAttackType::BASE_ATTACK, | ||
| SpellInfo const * | procSpell = NULL, | ||
| SpellInfo const * | procAura = NULL ) |
Definition at line 53 of file UnitProc.cpp.
References IsAlive(), ProcDamageAndSpellFor(), and Unit().
Referenced by AttackerStateUpdate(), Spell::DoAllEffectOnTarget(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), Kill(), and SpellHitResult().
| void Unit::ProcDamageAndSpellFor | ( | bool | isVictim, |
| Unit * | target, | ||
| uint32 | procFlag, | ||
| uint32 | procExtra, | ||
| WeaponAttackType | attType, | ||
| SpellInfo const * | procSpell, | ||
| uint32 | damage, | ||
| SpellInfo const * | procAura = NULL ) |
Definition at line 211 of file UnitProcEvent.cpp.
References Player::AddComboPoints(), ASSERT, SpellInfo::AttributesEx3, ProcTriggeredData::aura, AURA_STATE_DEFENSE, AURA_STATE_HUNTER_PARRY, SpellInfo::CalcCastTime(), Aura::CallScriptCheckProcHandlers(), CastSpell(), CLASS_HUNTER, CLASS_ROGUE, CLASS_WARLOCK, CLASS_WARRIOR, CONDITION_SOURCE_TYPE_SPELL_PROC, EFFECT_0, EFFECT_1, EFFECT_2, SpellInfo::Effects, ProcTriggeredData::effMask, ProcEventInfo::GetActionTarget(), ProcEventInfo::GetActor(), AuraEffect::GetAmount(), GetAppliedAuras(), AuraEffect::GetAuraType(), AuraEffect::GetBase(), AuraEffect::GetCasterGUID(), getClass(), Aura::GetDuration(), Aura::GetEffect(), Object::GetGUID(), AuraEffect::GetId(), getLevel(), Aura::GetMaxDuration(), AuraEffect::GetMiscValue(), GetPower(), ProcEventInfo::GetProcTarget(), Object::GetTypeId(), Aura::GetUnitOwner(), HandleAuraProc(), HandleAuraProcOnPowerAmount(), HandleAuraRaidProcFromCharge(), HandleAuraRaidProcFromChargeWithValue(), HandleDummyAuraProc(), HandleOverrideClassScriptAuraProc(), AuraEffect::HandleProcTriggerDamageAuraProc(), HandleProcTriggerSpell(), HasAura(), SpellInfo::Id, isAlwaysTriggeredAura, isNonTriggerAura, isTriggerAura, IsTriggeredAtSpellProcEvent(), MAX_SPELL_EFFECTS, SpellInfo::Mechanic, MELEE_BASED_TRIGGER_MASK, ModifyAuraState(), POWER_BURNING_EMBERS, PROC_EX_ABSORB, PROC_EX_BLOCK, PROC_EX_CRITICAL_HIT, PROC_EX_DODGE, PROC_EX_INTERNAL_CANT_PROC, PROC_EX_INTERNAL_REQ_FAMILY, PROC_EX_INTERNAL_TRIGGERED, PROC_EX_PARRY, PROC_FLAG_DONE_TRAP_ACTIVATION, REACTIVE_DEFENSE, REACTIVE_HUNTER_PARRY, REACTIVE_OVERPOWER, Player::RemoveSpellCooldown(), roll_chance_f(), SpellInfo::SchoolMask, sConditionMgr, AuraEffect::SetAmount(), SetCantProc(), SetPower(), SF_LOG_DEBUG, SPELL_ATTR3_CAN_PROC_WITH_TRIGGERED, SPELL_ATTR3_DISABLE_PROC, SPELL_AURA_DUMMY, SPELL_AURA_MANA_SHIELD, SPELL_AURA_MECHANIC_IMMUNITY, SPELL_AURA_MOD_CASTING_SPEED_NOT_STACK, SPELL_AURA_MOD_CONFUSE, SPELL_AURA_MOD_DAMAGE_FROM_CASTER, SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_FEAR_2, SPELL_AURA_MOD_MECHANIC_RESISTANCE, SPELL_AURA_MOD_MELEE_HASTE, SPELL_AURA_MOD_MELEE_HASTE_3, SPELL_AURA_MOD_POWER_COST_SCHOOL, SPELL_AURA_MOD_POWER_COST_SCHOOL_PCT, SPELL_AURA_MOD_POWER_REGEN_PERCENT, SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_SPELL_CRIT_CHANCE, SPELL_AURA_MOD_STUN, SPELL_AURA_OBS_MOD_POWER, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_AURA_PROC_ON_POWER_AMOUNT, SPELL_AURA_PROC_TRIGGER_DAMAGE, SPELL_AURA_PROC_TRIGGER_SPELL, SPELL_AURA_PROC_TRIGGER_SPELL_2, SPELL_AURA_PROC_TRIGGER_SPELL_WITH_VALUE, SPELL_AURA_RAID_PROC_FROM_CHARGE, SPELL_AURA_RAID_PROC_FROM_CHARGE_WITH_VALUE, SPELL_AURA_REFLECT_SPELLS_SCHOOL, SPELL_AURA_SPELL_MAGNET, SPELL_AURA_TRANSFORM, SPELL_DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, SPELLFAMILY_WARLOCK, SPELLFAMILY_WARRIOR, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, ProcTriggeredData::spellProcEvent, StartReactiveTimer(), Object::ToPlayer(), Object::ToUnit(), SpellEffectInfo::TriggerSpell, TYPEID_PLAYER, and Unit().
Referenced by ProcDamageAndSpell().
|
inlinevirtual |
|
inline |
-------—End of Pet responses methods-------—
Definition at line 2683 of file Unit.h.
References GetMotionMaster(), and MotionMaster::propagateSpeedChange().
Referenced by SetSpeed().
| void Unit::RemoveAllAttackers | ( | ) |
Definition at line 255 of file UnitCombatState.cpp.
References m_attackers, and SF_LOG_ERROR.
Referenced by CombatStop().
| void Unit::RemoveAllAuras | ( | ) |
Definition at line 858 of file UnitAuraState.cpp.
References _UnapplyAura(), AURA_REMOVE_BY_DEFAULT, m_appliedAuras, m_ownedAuras, and RemoveOwnedAura().
Referenced by CleanupBeforeRemoveFromMap(), spell_rotface_unstable_ooze_explosion_suicide::spell_rotface_unstable_ooze_explosion_suicide_AuraScript::DespawnSelf(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), misc_commandscript::HandleUnAuraCommand(), boss_freya::boss_freyaAI::JustDied(), PretendToDie(), LuaUnit::RemoveAllAuras(), Creature::RemoveCorpse(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), Pet::SavePetToDB(), instance_uldaman::instance_uldaman_InstanceMapScript::SetFrozenState(), and boss_reliquary_of_souls::boss_reliquary_of_soulsAI::UpdateAI().
| void Unit::RemoveAllAurasExceptType | ( | AuraType | type | ) |
Definition at line 935 of file UnitAuraState.cpp.
References _UnapplyAura(), AURA_REMOVE_BY_DEFAULT, Aura::GetSpellInfo(), SpellInfo::HasAura(), m_appliedAuras, m_ownedAuras, and RemoveOwnedAura().
Definition at line 956 of file UnitAuraState.cpp.
References _UnapplyAura(), AURA_REMOVE_BY_DEFAULT, Aura::GetSpellInfo(), SpellInfo::HasAura(), m_appliedAuras, m_ownedAuras, and RemoveOwnedAura().
| void Unit::RemoveAllAurasOnDeath | ( | ) |
Definition at line 891 of file UnitAuraState.cpp.
References _UnapplyAura(), AURA_REMOVE_BY_DEATH, Aura::IsDeathPersistent(), Aura::IsPassive(), m_appliedAuras, m_ownedAuras, and RemoveOwnedAura().
Referenced by Kill(), Player::LoadFromDB(), and setDeathState().
| void Unit::RemoveAllAurasRequiringDeadTarget | ( | ) |
Definition at line 914 of file UnitAuraState.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 2783 of file Unit.cpp.
References GetCharmerGUID(), GetCharmGUID(), Object::GetEntry(), Object::GetGUID(), GetMinionGUID(), GetOwnerGUID(), GetPetGUID(), Object::GetTypeId(), IsSummon(), m_Controlled, RemoveCharmAuras(), SF_LOG_ERROR, SF_LOG_FATAL, Player::StopCastingCharm(), Object::ToPlayer(), ToTempSummon(), TYPEID_PLAYER, UI64FMTD, Unit(), and TempSummon::UnSummon().
Referenced by Player::ActivateSpec(), RemoveFromWorld(), and setDeathState().
| void Unit::RemoveAllDynObjects | ( | ) |
Definition at line 1648 of file Unit.cpp.
References m_dynObj.
Referenced by RemoveFromWorld(), and Player::TeleportTo().
| void Unit::RemoveAllGameObjects | ( | ) |
Definition at line 1753 of file Unit.cpp.
References m_gameObj.
Referenced by CleanupBeforeRemoveFromMap(), and RemoveFromWorld().
| void Unit::RemoveAllMinionsByEntry | ( | uint32 | entry | ) |
Definition at line 2604 of file Unit.cpp.
References Object::GetEntry(), Object::GetTypeId(), IsSummon(), m_Controlled, Object::ToCreature(), ToTempSummon(), TYPEID_UNIT, Unit(), and TempSummon::UnSummon().
Referenced by SetMinion().
| void Unit::RemoveAreaAurasDueToLeaveWorld | ( | ) |
Definition at line 825 of file UnitAuraState.cpp.
References Aura::GetApplicationMap(), AuraApplication::GetTarget(), m_appliedAuras, m_ownedAuras, RemoveAura(), and Unit().
Referenced by RemoveFromWorld().
| void Unit::RemoveArenaAuras | ( | ) |
Definition at line 874 of file UnitAuraState.cpp.
References SpellInfo::AttributesEx3, SpellInfo::AttributesEx4, AuraApplication::GetBase(), Aura::GetSpellInfo(), Aura::IsPassive(), AuraApplication::IsPositive(), m_appliedAuras, RemoveAura(), SPELL_ATTR3_DEATH_PERSISTENT, and SPELL_ATTR4_UNK21.
Referenced by Player::TeleportTo().
| void Unit::RemoveAura | ( | Aura * | aur, |
| AuraRemoveMode | mode = AURA_REMOVE_BY_DEFAULT ) |
Definition at line 524 of file UnitAuraState.cpp.
References Aura::GetApplicationOfTarget(), Object::GetGUID(), Aura::IsRemoved(), and RemoveAura().
| void Unit::RemoveAura | ( | AuraApplication * | aurApp, |
| AuraRemoveMode | mode = AURA_REMOVE_BY_DEFAULT ) |
Definition at line 489 of file UnitAuraState.cpp.
References AuraApplication::_HandleEffect(), Aura::GetApplicationOfTarget(), AuraApplication::GetBase(), Object::GetGUID(), Aura::GetId(), AuraApplication::GetRemoveMode(), AuraApplication::HasEffect(), Aura::IsRemoved(), m_appliedAuras, MAX_SPELL_EFFECTS, and RemoveAura().
| void Unit::RemoveAura | ( | AuraApplicationMap::iterator & | i, |
| AuraRemoveMode | mode = AURA_REMOVE_BY_DEFAULT ) |
Definition at line 459 of file UnitAuraState.cpp.
References _UnapplyAura(), AuraApplication::GetBase(), Aura::GetOwner(), AuraApplication::GetRemoveMode(), and Aura::Remove().
Referenced by _EnterVehicle(), _RemoveNoStackAurasDueToAura(), ApplySpellDispelImmunity(), Player::DuelComplete(), Battleground::EndBattleground(), GetDiseasesByCaster(), AuraEffect::HandleAuraLinked(), AuraEffect::HandleAuraModSchoolImmunity(), Aura::HandleAuraSpecificMods(), deserter_commandscript::HandleDeserterRemove(), spell_q12096_q12092_bark::spell_q12096_q12092_bark_SpellScript::HandleDummy(), spell_valanar_kinetic_bomb::spell_valanar_kinetic_bomb_AuraScript::HandleDummyTick(), spell_warl_demonic_circle_summon::spell_warl_demonic_circle_summon_AuraScript::HandleDummyTick(), spell_warr_victorious::spell_warr_victorious_AuraScript::HandleEffectProc(), spell_dru_eclipse_energize::spell_dru_eclipse_energize_SpellScript::HandleEnergize(), spell_sha_chain_heal::spell_sha_chain_heal_SpellScript::HandleHeal(), spell_sindragosa_frost_breath::spell_sindragosa_frost_breath_SpellScript::HandleInfusion(), spell_monk_glyph_of_mana_tea::spell_monk_glyph_of_mana_tea_SpellScript::HandleOnHit(), AuraEffect::HandlePeriodicDummyAuraTick(), HandleProcTriggerSpell(), spell_warl_demonic_circle_summon::spell_warl_demonic_circle_summon_AuraScript::HandleRemove(), spell_pal_divine_light::spell_pal_divine_light_SpellScript::HandleRemoveAura(), spell_pal_flash_of_light::spell_pal_flash_of_light_SpellScript::HandleRemoveAura(), spell_pal_holy_radiance::spell_pal_holy_radiance_SpellScript::HandleRemoveAura(), spell_pri_flash_heal::spell_pri_flash_heal_SpellScript::HandleRemoveAura(), spell_pri_greater_heal::spell_pri_greater_heal_SpellScript::HandleRemoveAura(), spell_pri_prayer_of_healing::spell_pri_prayer_of_healing_SpellScript::HandleRemoveAura(), spell_putricide_eat_ooze::spell_putricide_eat_ooze_SpellScript::HandleScript(), spell_ulduar_cancel_stone_grip::spell_ulduar_cancel_stone_gripSpellScript::HandleScript(), AuraEffect::HandleShapeshiftBoosts(), npc_counselor_talbot::npc_counselor_talbotAI::JustDied(), ModifyAuraState(), spell_hun_ready_set_aim::spell_hun_ready_set_aim_AuraScript::OnApply(), spell_blood_queen_vampiric_bite::spell_blood_queen_vampiric_bite_SpellScript::OnCast(), spell_love_is_in_the_air_romantic_picnic::spell_love_is_in_the_air_romantic_picnic_AuraScript::OnPeriodic(), spell_fetch_ingredient_aura::spell_fetch_ingredient_aura_AuraScript::OnRemove(), spell_monk_crackling_jade_lightning::spell_monk_crackling_jade_lightning_AuraScript::OnRemove(), spell_monk_mana_tea::spell_monk_mana_tea_AuraScript::OnTick(), spell_trash_npc_glacial_strike::spell_trash_npc_glacial_strike_AuraScript::PeriodicTick(), BattlefieldWG::PromotePlayer(), RemoveAreaAurasDueToLeaveWorld(), RemoveArenaAuras(), RemoveAura(), RemoveAura(), RemoveAura(), RemoveAurasByType(), RemoveAurasDueToItemSpell(), RemoveAurasDueToSpell(), RemoveAurasWithAttribute(), RemoveAurasWithFamily(), RemoveAurasWithInterruptFlags(), RemoveAurasWithMechanic(), RemoveNotOwnSingleTargetAuras(), BattlegroundIC::RemovePlayer(), spell_pal_hand_of_sacrifice::spell_pal_hand_of_sacrifice_AuraScript::Split(), Player::StopCinematic(), and Spell::UpdateChanneledTargetList().
| void Unit::RemoveAura | ( | uint32 | spellId, |
| uint64 | casterGUID = 0, | ||
| uint32 | reqEffMask = 0, | ||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT ) |
Definition at line 472 of file UnitAuraState.cpp.
References Aura::GetCasterGUID(), Aura::GetEffectMask(), m_appliedAuras, and RemoveAura().
| void Unit::RemoveAuraFromStack | ( | uint32 | spellId, |
| uint64 | casterGUID = 0, | ||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT ) |
Definition at line 548 of file UnitAuraState.cpp.
References Aura::GetCasterGUID(), Aura::GetType(), m_ownedAuras, Aura::ModStackAmount(), and UNIT_AURA_TYPE.
Referenced by HandleAuraProc(), HandleDummyAuraProc(), spell_biting_cold_dot::spell_biting_cold_dot_AuraScript::HandleEffectPeriodic(), spell_putricide_gaseous_bloat::spell_putricide_gaseous_bloat_AuraScript::HandleExtraEffect(), spell_freya_attuned_to_nature_dose_reduction::spell_freya_attuned_to_nature_dose_reduction_SpellScript::HandleScript(), and spell_dk_scent_of_blood::spell_dk_scent_of_blood_AuraScript::OnProc().
| void Unit::RemoveAurasByType | ( | AuraType | auraType, |
| uint64 | casterGUID = 0, | ||
| Aura * | except = NULL, | ||
| bool | negative = true, | ||
| bool | positive = true ) |
Definition at line 683 of file UnitAuraState.cpp.
References Aura::GetApplicationOfTarget(), Aura::GetCasterGUID(), Object::GetGUID(), AuraApplication::IsPositive(), m_modAuras, m_removedAurasCount, and RemoveAura().
Referenced by Player::ActivateTaxiPathTo(), Player::AddComboPoints(), Battleground::AddPlayer(), Attack(), spell_gen_summon_tournament_mount::spell_gen_summon_tournament_mount_SpellScript::CheckIfLanceEquiped(), Player::ClearComboPoints(), LuaUnit::Dismount(), Spell::DoSpellHitOnUnit(), Battleground::EndBattleground(), ExitVehicle(), spell_monk_roll::spell_monk_roll_SpellScript::HandleAfterCast(), WorldSession::HandleAuctionHelloOpcode(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionListItems(), WorldSession::HandleAuctionListOwnerItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraModStateImmunity(), AuraEffect::HandleAuraMounted(), AuraEffect::HandleAuraTransform(), WorldSession::HandleBankerActivateOpcode(), WorldSession::HandleBinderActivateOpcode(), WorldSession::HandleBlackMarketHelloOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleBuyStableSlot(), misc_commandscript::HandleDismountCommand(), spell_item_brewfest_mount_transformation::spell_item_brewfest_mount_transformation_SpellScript::HandleDummy(), spell_item_reindeer_transformation::spell_item_reindeer_transformation_SpellScript::HandleDummy(), spell_mage_glyph_of_polymorph::spell_mage_glyph_of_polymorph_AuraScript::HandleEffectProc(), WorldSession::HandleGossipSelectOptionOpcode(), AuraEffect::HandleModStateImmunityMask(), spell_algalon_remove_phase::spell_algalon_remove_phase_AuraScript::HandlePeriodic(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleRequestStabledPetsOpcode(), WorldSession::HandleRespecWipeConfirmOpcode(), WorldSession::HandleSaveGuildEmblemOpcode(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSpiritHealerActivateOpcode(), WorldSession::HandleStablePet(), WorldSession::HandleStableSwapPet(), WorldSession::HandleTaxiQueryAvailableNodes(), WorldSession::HandleTrainerBuySpellOpcode(), spell_gen_two_forms::spell_gen_two_forms_SpellScript::HandleTransform(), WorldSession::HandleUnstablePet(), FollowerAI::MoveInLineOfSight(), npc_escortAI::MoveInLineOfSight(), SmartAI::MoveInLineOfSight(), RemoveBindSightAuras(), RemoveCharmAuras(), Battleground::RemovePlayerAtLeave(), WorldSession::SendDoFlight(), WorldSession::SendListInventory(), WorldSession::SendTrainerList(), SetCharmedBy(), and GameObject::Use().
Definition at line 669 of file UnitAuraState.cpp.
References m_appliedAuras, and RemoveAura().
Referenced by Player::ApplyEnchantment(), and Player::ApplyEquipSpell().
| void Unit::RemoveAurasDueToSpell | ( | uint32 | spellId, |
| uint64 | casterGUID = 0, | ||
| uint32 | reqEffMask = 0, | ||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT ) |
Definition at line 532 of file UnitAuraState.cpp.
References Aura::GetCasterGUID(), Aura::GetEffectMask(), m_appliedAuras, and RemoveAura().
Referenced by Player::ActivateSpec(), spell_dru_survival_instincts::spell_dru_survival_instincts_AuraScript::AfterRemove(), Player::ApplyEquipSpell(), AuraEffect::CleanupTriggeredSpells(), boss_magtheridon::boss_magtheridonAI::DebuffClicker(), Player::DestroyItem(), npc_head::npc_headAI::Disappear(), npc_halion_controller::npc_halion_controllerAI::DoAction(), Spell::DoTriggersOnSpellHit(), Spell::EffectApplyGlyph(), BattlegroundEY::EventPlayerCapturedFlag(), BattlegroundTP::EventPlayerCapturedFlag(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundEY::EventPlayerDroppedFlag(), BattlegroundTP::EventPlayerDroppedFlag(), BattlegroundWS::EventPlayerDroppedFlag(), BattlegroundDS::HandleAreaTrigger(), OutdoorPvPSI::HandleAreaTrigger(), AuraEffect::HandleAuraControlVehicle(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraMounted(), HandleAuraProcOnPowerAmount(), Aura::HandleAuraSpecificMods(), spell_dru_starfall_dummy::spell_dru_starfall_dummy_SpellScript::HandleDummy(), spell_putricide_ooze_eruption_searcher::spell_putricide_ooze_eruption_searcher_SpellScript::HandleDummy(), HandleDummyAuraProc(), spell_mistress_kiss::spell_mistress_kiss_AuraScript::HandleDummyTick(), spell_q12730_quenching_mist::spell_q12730_quenching_mist_AuraScript::HandleEffectPeriodic(), spell_rog_master_of_subtlety::spell_rog_master_of_subtlety_AuraScript::HandleEffectPeriodic(), spell_pri_shadowform::spell_pri_shadowform_AuraScript::HandleEffectRemove(), spell_dru_eclipse_energize::spell_dru_eclipse_energize_SpellScript::HandleEnergize(), gm_commandscript::HandleGMVisibleCommand(), OPvPCapturePointZM_GraveYard::HandleOpenGo(), spell_algalon_phase_punch::spell_algalon_phase_punch_AuraScript::HandlePeriodic(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), OutdoorPvPHP::HandlePlayerLeaveZone(), OutdoorPvPNA::HandlePlayerLeaveZone(), OutdoorPvPSI::HandlePlayerLeaveZone(), OutdoorPvPTF::HandlePlayerLeaveZone(), OutdoorPvPZM::HandlePlayerLeaveZone(), HandleProcTriggerSpell(), spell_icc_harvest_blight_specimen::spell_icc_harvest_blight_specimen_SpellScript::HandleQuestComplete(), spell_anhuur_disable_beacon_beams::spell_anhuur_disable_beacon_beams_SpellScript::HandleScript(), spell_deathbringer_remove_marks::spell_deathbringer_remove_marks_SpellScript::HandleScript(), spell_festergut_gastric_bloat::spell_festergut_gastric_bloat_SpellScript::HandleScript(), spell_festergut_pungent_blight::spell_festergut_pungent_blight_SpellScript::HandleScript(), spell_halion_clear_debuffs::spell_halion_clear_debuffs_SpellScript::HandleScript(), spell_icc_harvest_blight_specimen::spell_icc_harvest_blight_specimen_SpellScript::HandleScript(), spell_putricide_clear_aura_effect_value::spell_putricide_clear_aura_effect_value_SpellScript::HandleScript(), spell_putricide_eat_ooze::spell_putricide_eat_ooze_SpellScript::HandleScript(), spell_putricide_unbound_plague::spell_putricide_unbound_plague_SpellScript::HandleScript(), spell_rotface_large_ooze_buff_combine::spell_rotface_large_ooze_buff_combine_SpellScript::HandleScript(), spell_rotface_large_ooze_combine::spell_rotface_large_ooze_combine_SpellScript::HandleScript(), spell_rotface_little_ooze_combine::spell_rotface_little_ooze_combine_SpellScript::HandleScript(), spell_the_lich_king_jump::spell_the_lich_king_jump_SpellScript::HandleScript(), spell_the_lich_king_jump_remove_aura::spell_the_lich_king_jump_SpellScript::HandleScript(), boss_alythess::boss_alythessAI::HandleTouchedSpells(), boss_sacrolash::boss_sacrolashAI::HandleTouchedSpells(), misc_commandscript::HandleUnAuraCommand(), misc_commandscript::HandleUnFreezeCommand(), npc_acolyte_of_shadron::npc_acolyte_of_shadronAI::JustDied(), npc_acolyte_of_vesperon::npc_acolyte_of_vesperonAI::JustDied(), npc_demon_chain::npc_demon_chainAI::JustDied(), npc_inner_demon::npc_inner_demonAI::JustDied(), Player::learnQuestRewardedSpells(), npc_overlord_morghor::npc_overlord_morghorAI::NextStep(), spell_halion_twilight_realm_handlers::spell_halion_twilight_realm_handlers_AuraScript::OnApply(), spell_systems_shutdown::spell_systems_shutdown_AuraScript::OnApply(), spell_warl_soul_swap_exhale::spell_warl_soul_swap_exhale_SpellScript::OnEffectHit(), lfg::LFGPlayerScript::OnMapChanged(), spell_yogg_saron_empowered::spell_yogg_saron_empowered_AuraScript::OnPeriodic(), BattlefieldWG::OnPlayerLeaveWar(), BattlefieldWG::OnPlayerLeaveZone(), spell_algalon_phase_punch::spell_algalon_phase_punch_AuraScript::OnRemove(), spell_halion_combustion_consumption::spell_halion_combustion_consumption_AuraScript::OnRemove(), spell_halion_twilight_realm_handlers::spell_halion_twilight_realm_handlers_AuraScript::OnRemove(), spell_item_shadowmourne_soul_fragment::spell_item_shadowmourne_soul_fragment_AuraScript::OnRemove(), spell_load_into_catapult::spell_load_into_catapult_AuraScript::OnRemove(), spell_yogg_saron_sanity::spell_yogg_saron_sanity_AuraScript::OnRemove(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), spell_exploding_orb_hasty_grow::spell_exploding_orb_hasty_grow_AuraScript::OnStackChange(), spell_item_shadowmourne_soul_fragment::spell_item_shadowmourne_soul_fragment_AuraScript::OnStackChange(), spell_mage_pyroblast::spell_mage_pyroblast_SpellScript::RecalculateDamage(), spell_gen_defend::spell_gen_defend_AuraScript::RefreshVisualShields(), LuaUnit::RemoveAura(), BattlefieldWG::RemoveAurasFromPlayer(), npc_halion_controller::npc_halion_controllerAI::RemoveCorporeality(), RemoveGameObject(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::RemoveGravityLapse(), boss_najentus::boss_najentusAI::RemoveImpalingSpine(), BattlegroundAV::RemovePlayer(), Pet::removeSpell(), spell_gen_defend::spell_gen_defend_AuraScript::RemoveVisualShields(), ResetCryForTheMoonActor(), boss_volazj::boss_volazjAI::ResetPlayersPhaseMask(), Player::ResurrectPlayer(), OPvPCapturePointZM_GraveYard::SetBeaconState(), boss_xt002::boss_xt002_AI::SetPhaseOne(), Player::SetQuestStatus(), Totem::UnSummon(), instance_violet_hold::instance_violet_hold_InstanceMapScript::Update(), boss_cthun::cthunAI::UpdateAI(), npc_palehoof_orb::npc_palehoof_orbAI::UpdateAI(), npc_slad_ran_constrictor::npc_slad_ran_constrictorAI::UpdateAI(), Player::UpdateUnderwaterState(), and UpdateUnderwaterState().
| void Unit::RemoveAurasDueToSpellByDispel | ( | uint32 | spellId, |
| uint32 | dispellerSpellId, | ||
| uint64 | casterGUID, | ||
| Unit * | dispeller, | ||
| uint8 | chargesRemoved = 1 ) |
Definition at line 565 of file UnitAuraState.cpp.
References SpellInfo::AttributesEx7, AURA_REMOVE_BY_ENEMY_SPELL, Aura::CallScriptAfterDispel(), Aura::CallScriptDispel(), Aura::GetCasterGUID(), DispelInfo::GetRemovedCharges(), Aura::GetSpellInfo(), m_ownedAuras, Aura::ModCharges(), Aura::ModStackAmount(), SPELL_ATTR7_DISPEL_CHARGES, and Unit().
Definition at line 593 of file UnitAuraState.cpp.
References SpellInfo::AttributesEx7, AURA_REMOVE_BY_ENEMY_SPELL, AuraEffect::CanBeRecalculated(), AuraEffect::GetAmount(), GetAura(), AuraEffect::GetBaseAmount(), Aura::GetCaster(), Aura::GetCasterGUID(), Aura::GetCharges(), Aura::GetDuration(), Aura::GetEffect(), Aura::GetId(), Aura::GetMaxDuration(), GetSingleCastAuras(), Aura::GetSpellInfo(), IN_MILLISECONDS, Aura::IsSingleTarget(), m_ownedAuras, MAX_SPELL_EFFECTS, MINUTE, Aura::ModCharges(), Aura::ModStackAmount(), Aura::SetIsSingleTarget(), SPELL_ATTR7_DISPEL_CHARGES, Aura::TryRefreshStackOrCreate(), Unit(), and Aura::UnregisterSingleTarget().
| void Unit::RemoveAurasWithAttribute | ( | uint32 | flags | ) |
Definition at line 702 of file UnitAuraState.cpp.
References SpellInfo::Attributes, m_appliedAuras, and RemoveAura().
Referenced by Player::CheckAreaExploreAndOutdoor().
| void Unit::RemoveAurasWithFamily | ( | SpellFamilyNames | family, |
| uint32 | familyFlag1, | ||
| uint32 | familyFlag2, | ||
| uint32 | familyFlag3, | ||
| uint64 | casterGUID ) |
Definition at line 785 of file UnitAuraState.cpp.
References Aura::GetCasterGUID(), Aura::GetSpellInfo(), flag128::HasFlag(), m_appliedAuras, RemoveAura(), SpellInfo::SpellFamilyFlags, and SpellInfo::SpellFamilyName.
Referenced by Aura::HandleAuraSpecificMods().
Definition at line 754 of file UnitAuraState.cpp.
References AURA_INTERRUPT_FLAG_MOVE, SpellInfo::AuraInterruptFlags, CURRENT_CHANNELED_SPELL, Aura::GetId(), Aura::GetSpellInfo(), HasAuraTypeWithAffectMask(), InterruptNonMeleeSpells(), m_currentSpells, m_interruptableAuras, m_interruptMask, m_removedAurasCount, RemoveAura(), SPELL_AURA_CAST_WHILE_WALKING, SPELL_STATE_CASTING, and UpdateInterruptMask().
Referenced by AttackerStateUpdate(), CombatStart(), DealDamage(), Dismount(), Spell::DoSpellHitOnUnit(), BattlegroundEY::EventPlayerCapturedFlag(), BattlegroundTP::EventPlayerCapturedFlag(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundAB::EventPlayerClickedOnFlag(), BattlegroundBFG::EventPlayerClickedOnFlag(), BattlegroundEY::EventPlayerClickedOnFlag(), BattlegroundTP::EventPlayerClickedOnFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), AuraEffect::HandleAuraModSchoolImmunity(), Player::HandleFall(), AuraEffect::HandleFeignDeath(), WorldSession::HandleGossipHelloOpcode(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleModStealth(), AuraEffect::HandleModUnattackable(), AuraEffect::HandlePhase(), AuraEffect::HandlePhaseGroup(), Mount(), Player::SetInWater(), SetStandState(), Player::TeleportTo(), UpdatePosition(), and UpdateUnderwaterState().
| void Unit::RemoveAurasWithMechanic | ( | uint32 | mechanic_mask, |
| AuraRemoveMode | removemode = AURA_REMOVE_BY_DEFAULT, | ||
| uint32 | except = 0 ) |
Definition at line 808 of file UnitAuraState.cpp.
References SpellInfo::GetAllEffectsMechanicMask(), Aura::GetId(), Aura::GetSpellInfo(), m_appliedAuras, and RemoveAura().
Referenced by AuraEffect::HandleModMechanicImmunity(), AuraEffect::HandleModStateImmunityMask(), and RemoveMovementImpairingAuras().
| void Unit::RemoveBindSightAuras | ( | ) |
Definition at line 2899 of file Unit.cpp.
References RemoveAurasByType(), and SPELL_AURA_BIND_SIGHT.
Referenced by LuaUnit::RemoveBindSightAuras(), and RemoveFromWorld().
| void Unit::RemoveCharmAuras | ( | ) |
Definition at line 2904 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(), LuaUnit::RemoveCharmAuras(), RemoveFromWorld(), and Player::StopCastingCharm().
| void Unit::RemoveCharmedBy | ( | Unit * | charmer | ) |
Definition at line 7029 of file Unit.cpp.
References ASSERT, CastStop(), CHARM_TYPE_CHARM, CHARM_TYPE_CONVERT, CHARM_TYPE_POSSESS, CHARM_TYPE_VEHICLE, CLASS_WARLOCK, ClearUnitState(), CombatStop(), CREATURE_TYPE_DEMON, DeleteCharmInfo(), HostileRefManager::deleteReferences(), DeleteThreatList(), GetCharmer(), GetCharmInfo(), getClass(), Creature::GetCreatureTemplate(), GetFirstControlled(), Object::GetGUID(), getHostileRefManager(), WorldObject::GetMap(), GetMotionMaster(), Object::GetTypeId(), HasUnitState(), MotionMaster::InitDefault(), Map::IsBattleground(), IsCharmed(), IsGuardian(), IsOnVehicle(), IsVehicle(), LastCharmerGUID, Object::RemoveFlag(), RestoreFaction(), Player::SendRemoveControlBar(), SetCharm(), SetClass(), Player::SetClientControl(), Player::SetMover(), CharmInfo::SetPetNumber(), Player::SetViewpoint(), SF_LOG_ERROR, Object::ToCreature(), Object::ToPlayer(), CreatureTemplate::type, TYPEID_PLAYER, TYPEID_UNIT, UI64FMTD, Unit(), CreatureTemplate::unit_class, UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE, UNIT_FLAG_PLAYER_CONTROLLED, and UNIT_STATE_POSSESSED.
Referenced by AuraEffect::HandleCharmConvert(), AuraEffect::HandleModCharm(), AuraEffect::HandleModPossess(), AuraEffect::HandleModPossessPet(), and Puppet::RemoveFromWorld().
|
inline |
Definition at line 2671 of file Unit.h.
References m_ComboPointHolders.
| void Unit::RemoveDynObject | ( | uint32 | spellId | ) |
Definition at line 1631 of file Unit.cpp.
References DynamicObject::GetSpellId(), m_dynObj, and DynamicObject::Remove().
|
inline |
Definition at line 2645 of file Unit.h.
References WorldObject::m_movementInfo.
|
inline |
Definition at line 2598 of file Unit.h.
Referenced by FollowerReference::targetObjectDestroyLink().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 5409 of file Unit.cpp.
References ASSERT, ExitVehicle(), GetCharmerGUID(), Object::GetEntry(), Object::GetGUID(), GetOwner(), Object::IsInWorld(), IsVehicle(), m_duringRemoveFromWorld, RemoveAllControlled(), RemoveAllDynObjects(), RemoveAllGameObjects(), RemoveAreaAurasDueToLeaveWorld(), RemoveBindSightAuras(), RemoveCharmAuras(), WorldObject::RemoveFromWorld(), RemoveNotOwnSingleTargetAuras(), RemoveVehicleKit(), SF_LOG_FATAL, Unit(), 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 1689 of file Unit.cpp.
References GameObject::Delete(), Object::GetGUID(), GameObject::GetOwnerGUID(), GameObject::GetSpellId(), Object::GetTypeId(), SpellInfo::IsCooldownStartedOnEvent(), m_gameObj, m_ObjectSlot, MAX_GAMEOBJECT_SLOT, RemoveAurasDueToSpell(), Player::SendCooldownEvent(), GameObject::SetOwnerGUID(), GameObject::SetRespawnTime(), sSpellMgr, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by gobject_commandscript::HandleGameObjectDeleteCommand(), spell_warl_demonic_circle_summon::spell_warl_demonic_circle_summon_AuraScript::HandleRemove(), ReplaceSurveyObjectSlot(), and GameObject::Update().
| void Unit::RemoveGameObject | ( | uint32 | spellid, |
| bool | del ) |
|
inline |
Definition at line 2463 of file Unit.h.
Referenced by HostileReference::targetObjectDestroyLink().
| void Unit::RemoveMovementImpairingAuras | ( | ) |
Definition at line 803 of file UnitAuraState.cpp.
References MECHANIC_ROOT, MECHANIC_SNARE, and RemoveAurasWithMechanic().
Referenced by AuraEffect::HandleAuraModShapeshift(), Aura::HandleAuraSpecificMods(), and spell_pri_leap_of_faith::spell_pri_leap_of_faith_SpellScript::HandleEffectDummy().
| void Unit::RemoveNotOwnSingleTargetAuras | ( | uint32 | newPhase = 0, |
| bool | phaseid = false ) |
Definition at line 714 of file UnitAuraState.cpp.
References AuraApplication::GetBase(), Aura::GetCaster(), Aura::GetCasterGUID(), Object::GetGUID(), GetSingleCastAuras(), Aura::GetSpellInfo(), Aura::GetUnitOwner(), WorldObject::InSamePhase(), WorldObject::IsPhased(), SpellInfo::IsSingleTarget(), m_appliedAuras, Aura::Remove(), RemoveAura(), and Unit().
Referenced by RemoveFromWorld(), SetPhased(), and SetPhaseMask().
| void Unit::RemoveOwnedAura | ( | Aura * | aura, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT ) |
Definition at line 421 of file UnitAuraState.cpp.
References ASSERT, Aura::GetId(), Aura::GetOwner(), Aura::IsRemoved(), m_ownedAuras, and RemoveOwnedAura().
| void Unit::RemoveOwnedAura | ( | AuraMap::iterator & | i, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT ) |
Definition at line 388 of file UnitAuraState.cpp.
References Aura::_Remove(), ASSERT, Aura::IsRemoved(), Aura::IsSingleTarget(), m_auraUpdateIterator, m_ownedAuras, m_removedAuras, and Aura::UnregisterSingleTarget().
Referenced by _UpdateSpells(), Aura::HandleAuraSpecificMods(), spell_pal_aura_mastery::spell_pal_aura_mastery_AuraScript::HandleEffectRemove(), WorldSession::HandlePetCancelAuraOpcode(), AuraEffect::HandleShapeshiftBoosts(), spell_gen_animal_blood::spell_gen_animal_blood_AuraScript::OnApply(), UnitAura::Remove(), RemoveAllAuras(), RemoveAllAurasExceptType(), RemoveAllAurasExceptType(), RemoveAllAurasOnDeath(), RemoveAllAurasRequiringDeadTarget(), Player::RemoveItemDependentAurasAndCasts(), RemoveOwnedAura(), RemoveOwnedAura(), Player::removeSpell(), and Player::UpdateAreaDependentAuras().
| void Unit::RemoveOwnedAura | ( | uint32 | spellId, |
| uint64 | casterGUID = 0, | ||
| uint32 | reqEffMask = 0, | ||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT ) |
Definition at line 409 of file UnitAuraState.cpp.
References m_ownedAuras, and RemoveOwnedAura().
| void Unit::RemovePetAura | ( | PetAura const * | petSpell | ) |
Definition at line 6245 of file Unit.cpp.
References PetAura::GetAura(), Object::GetTypeId(), m_petAuras, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Pet::CastPetAuras(), AuraEffect::HandleAuraDummy(), and Player::removeSpell().
| void Unit::RemovePlayerFromVision | ( | Player * | player | ) |
Definition at line 2889 of file Unit.cpp.
References m_sharedVision, WorldObject::setActive(), and WorldObject::SetWorldObject().
|
inline |
Definition at line 1737 of file Unit.h.
References Object::RemoveByteFlag(), and UNIT_FIELD_ANIM_TIER.
Referenced by AuraEffect::HandleModStealth(), Player::InitStatsForLevel(), and npc_leryssa::npc_leryssaAI::npc_leryssaAI().
|
inline |
Definition at line 2624 of file Unit.h.
References WorldObject::m_movementInfo.
Referenced by SetCanFly(), SetDisableGravity(), SetFall(), SetFeatherFall(), SetHover(), SetRooted(), SetSwim(), SetWalk(), and SetWaterWalking().
| void Unit::RemoveVehicleKit | ( | bool | remove = false | ) |
Definition at line 7179 of file Unit.cpp.
References m_unitTypeMask, Object::m_updateFlag, m_vehicleKit, Object::RemoveFlag(), SendSetVehicleRecId(), UNIT_FIELD_NPC_FLAGS, UNIT_MASK_VEHICLE, UNIT_NPC_FLAG_PLAYER_VEHICLE, UNIT_NPC_FLAG_SPELLCLICK, and UPDATEFLAG_VEHICLE.
Referenced by Dismount(), AuraEffect::HandleAuraSetVehicle(), spell_blood_queen_frenzied_bloodthirst::spell_blood_queen_frenzied_bloodthirst_AuraScript::OnRemove(), and RemoveFromWorld().
| void Unit::RemoveVisibleAura | ( | uint8 | slot | ) |
Definition at line 506 of file Unit.cpp.
References m_visibleAuras, and UpdateAuraForGroup().
Referenced by AuraApplication::_Remove().
| void Unit::resetAttackTimer | ( | WeaponAttackType | type = WeaponAttackType::BASE_ATTACK | ) |
Definition at line 436 of file Unit.cpp.
References GetAttackTime(), m_attackTimer, and m_modAttackSpeedPct.
Referenced by _UpdateAutoRepeatSpell(), Attack(), and Player::Update().
|
inline |
Definition at line 2720 of file Unit.h.
References SetRedirectThreat().
Referenced by spell_rog_tricks_of_the_trade_proc::spell_rog_tricks_of_the_trade_proc_AuraScript::HandleRemove(), spell_hun_misdirection::spell_hun_misdirection_AuraScript::OnRemove(), spell_hun_misdirection_proc::spell_hun_misdirection_proc_AuraScript::OnRemove(), and spell_rog_tricks_of_the_trade::spell_rog_tricks_of_the_trade_AuraScript::OnRemove().
| void Unit::RestoreDisplayId | ( | ) |
Definition at line 5946 of file Unit.cpp.
References AURA_EFFECT_HANDLE_SEND_FOR_CLIENT, Aura::GetApplicationOfTarget(), GetAuraEffectsByType(), AuraApplication::GetBase(), Object::GetGUID(), GetModelForForm(), GetNativeDisplayId(), GetShapeshiftForm(), AuraEffect::HandleEffect(), SetDisplayId(), and SPELL_AURA_TRANSFORM.
Referenced by AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraTransform(), spell_gen_aura_service_uniform::spell_gen_aura_service_uniform_AuraScript::OnRemove(), and LuaUnit::RestoreDisplayId().
| void Unit::RestoreFaction | ( | ) |
Definition at line 7135 of file Unit.cpp.
References FactionTemplateEntry::friendlyMask, GetFactionTemplateEntry(), GetOwner(), getRace(), Object::GetTypeId(), HasUnitTypeMask(), setFaction(), Player::setFactionForRace(), Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, Unit(), and UNIT_MASK_MINION.
Referenced by boss_paletress::boss_paletressAI::boss_paletressAI(), AuraEffect::HandleAuraModFaction(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::npc_blastmaster_emi_shortfuseAI(), npc_counselor_talbot::npc_counselor_talbotAI::npc_counselor_talbotAI(), RemoveCharmedBy(), npc_ros_dark_rider::npc_ros_dark_riderAI::Reset(), and LuaUnit::RestoreFaction().
| void Unit::RewardRage | ( | uint32 | baseRage, |
| bool | attacker ) |
ToDo: Check formula
Definition at line 8914 of file Unit.cpp.
References AddPct(), GetMaxHealth(), GetTotalAuraModifier(), HasAura(), ModifyPower(), POWER_RAGE, RATE_POWER_RAGE_INCOME, SPELL_AURA_MOD_RAGE_FROM_DAMAGE_DEALT, and sWorld.
Referenced by DealDamage().
| MeleeHitOutcome Unit::RollMeleeOutcomeAgainst | ( | const Unit * | victim, |
| WeaponAttackType | attType ) const |
Definition at line 1426 of file UnitCombat.cpp.
References GetUnitBlockChance(), GetUnitCriticalChance(), GetUnitDodgeChance(), GetUnitParryChance(), MeleeSpellMissChance(), RollMeleeOutcomeAgainst(), SF_LOG_DEBUG, and Unit().
Referenced by CalculateMeleeDamage(), and RollMeleeOutcomeAgainst().
| MeleeHitOutcome Unit::RollMeleeOutcomeAgainst | ( | const Unit * | victim, |
| WeaponAttackType | attType, | ||
| int32 | crit_chance, | ||
| int32 | miss_chance, | ||
| int32 | dodge_chance, | ||
| int32 | parry_chance, | ||
| int32 | block_chance ) const |
Definition at line 1448 of file UnitCombat.cpp.
References CREATURE_FLAG_EXTRA_NO_BLOCK, CREATURE_FLAG_EXTRA_NO_CRIT, CREATURE_FLAG_EXTRA_NO_CRUSH, CREATURE_FLAG_EXTRA_NO_PARRY, CreatureTemplate::flags_extra, Creature::GetCreatureTemplate(), getLevel(), getLevelForTarget(), GetMaxSkillValueForLevel(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscValue(), GetTotalAuraMultiplier(), Object::GetTypeId(), HasAuraType(), Position::HasInArc(), IsControlledByPlayer(), Creature::IsInEvadeMode(), 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, RANGED_ATTACK, SF_LOG_DEBUG, SPELL_AURA_IGNORE_HIT_DIRECTION, SPELL_AURA_MOD_COMBAT_RESULT_CHANCE, SPELL_AURA_MOD_ENEMY_DODGE, SPELL_AURA_MOD_EXPERTISE, Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, Unit(), and VICTIMSTATE_DODGE.
| Unit * Unit::SelectNearbyTarget | ( | Unit * | exclude = NULL, |
| float | dist = NOMINAL_MELEE_RANGE ) const |
Definition at line 6043 of file Unit.cpp.
References CREATURE_TYPE_CRITTER, GetVictim(), WorldObject::IsWithinLOSInMap(), Skyfire::Containers::SelectRandomContainerElement(), Unit(), and WorldObject::VisitNearbyObject().
Referenced by spell_rog_blade_flurry::spell_rog_blade_flurry_AuraScript::CheckProc(), spell_warr_sweeping_strikes::spell_warr_sweeping_strikes_AuraScript::CheckProc(), LuaUnit::GetNearbyTarget(), and npc_eye_of_acherus::npc_eye_of_acherusAI::JustSummoned().
| void Unit::SendAttackStateUpdate | ( | CalcDamageInfo * | damageInfo | ) |
Probably used for debugging purposes, as it is not known to appear on retail servers
Definition at line 1985 of file Unit.cpp.
References CalcDamageInfo::absorb, ByteBuffer::append(), CalcDamageInfo::attacker, CalcDamageInfo::blocked_amount, CalcDamageInfo::damage, CalcDamageInfo::damageSchoolMask, ByteBuffer::FlushBits(), GetHealth(), Object::GetPackGUID(), CalcDamageInfo::HitInfo, HITINFO_BLOCK, HITINFO_FULL_ABSORB, HITINFO_FULL_RESIST, HITINFO_PARTIAL_ABSORB, HITINFO_PARTIAL_RESIST, HITINFO_RAGE_GAIN, HITINFO_UNK1, HITINFO_UNK12, CalcDamageInfo::resist, WorldObject::SendMessageToSet(), SF_LOG_DEBUG, ByteBuffer::size(), SMSG_ATTACKER_STATE_UPDATE, CalcDamageInfo::target, CalcDamageInfo::TargetState, and ByteBuffer::WriteBit().
Referenced by AttackerStateUpdate(), misc_commandscript::HandleDamageCommand(), and SendAttackStateUpdate().
| void Unit::SendAttackStateUpdate | ( | uint32 | HitInfo, |
| Unit * | target, | ||
| uint8 | SwingType, | ||
| SpellSchoolMask | damageSchoolMask, | ||
| uint32 | Damage, | ||
| uint32 | AbsorbDamage, | ||
| uint32 | Resist, | ||
| VictimState | TargetState, | ||
| uint32 | BlockedAmount ) |
Definition at line 2064 of file Unit.cpp.
References CalcDamageInfo::absorb, CalcDamageInfo::attacker, CalcDamageInfo::blocked_amount, CalcDamageInfo::damage, CalcDamageInfo::damageSchoolMask, CalcDamageInfo::HitInfo, CalcDamageInfo::resist, SendAttackStateUpdate(), CalcDamageInfo::target, CalcDamageInfo::TargetState, and Unit().
| void Unit::SendChangeCurrentVictimOpcode | ( | HostileReference * | pHostileReference | ) |
Definition at line 8792 of file Unit.cpp.
References Object::GetGUID(), ThreatManager::getThreatList(), getThreatManager(), HostileReference::getUnitGuid(), WorldObject::SendMessageToSet(), SF_LOG_DEBUG, SMSG_HIGHEST_THREAT_UPDATE, ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
| void Unit::SendClearTarget | ( | ) |
Definition at line 9046 of file Unit.cpp.
References Object::GetGUID(), WorldObject::SendMessageToSet(), SMSG_BREAK_TARGET, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
| void Unit::SendClearThreatListOpcode | ( | ObjectGuid | UnitGUID | ) |
Definition at line 8875 of file Unit.cpp.
References WorldObject::SendMessageToSet(), SMSG_THREAT_CLEAR, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by DeleteThreatList().
Definition at line 6321 of file Unit.cpp.
References Player::GetSession(), WorldSession::SendPacket(), and SMSG_DURABILITY_DAMAGE_DEATH.
Referenced by Player::EnvironmentalDamage(), and Kill().
Definition at line 2974 of file Unit.cpp.
References ByteBuffer::FlushBits(), Object::GetGUID(), WorldObject::SendMessageToSet(), SMSG_SPELL_ENERGIZE_LOG, Unit(), ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
Referenced by EnergizeBySpell(), and AuraEffect::HandlePeriodicTriggerSpellAuraTick().
| void Unit::SendHealSpellLog | ( | ObjectGuid | CasterGUID, |
| ObjectGuid | TargetGUID, | ||
| uint32 | SpellID, | ||
| uint32 | Damage, | ||
| uint32 | OverHeal, | ||
| uint32 | Absorb, | ||
| bool | critical = false ) |
Definition at line 2925 of file Unit.cpp.
References ByteBuffer::FlushBits(), WorldObject::SendMessageToSet(), SMSG_SPELL_HEAL_LOG, ByteBuffer::WriteBit(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by HealBySpell().
| void Unit::SendMeleeAttackStart | ( | Unit * | victim | ) |
Definition at line 603 of file Unit.cpp.
References Object::GetGUID(), WorldObject::SendMessageToSet(), SMSG_ATTACK_START, Unit(), ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
Referenced by Attack(), Player::SendInitialVisiblePackets(), and go_wind_stone::SummonNPC().
| void Unit::SendMeleeAttackStop | ( | Unit * | victim = NULL | ) |
Definition at line 647 of file Unit.cpp.
References ByteBuffer::FlushBits(), Skyfire::CombatPackets::GetAttackStopVictimDeadBit(), Object::GetGUID(), isDead(), WorldObject::SendMessageToSet(), SMSG_ATTACKSTOP, Unit(), ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
Referenced by Attack(), AttackStop(), and SetControlled().
|
protected |
Definition at line 9566 of file Unit.cpp.
References Object::GetGUID(), WorldObject::SendMessageToSet(), SMSG_MISSILE_CANCEL, ByteBuffer::WriteBit(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
| void Unit::SendMoveKnockBack | ( | Player * | player, |
| float | speedXY, | ||
| float | speedZ, | ||
| float | vcos, | ||
| float | vsin ) |
Definition at line 7580 of file Unit.cpp.
References Object::GetGUID(), Player::GetSession(), WorldSession::SendPacket(), SMSG_MOVE_KNOCK_BACK, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by JumpTo(), and KnockbackFrom().
| void Unit::SendPeriodicAuraLog | ( | SpellPeriodicAuraLogInfo * | pInfo | ) |
Definition at line 1838 of file Unit.cpp.
References SpellPeriodicAuraLogInfo::absorb, SpellPeriodicAuraLogInfo::auraEff, SpellPeriodicAuraLogInfo::critical, SpellPeriodicAuraLogInfo::damage, ByteBuffer::FlushBits(), AuraEffect::GetAuraType(), AuraEffect::GetCasterGUID(), Object::GetGUID(), AuraEffect::GetId(), SpellPeriodicAuraLogInfo::overDamage, SpellPeriodicAuraLogInfo::power, SpellPeriodicAuraLogInfo::resist, WorldObject::SendMessageToSet(), SMSG_SPELL_PERIODIC_AURA_LOG, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by AuraEffect::HandleObsModPowerAuraTick(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicEnergizeAuraTick(), AuraEffect::HandlePeriodicHealAurasTick(), and AuraEffect::HandlePeriodicManaLeechAuraTick().
| void Unit::SendPetActionFeedback | ( | uint8 | msg | ) | const |
-------—Pet responses methods--------------—
Definition at line 5833 of file Unit.cpp.
References GetOwner(), Player::GetSession(), Object::GetTypeId(), WorldSession::SendPacket(), SMSG_PET_ACTION_FEEDBACK, Object::ToPlayer(), TYPEID_PLAYER, and Unit().
| void Unit::SendPetAIReaction | ( | ObjectGuid | UnitGUID | ) | const |
Definition at line 5858 of file Unit.cpp.
References AI_REACTION_HOSTILE, GetOwner(), Player::GetSession(), Object::GetTypeId(), WorldSession::SendPacket(), SMSG_AI_REACTION, Object::ToPlayer(), TYPEID_PLAYER, Unit(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by WorldSession::HandlePetActionHelper(), and WorldSession::HandlePetCastSpellOpcode().
| void Unit::SendPetTalk | ( | uint32 | pettalk | ) | const |
Definition at line 5844 of file Unit.cpp.
References Object::GetObjectGUID(), GetOwner(), Player::GetSession(), Object::GetTypeId(), WorldSession::SendPacket(), SMSG_PET_ACTION_SOUND, Object::ToPlayer(), TYPEID_PLAYER, Unit(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by WorldSession::HandlePetActionHelper(), and WorldSession::HandlePetCastSpellOpcode().
| void Unit::SendPlaySpellVisual | ( | uint32 | SpellVisualId, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | orientation, | ||
| uint8 | SpeedTime, | ||
| uint16 | MissReason, | ||
| uint16 | ReflectStatus ) |
Definition at line 7325 of file Unit.cpp.
References Object::GetGUID(), WorldObject::SendMessageToSet(), SMSG_PLAY_SPELL_VISUAL, ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
Definition at line 7377 of file Unit.cpp.
References Object::GetGUID(), WorldObject::SendMessageToSet(), SMSG_PLAY_SPELL_VISUAL_KIT, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by WorldSession::HandleTrainerBuySpellOpcode().
| void Unit::SendRemoveFromThreatListOpcode | ( | HostileReference * | pHostileReference | ) |
Definition at line 8883 of file Unit.cpp.
References Object::GetGUID(), HostileReference::getUnitGuid(), WorldObject::SendMessageToSet(), SF_LOG_DEBUG, SMSG_THREAT_REMOVE, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
| void Unit::SendSetVehicleRecId | ( | uint32 | vehicleId | ) |
Definition at line 9540 of file Unit.cpp.
References Object::GetGUID(), m_movementCounter, WorldObject::SendMessageToSet(), SMSG_MOVE_SET_VEHICLE_REC_ID, SMSG_SET_VEHICLE_REC_ID, Object::ToPlayer(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by CreateVehicleKit(), and RemoveVehicleKit().
Definition at line 1956 of file Unit.cpp.
References ByteBuffer::FlushBits(), Object::GetGUID(), WorldObject::SendMessageToSet(), SMSG_SPELLORDAMAGE_IMMUNE, Unit(), ByteBuffer::WriteBit(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by DealMeleeDamage(), and AuraEffect::SendTickImmune().
Definition at line 1946 of file Unit.cpp.
References Object::GetGUID(), WorldObject::SendMessageToSet(), SMSG_PROCRESIST, and Unit().
| void Unit::SendSpellMiss | ( | Unit * | target, |
| uint32 | spellID, | ||
| SpellMissInfo | missInfo ) |
Definition at line 1927 of file Unit.cpp.
References ByteBuffer::FlushBits(), Object::GetGUID(), WorldObject::SendMessageToSet(), SMSG_SPELLLOGMISS, Unit(), ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by DealMeleeDamage().
| void Unit::SendSpellNonMeleeDamageLog | ( | SpellNonMeleeDamage * | log | ) |
Definition at line 1766 of file Unit.cpp.
References SpellNonMeleeDamage::absorb, SpellNonMeleeDamage::attacker, SpellNonMeleeDamage::blocked, SpellNonMeleeDamage::damage, ByteBuffer::FlushBits(), Object::GetGUID(), GetHealth(), SpellNonMeleeDamage::HitInfo, SpellNonMeleeDamage::resist, SpellNonMeleeDamage::schoolMask, WorldObject::SendMessageToSet(), SMSG_SPELL_NON_MELEE_DAMAGE_LOG, SpellNonMeleeDamage::SpellID, SpellNonMeleeDamage::target, ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
Referenced by CalcAbsorbResist(), Spell::DoAllEffectOnTarget(), spell_sindragosa_s_fury::spell_sindragosa_s_fury_SpellScript::HandleDummy(), HandleDummyAuraProc(), AuraEffect::HandlePeriodicHealAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandlePeriodicPowerBurnAuraTick(), AuraEffect::HandleProcTriggerDamageAuraProc(), SendSpellNonMeleeDamageLog(), and SpellNonMeleeDamageLog().
| void Unit::SendSpellNonMeleeDamageLog | ( | Unit * | target, |
| uint32 | SpellID, | ||
| uint32 | Damage, | ||
| SpellSchoolMask | damageSchoolMask, | ||
| uint32 | AbsorbedDamage, | ||
| uint32 | Resist, | ||
| bool | PhysicalDamage, | ||
| uint32 | Blocked, | ||
| bool | CriticalHit = false ) |
Definition at line 1824 of file Unit.cpp.
References SpellNonMeleeDamage::absorb, SpellNonMeleeDamage::blocked, SpellNonMeleeDamage::damage, SpellNonMeleeDamage::HitInfo, SpellNonMeleeDamage::physicalLog, SpellNonMeleeDamage::resist, SendSpellNonMeleeDamageLog(), SPELL_HIT_TYPE_CRIT, SPELL_HIT_TYPE_UNK1, SPELL_HIT_TYPE_UNK3, SPELL_HIT_TYPE_UNK6, and Unit().
| void Unit::SendTeleportPacket | ( | Position & | pos | ) |
Definition at line 8670 of file Unit.cpp.
References Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), GetPositionZMinusOffset(), Object::GetTypeId(), Position::Relocate(), Player::SendDirectMessage(), WorldObject::SendMessageToSet(), SMSG_MOVE_TELEPORT, SMSG_MOVE_UPDATE_TELEPORT, Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, and WriteMovementInfo().
Referenced by NearTeleportTo(), and Player::TeleportTo().
| void Unit::SendThreatListUpdate | ( | ) |
Definition at line 8756 of file Unit.cpp.
References ByteBuffer::FlushBits(), Object::GetGUID(), ThreatManager::getThreatList(), getThreatManager(), WorldObject::SendMessageToSet(), SF_LOG_DEBUG, SMSG_THREAT_UPDATE, ByteBuffer::WriteBits(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by Update().
|
inline |
Definition at line 1397 of file Unit.h.
References i_AI.
Referenced by spell_tyrannus_overlord_brand::spell_tyrannus_overlord_brand_AuraScript::OnApply(), and spell_tyrannus_overlord_brand::spell_tyrannus_overlord_brand_AuraScript::OnRemove().
| void Unit::SetAnimTier | ( | AnimTier | tier | ) |
Definition at line 5917 of file Unit.cpp.
References Object::GetByteValue(), Object::GetTypeId(), Object::SetByteValue(), TYPEID_UNIT, and UNIT_FIELD_ANIM_TIER.
Referenced by Creature::SetFlying().
|
inline |
Definition at line 1585 of file Unit.h.
References SetResistance(), and SPELL_SCHOOL_NORMAL.
Referenced by Player::InitStatsForLevel(), Creature::UpdateArmor(), Guardian::UpdateArmor(), and Player::UpdateArmor().
|
inline |
Definition at line 1678 of file Unit.h.
References m_modAttackSpeedPct, Object::SetFloatValue(), and UNIT_FIELD_ATTACK_ROUND_BASE_TIME.
Referenced by Player::_ApplyWeaponDamage(), Player::InitDataForForm(), Guardian::InitStatsForLevel(), Player::SetRegularAttackTime(), and Creature::UpdateEntry().
|
inline |
Definition at line 1423 of file Unit.h.
References m_attackTimer.
Referenced by _UpdateAutoRepeatSpell(), DealMeleeDamage(), Player::Update(), and Update().
Definition at line 1826 of file UnitAuraState.cpp.
References AddAura(), GetAura(), Object::GetGUID(), Aura::SetStackAmount(), and Unit().
Referenced by spell_capacitus_polarity_charge::spell_capacitus_polarity_charge_SpellScript::HandleTargets(), spell_thaddius_pos_neg_charge::spell_thaddius_pos_neg_charge_SpellScript::HandleTargets(), and BattlefieldWG::OnPlayerJoinWar().
|
inline |
Definition at line 2857 of file Unit.h.
References m_overrideAutoattackRange.
Referenced by AuraEffect::HandleAuraOverrideAutoattackWithSpell().
|
inline |
Definition at line 2853 of file Unit.h.
References m_overrideAutoattackSpellInfo.
Referenced by AuraEffect::HandleAuraOverrideAutoattackWithSpell().
|
inline |
Definition at line 2428 of file Unit.h.
References m_weaponDamage.
Referenced by Player::_ApplyWeaponDamage(), Guardian::InitStatsForLevel(), and Creature::SelectLevel().
|
inline |
Definition at line 1441 of file Unit.h.
References m_canDualWield.
Referenced by Player::removeSpell().
| bool Unit::SetCanFly | ( | bool | enable | ) |
Definition at line 9219 of file Unit.cpp.
References AddUnitMovementFlag(), HasUnitMovementFlag(), IsLevitating(), MOVEMENTFLAG_CAN_FLY, MOVEMENTFLAG_MASK_MOVING_FLY, MOVEMENTFLAG_SPLINE_ELEVATION, MOVEMENTFLAG_SWIMMING, RemoveUnitMovementFlag(), Movement::PacketSender::Send(), SetFall(), SMSG_MOVE_SET_CAN_FLY, SMSG_MOVE_UNSET_CAN_FLY, SMSG_SPLINE_MOVE_SET_FLYING, and SMSG_SPLINE_MOVE_UNSET_FLYING.
Referenced by boss_krick::boss_krickAI::DoAction(), AuraEffect::HandleAuraAllowFlight(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), gm_commandscript::HandleGMFlyCommand(), LuaUnit::SetCanFly(), and Creature::UpdateMovementFlags().
|
inline |
Definition at line 2414 of file Unit.h.
References m_canModifyStats.
Referenced by Player::_ApplyAllStatBonuses(), Player::_RemoveAllStatBonuses(), Player::LoadFromDB(), Pet::LoadPetFromDB(), and Creature::UpdateEntry().
| void Unit::SetCantProc | ( | bool | apply | ) |
Definition at line 674 of file UnitProcEvent.cpp.
References ASSERT, and m_procDeep.
Referenced by ProcDamageAndSpellFor().
| void Unit::SetCharm | ( | Unit * | target, |
| bool | apply ) |
Definition at line 2617 of file Unit.cpp.
References _isWalkingBeforeCharm, Object::AddUInt64Value(), Object::GetByteValue(), GetCharmerGUID(), GetCharmerOrOwnerPlayerOrPlayerItself(), GetCharmGUID(), Object::GetEntry(), Object::GetGUID(), WorldObject::GetName(), GetOwnerGUID(), Object::GetTypeId(), HasUnitTypeMask(), IsWalking(), m_Controlled, m_ControlledByPlayer, Object::RemoveFlag(), Object::RemoveUInt64Value(), Object::SetByteValue(), Object::SetFlag(), SetWalk(), SF_LOG_FATAL, Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, UI64FMTD, Unit(), UNIT_FIELD_CHARM, UNIT_FIELD_CHARMED_BY, UNIT_FIELD_FLAGS, UNIT_FIELD_SHAPESHIFT_FORM, UNIT_FLAG_PVP_ATTACKABLE, UNIT_MASK_MINION, and Player::UpdatePvPState().
Referenced by RemoveCharmedBy(), SetCharmedBy(), and Player::StopCastingCharm().
| bool Unit::SetCharmedBy | ( | Unit * | charmer, |
| CharmType | type, | ||
| AuraApplication const * | aurApp = NULL ) |
Definition at line 6878 of file Unit.cpp.
References AddUnitState(), Creature::AI(), ASSERT, CastStop(), CHARM_TYPE_CHARM, CHARM_TYPE_CONVERT, CHARM_TYPE_POSSESS, CHARM_TYPE_VEHICLE, Player::CharmSpellInitialize(), CLASS_MAGE, CLASS_WARLOCK, CombatStop(), CREATURE_TYPE_DEMON, DeleteThreatList(), GetCharmerGUID(), GetCharmInfo(), getClass(), Creature::GetCreatureTemplate(), Object::GetEntry(), getFaction(), Object::GetGUIDLow(), WorldObject::GetMap(), GetMotionMaster(), AuraApplication::GetRemoveMode(), WorldObject::GetTransport(), Object::GetTypeId(), CharmInfo::InitCharmCreateSpells(), InitCharmInfo(), CharmInfo::InitPossessCreateSpells(), Player::isAFK(), Map::IsBattleground(), Object::IsInWorld(), IsVehicle(), MotionMaster::MoveIdle(), CreatureAI::OnCharmed(), Player::PossessSpellInitialize(), RemoveAurasByType(), SetCharm(), SetClass(), Player::SetClientControl(), setFaction(), Object::SetFlag(), Player::SetMover(), CharmInfo::SetPetNumber(), Object::SetUInt32Value(), Player::SetViewpoint(), SF_LOG_DEBUG, SF_LOG_FATAL, sObjectMgr, SPELL_AURA_MOUNTED, Player::StopCastingBindSight(), Player::StopCastingCharm(), Object::ToCreature(), Player::ToggleAFK(), Object::ToPlayer(), CreatureTemplate::type, TYPEID_PLAYER, TYPEID_UNIT, Unit(), UNIT_FIELD_FLAGS, UNIT_FIELD_PET_NAME_TIMESTAMP, UNIT_FLAG_DISABLE_MOVE, UNIT_FLAG_PLAYER_CONTROLLED, UNIT_STATE_POSSESSED, and Player::VehicleSpellInitialize().
Referenced by AuraEffect::HandleCharmConvert(), AuraEffect::HandleModCharm(), AuraEffect::HandleModPossess(), AuraEffect::HandleModPossessPet(), and Puppet::InitSummon().
|
inline |
Definition at line 2075 of file Unit.h.
References Object::SetUInt64Value(), and UNIT_FIELD_CHARMED_BY.
Referenced by LuaUnit::SetCharmerGUID().
|
inline |
Definition at line 1564 of file Unit.h.
References Object::SetByteValue(), and UNIT_FIELD_SEX.
Referenced by Player::Create(), Pet::CreateBaseAtTamed(), reset_commandscript::HandleResetStatsOrLevelHelper(), Creature::InitEntry(), Player::LoadFromDB(), Pet::LoadPetFromDB(), RemoveCharmedBy(), SetCharmedBy(), and Player::SummonPet().
|
protected |
Definition at line 6856 of file Unit.cpp.
References CONFUSED_MOTION_TYPE, Object::GetGUID(), GetMotionMaster(), Object::GetTypeId(), GetVictim(), IsAlive(), MotionMaster::MoveConfused(), MotionMaster::MovementExpired(), Player::SetClientControl(), SetTarget(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by SetControlled().
| void Unit::SetContestedPvP | ( | Player * | attackedPlayer = NULL | ) |
Definition at line 416 of file UnitCombatState.cpp.
References AddUnitState(), Player::duel, GetCharmerOrOwnerPlayerOrPlayerItself(), HasUnitState(), DuelInfo::opponent, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_CONTESTED_PVP, Player::SetContestedPvPTimer(), Object::SetFlag(), UNIT_STATE_ATTACK_PLAYER, and UpdateObjectVisibility().
Referenced by CombatStart(), and WorldSession::HandlePlayerLogin().
| void Unit::SetControlled | ( | bool | apply, |
| UnitState | state ) |
Definition at line 6669 of file Unit.cpp.
References AddUnitState(), CastStop(), ClearUnitState(), GetVehicle(), HasAuraType(), HasUnitState(), SendMeleeAttackStop(), SetConfused(), SetFeared(), SetRooted(), SetStunned(), SPELL_AURA_MOD_CONFUSE, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_FEAR_2, SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_STUN, UNIT_STATE_CONFUSED, UNIT_STATE_FLEEING, UNIT_STATE_MELEE_ATTACKING, UNIT_STATE_ROOT, and UNIT_STATE_STUNNED.
Referenced by _ExitVehicle(), Creature::DoFleeToGetAssistance(), AuraEffect::HandleAuraModRoot(), AuraEffect::HandleAuraModStun(), AuraEffect::HandleModConfuse(), AuraEffect::HandleModFear(), AuraEffect::HandlePreventFleeing(), LuaUnit::SetConfused(), LuaUnit::SetFeared(), LuaUnit::SetRooted(), and LuaUnit::SetStunned().
|
inline |
Definition at line 2317 of file Unit.h.
References Object::SetUInt32Value(), and UNIT_FIELD_BASE_HEALTH.
Referenced by Spell::EffectSummonType(), Player::GiveLevel(), Guardian::InitStatsForLevel(), Player::InitStatsForLevel(), and Creature::SelectLevel().
|
inline |
Definition at line 2325 of file Unit.h.
References Object::SetUInt32Value(), and UNIT_FIELD_BASE_MANA.
Referenced by Player::GiveLevel(), Guardian::InitStatsForLevel(), Player::InitStatsForLevel(), and Creature::SelectLevel().
|
inline |
Definition at line 2313 of file Unit.h.
References m_createStats.
Referenced by Player::GiveLevel(), Guardian::InitStatsForLevel(), and Player::InitStatsForLevel().
|
inline |
Definition at line 2059 of file Unit.h.
References Object::SetUInt64Value(), and UNIT_FIELD_CREATED_BY.
Referenced by Spell::EffectSummonType(), spell_putricide_mutated_transformation::spell_putricide_mutated_transformation_SpellScript::HandleSummon(), Minion::InitStats(), InitTamedPet(), Player::LoadFromDB(), Pet::LoadPetFromDB(), LuaUnit::SetCreatorGUID(), and Player::SummonPet().
|
inline |
Definition at line 2091 of file Unit.h.
References Object::SetUInt64Value(), and UNIT_FIELD_CRITTER.
Referenced by LuaUnit::SetCritterGUID(), and SetMinion().
| void Unit::SetCurrentCastedSpell | ( | Spell * | pSpell | ) |
Definition at line 1289 of file Unit.cpp.
References AddUnitState(), ASSERT, CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, Spell::GetCastTime(), Spell::GetCurrentContainer(), Spell::GetSpellInfo(), SpellInfo::Id, InterruptSpell(), m_AutoRepeatFirstCast, m_currentSpells, Spell::m_selfContainer, Spell::SetReferencedFromCurrent(), and UNIT_STATE_CASTING.
|
virtual |
Reimplemented in Creature, Pet, and Player.
Definition at line 4365 of file Unit.cpp.
References ALIVE, AURA_STATE_HEALTHLESS_20_PERCENT, AURA_STATE_HEALTHLESS_35_PERCENT, MotionMaster::Clear(), ClearAllReactives(), ClearComboPointHolders(), ClearDiminishings(), CombatStop(), HostileRefManager::deleteReferences(), DeleteThreatList(), DisableSpline(), ExitVehicle(), getHostileRefManager(), WorldObject::GetInstanceScript(), GetMotionMaster(), getPowerType(), WorldObject::GetZoneScript(), InterruptNonMeleeSpells(), Object::IsInWorld(), IsNonMeleeSpellCasted(), JUST_DIED, JUST_RESPAWNED, m_deathState, ModifyAuraState(), MotionMaster::MoveIdle(), RemoveAllAurasOnDeath(), RemoveAllControlled(), Object::RemoveFlag(), SetHealth(), SetPower(), StopMoving(), UNIT_FIELD_FLAGS, UNIT_FLAG_SKINNABLE, and UnsummonAllTotems().
Referenced by _ExitVehicle(), boss_twinemperorsAI::DamageTaken(), AuraEffect::HandleSpiritOfRedemption(), Kill(), Creature::setDeathState(), and Player::setDeathState().
| bool Unit::SetDisableGravity | ( | bool | disable, |
| bool | packetOnly = false ) |
Definition at line 9156 of file Unit.cpp.
References AddUnitMovementFlag(), HasUnitMovementFlag(), IsLevitating(), MOVEMENTFLAG_CAN_FLY, MOVEMENTFLAG_DISABLE_GRAVITY, MOVEMENTFLAG_SPLINE_ELEVATION, MOVEMENTFLAG_SWIMMING, RemoveUnitMovementFlag(), Movement::PacketSender::Send(), SetFall(), SMSG_MOVE_GRAVITY_DISABLE, SMSG_MOVE_GRAVITY_ENABLE, SMSG_SPLINE_MOVE_GRAVITY_DISABLE, and SMSG_SPLINE_MOVE_GRAVITY_ENABLE.
Referenced by _ExitVehicle(), boss_brutallus::boss_brutallusAI::DoIntro(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_overlord_morghor::npc_overlord_morghorAI::NextStep(), npc_ember_of_alar::npc_ember_of_alarAI::npc_ember_of_alarAI(), LuaCreature::SetDisableGravity(), Creature::SetFlying(), npc_image_of_medivh::npc_image_of_medivhAI::StartEvent(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), and Creature::UpdateMovementFlags().
|
virtual |
Reimplemented in Creature, and Pet.
Definition at line 5941 of file Unit.cpp.
References Object::SetUInt32Value(), and UNIT_FIELD_DISPLAY_ID.
Referenced by DeMorph(), AuraEffect::HandleAuraCloneCaster(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraTransform(), spell_cultist_dark_martyrdom::spell_cultist_dark_martyrdom_SpellScript::HandleEffect(), spell_alysrazor_cosmetic_egg_xplosion::spell_alysrazor_cosmetic_egg_xplosion_SpellScript::HandleExplosion(), boss_illidan_stormrage::boss_illidan_stormrageAI::HandleFlightSequence(), modify_commandscript::HandleModifyMorphCommand(), Player::InitDisplayIds(), spell_gen_aura_service_uniform::spell_gen_aura_service_uniform_AuraScript::OnApply(), RestoreDisplayId(), Creature::SetDisplayId(), and LuaUnit::SetDisplayId().
|
inline |
Definition at line 2657 of file Unit.h.
References WorldObject::m_movementInfo.
Referenced by debug_commandscript::HandleDebugMoveflagsCommand().
| void Unit::SetFacingTo | ( | float | ori | ) |
Definition at line 9114 of file Unit.cpp.
References Movement::MoveSplineInit::DisableTransportPathTransformations(), Position::GetPositionX(), Position::GetPositionY(), GetPositionZMinusOffset(), WorldObject::GetTransport(), Movement::MoveSplineInit::Launch(), Movement::MoveSplineInit::MoveTo(), and Movement::MoveSplineInit::SetFacing().
Referenced by spell_item_unusual_compass::spell_item_unusual_compass_SpellScript::HandleDummy(), spell_alysrazor_turn_monstrosity::spell_alysrazor_turn_monstrosity_SpellScript::KnockBarrage(), LuaUnit::SetFacing(), and RotateMovementGenerator::Update().
| void Unit::SetFacingToObject | ( | WorldObject * | object | ) |
Definition at line 9124 of file Unit.cpp.
References Position::GetAngle(), Position::GetPositionX(), Position::GetPositionY(), GetPositionZMinusOffset(), IsStopped(), Movement::MoveSplineInit::Launch(), Movement::MoveSplineInit::MoveTo(), Movement::MoveSplineInit::SetFacing(), and WorldObject::WorldObject().
Referenced by boss_krick::boss_krickAI::DoAction(), Spell::EffectSummonType(), npc_jungle_punch_target::npc_jungle_punch_targetAI::proceedCwEvent(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), and npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI().
|
inline |
Definition at line 1699 of file Unit.h.
References Object::SetUInt32Value(), and UNIT_FIELD_FACTION_TEMPLATE.
Referenced by BattlegroundAB::_NodeOccupied(), BattlegroundBFG::_NodeOccupied(), instance_uldaman::instance_uldaman_InstanceMapScript::ActivateIronaya(), boss_archaedas::boss_archaedasAI::ActivateMinion(), instance_uldaman::instance_uldaman_InstanceMapScript::ActivateStoneKeepers(), instance_uldaman::instance_uldaman_InstanceMapScript::ActivateWallMinions(), boss_vaelastrasz::boss_vaelAI::boss_vaelAI(), GameObject::CastSpell(), Spell::EffectSummonType(), BattlegroundEY::EventTeamCapturedPoint(), AuraEffect::HandleAuraModFaction(), BattlegroundIC::HandleCapturedNodes(), spell_q12096_q12092_dummy::spell_q12096_q12092_dummy_SpellScript::HandleDummy(), boss_illidan_stormrage::boss_illidan_stormrageAI::HandleFlightSequence(), misc_commandscript::HandleFreezeCommand(), modify_commandscript::HandleModifyFactionCommand(), npc_commandscript::HandleNpcSetFactionIdCommand(), Minion::InitStats(), TempSummon::InitStats(), InitTamedPet(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustDied(), Pet::LoadPetFromDB(), npc_argent_valiant::npc_argent_valiantAI::npc_argent_valiantAI(), go_crystalline_tear::OnQuestAccept(), at_zumrah::OnTrigger(), BattlegroundAV::PopulateNode(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), RestoreFaction(), SetCharmedBy(), LuaUnit::SetFaction(), Player::setFactionForRace(), instance_uldaman::instance_uldaman_InstanceMapScript::SetFrozenState(), Player::SetGameMaster(), BattlegroundIC::SetupBattleground(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::SpawnNPC(), npc_frostworn_general::npc_frostworn_generalAI::SummonClones(), LuaUnit::SummonGuardian(), Spell::SummonGuardian(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), WorldObject::SummonTrigger(), boss_alar::boss_alarAI::UpdateAI(), boss_kaelthas::boss_kaelthasAI::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_thassarian::npc_thassarianAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), and Creature::UpdateEntry().
| bool Unit::SetFall | ( | bool | enable | ) |
Definition at line 9185 of file Unit.cpp.
References AddUnitMovementFlag(), HasUnitMovementFlag(), WorldObject::m_movementInfo, MOVEMENTFLAG_FALLING, MOVEMENTFLAG_FALLING_FAR, and RemoveUnitMovementFlag().
Referenced by Player::SendCinematicStart(), SetCanFly(), SetDisableGravity(), Creature::SetFlying(), Player::StopCinematic(), and Creature::UpdateMovementFlags().
|
protected |
Definition at line 6816 of file Unit.cpp.
References CONFIG_CREATURE_FAMILY_FLEE_DELAY, FLEEING_MOTION_TYPE, getAttackerForHelper(), GetAuraEffectsByType(), Object::GetGUID(), GetMotionMaster(), Object::GetTypeId(), ObjectAccessor::GetUnit(), GetVictim(), IsAlive(), MotionMaster::MoveFleeing(), MotionMaster::MovementExpired(), Player::SetClientControl(), SetTarget(), SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_FEAR_2, sWorld, Object::ToPlayer(), TYPEID_PLAYER, and Unit().
Referenced by SetControlled().
| bool Unit::SetFeatherFall | ( | bool | enable, |
| bool | packetOnly = false ) |
Definition at line 9266 of file Unit.cpp.
References AddUnitMovementFlag(), HasUnitMovementFlag(), MOVEMENTFLAG_FALLING_SLOW, RemoveUnitMovementFlag(), Movement::PacketSender::Send(), SMSG_MOVE_FEATHER_FALL, SMSG_MOVE_NORMAL_FALL, SMSG_SPLINE_MOVE_SET_FEATHER_FALL, and SMSG_SPLINE_MOVE_SET_NORMAL_FALL.
Referenced by AuraEffect::HandleAuraFeatherFall(), and Player::SendAurasForTarget().
|
inline |
Definition at line 1655 of file Unit.h.
References Object::SetUInt32Value(), and UNIT_FIELD_DISPLAY_POWER.
Referenced by Player::Create(), Pet::CreateBaseAtTamed(), reset_commandscript::HandleResetStatsOrLevelHelper(), Pet::LoadPetFromDB(), and setPowerType().
|
inline |
Definition at line 1644 of file Unit.h.
References GetMaxHealth(), and SetHealth().
Referenced by Player::Create(), Player::GiveLevel(), pet_commandscript::HandlePetCreateCommand(), spell_auto_repair::spell_auto_repair_SpellScript::HandleScript(), Guardian::InitStatsForLevel(), Player::InitStatsForLevel(), InitTamedPet(), Player::ProcessDelayedOperations(), Player::ResurectUsingRequestData(), Resurrect(), Creature::setDeathState(), Player::SummonPet(), and boss_emalon::boss_emalonAI::UpdateAI().
|
inline |
Definition at line 1568 of file Unit.h.
References Object::SetByteValue(), and UNIT_FIELD_SEX.
Referenced by Creature::Create(), Player::Create(), Pet::CreateBaseAtTamed(), modify_commandscript::HandleModifyGenderCommand(), reset_commandscript::HandleResetStatsOrLevelHelper(), Creature::InitEntry(), Player::LoadFromDB(), Pet::LoadPetFromDB(), Creature::Respawn(), and LuaPlayer::SetGender().
| void Unit::SetHealth | ( | uint32 | val | ) |
Definition at line 5162 of file Unit.cpp.
References DEAD, getDeathState(), Player::GetGroup(), Object::GetGUID(), GetMaxHealth(), GetOwner(), Object::GetTypeId(), GROUP_UPDATE_FLAG_CUR_HP, GROUP_UPDATE_FLAG_PET_CUR_HP, Object::IsInWorld(), JUST_DIED, WorldObject::SendMessageToSet(), Player::SetGroupUpdateFlag(), Object::SetUInt32Value(), SMSG_HEALTH_UPDATE, Object::ToCreature(), ToPet(), Object::ToPlayer(), TYPEID_PLAYER, Unit(), UNIT_FIELD_HEALTH, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by Player::BuildPlayerRepop(), boss_twinemperorsAI::DamageTaken(), DealDamage(), Spell::EffectSelfResurrect(), Spell::EffectSummonDeadPet(), Spell::EffectSummonType(), boss_malchezaar::boss_malchezaarAI::EnfeebleResetHealth(), AuraEffect::HandleAuraModIncreaseHealth(), AuraEffect::HandleAuraModIncreaseHealthPercent(), AuraEffect::HandleAuraModIncreaseMaxHealth(), spell_q28813_set_health_random::spell_q28813_set_health_random_SpellScript::HandleDummyEffect(), modify_commandscript::HandleModifyHPCommand(), AuraEffect::HandleModTotalPercentStat(), npc_commandscript::HandleNpcSetLevelCommand(), pet_commandscript::HandlePetCreateCommand(), spell_stinky_precious_decimate::spell_stinky_precious_decimate_SpellScript::HandleScript(), AuraEffect::HandleSpiritOfRedemption(), boss_twinemperorsAI::JustDied(), Creature::LoadCreatureFromDB(), Player::LoadFromDB(), Pet::LoadPetFromDB(), ModifyHealth(), PretendToDie(), Player::ProcessDelayedOperations(), Player::ResetAllPowers(), Player::ResurectUsingRequestData(), Player::ResurrectPlayer(), Creature::SelectLevel(), setDeathState(), SetFullHealth(), LuaUnit::SetHealth(), SetMaxHealth(), boss_twinemperorsAI::SpellHit(), boss_brutallus::boss_brutallusAI::StartIntro(), boss_blood_council_controller::boss_blood_council_controllerAI::UpdateAI(), and boss_freya::boss_freyaAI::UpdateAI().
| bool Unit::SetHover | ( | bool | enable, |
| bool | packetOnly = false ) |
No need to check height on ascent
Definition at line 9287 of file Unit.cpp.
References AddUnitMovementFlag(), Object::GetFloatValue(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), HasUnitMovementFlag(), MOVEMENTFLAG_HOVER, RemoveUnitMovementFlag(), Movement::PacketSender::Send(), SMSG_MOVE_SET_HOVER, SMSG_MOVE_UNSET_HOVER, SMSG_SPLINE_MOVE_SET_HOVER, SMSG_SPLINE_MOVE_UNSET_HOVER, UNIT_FIELD_HOVER_HEIGHT, WorldObject::UpdateAllowedPositionZ(), and UpdateHeight().
Referenced by AuraEffect::HandleAuraHover(), Player::SendAurasForTarget(), and LuaCreature::SetHover().
| void Unit::SetInCombatState | ( | bool | PvP, |
| Unit * | enemy = NULL ) |
Definition at line 323 of file UnitCombatState.cpp.
References ClearUnitState(), CREATURE_TYPEFLAGS_MOUNTED_COMBAT, Dismount(), GetMotionMaster(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), HasUnitState(), IsAIEnabled, IsAlive(), IsInCombat(), IsPet(), m_CombatTimer, m_Controlled, MOVE_FLIGHT, MOVE_RUN, MOVE_SWIM, POINT_MOTION_TYPE, RANDOM_MOTION_TYPE, Object::RemoveFlag(), Object::SetFlag(), SPELL_AURA_ENABLE_WORGER_ALTERED_FORM, SPELL_AURA_WORGEN_ALTERED_FORM, Object::ToCreature(), Object::ToPlayer(), Unit(), UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC, UNIT_FLAG_IN_COMBAT, UNIT_FLAG_PET_IN_COMBAT, UNIT_STATE_EVADE, UpdateSpeed(), and WAYPOINT_MOTION_TYPE.
Referenced by SetInCombatWith().
| void Unit::SetInCombatWith | ( | Unit * | enemy | ) |
Definition at line 268 of file UnitCombatState.cpp.
References Player::duel, GetCharmerOrOwnerOrSelf(), Object::GetTypeId(), IsPvP(), SetInCombatState(), Object::ToPlayer(), TYPEID_PLAYER, and Unit().
Referenced by AggroAllPlayers(), npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::AggroAllPlayers(), FollowerAI::AssistPlayerInCombat(), npc_escortAI::AssistPlayerInCombat(), SmartAI::AssistPlayerInCombat(), Attack(), FollowerAI::AttackStart(), CombatStart(), CreatureAI::DoZoneInCombat(), boss_freya::boss_freyaAI::EnterCombat(), FollowerAI::MoveInLineOfSight(), npc_escortAI::MoveInLineOfSight(), SmartAI::MoveInLineOfSight(), and Creature::SetInCombatWithZone().
| void Unit::SetInFront | ( | WorldObject const * | target | ) |
Definition at line 9108 of file Unit.cpp.
References Position::GetAngle(), HasUnitState(), Position::SetOrientation(), UNIT_STATE_CANNOT_TURN, and WorldObject::WorldObject().
Referenced by boss_brutallus::boss_brutallusAI::DoIntro(), Creature::FocusTarget(), WorldSession::HandlePetActionHelper(), RotateMovementGenerator::Initialize(), npc_drakuru_shackles::npc_drakuru_shacklesAI::LockRageclaw(), npc_geezle::npc_geezleAI::NextStep(), Creature::SelectVictim(), TauntApply(), TauntFadeOut(), and npc_thassarian::npc_thassarianAI::UpdateAI().
|
inline |
| void Unit::SetLevel | ( | uint8 | lvl | ) |
Definition at line 5150 of file Unit.cpp.
References Object::GetGUIDLow(), Object::GetTypeId(), GROUP_UPDATE_FLAG_LEVEL, Player::SetGroupUpdateFlag(), Object::SetUInt32Value(), sWorld, Object::ToPlayer(), TYPEID_PLAYER, and UNIT_FIELD_LEVEL.
Referenced by BattlegroundAV::AddAVCreature(), Player::GiveLevel(), npc_commandscript::HandleNpcSetLevelCommand(), reset_commandscript::HandleResetLevelCommand(), wp_commandscript::HandleWpShowCommand(), Puppet::InitStats(), TempSummon::InitStats(), Totem::InitStats(), Guardian::InitStatsForLevel(), Creature::SelectLevel(), LuaUnit::SetLevel(), BattlePetWildZonePool::SpawnReplacement(), WorldObject::SummonTrigger(), and boss_alar::boss_alarAI::UpdateAI().
| void Unit::SetMaxHealth | ( | uint32 | val | ) |
Definition at line 5206 of file Unit.cpp.
References Player::GetGroup(), GetHealth(), GetOwner(), Object::GetTypeId(), GROUP_UPDATE_FLAG_MAX_HP, GROUP_UPDATE_FLAG_PET_MAX_HP, Object::HasFlag(), Player::SetGroupUpdateFlag(), SetHealth(), Object::SetUInt32Value(), Object::ToCreature(), ToPet(), Object::ToPlayer(), TYPEID_PLAYER, Unit(), UNIT_FIELD_FLAGS, UNIT_FIELD_MAX_HEALTH, and UNIT_FLAG_DISABLE_POWERS.
Referenced by Spell::EffectSummonType(), modify_commandscript::HandleModifyHPCommand(), npc_commandscript::HandleNpcSetLevelCommand(), Player::InitStatsForLevel(), Creature::LoadCreatureFromDB(), Creature::SelectLevel(), LuaUnit::SetMaxHealth(), boss_brutallus::boss_brutallusAI::StartIntro(), Creature::UpdateMaxHealth(), Guardian::UpdateMaxHealth(), and Player::UpdateMaxHealth().
Definition at line 5317 of file Unit.cpp.
References Player::GetGroup(), GetOwner(), GetPower(), GetPowerIndex(), Object::GetTypeId(), GROUP_UPDATE_FLAG_MAX_POWER, GROUP_UPDATE_FLAG_PET_MAX_POWER, MAX_POWERS, Player::SetGroupUpdateFlag(), Object::SetInt32Value(), SetPower(), Object::ToCreature(), ToPet(), Object::ToPlayer(), TYPEID_PLAYER, Unit(), and UNIT_FIELD_MAX_POWER.
Referenced by Player::Create(), AuraEffect::HandleEnableAltPower(), modify_commandscript::HandleModifyEnergyCommand(), modify_commandscript::HandleModifyManaCommand(), modify_commandscript::HandleModifyRageCommand(), modify_commandscript::HandleModifyRunicPowerCommand(), Player::InitStatsForLevel(), Creature::LoadCreatureFromDB(), Creature::SelectLevel(), LuaUnit::SetMaxPower(), setPowerType(), Creature::UpdateMaxPower(), Guardian::UpdateMaxPower(), and Player::UpdateMaxPower().
| void Unit::SetMinion | ( | Minion * | minion, |
| bool | apply ) |
Definition at line 2432 of file Unit.cpp.
References Player::AddSpellAndCategoryCooldowns(), Object::AddUInt64Value(), ASSERT, Player::CharmSpellInitialize(), Object::GetByteValue(), GetCharmGUID(), GetCritterGUID(), Object::GetEntry(), GetGuardianPet(), Object::GetGUID(), GetOwnerGUID(), GetPetGUID(), Totem::GetSpell(), Object::GetTypeId(), Object::GetUInt32Value(), HasUnitTypeMask(), SpellInfo::IsCooldownStartedOnEvent(), Minion::IsGuardianPet(), IsPet(), Minion::IsPetGhoul(), IsTotem(), m_Controlled, m_ControlledByPlayer, TempSummon::m_Properties, m_speed_rate, MAX_MOVE_TYPE, MAX_SPELL_EFFECTS, OutDebugInfo(), PET_SAVE_AS_CURRENT, Player::PetSpellInitialize(), POWER_ENERGY, RemoveAllMinionsByEntry(), Object::RemoveUInt64Value(), Player::SendCooldownEvent(), Object::SetByteValue(), SetCritterGUID(), Object::SetFlag(), SetMinionGUID(), SetOwnerGUID(), SetPetGUID(), setPowerType(), SetSpeed(), SF_LOG_DEBUG, SF_LOG_FATAL, SPELL_EFFECT_SUMMON, sSpellMgr, SUMMON_TYPE_MINIPET, Object::ToPlayer(), ToTotem(), SummonPropertiesEntry::Type, TYPEID_PLAYER, TYPEID_UNIT, UNIT_FIELD_CREATED_BY_SPELL, UNIT_FIELD_FLAGS, UNIT_FIELD_SHAPESHIFT_FORM, UNIT_FIELD_SUMMON, UNIT_FLAG_PVP_ATTACKABLE, and UNIT_MASK_CONTROLABLE_GUARDIAN.
Referenced by npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), Minion::InitStats(), Pet::LoadPetFromDB(), Minion::RemoveFromWorld(), Player::RemovePet(), and Player::SummonPet().
|
inline |
Definition at line 2067 of file Unit.h.
References Object::SetUInt64Value(), and UNIT_FIELD_SUMMON.
Referenced by GetFirstMinion(), and SetMinion().
|
inline |
Definition at line 2400 of file Unit.h.
References m_auraModifiersGroup.
Referenced by Guardian::InitStatsForLevel(), Creature::SelectLevel(), Guardian::UpdateAttackPowerAndDamage(), Player::UpdateAttackPowerAndDamage(), and Creature::UpdateEntry().
|
inline |
Definition at line 2500 of file Unit.h.
References Object::SetUInt32Value(), and UNIT_FIELD_NATIVE_DISPLAY_ID.
Referenced by GameEventMgr::ChangeEquipOrModel(), Creature::Create(), npc_commandscript::HandleNpcSetModelCommand(), Player::InitDisplayIds(), Creature::InitEntry(), Pet::LoadPetFromDB(), Creature::Respawn(), and LuaUnit::SetNativeDisplayId().
| void Unit::SetOwnerGUID | ( | uint64 | owner | ) |
Definition at line 2314 of file Unit.cpp.
References UpdateData::BuildPacket(), Object::BuildValuesUpdateBlockForPlayer(), WorldLocation::GetMapId(), GetOwnerGUID(), ObjectAccessor::GetPlayer(), Player::HaveAtClient(), Object::RemoveFieldNotifyFlag(), Player::SendDirectMessage(), Object::SetFieldNotifyFlag(), Object::SetUInt64Value(), UF_FLAG_OWNER, and UNIT_FIELD_SUMMONED_BY.
Referenced by GameObject::CastSpell(), Spell::EffectSummonType(), Player::LoadFromDB(), SetMinion(), and LuaUnit::SetOwnerGUID().
|
inline |
Definition at line 2083 of file Unit.h.
References m_SummonSlot, and SUMMON_SLOT_PET.
Referenced by GetGuardianPet(), SetMinion(), LuaUnit::SetMinionGUID(), and LuaUnit::SetPetGUID().
|
virtual |
Reimplemented from WorldObject.
Definition at line 7516 of file Unit.cpp.
References GetCreature(), HostileRefManager::getFirst(), getHostileRefManager(), WorldObject::GetMap(), ThreatManager::getOfflineThreatList(), ThreatManager::GetOwner(), Reference< TO, FROM >::GetSource(), ThreatManager::getThreatList(), getThreatManager(), Object::GetTypeId(), Object::IsInWorld(), WorldObject::IsPhased(), m_Controlled, m_SummonSlot, MAX_SUMMON_SLOT, HostileReference::next(), RemoveNotOwnSingleTargetAuras(), HostileRefManager::setOnlineOfflineState(), WorldObject::SetPhased(), Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, and Unit().
Referenced by Creature::Create(), debug_commandscript::HandleDebugSpawnVehicleCommand(), modify_commandscript::HandleModifyPhaseCommand(), npc_commandscript::HandleNpcAddCommand(), npc_commandscript::HandleNpcSetPhaseCommand(), npc_commandscript::HandleNpcSetPhaseGroup(), AuraEffect::HandlePhase(), AuraEffect::HandlePhaseGroup(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), InitTamedPet(), Pet::LoadPetFromDB(), Map::SummonCreature(), and Player::SummonPet().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 7454 of file Unit.cpp.
References GetCreature(), HostileRefManager::getFirst(), getHostileRefManager(), WorldObject::GetMap(), ThreatManager::getOfflineThreatList(), ThreatManager::GetOwner(), WorldObject::GetPhaseMask(), Reference< TO, FROM >::GetSource(), ThreatManager::getThreatList(), getThreatManager(), Object::GetTypeId(), WorldObject::InSamePhase(), Object::IsInWorld(), m_Controlled, m_SummonSlot, MAX_SUMMON_SLOT, HostileReference::next(), RemoveNotOwnSingleTargetAuras(), HostileRefManager::setOnlineOfflineState(), WorldObject::SetPhaseMask(), Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, and Unit().
Referenced by misc_commandscript::HandleAppearCommand(), misc_commandscript::HandleSummonCommand(), Battlefield::HideNpc(), LuaGlobalFunctions::PerformIngameSpawn(), Player::SetGameMaster(), LuaUnit::SetPhaseMask(), and Battlefield::ShowNpc().
Definition at line 5255 of file Unit.cpp.
References ByteBuffer::FlushBits(), Player::GetGroup(), Object::GetGUID(), GetMaxPower(), GetOwner(), GetPowerIndex(), Object::GetTypeId(), GROUP_UPDATE_FLAG_CUR_POWER, GROUP_UPDATE_FLAG_PET_CUR_POWER, Object::IsInWorld(), MAX_POWERS, WorldObject::SendMessageToSet(), Player::SetGroupUpdateFlag(), Object::SetInt32Value(), SMSG_POWER_UPDATE, Object::ToCreature(), ToPet(), Object::ToPlayer(), TYPEID_PLAYER, Unit(), UNIT_FIELD_POWER, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteByteSeq().
Referenced by Player::ActivateSpec(), Player::Create(), Spell::EffectSelfResurrect(), Player::GiveLevel(), AuraEffect::HandleAuraModShapeshift(), modify_commandscript::HandleModifyEnergyCommand(), modify_commandscript::HandleModifyManaCommand(), modify_commandscript::HandleModifyRageCommand(), modify_commandscript::HandleModifyRunicPowerCommand(), AuraEffect::HandlePeriodicDummyAuraTick(), Guardian::InitStatsForLevel(), Player::InitStatsForLevel(), Creature::LoadCreatureFromDB(), Player::LoadFromDB(), Pet::LoadPetFromDB(), ModifyPower(), ProcDamageAndSpellFor(), Player::ProcessDelayedOperations(), Player::Regenerate(), Player::ResetAllPowers(), Player::ResurectUsingRequestData(), Player::ResurrectPlayer(), Creature::SelectLevel(), setDeathState(), SetMaxPower(), LuaUnit::SetPower(), setPowerType(), AreaTrigger_at_ssb_banana_bar::StartBananaEvent(), SummonOokOokIfReady(), and Player::SummonPet().
| void Unit::setPowerType | ( | Powers | power | ) |
Definition at line 2079 of file Unit.cpp.
References GetCreatePowers(), Player::GetGroup(), GetOwner(), Object::GetTypeId(), GROUP_UPDATE_FLAG_PET_POWER_TYPE, GROUP_UPDATE_FLAG_POWER_TYPE, POWER_ENERGY, POWER_FOCUS, POWER_MANA, POWER_RAGE, SetFieldPowerType(), Player::SetGroupUpdateFlag(), SetMaxPower(), SetPower(), Object::ToCreature(), ToPet(), Object::ToPlayer(), TYPEID_PLAYER, and Unit().
Referenced by Pet::CreateBaseAtTamed(), AuraEffect::HandleAuraModShapeshift(), Player::InitDataForForm(), Pet::LoadPetFromDB(), Creature::SelectLevel(), SetMinion(), and Player::SummonPet().
| void Unit::SetPvP | ( | bool | state | ) |
Definition at line 7317 of file Unit.cpp.
References Object::RemoveByteFlag(), Object::SetByteFlag(), UNIT_BYTE2_FLAG_PVP, and UNIT_FIELD_SHAPESHIFT_FORM.
Referenced by LuaUnit::SetPvP(), Player::SetPvP(), and Creature::UpdateEntry().
|
inline |
Definition at line 1560 of file Unit.h.
References Object::SetByteValue(), and UNIT_FIELD_SEX.
Referenced by Player::Create(), reset_commandscript::HandleResetStatsOrLevelHelper(), Creature::InitEntry(), and Player::LoadFromDB().
Definition at line 2716 of file Unit.h.
References _redirectThreadInfo.
Referenced by ResetRedirectThreat().
|
inline |
Definition at line 1595 of file Unit.h.
References Object::SetStatInt32Value(), and UNIT_FIELD_RESISTANCES.
Referenced by Player::InitStatsForLevel(), SetArmor(), Creature::UpdateResistances(), Guardian::UpdateResistances(), and Player::UpdateResistances().
| void Unit::SetResistanceBuffMods | ( | SpellSchools | school, |
| bool | positive, | ||
| float | val ) |
Definition at line 1574 of file Unit.cpp.
References Object::SetFloatValue(), UNIT_FIELD_RESISTANCE_BUFF_MODS_NEGATIVE, and UNIT_FIELD_RESISTANCE_BUFF_MODS_POSITIVE.
Referenced by Player::InitStatsForLevel().
|
protected |
Definition at line 6794 of file Unit.cpp.
References AddUnitMovementFlag(), MOVEMENTFLAG_MASK_MOVING, MOVEMENTFLAG_ROOT, RemoveUnitMovementFlag(), Movement::PacketSender::Send(), SMSG_MOVE_ROOT, SMSG_MOVE_UNROOT, SMSG_SPLINE_MOVE_ROOT, and SMSG_SPLINE_MOVE_UNROOT.
Referenced by Player::BuildPlayerRepop(), WorldSession::HandleLogoutCancelOpcode(), WorldSession::HandleLogoutRequestOpcode(), Player::KillPlayer(), Player::ResurrectPlayer(), Player::SendInitialPacketsAfterAddToMap(), SetControlled(), and SetStunned().
| void Unit::SetShapeshiftForm | ( | ShapeshiftForm | form | ) |
Definition at line 4931 of file Unit.cpp.
References Object::SetByteValue(), and UNIT_FIELD_SHAPESHIFT_FORM.
Referenced by AuraEffect::HandleAuraModShapeshift(), and reset_commandscript::HandleResetStatsOrLevelHelper().
|
inlinevirtual |
Reimplemented in Player.
Definition at line 1689 of file Unit.h.
References Object::SetByteValue(), and UNIT_FIELD_SHAPESHIFT_FORM.
Referenced by Pet::Create(), Pet::CreateBaseAtTamed(), Pet::LoadPetFromDB(), LuaUnit::SetSheath(), Player::SetSheath(), and Creature::UpdateEntry().
| void Unit::SetSpeed | ( | UnitMoveType | mtype, |
| float | rate, | ||
| bool | forced = false ) |
Definition at line 4318 of file Unit.cpp.
References Movement::ExtraMovementStatusElement::Data, Movement::ExtraMovementStatusElement::floatData, GetSpeed(), Object::GetTypeId(), IsInCombat(), Object::IsInWorld(), Player::m_forced_speed_changes, m_speed_rate, MAX_MOVE_TYPE, MSEExtraFloat, propagateSpeedChange(), Movement::PacketSender::Send(), SMSG_MOVE_SET_FLIGHT_BACK_SPEED, SMSG_MOVE_SET_FLIGHT_SPEED, SMSG_MOVE_SET_PITCH_RATE, SMSG_MOVE_SET_RUN_BACK_SPEED, SMSG_MOVE_SET_RUN_SPEED, SMSG_MOVE_SET_SWIM_BACK_SPEED, SMSG_MOVE_SET_SWIM_SPEED, SMSG_MOVE_SET_TURN_RATE, SMSG_MOVE_SET_WALK_SPEED, SMSG_MOVE_UPDATE_FLIGHT_BACK_SPEED, SMSG_MOVE_UPDATE_FLIGHT_SPEED, SMSG_MOVE_UPDATE_PITCH_RATE, SMSG_MOVE_UPDATE_RUN_BACK_SPEED, SMSG_MOVE_UPDATE_RUN_SPEED, SMSG_MOVE_UPDATE_SWIM_BACK_SPEED, SMSG_MOVE_UPDATE_SWIM_SPEED, SMSG_MOVE_UPDATE_TURN_RATE, SMSG_MOVE_UPDATE_WALK_SPEED, SMSG_SPLINE_MOVE_SET_FLIGHT_BACK_SPEED, SMSG_SPLINE_MOVE_SET_FLIGHT_SPEED, SMSG_SPLINE_MOVE_SET_PITCH_RATE, SMSG_SPLINE_MOVE_SET_RUN_BACK_SPEED, SMSG_SPLINE_MOVE_SET_RUN_SPEED, SMSG_SPLINE_MOVE_SET_SWIM_BACK_SPEED, SMSG_SPLINE_MOVE_SET_SWIM_SPEED, SMSG_SPLINE_MOVE_SET_TURN_RATE, SMSG_SPLINE_MOVE_SET_WALK_SPEED, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Battleground::AddCreature(), boss_illidan_stormrage::boss_illidan_stormrageAI::CastEyeBlast(), ClearInCombat(), modify_commandscript::HandleModifyASpeedCommand(), modify_commandscript::HandleModifyBWalkCommand(), modify_commandscript::HandleModifyFlyCommand(), modify_commandscript::HandleModifySpeedCommand(), modify_commandscript::HandleModifySwimCommand(), Creature::InitEntry(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), npc_ancestral_wolf::npc_ancestral_wolfAI::npc_ancestral_wolfAI(), SetMinion(), LuaUnit::SetSpeed(), Battlefield::SpawnCreature(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), and UpdateSpeed().
|
inline |
Definition at line 1733 of file Unit.h.
References Object::SetByteFlag(), and UNIT_FIELD_ANIM_TIER.
Referenced by AuraEffect::HandleModStealth().
| void Unit::SetStandState | ( | uint8 | state | ) |
Definition at line 5902 of file Unit.cpp.
References AURA_INTERRUPT_FLAG_NOT_SEATED, Player::GetSession(), Object::GetTypeId(), IsStandState(), RemoveAurasWithInterruptFlags(), WorldSession::SendPacket(), Object::SetByteValue(), SMSG_STANDSTATE_UPDATE, Object::ToPlayer(), TYPEID_PLAYER, and UNIT_FIELD_ANIM_TIER.
Referenced by _ApplyAura(), CombatStart(), Spell::DoAllEffectOnTarget(), WorldSession::HandleLogoutCancelOpcode(), WorldSession::HandleLogoutRequestOpcode(), WorldSession::HandlePlayerLogin(), AuraEffect::HandleSpiritOfRedemption(), spell_love_is_in_the_air_romantic_picnic::spell_love_is_in_the_air_romantic_picnic_AuraScript::OnApply(), PretendToDie(), Resurrect(), SetStunned(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_Pathaleons_Image(), npc_palehoof_orb::npc_palehoof_orbAI::UpdateAI(), npc_thassarian::npc_thassarianAI::UpdateAI(), and GameObject::Use().
Definition at line 1577 of file Unit.h.
References Object::SetStatInt32Value(), and UNIT_FIELD_STATS.
Referenced by Player::InitStatsForLevel(), Player::UpdateAllStats(), Guardian::UpdateStats(), and Player::UpdateStats().
|
protected |
Definition at line 6761 of file Unit.cpp.
References CastStop(), Object::GetGUID(), GetOwner(), WorldObject::GetTransport(), Object::GetTypeId(), GetVictim(), HasUnitState(), IsAlive(), IsMounted(), Object::RemoveFlag(), Object::SetFlag(), SetRooted(), SetStandState(), SetTarget(), StopMoving(), Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, Unit(), UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED, UNIT_STAND_STATE_STAND, and UNIT_STATE_ROOT.
Referenced by SetControlled().
| bool Unit::SetSwim | ( | bool | enable | ) |
Definition at line 9201 of file Unit.cpp.
References AddUnitMovementFlag(), HasUnitMovementFlag(), MOVEMENTFLAG_SWIMMING, NULL_OPCODE, RemoveUnitMovementFlag(), Movement::PacketSender::Send(), SMSG_SPLINE_MOVE_START_SWIM, and SMSG_SPLINE_MOVE_STOP_SWIM.
Referenced by Creature::UpdateMovementFlags().
|
pure virtual |
Implemented in Creature, and Player.
Referenced by Attack(), AttackStop(), npc_overlord_morghor::npc_overlord_morghorAI::NextStep(), SetConfused(), SetFeared(), and SetStunned().
|
inline |
Definition at line 2504 of file Unit.h.
References m_transform.
Referenced by AuraEffect::HandleAuraTransform().
|
inline |
Definition at line 2636 of file Unit.h.
References WorldObject::m_movementInfo.
Referenced by debug_commandscript::HandleDebugMoveflagsCommand(), CreatureGroup::LeaderMoveTo(), and Player::TeleportTo().
|
inline |
Definition at line 2747 of file Unit.h.
References m_vehicle.
Referenced by Vehicle::RemovePassenger().
| void Unit::SetVisible | ( | bool | x | ) |
Definition at line 4163 of file Unit.cpp.
References WorldObject::m_serverSideVisibility, SEC_GAMEMASTER, SEC_PLAYER, SERVERSIDE_VISIBILITY_GM, and UpdateObjectVisibility().
Referenced by Creature::Create(), npc_pulsing_pumpkin::npc_pulsing_pumpkinAI::Despawn(), spell_rotface_unstable_ooze_explosion_suicide::spell_rotface_unstable_ooze_explosion_suicide_AuraScript::DespawnSelf(), FindSceneActor(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_akama_illidan::npc_akama_illidanAI::HandleChannelSequence(), Battlefield::HideNpc(), boss_illidan_stormrage::boss_illidan_stormrageAI::JustSummoned(), npc_overlord_morghor::npc_overlord_morghorAI::NextStep(), npc_frozen_orb_stalker::npc_frozen_orb_stalkerAI::npc_frozen_orb_stalkerAI(), npc_nesingwary_trapper::npc_nesingwary_trapperAI::npc_nesingwary_trapperAI(), ResetCryForTheMoonActor(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::SetData(), LuaUnit::SetVisible(), Battlefield::ShowNpc(), npc_overlord_morghor::npc_overlord_morghorAI::StartEvent(), npc_oliver_harris::npc_oliver_harrisAI::StartSceneImpl(), boss_archimonde::boss_archimondeAI::UpdateAI(), boss_attumen::boss_attumenAI::UpdateAI(), npc_commander_dawnforge::npc_commander_dawnforgeAI::UpdateAI(), and npc_giant_infernal::npc_giant_infernalAI::UpdateAI().
| void Unit::SetVisibleAura | ( | uint8 | slot, |
| AuraApplication * | aur ) |
Definition at line 500 of file Unit.cpp.
References m_visibleAuras, and UpdateAuraForGroup().
Referenced by AuraApplication::_Remove(), and AuraApplication::AuraApplication().
| bool Unit::SetWalk | ( | bool | enable | ) |
@ TODO: Find proper opcode for walk mode setting in player mind controlling a player case
Definition at line 9137 of file Unit.cpp.
References AddUnitMovementFlag(), IsWalking(), MOVEMENTFLAG_WALKING, RemoveUnitMovementFlag(), Movement::PacketSender::Send(), SMSG_SPLINE_MOVE_SET_RUN_MODE, and SMSG_SPLINE_MOVE_SET_WALK_MODE.
Referenced by boss_illidan_stormrage::boss_illidan_stormrageAI::CastEyeBlast(), HomeMovementGenerator< Creature >::DoFinalize(), RandomMovementGenerator< T >::DoFinalize(), WaypointMovementGenerator< Creature >::DoFinalize(), ChaseMovementGenerator< T >::DoInitialize(), npc_counselor_talbot::npc_counselor_talbotAI::JustDied(), CreatureGroup::LeaderMoveTo(), instance_deadmines::instance_deadmines_InstanceMapScript::MoveCreatureInside(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), SetCharm(), LuaCreature::SetWalk(), hyjalAI::SummonCreature(), and npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI().
| bool Unit::SetWaterWalking | ( | bool | enable, |
| bool | packetOnly = false ) |
Definition at line 9245 of file Unit.cpp.
References AddUnitMovementFlag(), HasUnitMovementFlag(), MOVEMENTFLAG_WATERWALKING, RemoveUnitMovementFlag(), Movement::PacketSender::Send(), SMSG_MOVE_LAND_WALK, SMSG_MOVE_WATER_WALK, SMSG_SPLINE_MOVE_SET_LAND_WALK, and SMSG_SPLINE_MOVE_SET_WATER_WALK.
Referenced by Player::BuildPlayerRepop(), AuraEffect::HandleAuraWaterWalk(), WorldSession::HandlePlayerLogin(), cheat_commandscript::HandleWaterWalkCheatCommand(), Player::ResurrectPlayer(), Player::SendAurasForTarget(), and LuaUnit::SetWaterWalk().
| int32 Unit::SpellBaseDamageBonusDone | ( | SpellSchoolMask | schoolMask | ) | const |
Definition at line 3055 of file Unit.cpp.
References BASE_ATTACK, CalculatePct(), GetAuraEffectsByType(), Player::GetBaseSpellPowerBonus(), Object::GetFloatValue(), GetPowerIndex(), GetStat(), GetTotalAttackPowerValue(), Object::GetTypeId(), MAX_POWERS, PLAYER_FIELD_OVERRIDE_SPELL_POWER_BY_APPERCENT, POWER_MANA, SPELL_AURA_MOD_DAMAGE_DONE, SPELL_AURA_MOD_SPELL_DAMAGE_OF_STAT_PERCENT, STAT_INTELLECT, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by HandleDummyAuraProc(), spell_pal_seal_of_righteousness::spell_pal_seal_of_righteousness_AuraScript::HandleProc(), Guardian::InitStatsForLevel(), SpellDamageBonusDone(), and Player::UpdateSpellDamageAndHealingBonus().
| int32 Unit::SpellBaseDamageBonusTaken | ( | SpellSchoolMask | schoolMask | ) | const |
Definition at line 3099 of file Unit.cpp.
References GetAuraEffectsByType(), and SPELL_AURA_MOD_DAMAGE_TAKEN.
Referenced by HandleDummyAuraProc(), spell_pal_seal_of_righteousness::spell_pal_seal_of_righteousness_AuraScript::HandleProc(), and SpellDamageBonusTaken().
| int32 Unit::SpellBaseHealingBonusDone | ( | SpellSchoolMask | schoolMask | ) | const |
Definition at line 3365 of file Unit.cpp.
References BASE_ATTACK, CalculatePct(), GetAuraEffectsByType(), Player::GetBaseSpellPowerBonus(), Object::GetFloatValue(), GetPowerIndex(), GetStat(), GetTotalAttackPowerValue(), Object::GetTypeId(), MAX_POWERS, PLAYER_FIELD_OVERRIDE_SPELL_POWER_BY_APPERCENT, POWER_MANA, SPELL_AURA_MOD_HEALING_DONE, SPELL_AURA_MOD_SPELL_HEALING_OF_STAT_PERCENT, STAT_INTELLECT, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by SpellHealingBonusDone(), and Player::UpdateSpellDamageAndHealingBonus().
| int32 Unit::SpellBaseHealingBonusTaken | ( | SpellSchoolMask | schoolMask | ) | const |
Definition at line 3403 of file Unit.cpp.
References GetAuraEffectsByType(), and SPELL_AURA_MOD_HEALING.
Referenced by SpellHealingBonusTaken().
| uint32 Unit::SpellCriticalDamageBonus | ( | SpellInfo const * | spellProto, |
| uint32 | damage, | ||
| Unit * | victim ) |
Definition at line 3316 of file Unit.cpp.
References AddPct(), SpellInfo::DmgClass, SpellInfo::GetSchoolMask(), GetSpellModOwner(), GetTotalAuraMultiplierByMiscMask(), SpellInfo::Id, SPELL_AURA_MOD_CRIT_DAMAGE_BONUS, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_RANGED, SPELLMOD_CRIT_DAMAGE_BONUS, and Unit().
Referenced by CalculateSpellDamageTaken(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
| uint32 Unit::SpellCriticalHealingBonus | ( | SpellInfo const * | spellProto, |
| uint32 | damage, | ||
| Unit * | victim ) |
Definition at line 3353 of file Unit.cpp.
References GetTotalAuraMultiplier(), SPELL_AURA_MOD_CRITICAL_HEALING_AMOUNT, and Unit().
Referenced by Spell::DoAllEffectOnTarget(), and AuraEffect::HandlePeriodicHealAurasTick().
| uint32 Unit::SpellDamageBonusDone | ( | Unit * | victim, |
| SpellInfo const * | spellProto, | ||
| uint32 | pdamage, | ||
| DamageEffectType | damagetype, | ||
| uint32 | stack = 1 ) const |
Definition at line 53 of file UnitCombatBonus.cpp.
References AddPct(), SpellBonusEntry::ap_bonus, SpellBonusEntry::ap_dot_bonus, SpellInfo::AttributesEx3, SpellInfo::AttributesEx6, AURA_STATE_CONFLAGRATE, AURA_STATE_FROZEN, BASE_ATTACK, CalculateDefaultCoefficient(), CalculateLevelPenalty(), DIRECT_DAMAGE, SpellBonusEntry::direct_damage, SpellInfo::DmgClass, DOT, SpellBonusEntry::dot_damage, SpellInfo::EquippedItemClass, GetAuraEffect(), GetAuraEffectsByType(), GetCreatureTypeMask(), GetDoTsByCaster(), Object::GetGUID(), GetOwner(), GetOwnerGUID(), SpellInfo::GetSchoolMask(), Creature::GetSpellDamageMod(), GetSpellModOwner(), GetTotalAttackPowerValue(), GetTotalAuraModifier(), GetTotalAuraModifierByMiscMask(), GetTotalAuraModifierByMiscValue(), Object::GetTypeId(), HasAura(), HasAuraState(), HasAuraWithMechanic(), HasUnitTypeMask(), SpellInfo::Id, IsPet(), SpellInfo::IsRangedWeaponSpell(), IsTotem(), SpellInfo::Mechanic, MECHANIC_SLOW_ATTACK, MECHANIC_SNARE, RANGED_ATTACK, SPELL_ATTR3_NO_DONE_BONUS, SPELL_ATTR5_SPECIAL_ITEM_CLASS_CHECK, SPELL_ATTR6_NO_DONE_PCT_DAMAGE_MODS, SPELL_AURA_DUMMY, SPELL_AURA_MELEE_ATTACK_POWER_ATTACKER_BONUS, SPELL_AURA_MOD_DAMAGE_DONE_FOR_MECHANIC, SPELL_AURA_MOD_DAMAGE_DONE_VERSUS, SPELL_AURA_MOD_DAMAGE_DONE_VERSUS_AURASTATE, SPELL_AURA_MOD_DAMAGE_PERCENT_DONE, SPELL_AURA_MOD_FLAT_SPELL_DAMAGE_VERSUS, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_AURA_PERIODIC_DAMAGE, SPELL_AURA_RANGED_ATTACK_POWER_ATTACKER_BONUS, SPELL_DAMAGE_CLASS_MELEE, SPELL_SCHOOL_MASK_ARCANE, SpellBaseDamageBonusDone(), SPELLFAMILY_DRUID, SPELLFAMILY_MAGE, SPELLFAMILY_PRIEST, SPELLFAMILY_WARLOCK, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, SPELLMOD_BONUS_MULTIPLIER, SPELLMOD_DAMAGE, SPELLMOD_DOT, sSpellMgr, Object::ToCreature(), Object::ToPlayer(), TYPEID_UNIT, Unit(), and UNIT_MASK_GUARDIAN.
Referenced by Aura::HandleAuraSpecificMods(), spell_monk_diffuse_magic::spell_monk_diffuse_magic_SpellScript::HandleOnHit(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandleProcTriggerDamageAuraProc(), and SpellNonMeleeDamageLog().
| uint32 Unit::SpellDamageBonusTaken | ( | Unit * | caster, |
| SpellInfo const * | spellProto, | ||
| uint32 | pdamage, | ||
| DamageEffectType | damagetype, | ||
| uint32 | stack = 1 ) const |
Definition at line 258 of file UnitCombatBonus.cpp.
References AddPct(), CalculateDefaultCoefficient(), CalculateLevelPenalty(), CalculatePct(), DIRECT_DAMAGE, SpellBonusEntry::direct_damage, DOT, SpellBonusEntry::dot_damage, SpellInfo::GetAllEffectsMechanicMask(), GetAuraEffectsByType(), Object::GetGUID(), SpellInfo::GetSchoolMask(), GetSpellModOwner(), GetTotalAuraMultiplierByMiscMask(), Object::GetTypeId(), SpellInfo::Id, SPELL_AURA_DUMMY, SPELL_AURA_MOD_DAMAGE_FROM_CASTER, SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN, SPELL_AURA_MOD_IGNORE_TARGET_RESIST, SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCENT, SPELL_SCHOOL_MASK_NORMAL, SpellBaseDamageBonusTaken(), SPELLMOD_BONUS_MULTIPLIER, sSpellMgr, TYPEID_PLAYER, and Unit().
Referenced by DealMeleeDamage(), Aura::HandleAuraSpecificMods(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), AuraEffect::HandleProcTriggerDamageAuraProc(), and SpellNonMeleeDamageLog().
| uint32 Unit::SpellHealingBonusDone | ( | Unit * | victim, |
| SpellInfo const * | spellProto, | ||
| uint32 | healamount, | ||
| DamageEffectType | damagetype, | ||
| uint32 | stack = 1 ) const |
Definition at line 357 of file UnitCombatBonus.cpp.
References AddPct(), SpellBonusEntry::ap_bonus, SpellBonusEntry::ap_dot_bonus, SpellEffectInfo::ApplyAuraName, BASE_ATTACK, CalculateDefaultCoefficient(), CalculateLevelPenalty(), SpellBonusEntry::direct_damage, SpellInfo::DmgClass, DOT, SpellBonusEntry::dot_damage, SpellEffectInfo::Effect, SpellInfo::Effects, GetAppliedAuras(), GetAuraEffectsByType(), Aura::GetCasterGUID(), Object::GetGUID(), GetOwner(), SpellInfo::GetSchoolMask(), Aura::GetSpellInfo(), GetSpellModOwner(), Aura::GetStackAmount(), GetTotalAttackPowerValue(), Object::GetTypeId(), SpellInfo::Id, SpellInfo::IsRangedWeaponSpell(), IsTotem(), MAX_SPELL_EFFECTS, RANGED_ATTACK, SPELL_AURA_MOD_HEALING_DONE_PERCENT, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SPELL_AURA_PERIODIC_HEALTH_FUNNEL, SPELL_AURA_PERIODIC_LEECH, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_NONE, SPELL_EFFECT_HEALTH_LEECH, SpellBaseHealingBonusDone(), SPELLFAMILY_DRUID, SPELLFAMILY_POTION, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SPELLMOD_BONUS_MULTIPLIER, SPELLMOD_DAMAGE, SPELLMOD_DOT, sSpellMgr, TYPEID_UNIT, and Unit().
Referenced by Spell::EffectHeal(), AuraEffect::HandlePeriodicHealAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
| uint32 Unit::SpellHealingBonusTaken | ( | Unit * | caster, |
| SpellInfo const * | spellProto, | ||
| uint32 | healamount, | ||
| DamageEffectType | damagetype, | ||
| uint32 | stack = 1 ) const |
Definition at line 481 of file UnitCombatBonus.cpp.
References AddPct(), SpellEffectInfo::ApplyAuraName, CalculateDefaultCoefficient(), CalculateLevelPenalty(), SpellBonusEntry::direct_damage, SpellInfo::DmgClass, DOT, SpellBonusEntry::dot_damage, SpellEffectInfo::Effect, SpellInfo::Effects, GetAuraEffect(), GetAuraEffectsByType(), Object::GetGUID(), GetMaxNegativeAuraModifier(), GetMaxPositiveAuraModifier(), SpellInfo::GetSchoolMask(), GetSpellModOwner(), SpellInfo::Id, MAX_SPELL_EFFECTS, SPELL_AURA_MOD_HEALING_PCT, SPELL_AURA_MOD_HEALING_RECEIVED, SPELL_AURA_MOD_HOT_PCT, SPELL_AURA_PERIODIC_HEAL, SPELL_AURA_PERIODIC_HEALTH_FUNNEL, SPELL_AURA_PERIODIC_LEECH, SPELL_DAMAGE_CLASS_NONE, SPELL_EFFECT_HEALTH_LEECH, SpellBaseHealingBonusTaken(), SPELLFAMILY_DRUID, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SPELLMOD_BONUS_MULTIPLIER, sSpellMgr, and Unit().
Referenced by spell_dru_lifebloom::spell_dru_lifebloom_AuraScript::AfterRemove(), spell_sha_earth_shield::spell_sha_earth_shield_AuraScript::CalculateAmount(), spell_pri_renew::spell_pri_renew_AuraScript::HandleApplyEffect(), AuraEffect::HandlePeriodicHealAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
| SpellMissInfo Unit::SpellHitResult | ( | Unit * | victim, |
| SpellInfo const * | spellInfo, | ||
| bool | canReflect = false ) |
Definition at line 1007 of file Unit.cpp.
References BASE_ATTACK, SpellInfo::DmgClass, GetAuraEffectsByType(), SpellInfo::GetSchoolMask(), GetTotalAuraModifier(), Object::GetTypeId(), IsHostileTo(), IsImmunedToDamage(), IsImmunedToSpell(), Creature::IsInEvadeMode(), SpellInfo::IsPositive(), MagicSpellHitResult(), MeleeSpellHitResult(), PROC_EX_REFLECT, PROC_FLAG_NONE, PROC_FLAG_TAKEN_SPELL_MAGIC_DMG_CLASS_NEG, ProcDamageAndSpell(), roll_chance_i(), SPELL_AURA_REFLECT_SPELLS, SPELL_AURA_REFLECT_SPELLS_SCHOOL, SPELL_DAMAGE_CLASS_MAGIC, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_NONE, SPELL_DAMAGE_CLASS_RANGED, SPELL_MISS_EVADE, SPELL_MISS_IMMUNE, SPELL_MISS_NONE, SPELL_MISS_REFLECT, Object::ToCreature(), TYPEID_UNIT, and Unit().
Referenced by DealMeleeDamage(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), and AuraEffect::HandlePeriodicManaLeechAuraTick().
Definition at line 444 of file UnitCombat.cpp.
References SpellNonMeleeDamage::absorb, CalculateSpellDamageTaken(), SpellNonMeleeDamage::damage, DealDamageMods(), DealSpellDamage(), SpellInfo::Id, SpellInfo::SchoolMask, SendSpellNonMeleeDamageLog(), SPELL_DIRECT_DAMAGE, SpellDamageBonusDone(), SpellDamageBonusTaken(), sSpellMgr, SpellNonMeleeDamage::target, and Unit().
Referenced by misc_commandscript::HandleDamageCommand().
|
inline |
Definition at line 2690 of file Unit.h.
References m_reactiveTimer, and REACTIVE_TIMER_START.
Referenced by ProcDamageAndSpellFor().
| void Unit::StopAttackFaction | ( | uint32 | faction_id | ) |
Definition at line 8939 of file Unit.cpp.
References AttackStop(), HostileRefManager::deleteReferencesForFaction(), getAttackers(), getHostileRefManager(), Object::GetTypeId(), GetVictim(), InterruptNonMeleeSpells(), IsNonMeleeSpellCasted(), m_Controlled, Player::SendAttackSwingCancelAttack(), Object::ToPlayer(), TYPEID_PLAYER, and Unit().
Referenced by AuraEffect::HandleForceReaction().
| void Unit::StopMoving | ( | ) |
-------—End of Pet responses methods-------—
Definition at line 5877 of file Unit.cpp.
References ClearUnitState(), Object::IsInWorld(), movespline, Movement::MoveSplineInit::Stop(), and UNIT_STATE_MOVING.
Referenced by ConfusedMovementGenerator< T >::DoFinalize(), FleeingMovementGenerator< Creature >::DoFinalize(), FlightPathMovementGenerator::DoFinalize(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandlePetActionHelper(), WorldSession::HandleQuestgiverHelloOpcode(), RotateMovementGenerator::Initialize(), IdleMovementGenerator::Reset(), ResetCryForTheMoonActor(), WorldSession::SendListInventory(), setDeathState(), SetStunned(), and LuaUnit::StopMoving().
| void Unit::TauntApply | ( | Unit * | victim | ) |
Definition at line 4481 of file Unit.cpp.
References Creature::AI(), ASSERT, UnitAI::AttackStart(), CanHaveThreatList(), Object::GetTypeId(), GetVictim(), Creature::HasReactState(), IsAIEnabled, Player::IsGameMaster(), REACT_PASSIVE, SetInFront(), Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, and Unit().
Referenced by AuraEffect::HandleModTaunt().
| void Unit::TauntFadeOut | ( | Unit * | taunter | ) |
Definition at line 4509 of file Unit.cpp.
References Creature::AI(), ASSERT, UnitAI::AttackStart(), CanHaveThreatList(), CreatureAI::EnterEvadeMode(), Object::GetTypeId(), GetVictim(), Creature::HasReactState(), IsAIEnabled, Player::IsGameMaster(), m_ThreatManager, REACT_PASSIVE, Creature::SelectVictim(), SetInFront(), Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, and Unit().
Referenced by AuraEffect::HandleModTaunt().
|
inline |
Definition at line 2803 of file Unit.h.
References IsPet().
Referenced by spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArcaneResistanceAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateArcaneResistanceAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArmorAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateArmorAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateAttackPowerAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateAttackPowerAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateDamageDoneAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateDamageDoneAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateFireResistanceAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateFireResistanceAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateFrostResistanceAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateFrostResistanceAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateIntellectAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateNatureResistanceAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateNatureResistanceAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateShadowResistanceAmount(), spell_warl_pet_scaling_04::spell_warl_pet_scaling_04_AuraScript::CalculateShadowResistanceAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateStaminaAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateStaminaAmount(), DealDamage(), AuraEffect::HandleModPossessPet(), WorldSession::HandlePetCastSpellOpcode(), reset_commandscript::HandleResetTalentsCommand(), ModifyAuraState(), SetHealth(), SetMaxHealth(), SetMaxPower(), SetPower(), and setPowerType().
|
inline |
|
inline |
Definition at line 2821 of file Unit.h.
References IsSummon().
Referenced by _ExitVehicle(), spell_mage_ring_of_frost::spell_mage_ring_of_frost_AuraScript::Apply(), Creature::DespawnOrUnsummon(), CreatureAI::DoZoneInCombat(), WorldSession::HandleBattlePetQueryName(), WorldSession::HandleDismissCritter(), TempSummon::InitStats(), SpellClickInfo::IsFitToRequirements(), Kill(), BattlefieldWG::OnCreatureCreate(), RemoveAllControlled(), RemoveAllMinionsByEntry(), spell_gen_defend::spell_gen_defend_AuraScript::RemoveDummyFromDriver(), Creature::SelectVictim(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::SpellHitTarget(), and Player::VehicleSpellInitialize().
|
inline |
Definition at line 2825 of file Unit.h.
References IsSummon().
|
inline |
Definition at line 2812 of file Unit.h.
References IsTotem().
Referenced by _UnapplyAura(), Spell::EffectDestroyAllTotems(), WorldSession::HandleTotemDestroyed(), SetMinion(), and Spell::SummonGuardian().
|
inline |
| void Unit::TrackGameObject | ( | GameObject * | gameObj | ) |
| void Unit::TriggerAurasProcOnEvent | ( | AuraApplicationList * | myProcAuras, |
| AuraApplicationList * | targetProcAuras, | ||
| Unit * | actionTarget, | ||
| uint32 | typeMaskActor, | ||
| uint32 | typeMaskActionTarget, | ||
| uint32 | spellTypeMask, | ||
| uint32 | spellPhaseMask, | ||
| uint32 | hitMask, | ||
| Spell * | spell, | ||
| DamageInfo * | damageInfo, | ||
| HealInfo * | healInfo ) |
Definition at line 646 of file UnitProcEvent.cpp.
References GetProcAurasTriggeredOnEvent(), TriggerAurasProcOnEvent(), and Unit().
| void Unit::TriggerAurasProcOnEvent | ( | CalcDamageInfo & | damageInfo | ) |
Definition at line 640 of file UnitProcEvent.cpp.
References CalcDamageInfo::procAttacker, CalcDamageInfo::procEx, CalcDamageInfo::procVictim, CalcDamageInfo::target, and TriggerAurasProcOnEvent().
Referenced by TriggerAurasProcOnEvent(), and TriggerAurasProcOnEvent().
| void Unit::TriggerAurasProcOnEvent | ( | ProcEventInfo & | eventInfo, |
| AuraApplicationList & | procAuras ) |
Definition at line 665 of file UnitProcEvent.cpp.
| void Unit::UnsummonAllTotems | ( | ) |
Definition at line 2912 of file Unit.cpp.
References GetCreature(), WorldObject::GetMap(), m_SummonSlot, and MAX_SUMMON_SLOT.
Referenced by Player::ActivateSpec(), RemoveFromWorld(), and setDeathState().
|
virtual |
Reimplemented from WorldObject.
Definition at line 293 of file Unit.cpp.
References _UpdateSpells(), ASSERT, AURA_STATE_HEALTH_ABOVE_75_PERCENT, AURA_STATE_HEALTHLESS_20_PERCENT, AURA_STATE_HEALTHLESS_35_PERCENT, BASE_ATTACK, CanHaveThreatList(), ClearInCombat(), getAttackTimer(), getThreatManager(), Object::GetTypeId(), HealthAbovePct(), HealthBelowPct(), i_motionMaster, IsAlive(), IsControlledByPlayer(), IsInCombat(), Object::IsInWorld(), IsPet(), m_CombatTimer, m_Events, m_HostileRefManager, m_procDeep, ModifyAuraState(), OFF_ATTACK, RANGED_ATTACK, SendThreatListUpdate(), setAttackTimer(), Object::ToCreature(), TYPEID_PLAYER, UpdateReactives(), and UpdateSplineMovement().
Referenced by Creature::Update(), and Player::Update().
|
pure virtual |
|
pure virtual |
Implemented in Creature, Guardian, Player, and Totem.
Referenced by HandleStatModifier().
|
pure virtual |
Implemented in Creature, Guardian, Player, and Totem.
Referenced by HandleStatModifier().
| void Unit::UpdateAuraForGroup | ( | uint8 | slot | ) |
Definition at line 1759 of file UnitAuraState.cpp.
References Player::GetGroup(), GetOwner(), Object::GetTypeId(), GROUP_UPDATE_FLAG_AURAS, GROUP_UPDATE_FLAG_PET_AURAS, Pet::isControlled(), IsPet(), MAX_AURAS, Pet::SetAuraUpdateMaskForRaid(), Player::SetGroupUpdateFlag(), Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, and Unit().
Referenced by RemoveVisibleAura(), and SetVisibleAura().
| void Unit::UpdateCharmAI | ( | ) |
Definition at line 5491 of file Unit.cpp.
References Object::GetTypeId(), i_AI, i_disabledAI, IsCharmed(), isPossessed(), IsVehicle(), Object::ToCreature(), and TYPEID_PLAYER.
Referenced by Creature::Update().
|
pure virtual |
Implemented in Creature, Guardian, Player, and Totem.
Referenced by AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleModAttackSpeed(), and HandleStatModifier().
| void Unit::UpdateHeight | ( | float | newZ | ) |
Only server-side height update, does not broadcast to client.
Definition at line 8749 of file Unit.cpp.
References Position::GetPositionX(), Position::GetPositionY(), GetVehicleKit(), IsVehicle(), Position::Relocate(), and Vehicle::RelocatePassengers().
Referenced by SetHover().
| void Unit::UpdateInterruptMask | ( | ) |
Definition at line 512 of file Unit.cpp.
References CURRENT_CHANNELED_SPELL, m_currentSpells, m_interruptableAuras, m_interruptMask, and SPELL_STATE_CASTING.
Referenced by _UnapplyAura(), and RemoveAurasWithInterruptFlags().
|
pure virtual |
Implemented in Creature, Guardian, Player, and Totem.
Referenced by HandleStatModifier().
|
pure virtual |
Implemented in Creature, Guardian, Player, and Totem.
Referenced by HandleStatModifier().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 7567 of file Unit.cpp.
References WorldObject::AddToNotify(), WorldObject::GetVisibilityRange(), NOTIFY_VISIBILITY_CHANGED, WorldObject::UpdateObjectVisibility(), and WorldObject::VisitNearbyObject().
Referenced by Map::CreatureRelocation(), Map::CreatureRespawnRelocation(), AuraEffect::HandleAuraModFakeInebriation(), AuraEffect::HandleAuraModStalked(), AuraEffect::HandleModInvisibility(), AuraEffect::HandleModInvisibilityDetect(), AuraEffect::HandleModStealth(), AuraEffect::HandleModStealthDetect(), AuraEffect::HandleModStealthLevel(), npc_commandscript::HandleNpcSetPhaseGroup(), AuraEffect::HandlePhase(), AuraEffect::HandlePhaseGroup(), Map::MoveAllCreaturesInMoveList(), NearTeleportTo(), Creature::RemoveCorpse(), Creature::Respawn(), SetContestedPvP(), SetVisible(), and Player::UpdateObjectVisibility().
| void Unit::UpdateOrientation | ( | float | orientation | ) |
Only server-side orientation update, does not broadcast to client.
Definition at line 8741 of file Unit.cpp.
References GetVehicleKit(), IsVehicle(), Vehicle::RelocatePassengers(), and Position::SetOrientation().
Referenced by UpdatePosition().
| bool Unit::UpdatePosition | ( | const Position & | pos, |
| bool | teleport = false ) |
Definition at line 8735 of file Unit.cpp.
References Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and UpdatePosition().
|
virtual |
Reimplemented in Player.
Definition at line 8701 of file Unit.cpp.
References AURA_INTERRUPT_FLAG_MOVE, AURA_INTERRUPT_FLAG_TURNING, Map::CreatureRelocation(), WorldObject::GetMap(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Object::GetTypeId(), Skyfire::IsValidMapCoord(), Map::PlayerRelocation(), RemoveAurasWithInterruptFlags(), SF_LOG_DEBUG, Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, UpdateOrientation(), and UpdateUnderwaterState().
Referenced by WorldSession::HandleMovementOpcodes(), NearTeleportTo(), Player::StopCinematic(), Player::UpdatePosition(), UpdatePosition(), and UpdateSplinePosition().
| void Unit::UpdateReactives | ( | uint32 | p_time | ) |
Definition at line 6007 of file Unit.cpp.
References AURA_STATE_DEFENSE, AURA_STATE_HUNTER_PARRY, CLASS_HUNTER, CLASS_WARRIOR, Player::ClearComboPoints(), getClass(), Object::GetTypeId(), HasAuraState(), m_reactiveTimer, MAX_REACTIVE, ModifyAuraState(), REACTIVE_DEFENSE, REACTIVE_HUNTER_PARRY, REACTIVE_OVERPOWER, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Update().
|
pure virtual |
Implemented in Creature, Guardian, Player, and Totem.
Referenced by HandleStatModifier().
| void Unit::UpdateSpeed | ( | UnitMoveType | mtype, |
| bool | forced ) |
Definition at line 4173 of file Unit.cpp.
References AddPct(), baseMoveSpeed, GetCharmer(), GetCharmerOrOwner(), Creature::GetCreatureTemplate(), WorldObject::GetDistance(), GetMaxNegativeAuraModifier(), GetMaxPositiveAuraModifier(), GetSpeedRate(), GetTotalAuraModifier(), GetTotalAuraMultiplier(), Object::GetTypeId(), GetVehicle(), GetVehicleBase(), IsControlledByPlayer(), IsGuardian(), IsInCombat(), IsMounted(), IsPet(), MOVE_FLIGHT, MOVE_FLIGHT_BACK, MOVE_RUN, MOVE_RUN_BACK, MOVE_SWIM, MOVE_SWIM_BACK, MOVE_WALK, playerBaseMoveSpeed, SetSpeed(), SF_LOG_ERROR, CreatureTemplate::speed_run, SPELL_AURA_MOD_DECREASE_SPEED, SPELL_AURA_MOD_FLIGHT_SPEED_NOT_STACK, SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_AURA_MOD_INCREASE_MOUNTED_SPEED, SPELL_AURA_MOD_INCREASE_SPEED, SPELL_AURA_MOD_INCREASE_SWIM_SPEED, SPELL_AURA_MOD_INCREASE_VEHICLE_FLIGHT_SPEED, SPELL_AURA_MOD_MINIMUM_SPEED, SPELL_AURA_MOD_MOUNTED_FLIGHT_SPEED_ALWAYS, SPELL_AURA_MOD_MOUNTED_SPEED_ALWAYS, SPELL_AURA_MOD_MOUNTED_SPEED_NOT_STACK, SPELL_AURA_MOD_SPEED_ALWAYS, SPELL_AURA_MOD_SPEED_NOT_STACK, SPELL_AURA_MOD_VEHICLE_SPEED_ALWAYS, SPELL_AURA_USE_NORMAL_MOVEMENT_SPEED, Object::ToCreature(), TYPEID_PLAYER, TYPEID_UNIT, Unit(), and UpdateSpeed().
Referenced by FollowMovementGenerator< T >::_updateSpeed(), AttackStop(), Creature::DoFleeToGetAssistance(), AuraEffect::HandleAuraModDecreaseSpeed(), AuraEffect::HandleAuraModIncreaseFlightSpeed(), AuraEffect::HandleAuraModIncreaseSpeed(), AuraEffect::HandleAuraModIncreaseSwimSpeed(), AuraEffect::HandleAuraModUseNormalSpeed(), Creature::setDeathState(), SetInCombatState(), and UpdateSpeed().
|
private |
Definition at line 366 of file Unit.cpp.
References DisableSpline(), m_movesplineTimer, movespline, and UpdateSplinePosition().
Referenced by Update().
|
private |
Definition at line 382 of file Unit.cpp.
References Creature::CanFly(), Creature::GetCreatureTemplate(), GetDirectTransport(), Map::GetHeight(), WorldObject::GetMap(), Position::GetOrientation(), WorldObject::GetPhaseMask(), GetTransGUID(), Object::GetTypeId(), HasUnitMovementFlag(), HasUnitState(), INHABIT_AIR, CreatureTemplate::InhabitType, INVALID_HEIGHT, WorldObject::m_movementInfo, m_movesplineTimer, Position::m_positionX, Position::m_positionY, Position::m_positionZ, MOVEMENTFLAG_CAN_FLY, MOVEMENTFLAG_DISABLE_GRAVITY, MOVEMENTFLAG_FLYING, MOVEMENTFLAG_HOVER, movespline, Movement::Location::orientation, Position::SetOrientation(), Skyfire::PetTransport::ShouldApplySplineGroundClamp(), Object::ToCreature(), TYPEID_UNIT, UNIT_STATE_CANNOT_TURN, WorldObject::UpdateAllowedPositionZ(), and UpdatePosition().
Referenced by UpdateSplineMovement().
|
pure virtual |
Implemented in Creature, Guardian, Player, and Totem.
Referenced by HandleStatModifier().
|
virtual |
Reimplemented in Player.
Definition at line 1491 of file Unit.cpp.
References _lastLiquid, AURA_INTERRUPT_FLAG_NOT_ABOVEWATER, AURA_INTERRUPT_FLAG_NOT_UNDERWATER, CastSpell(), LiquidData::entry, Map::getLiquidStatus(), HasAura(), IsPet(), IsVehicle(), LIQUID_MAP_IN_WATER, LIQUID_MAP_UNDER_WATER, MAP_ALL_LIQUIDS, RemoveAurasDueToSpell(), RemoveAurasWithInterruptFlags(), sLiquidTypeStore, and LiquidTypeEntry::SpellId.
Referenced by UpdatePosition().
| void Unit::WriteMovementInfo | ( | WorldPacket & | data, |
| Movement::ExtraMovementStatusElement * | extras = NULL ) |
Definition at line 8407 of file Unit.cpp.
References ASSERT, MovementInfo::JumpInfo::cosAngle, MovementInfo::JumpInfo::fallTime, ByteBuffer::FlushBits(), GetExtraUnitMovementFlags(), Object::GetGUID(), GetMovementStatusElementsSequence(), WorldPacket::GetOpcode(), GetOpcodeNameForLogging(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetTransGUID(), WorldObject::GetTransOffsetO(), WorldObject::GetTransOffsetX(), WorldObject::GetTransOffsetY(), WorldObject::GetTransOffsetZ(), WorldObject::GetTransSeat(), WorldObject::GetTransTime(), Object::GetUInt32Value(), GetUnitMovementFlags(), HasExtraUnitMovementFlag(), HasUnitMovementFlag(), IsSplineEnabled(), MovementInfo::jump, m_movementCounter, WorldObject::m_movementInfo, MOVEMENTFLAG2_ALWAYS_ALLOW_PITCHING, MOVEMENTFLAG_FALLING, MOVEMENTFLAG_FLYING, MOVEMENTFLAG_SPLINE_ELEVATION, MOVEMENTFLAG_SWIMMING, movespline, MSECount, MSECounter, MSEEnd, MSEExtraElement, MSEFallCosAngle, MSEFallHorizontalSpeed, MSEFallSinAngle, MSEFallTime, MSEFallVerticalSpeed, MSEFlushBits, MSEForces, MSEForcesCount, MSEGuidByte0, MSEGuidByte1, MSEGuidByte2, MSEGuidByte3, MSEGuidByte4, MSEGuidByte5, MSEGuidByte6, MSEGuidByte7, MSEHasCounter, MSEHasFallData, MSEHasFallDirection, MSEHasGuidByte0, MSEHasGuidByte1, MSEHasGuidByte2, MSEHasGuidByte3, MSEHasGuidByte4, MSEHasGuidByte5, MSEHasGuidByte6, MSEHasGuidByte7, MSEHasMountDisplayId, MSEHasMovementFlags, MSEHasMovementFlags2, MSEHasOrientation, MSEHasPitch, MSEHasSpline, MSEHasSplineElevation, MSEHasTimestamp, MSEHasTransportData, MSEHasTransportGuidByte0, MSEHasTransportGuidByte1, MSEHasTransportGuidByte2, MSEHasTransportGuidByte3, MSEHasTransportGuidByte4, MSEHasTransportGuidByte5, MSEHasTransportGuidByte6, MSEHasTransportGuidByte7, MSEHasTransportTime2, MSEHasTransportTime3, MSEHasTransportVehicleId, MSEMountDisplayIdWithCheck, MSEMountDisplayIdWithoutCheck, MSEMovementFlags, MSEMovementFlags2, MSEOneBit, MSEOrientation, MSEOrientationWithoutCheck, MSEPitch, MSEPositionX, MSEPositionY, MSEPositionZ, MSESplineElevation, MSETimestamp, MSETransportGuidByte0, MSETransportGuidByte1, MSETransportGuidByte2, MSETransportGuidByte3, MSETransportGuidByte4, MSETransportGuidByte5, MSETransportGuidByte6, MSETransportGuidByte7, MSETransportOrientation, MSETransportPositionX, MSETransportPositionY, MSETransportPositionZ, MSETransportSeat, MSETransportTime, MSETransportTime2, MSETransportTime3, MSETransportVehicleId, MSEUintCount, MSEZeroBit, MovementInfo::pitch, Movement::PrintInvalidSequenceElement(), SF_LOG_ERROR, MovementInfo::JumpInfo::sinAngle, MovementInfo::splineElevation, MovementInfo::time, MovementInfo::TransportInfo::time2, MovementInfo::TransportInfo::time3, MovementInfo::transport, UNIT_FIELD_MOUNT_DISPLAY_ID, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), ByteBuffer::WriteByteSeq(), Movement::ExtraMovementStatusElement::WriteNextElement(), MovementInfo::JumpInfo::xyspeed, and MovementInfo::JumpInfo::zspeed.
Referenced by debug_commandscript::HandleDebugMoveflagsCommand(), WorldSession::HandleMovementOpcodes(), and SendTeleportPacket().
|
friend |
Definition at line 2734 of file Unit.h.
References VehicleJoinEvent.
Referenced by VehicleJoinEvent.
|
private |
Definition at line 2986 of file Unit.h.
Referenced by SetCharm(), and Unit().
|
private |
Definition at line 2988 of file Unit.h.
Referenced by GetLastDamagedTime(), SetLastDamagedTime(), and Unit().
|
protected |
Definition at line 2936 of file Unit.h.
Referenced by Player::HandleDrowning(), Unit(), Player::UpdateUnderwaterState(), and UpdateUnderwaterState().
|
private |
Definition at line 2981 of file Unit.h.
Referenced by GetRedirectThreatPercent(), GetRedirectThreatTarget(), ModifyRedirectThreat(), SetRedirectThreat(), and Unit().
|
protected |
Definition at line 2867 of file Unit.h.
Referenced by Creature::AI(), Creature::AIM_Initialize(), GetAI(), SetAI(), Unit(), Creature::Update(), UpdateCharmAI(), and Creature::~Creature().
|
protected |
Definition at line 2867 of file Unit.h.
Referenced by Unit(), and UpdateCharmAI().
|
protected |
Definition at line 2925 of file Unit.h.
Referenced by GetMotionMaster(), GetMotionMaster(), Player::KillPlayer(), Creature::Motion_Initialize(), Creature::setDeathState(), Unit(), and Update().
| bool Unit::IsAIEnabled |
Definition at line 2735 of file Unit.h.
Referenced by Creature::AIM_Initialize(), Creature::CanAlwaysSee(), Creature::CanCreatureAttack(), CombatStart(), CreatureUnitRelocationWorker(), DealDamage(), DealHeal(), SummonList::DoAction(), Spell::DoAllEffectOnTarget(), SummonList::DoZoneInCombat(), AssistDelayEvent::Execute(), spell_thaddius_pos_neg_charge::spell_thaddius_pos_neg_charge_SpellScript::HandleDamage(), WorldSession::HandlePetActionHelper(), HandleSpellClick(), TempSummon::InitSummon(), Kill(), spell_marrowgar_bone_spike_graveyard::spell_marrowgar_bone_spike_graveyard_SpellScript::Load(), spell_tyrannus_overlord_brand::spell_tyrannus_overlord_brand_AuraScript::OnApply(), spell_tyrannus_overlord_brand::spell_tyrannus_overlord_brand_AuraScript::OnRemove(), Creature::RemoveCorpse(), Creature::Respawn(), SetInCombatState(), TauntApply(), TauntFadeOut(), Unit(), TempSummon::UnSummon(), Creature::Update(), and boss_malygos::boss_malygosAI::UpdateAI().
| uint64 Unit::LastCharmerGUID |
Definition at line 2736 of file Unit.h.
Referenced by RemoveCharmedBy(), Unit(), and Creature::Update().
|
protected |
Definition at line 2900 of file Unit.h.
Referenced by _ApplyAllAuraStatMods(), _CreateAuraApplication(), _RemoveAllAuraStatMods(), _RemoveNoStackAurasDueToAura(), _UnapplyAura(), _UnapplyAura(), GetAppliedAuras(), GetAppliedAuras(), GetAuraApplication(), GetAuraCount(), GetAuraEffect(), HasAuraEffect(), HasAuraWithMechanic(), HasNegativeAuraWithAttribute(), OutDebugInfo(), RemoveAllAuras(), RemoveAllAurasExceptType(), RemoveAllAurasExceptType(), RemoveAllAurasOnDeath(), RemoveAllAurasRequiringDeadTarget(), RemoveAreaAurasDueToLeaveWorld(), RemoveArenaAuras(), RemoveAura(), RemoveAura(), RemoveAurasDueToItemSpell(), RemoveAurasDueToSpell(), RemoveAurasWithAttribute(), RemoveAurasWithFamily(), RemoveAurasWithMechanic(), RemoveNotOwnSingleTargetAuras(), and ~Unit().
|
protected |
Definition at line 2880 of file Unit.h.
Referenced by _addAttacker(), _removeAttacker(), getAttackerForHelper(), getAttackers(), RemoveAllAttackers(), Creature::SelectVictim(), and ~Unit().
|
protected |
Definition at line 2881 of file Unit.h.
Referenced by Attack(), AttackStop(), GetVictim(), Unit(), and ~Unit().
|
protected |
Definition at line 2876 of file Unit.h.
Referenced by ApplyAttackTimePercentMod(), getAttackTimer(), isAttackReady(), resetAttackTimer(), setAttackTimer(), and Unit().
|
protected |
Definition at line 2911 of file Unit.h.
Referenced by Player::GetDodgeFromAgility(), GetModifierValue(), GetTotalAuraModValue(), GetTotalStatValue(), HandleStatModifier(), SetModifierValue(), and Unit().
|
protected |
Definition at line 2908 of file Unit.h.
Referenced by _CreateAuraApplication(), _UnapplyAura(), BuildAuraStateUpdateForTarget(), and HasAuraState().
|
protected |
Definition at line 2902 of file Unit.h.
Referenced by _UpdateSpells(), RemoveOwnedAura(), and Unit().
|
protected |
Definition at line 2874 of file Unit.h.
Referenced by _UpdateAutoRepeatSpell(), SetCurrentCastedSpell(), and Unit().
| int32 Unit::m_baseSpellCritChance |
Definition at line 2390 of file Unit.h.
Referenced by AuraEffect::HandleAuraModCritPct(), AuraEffect::HandleModSpellCritChance(), isSpellCrit(), and Unit().
| bool Unit::m_canDualWield |
Definition at line 1454 of file Unit.h.
Referenced by CanDualWield(), haveOffhandWeapon(), Player::Player(), Player::removeSpell(), SetCanDualWield(), and Unit().
|
protected |
Definition at line 2913 of file Unit.h.
Referenced by CanModifyStats(), SetCanModifyStats(), and Unit().
|
protected |
Definition at line 2918 of file Unit.h.
Referenced by Pet::_LoadAuras(), Pet::_LoadSpellCooldowns(), Pet::_LoadSpells(), Pet::_SaveAuras(), Pet::_SaveSpellCooldowns(), Pet::_SaveSpells(), Pet::addSpell(), Pet::CleanupActionBar(), DeleteCharmInfo(), GetCharmInfo(), Creature::GetPetAutoSpellOnPos(), InitCharmInfo(), Pet::InitPetCreateSpells(), Guardian::InitStats(), Pet::LoadPetFromDB(), Pet::removeSpell(), Pet::SavePetToDB(), Unit(), and ~Unit().
|
private |
Definition at line 2983 of file Unit.h.
Referenced by _AddAura(), _CreateAuraApplication(), CleanupBeforeRemoveFromMap(), and Unit().
|
private |
Definition at line 2970 of file Unit.h.
Referenced by ClearInCombat(), GetCombatTimer(), SetInCombatState(), Unit(), and Update().
|
private |
Definition at line 2979 of file Unit.h.
Referenced by AddComboPointHolder(), ClearComboPointHolders(), and RemoveComboPointHolder().
| ControlList Unit::m_Controlled |
Definition at line 2132 of file Unit.h.
Referenced by CombatStopWithPets(), GetAllMinionsByEntry(), HandleDummyAuraProc(), isAttackingPlayer(), OutDebugInfo(), RemoveAllControlled(), RemoveAllMinionsByEntry(), SetCharm(), SetInCombatState(), SetMinion(), SetPhased(), SetPhaseMask(), Player::SetPvP(), StopAttackFaction(), Player::UpdatePvPState(), and ~Unit().
| bool Unit::m_ControlledByPlayer |
Definition at line 2758 of file Unit.h.
Referenced by TempSummon::InitStats(), IsControlledByPlayer(), Player::Player(), SetCharm(), SetMinion(), and Unit().
|
protected |
Definition at line 2878 of file Unit.h.
Referenced by GetCreateStat(), SetCreateStat(), and Unit().
|
protected |
Definition at line 2895 of file Unit.h.
Referenced by _UpdateAutoRepeatSpell(), _UpdateSpells(), AttackerStateUpdate(), CastStop(), DealDamage(), FindCurrentSpellBySpellId(), FinishSpell(), GetCurrentSpell(), GetCurrentSpell(), InterruptNonMeleeSpells(), InterruptSpell(), IsNonMeleeSpellCasted(), RemoveAurasWithInterruptFlags(), Player::RestoreAllSpellMods(), SetCurrentCastedSpell(), Unit(), UpdateInterruptMask(), and ~Unit().
|
protected |
Definition at line 2883 of file Unit.h.
Referenced by getDeathState(), WorldSession::HandlePlayerLogin(), IsAlive(), isDead(), isDying(), Creature::LoadCreatureFromDB(), Player::LoadFromDB(), setDeathState(), Unit(), Creature::Update(), Pet::Update(), Player::Update(), and TempSummon::Update().
|
private |
Definition at line 2973 of file Unit.h.
Referenced by ApplyDiminishingAura(), ClearDiminishings(), GetDiminishing(), and IncrDiminishing().
|
private |
Definition at line 2984 of file Unit.h.
Referenced by IsDuringRemoveFromWorld(), RemoveFromWorld(), Unit(), and ~Unit().
|
protected |
Definition at line 2888 of file Unit.h.
Referenced by _RegisterDynObject(), _UnregisterDynObject(), GetDynObject(), RemoveAllDynObjects(), RemoveDynObject(), and ~Unit().
| EventProcessor Unit::m_Events |
Definition at line 2396 of file Unit.h.
Referenced by Vehicle::AddPassenger(), Creature::CallAssistance(), CleanupBeforeRemoveFromMap(), Creature::ForcedDespawn(), LuaUnit::RegisterEvent(), LuaUnit::RemoveEventById(), LuaUnit::RemoveEvents(), TempSummon::UnSummon(), Totem::UnSummon(), Update(), boss_algalon_the_observer::boss_algalon_the_observerAI::UpdateAI(), boss_the_lich_king::boss_the_lich_kingAI::UpdateAI(), and npc_egg_pile::npc_egg_pileAI::UpdateAI().
| uint32 Unit::m_extraAttacks |
Definition at line 1453 of file Unit.h.
Referenced by Player::CastItemCombatSpell(), HandleAuraProcOnPowerAmount(), HandleProcExtraAttackFor(), HandleProcTriggerSpell(), and Unit().
|
private |
Definition at line 2977 of file Unit.h.
Referenced by addFollower().
|
protected |
Definition at line 2891 of file Unit.h.
Referenced by _UpdateSpells(), AddGameObject(), GetGameObject(), RemoveAllGameObjects(), RemoveGameObject(), RemoveGameObject(), TrackGameObject(), and ~Unit().
|
private |
Definition at line 2975 of file Unit.h.
Referenced by addHatedBy(), getHostileRefManager(), Unit(), and Update().
|
protected |
Definition at line 2907 of file Unit.h.
Referenced by _CreateAuraApplication(), _UnapplyAura(), HasNegativeAuraWithInterruptFlag(), RemoveAurasWithInterruptFlags(), and UpdateInterruptMask().
|
protected |
Definition at line 2909 of file Unit.h.
Referenced by AddInterruptMask(), GetInterruptMask(), HasNegativeAuraWithInterruptFlag(), RemoveAurasWithInterruptFlags(), Unit(), and UpdateInterruptMask().
| uint32 Unit::m_lastSanctuaryTime |
Definition at line 2446 of file Unit.h.
Referenced by Spell::DoAllEffectOnTarget(), and Unit().
| float Unit::m_modAttackSpeedPct[3] |
Definition at line 2393 of file Unit.h.
Referenced by ApplyAttackTimePercentMod(), GetAttackTime(), ModSpellCastTime(), resetAttackTimer(), SetAttackTime(), and Unit().
|
protected |
Definition at line 2905 of file Unit.h.
Referenced by _RegisterAuraEffect(), GetAuraEffectsByType(), GetDiseasesByCaster(), HasAuraType(), and RemoveAurasByType().
| float Unit::m_modMeleeHitChance |
Definition at line 2387 of file Unit.h.
Referenced by AuraEffect::HandleModHitChance(), MeleeSpellMissChance(), Unit(), and Player::UpdateMeleeHitChances().
| float Unit::m_modRangedHitChance |
Definition at line 2388 of file Unit.h.
Referenced by AuraEffect::HandleModHitChance(), MeleeSpellMissChance(), Unit(), and Player::UpdateRangedHitChances().
| float Unit::m_modSpellHitChance |
Definition at line 2389 of file Unit.h.
Referenced by AuraEffect::HandleModSpellHitChance(), MagicSpellHitResult(), Unit(), and Player::UpdateSpellHitChances().
| Player* Unit::m_movedPlayer |
Definition at line 2156 of file Unit.h.
Referenced by CalcSpellDuration(), SpellEffectInfo::CalcValue(), Player::Player(), Unit(), and Creature::UpdateMovementFlags().
|
protected |
Incrementing counter used in movement packets.
Definition at line 2966 of file Unit.h.
Referenced by GetMovementCounter(), SendSetVehicleRecId(), Player::SendTimeSync(), Unit(), and WriteMovementInfo().
|
private |
Definition at line 2971 of file Unit.h.
Referenced by UpdateSplineMovement(), and UpdateSplinePosition().
| uint64 Unit::m_ObjectSlot[MAX_GAMEOBJECT_SLOT] |
Definition at line 2375 of file Unit.h.
Referenced by RemoveGameObject(), ReplaceSurveyObjectSlot(), and Unit().
|
protected |
Definition at line 2897 of file Unit.h.
Referenced by SetAutoattackOverrideRange(), Unit(), and Player::Update().
|
protected |
Definition at line 2896 of file Unit.h.
Referenced by AttackerStateUpdate(), SetAutoattackOverrideSpell(), Unit(), and Player::Update().
|
protected |
Definition at line 2899 of file Unit.h.
Referenced by _AddAura(), Pet::_SaveAuras(), Player::_SaveAuras(), _UpdateSpells(), DelayOwnedAuras(), GetOwnedAura(), GetOwnedAuras(), GetOwnedAuras(), RemoveAllAuras(), RemoveAllAurasExceptType(), RemoveAllAurasExceptType(), RemoveAllAurasOnDeath(), RemoveAllAurasRequiringDeadTarget(), RemoveAreaAurasDueToLeaveWorld(), RemoveAuraFromStack(), RemoveAurasDueToSpellByDispel(), RemoveAurasDueToSpellBySteal(), Player::RemoveItemDependentAurasAndCasts(), RemoveOwnedAura(), RemoveOwnedAura(), RemoveOwnedAura(), Unit(), Player::UpdateAreaDependentAuras(), and ~Unit().
| PetAuraSet Unit::m_petAuras |
Definition at line 2708 of file Unit.h.
Referenced by AddPetAura(), Pet::CastPetAuras(), Pet::IsPetAura(), and RemovePetAura().
|
protected |
|
protected |
Definition at line 2927 of file Unit.h.
Referenced by ClearAllReactives(), StartReactiveTimer(), Unit(), and UpdateReactives().
|
protected |
Definition at line 2928 of file Unit.h.
Referenced by Creature::Creature(), Player::Player(), Player::Regenerate(), Player::RegenerateAll(), Unit(), Creature::Update(), and Player::Update().
|
protected |
Definition at line 2901 of file Unit.h.
Referenced by _DeleteRemovedAuras(), RemoveOwnedAura(), and ~Unit().
|
protected |
Definition at line 2903 of file Unit.h.
Referenced by _UnapplyAura(), CalcHealAbsorb(), RemoveAurasByType(), RemoveAurasWithInterruptFlags(), and Unit().
|
protected |
Definition at line 2906 of file Unit.h.
Referenced by GetSingleCastAuras(), and GetSingleCastAuras().
|
protected |
Definition at line 2919 of file Unit.h.
Referenced by AddPlayerToVision(), GetSharedVisionList(), HasSharedVision(), RemovePlayerFromVision(), and ~Unit().
|
protected |
Definition at line 2916 of file Unit.h.
Referenced by GetSpeed(), GetSpeedRate(), SetMinion(), SetSpeed(), and Unit().
| SpellImmuneList Unit::m_spellImmune[MAX_SPELL_IMMUNITY] |
Definition at line 2445 of file Unit.h.
Referenced by ApplySpellImmune(), GetMechanicImmunityMask(), GetSchoolImmunityMask(), IsImmunedToDamage(), IsImmunedToDamage(), IsImmunedToSpell(), IsImmunedToSpellEffect(), and Unit().
|
private |
Definition at line 2969 of file Unit.h.
Referenced by AddUnitState(), ClearUnitState(), HasUnitState(), and Unit().
| uint64 Unit::m_SummonSlot[MAX_SUMMON_SLOT] |
Definition at line 2374 of file Unit.h.
Referenced by GetPetGUID(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), TempSummon::InitStats(), isAttackingPlayer(), OutDebugInfo(), SetPetGUID(), SetPhased(), SetPhaseMask(), Unit(), Totem::UnSummon(), and UnsummonAllTotems().
|
protected |
Definition at line 2930 of file Unit.h.
Referenced by AddThreat(), DeleteThreatList(), getThreatManager(), Creature::SelectVictim(), TauntFadeOut(), and Unit().
| float Unit::m_threatModifier[MAX_SPELL_SCHOOL] |
Definition at line 2392 of file Unit.h.
Referenced by ApplyTotalThreatModifier(), AuraEffect::HandleModThreat(), and Unit().
|
protected |
Definition at line 2893 of file Unit.h.
Referenced by getTransForm(), setTransForm(), and Unit().
|
protected |
Definition at line 2935 of file Unit.h.
Referenced by AddUnitTypeMask(), CreateVehicleKit(), Guardian::Guardian(), HasUnitTypeMask(), Guardian::InitStatsForLevel(), IsGuardian(), IsHunterPet(), IsPet(), IsSummon(), IsTotem(), IsVehicle(), Minion::Minion(), OutDebugInfo(), Pet::Pet(), Puppet::Puppet(), RemoveVehicleKit(), TempSummon::TempSummon(), Totem::Totem(), and Unit().
|
protected |
Definition at line 2932 of file Unit.h.
Referenced by _EnterVehicle(), _ExitVehicle(), Creature::_IsTargetAcceptable(), _IsValidAssistTarget(), _IsValidAttackTarget(), ChangeSeat(), ExitVehicle(), GetVehicle(), GetVehicleBase(), IsOnVehicle(), SetVehicle(), Player::TeleportTo(), and Unit().
|
protected |
Definition at line 2933 of file Unit.h.
Referenced by CreateVehicleKit(), GetVehicleKit(), RemoveVehicleKit(), Unit(), and Creature::Update().
|
protected |
Definition at line 2914 of file Unit.h.
Referenced by _UpdateSpells(), GetVisibleAura(), GetVisibleAuras(), RemoveVisibleAura(), and SetVisibleAura().
|
protected |
Definition at line 2912 of file Unit.h.
Referenced by GetWeaponDamageRange(), SetBaseWeaponDamage(), and Unit().
| std::unique_ptr<Movement::MoveSpline> Unit::movespline |
Definition at line 2837 of file Unit.h.
Referenced by Object::BuildMovementUpdate(), DisableSpline(), FlightPathMovementGenerator::DoUpdate(), HomeMovementGenerator< Creature >::DoUpdate(), RandomMovementGenerator< T >::DoUpdate(), WaypointMovementGenerator< Creature >::DoUpdate(), IsFalling(), IsSplineEnabled(), StopMoving(), Unit(), EffectMovementGenerator::Update(), UpdateSplineMovement(), UpdateSplinePosition(), WriteMovementInfo(), and ~Unit().
| bool Unit::NeedChangeAI |
Definition at line 2735 of file Unit.h.
Referenced by Unit(), and Creature::Update().