|
@@ -15,6 +15,7 @@ import com.gmail.nossr50.events.skills.repair.McMMOPlayerRepairCheckEvent;
|
|
import com.gmail.nossr50.locale.LocaleLoader;
|
|
import com.gmail.nossr50.locale.LocaleLoader;
|
|
import com.gmail.nossr50.util.Permissions;
|
|
import com.gmail.nossr50.util.Permissions;
|
|
import com.gmail.nossr50.util.StringUtils;
|
|
import com.gmail.nossr50.util.StringUtils;
|
|
|
|
+import com.gmail.nossr50.util.skills.SkillUtils;
|
|
|
|
|
|
public class SimpleRepairManager implements RepairManager {
|
|
public class SimpleRepairManager implements RepairManager {
|
|
private HashMap<Integer, Repairable> repairables;
|
|
private HashMap<Integer, Repairable> repairables;
|
|
@@ -108,6 +109,9 @@ public class SimpleRepairManager implements RepairManager {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // Clear ability buffs before trying to repair.
|
|
|
|
+ SkillUtils.removeAbilityBuff(item);
|
|
|
|
+
|
|
// Lets get down to business,
|
|
// Lets get down to business,
|
|
// To defeat, the huns.
|
|
// To defeat, the huns.
|
|
int baseRepairAmount = repairable.getBaseRepairDurability(); // Did they send me daughters?
|
|
int baseRepairAmount = repairable.getBaseRepairDurability(); // Did they send me daughters?
|