aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-09-15 20:03:58 -0700
committermaximius <none@none>2009-09-15 20:03:58 -0700
commit00409c67cf9537a218e8786e9a7e3fbf1df0d73b (patch)
treeeaec0f05676646bf9817a942acee3b0e9082e22e /src/game/Player.cpp
parent88d632d153f6903c8224241d20fdb7a318f9cba9 (diff)
*Levelling Weapon Skill patch (Author: Menia), thanks Sorken :)
--HG-- branch : trunk
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%