1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-06-26 02:34:42 +02:00

Actually fix Repair lucky perk with Arcane Forging downgrade chance

This commit is contained in:
TfT_02
2014-03-23 13:51:17 +01:00
parent f65adea2f9
commit 04e5dda127

@ -340,7 +340,7 @@ public class RepairManager extends SkillManager {
if (getKeepEnchantChance() > Misc.getRandom().nextInt(activationChance)) {
int enchantLevel = enchant.getValue();
if (ArcaneForging.arcaneForgingDowngrades && enchantLevel > 1 && Misc.getRandom().nextInt(activationChance) <= getDowngradeEnchantChance()) {
if (ArcaneForging.arcaneForgingDowngrades && enchantLevel > 1 && (100 - getDowngradeEnchantChance()) <= Misc.getRandom().nextInt(activationChance)) {
item.addUnsafeEnchantment(enchantment, enchantLevel - 1);
downgraded = true;
}