[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:
Lynx3d 2010-10-14 15:50:05 +02:00
parent 699a22b2de
commit d090bce461
2 changed files with 2 additions and 5 deletions

View file

@ -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%

View file

@ -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__