mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Fix some issues with fishing. Closes #421, patch by make_the_king
--HG-- branch : trunk
This commit is contained in:
@@ -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