Fixing a bug where Lucky perk wasn't adding to success

This commit is contained in:
nossr50
2019-01-27 18:53:10 -08:00
parent 7b38658310
commit 5f39a7cb80
4 changed files with 41 additions and 2 deletions

View File

@ -41,7 +41,7 @@ public class ExcavationManager extends SkillManager {
for (ExcavationTreasure treasure : treasures) {
if (skillLevel >= treasure.getDropLevel()
&& RandomChanceUtil.checkRandomChanceExecutionSuccess(treasure.getDropChance())) {
&& RandomChanceUtil.checkRandomChanceExecutionSuccess(getPlayer(), PrimarySkillType.EXCAVATION, treasure.getDropChance())) {
xp += treasure.getXp();
Misc.dropItem(location, treasure.getDrop());
}