[Hotfix] Fix forage returning first result from table (#4130)

Forage was not properly incrementing the total chance of items when more than one was found and would result in the final chance roll being based off the last item found rather than the total. This would cause the first item returned to be chosen in most cases when the chances are the same in the table.
This commit is contained in:
nytmyr
2024-02-28 19:34:40 -06:00
committed by GitHub
parent c001060429
commit 34f19489d0
+1 -1
View File
@@ -89,7 +89,7 @@ uint32 ZoneDatabase::LoadForage(uint32 zone_id, uint8 skill_level)
}
forage_items[count] = e.Itemid;
forage_chances[count] = e.chance;
forage_chances[count] = e.chance + current_chance;
current_chance = forage_chances[count];