Fix some issues with fishing. Closes #421, patch by make_the_king
--HG-- branch : trunk
This commit is contained in:
1 parent
ca7a2e6417
commit
f6d80f9da4
2 files changed
+3
-3
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user