*Levelling Weapon Skill patch (Author: Menia), thanks Sorken :)
--HG-- branch : trunk
This commit is contained in:
+2
-2
@@ -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%
|
||||
|
||||
Reference in New Issue
Block a user