@@ -443,9 +443,9 @@ void Unit::resetAttackTimer(WeaponAttackType type)
443443}
444444
445445float Unit::GetMeleeReach() const
446- {
447- float reach = m_floatValues[UNIT_FIELD_COMBATREACH];
448- return reach > MIN_MELEE_REACH ? reach : MIN_MELEE_REACH;
446+ {
447+ float reach = m_floatValues[UNIT_FIELD_COMBATREACH];
448+ return reach > MIN_MELEE_REACH ? reach : MIN_MELEE_REACH;
449449}
450450
451451bool Unit::IsWithinCombatRange(const Unit* obj, float dist2compare) const
@@ -503,14 +503,14 @@ AuraApplication * Unit::GetVisibleAura(uint8 slot) const
503503
504504void Unit::SetVisibleAura(uint8 slot, AuraApplication * aur)
505505{
506- m_visibleAuras[slot]=aur;
507- UpdateAuraForGroup(slot);
506+ m_visibleAuras[slot]=aur;
507+ UpdateAuraForGroup(slot);
508508}
509509
510510void Unit::RemoveVisibleAura(uint8 slot)
511511{
512- m_visibleAuras.erase(slot);
513- UpdateAuraForGroup(slot);
512+ m_visibleAuras.erase(slot);
513+ UpdateAuraForGroup(slot);
514514}
515515
516516void Unit::UpdateInterruptMask()
@@ -2635,8 +2635,8 @@ uint32 Unit::GetShieldBlockValue(uint32 soft_cap, uint32 hard_cap) const
26352635}
26362636
26372637uint32 Unit::GetUnitMeleeSkill(Unit const* target) const
2638- {
2639- return (target ? getLevelForTarget(target) : getLevel()) * 5;
2638+ {
2639+ return (target ? getLevelForTarget(target) : getLevel()) * 5;
26402640}
26412641
26422642uint32 Unit::GetDefenseSkillValue(Unit const* target) const
@@ -4169,7 +4169,7 @@ AuraEffect* Unit::GetAuraEffect(AuraType type, SpellFamilyNames family, uint32 f
41694169
41704170AuraEffect* Unit::GetDummyAuraEffect(SpellFamilyNames name, uint32 iconId, uint8 effIndex) const
41714171{
4172- return GetAuraEffect(SPELL_AURA_DUMMY, name, iconId, effIndex);
4172+ return GetAuraEffect(SPELL_AURA_DUMMY, name, iconId, effIndex);
41734173}
41744174
41754175AuraApplication * Unit::GetAuraApplication(uint32 spellId, uint64 casterGUID, uint64 itemCasterGUID, uint8 reqEffMask, AuraApplication * except) const
@@ -4696,35 +4696,35 @@ int32 Unit::GetMaxNegativeAuraModifierByAffectMask(AuraType auratype, SpellInfo
46964696
46974697float Unit::GetResistanceBuffMods(SpellSchools school, bool positive) const
46984698{
4699- return GetFloatValue(positive ? UNIT_FIELD_RESISTANCEBUFFMODSPOSITIVE+school : UNIT_FIELD_RESISTANCEBUFFMODSNEGATIVE+school);
4699+ return GetFloatValue(positive ? UNIT_FIELD_RESISTANCEBUFFMODSPOSITIVE+school : UNIT_FIELD_RESISTANCEBUFFMODSNEGATIVE+school);
47004700}
47014701
47024702void Unit::SetResistanceBuffMods(SpellSchools school, bool positive, float val)
47034703{
4704- SetFloatValue(positive ? UNIT_FIELD_RESISTANCEBUFFMODSPOSITIVE+school : UNIT_FIELD_RESISTANCEBUFFMODSNEGATIVE+school, val);
4704+ SetFloatValue(positive ? UNIT_FIELD_RESISTANCEBUFFMODSPOSITIVE+school : UNIT_FIELD_RESISTANCEBUFFMODSNEGATIVE+school, val);
47054705}
47064706
47074707void Unit::ApplyResistanceBuffModsMod(SpellSchools school, bool positive, float val, bool apply)
47084708{
4709- ApplyModSignedFloatValue(positive ? UNIT_FIELD_RESISTANCEBUFFMODSPOSITIVE+school : UNIT_FIELD_RESISTANCEBUFFMODSNEGATIVE+school, val, apply);
4709+ ApplyModSignedFloatValue(positive ? UNIT_FIELD_RESISTANCEBUFFMODSPOSITIVE+school : UNIT_FIELD_RESISTANCEBUFFMODSNEGATIVE+school, val, apply);
47104710}
47114711
47124712void Unit::ApplyResistanceBuffModsPercentMod(SpellSchools school, bool positive, float val, bool apply)
47134713{
4714- ApplyPercentModFloatValue(positive ? UNIT_FIELD_RESISTANCEBUFFMODSPOSITIVE+school : UNIT_FIELD_RESISTANCEBUFFMODSNEGATIVE+school, val, apply);
4714+ ApplyPercentModFloatValue(positive ? UNIT_FIELD_RESISTANCEBUFFMODSPOSITIVE+school : UNIT_FIELD_RESISTANCEBUFFMODSNEGATIVE+school, val, apply);
47154715}
47164716
47174717void Unit::InitStatBuffMods()
47184718{
47194719 for (uint8 i = STAT_STRENGTH; i < MAX_STATS; ++i)
4720- SetFloatValue(UNIT_FIELD_POSSTAT0+i, 0);
4720+ SetFloatValue(UNIT_FIELD_POSSTAT0+i, 0);
47214721 for (uint8 i = STAT_STRENGTH; i < MAX_STATS; ++i)
4722- SetFloatValue(UNIT_FIELD_NEGSTAT0+i, 0);
4722+ SetFloatValue(UNIT_FIELD_NEGSTAT0+i, 0);
47234723}
47244724
47254725void Unit::ApplyStatBuffMod(Stats stat, float val, bool apply)
47264726{
4727- ApplyModSignedFloatValue((val > 0 ? UNIT_FIELD_POSSTAT0+stat : UNIT_FIELD_NEGSTAT0+stat), val, apply);
4727+ ApplyModSignedFloatValue((val > 0 ? UNIT_FIELD_POSSTAT0+stat : UNIT_FIELD_NEGSTAT0+stat), val, apply);
47284728}
47294729
47304730void Unit::ApplyStatPercentBuffMod(Stats stat, float val, bool apply)
@@ -9319,7 +9319,7 @@ Unit* Unit::GetCharm() const
93199319
93209320Unit* Unit::GetCharmerOrOwner() const
93219321{
9322- return GetCharmerGUID() ? GetCharmer() : GetOwner();
9322+ return GetCharmerGUID() ? GetCharmer() : GetOwner();
93239323}
93249324
93259325Unit* Unit::GetCharmerOrOwnerOrSelf() const
@@ -9706,14 +9706,14 @@ void Unit::RemoveAllControlled()
97069706 sLog->outFatal(LOG_FILTER_UNITS, "Unit %u is not able to release its charm " UI64FMTD, GetEntry(), GetCharmGUID());
97079707}
97089708
9709- bool Unit::isPossessedByPlayer() const
9709+ bool Unit::isPossessedByPlayer() const
97109710{
9711- return HasUnitState(UNIT_STATE_POSSESSED) && IS_PLAYER_GUID(GetCharmerGUID());
9711+ return HasUnitState(UNIT_STATE_POSSESSED) && IS_PLAYER_GUID(GetCharmerGUID());
97129712}
97139713
97149714bool Unit::isPossessing(Unit* u) const
97159715{
9716- return u->isPossessed() && GetCharmGUID() == u->GetGUID();
9716+ return u->isPossessed() && GetCharmGUID() == u->GetGUID();
97179717}
97189718
97199719bool Unit::isPossessing() const
@@ -12139,7 +12139,7 @@ bool Unit::IsAlwaysDetectableFor(WorldObject const* seer) const
1213912139
1214012140bool Unit::IsVisible() const
1214112141{
12142- return (m_serverSideVisibility.GetValue(SERVERSIDE_VISIBILITY_GM) > SEC_PLAYER) ? false : true;
12142+ return (m_serverSideVisibility.GetValue(SERVERSIDE_VISIBILITY_GM) > SEC_PLAYER) ? false : true;
1214312143}
1214412144
1214512145void Unit::SetVisible(bool x)
@@ -14361,9 +14361,9 @@ SpellSchoolMask Unit::GetMeleeDamageSchoolMask() const
1436114361 return SPELL_SCHOOL_MASK_NORMAL;
1436214362}
1436314363
14364- uint64 Unit::GetCharmerOrOwnerGUID() const
14364+ uint64 Unit::GetCharmerOrOwnerGUID() const
1436514365{
14366- return GetCharmerGUID() ? GetCharmerGUID() : GetOwnerGUID();
14366+ return GetCharmerGUID() ? GetCharmerGUID() : GetOwnerGUID();
1436714367}
1436814368
1436914369uint64 Unit::GetCharmerOrOwnerOrOwnGUID() const
@@ -15968,8 +15968,8 @@ void Unit::RestoreFaction()
1596815968}
1596915969
1597015970Unit* Unit::GetRedirectThreatTarget()
15971- {
15972- return _redirectThreadInfo.GetTargetGUID() ? GetUnit(*this, _redirectThreadInfo.GetTargetGUID()) : NULL;
15971+ {
15972+ return _redirectThreadInfo.GetTargetGUID() ? GetUnit(*this, _redirectThreadInfo.GetTargetGUID()) : NULL;
1597315973}
1597415974
1597515975bool Unit::CreateVehicleKit(uint32 id, uint32 creatureEntry)
@@ -16000,9 +16000,9 @@ void Unit::RemoveVehicleKit()
1600016000 RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_PLAYER_VEHICLE);
1600116001}
1600216002
16003- bool Unit::IsOnVehicle(const Unit* vehicle) const
16004- {
16005- return m_vehicle && m_vehicle == vehicle->GetVehicleKit();
16003+ bool Unit::IsOnVehicle(const Unit* vehicle) const
16004+ {
16005+ return m_vehicle && m_vehicle == vehicle->GetVehicleKit();
1600616006}
1600716007
1600816008Unit* Unit::GetVehicleBase() const
@@ -17085,8 +17085,8 @@ bool Unit::UpdatePosition(float x, float y, float z, float orientation, bool tel
1708517085}
1708617086
1708717087bool Unit::UpdatePosition(const Position &pos, bool teleport)
17088- {
17089- return UpdatePosition(pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), pos.GetOrientation(), teleport);
17088+ {
17089+ return UpdatePosition(pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), pos.GetOrientation(), teleport);
1709017090}
1709117091
1709217092//! Only server-side orientation update, does not broadcast to client
0 commit comments