Fixed bug with Repair not decreasing enchanting levels properly.

Fixes #817
This commit is contained in:
GJ
2013-03-10 15:48:16 -04:00
parent c0b4a33346
commit d78a1efbf6
2 changed files with 2 additions and 1 deletions

View File

@ -326,7 +326,7 @@ public class RepairManager extends SkillManager {
int enchantLevel = enchant.getValue();
if (Repair.arcaneForgingDowngrades && enchantLevel > 1 && getDowngradeEnchantChance() > Misc.getRandom().nextInt(activationChance)) {
item.addEnchantment(enchantment, enchantLevel--);
item.addEnchantment(enchantment, enchantLevel - 1);
downgraded = true;
}
}