Apply style fix pt3

This commit is contained in:
Antz 2020-01-13 10:14:05 +00:00
parent 1392c131e7
commit d93dbd95fe
191 changed files with 9851 additions and 676 deletions

View file

@ -169,7 +169,9 @@ void Player::UpdateResistances(uint32 school)
pet->UpdateResistances(school);
}
else
{ UpdateArmor(); }
{
UpdateArmor();
}
}
void Player::UpdateArmor()
@ -648,7 +650,9 @@ void Player::UpdateAllSpellCritChances()
void Player::UpdateExpertise(WeaponAttackType attack)
{
if (attack == RANGED_ATTACK)
{
return;
}
int32 expertise = int32(GetRatingBonusValue(CR_EXPERTISE));
@ -736,7 +740,9 @@ void Player::UpdateMasteryAuras()
std::vector<uint32> const* masterySpells = GetTalentTreeMasterySpells(m_talentsPrimaryTree[m_activeSpec]);
if (!masterySpells)
{
return;
}
for (uint32 i = 0; i < masterySpells->size(); ++i)
{
@ -825,7 +831,9 @@ void Creature::UpdateResistances(uint32 school)
SetResistance(SpellSchools(school), int32(value));
}
else
{ UpdateArmor(); }
{
UpdateArmor();
}
}
void Creature::UpdateArmor()
@ -983,7 +991,9 @@ void Pet::UpdateResistances(uint32 school)
SetResistance(SpellSchools(school), int32(value));
}
else
{ UpdateArmor(); }
{
UpdateArmor();
}
}
void Pet::UpdateArmor()
@ -1051,7 +1061,9 @@ void Pet::UpdateAttackPowerAndDamage(bool ranged)
val = GetStat(STAT_STRENGTH) - 10.0f;
}
else
{ val = 2 * GetStat(STAT_STRENGTH) - 20.0f; }
{
val = 2 * GetStat(STAT_STRENGTH) - 20.0f;
}
Unit* owner = GetOwner();
if (owner && owner->GetTypeId() == TYPEID_PLAYER)