diff options
author | Machiavelli <none@none> | 2009-11-30 16:54:33 +0100 |
---|---|---|
committer | Machiavelli <none@none> | 2009-11-30 16:54:33 +0100 |
commit | f6d80f9da41aa5b66489d0746c4c747ec14a4963 (patch) | |
tree | cbbf21008c4ea3b0ed69a0dfd66a3c73ec22e2f4 /src/game/Player.cpp | |
parent | ca7a2e64176ed0345a0040982018a867479680fc (diff) |
Fix some issues with fishing. Closes #421, patch by make_the_king
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 5e99593c305..a510c1bd658 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -5425,10 +5425,10 @@ bool Player::UpdateSkillPro(uint16 SkillId, int32 Chance, uint32 step) uint16 SkillValue = SKILL_VALUE(data); uint16 MaxValue = SKILL_MAX(data); - if ( !MaxValue || !SkillValue || SkillValue >= MaxValue ) + if (!MaxValue || !SkillValue || SkillValue >= MaxValue ) return false; - int32 Roll = irand(1,1000); + int32 Roll = irand(1,100); if ( Roll <= Chance ) { |