v1.2.2: fixed blacksmith being able to work with specific cursed items

This commit is contained in:
Evan Debenham 2022-04-05 15:33:25 -04:00
parent 5554abd279
commit 6bee83e8c1

View File

@ -184,7 +184,11 @@ public class Blacksmith extends NPC {
return Messages.get(Blacksmith.class, "un_ided");
}
if (item1.cursed || item2.cursed) {
if (item1.cursed || item2.cursed ||
(item1 instanceof Armor && ((Armor) item1).hasCurseGlyph()) ||
(item2 instanceof Armor && ((Armor) item2).hasCurseGlyph()) ||
(item1 instanceof Weapon && ((Weapon) item1).hasCurseEnchant()) ||
(item2 instanceof Weapon && ((Weapon) item2).hasCurseEnchant())) {
return Messages.get(Blacksmith.class, "cursed");
}