mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 16: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;
|
float chance = float(3 * lvldif * skilldif) / plevel;
|
||||||
if(!defence)
|
if(!defence)
|
||||||
{
|
chance *= 0.1f * GetStat(STAT_INTELLECT);
|
||||||
if(getClass() == CLASS_WARRIOR || getClass() == CLASS_ROGUE)
|
|
||||||
chance *= 0.1f * GetStat(STAT_INTELLECT);
|
|
||||||
}
|
|
||||||
|
|
||||||
chance = chance < 1.0f ? 1.0f : chance; //minimum chance to increase skill is 1%
|
chance = chance < 1.0f ? 1.0f : chance; //minimum chance to increase skill is 1%
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10608"
|
#define REVISION_NR "10609"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue