*Levelling Weapon Skill patch (Author: Menia), thanks Sorken :)

--HG--
branch : trunk
This commit is contained in:
maximius
2009-09-15 20:03:58 -07:00
parent 88d632d153
commit 00409c67cf
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -5291,7 +5291,7 @@ bool Player::UpdateSkill(uint32 skill_id, uint32 step)
if ((!max) || (!value) || (value >= max))
return false;
if (value*512 < max*urand(0,512))
if (value < max)
{
uint32 new_value = value+step;
if(new_value > max)
@@ -5510,7 +5510,7 @@ void Player::UpdateCombatSkills(Unit *pVictim, WeaponAttackType attType, bool de
if(!defence)
{
if(getClass() == CLASS_WARRIOR || getClass() == CLASS_ROGUE)
chance *= 0.1f * GetStat(STAT_INTELLECT);
chance += chance * 0.02f * GetStat(STAT_INTELLECT);
}
chance = chance < 1.0f ? 1.0f : chance; //minimum chance to increase skill is 1%