aboutsummaryrefslogtreecommitdiff
path: root/src/game/GameObject.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-11-30 16:54:33 +0100
committerMachiavelli <none@none>2009-11-30 16:54:33 +0100
commitf6d80f9da41aa5b66489d0746c4c747ec14a4963 (patch)
treecbbf21008c4ea3b0ed69a0dfd66a3c73ec22e2f4 /src/game/GameObject.cpp
parentca7a2e64176ed0345a0040982018a867479680fc (diff)
Fix some issues with fishing. Closes #421, patch by make_the_king
--HG-- branch : trunk
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r--src/game/GameObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp
index a005e5ddee1..42c2fd04cc4 100644
--- a/src/game/GameObject.cpp
+++ b/src/game/GameObject.cpp
@@ -1155,7 +1155,7 @@ void GameObject::Use(Unit* user)
sLog.outErrorDb("Fishable areaId %u are not properly defined in `skill_fishing_base_level`.",subzone);
int32 skill = player->GetSkillValue(SKILL_FISHING);
- int32 chance = skill - zone_skill + 5;
+ int32 chance = pow((double)skill/zone_skill,2) * 100;
int32 roll = irand(1,100);
DEBUG_LOG("Fishing check (skill: %i zone min skill: %i chance %i roll: %i",skill,zone_skill,chance,roll);