Fix some issues with fishing. Closes #421, patch by make_the_king

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2009-11-30 16:54:33 +01:00
parent ca7a2e6417
commit f6d80f9da4
2 changed files with 3 additions and 3 deletions

View File

@@ -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);