aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 43a98ddc7b4..4fbcb212f07 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -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%