mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
Apply style fix pt3
This commit is contained in:
parent
1392c131e7
commit
d93dbd95fe
191 changed files with 9851 additions and 676 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue