mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 04:37:04 +00:00
[10609] I consider it proven that all classes shall benefit from intellect for weapon skill increase.
But better formula for chance would still welcome...
This commit is contained in:
parent
699a22b2de
commit
d090bce461
2 changed files with 2 additions and 5 deletions
|
|
@ -5587,10 +5587,7 @@ void Player::UpdateCombatSkills(Unit *pVictim, WeaponAttackType attType, bool de
|
|||
|
||||
float chance = float(3 * lvldif * skilldif) / plevel;
|
||||
if(!defence)
|
||||
{
|
||||
if(getClass() == CLASS_WARRIOR || getClass() == CLASS_ROGUE)
|
||||
chance *= 0.1f * GetStat(STAT_INTELLECT);
|
||||
}
|
||||
chance *= 0.1f * GetStat(STAT_INTELLECT);
|
||||
|
||||
chance = chance < 1.0f ? 1.0f : chance; //minimum chance to increase skill is 1%
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue