Player::UpdateCombatSkills -> compare 5 x PlayerLevel with GetBaseWeaponSkillValue / GetBaseDefenseSkillValue (#160)
GetBaseWeaponSkillValue and GetBaseDefenseSkillValue -> return GetBaseSkillValue, but this return with added SKILL_PERM_BONUS Due to this the skilldif formula in Player::UpdateCombatSkills is miscalculating maximum value I have changed GetBaseWeaponSkillValue and GetBaseDefenseSkillValue to utilize GetPureSkillValue correcting the calculation
This commit is contained in:
parent
0888756ab7
commit
04ca95d54c
@ -18793,7 +18793,7 @@ uint32 Player::GetBaseWeaponSkillValue(WeaponAttackType attType) const
|
||||
|
||||
// weapon skill or (unarmed for base attack)
|
||||
uint32 skill = item ? item->GetSkill() : uint32(SKILL_UNARMED);
|
||||
return GetBaseSkillValue(skill);
|
||||
return GetPureSkillValue(skill);
|
||||
}
|
||||
|
||||
void Player::ResurectUsingRequestData()
|
||||
|
@ -1750,7 +1750,7 @@ class Player : public Unit
|
||||
|
||||
uint32 GetBaseDefenseSkillValue() const
|
||||
{
|
||||
return GetBaseSkillValue(SKILL_DEFENSE);
|
||||
return GetPureSkillValue(SKILL_DEFENSE);
|
||||
}
|
||||
uint32 GetBaseWeaponSkillValue(WeaponAttackType attType) const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user