v0.9.2b: actually fixed cases of incorrect RC applications

This commit is contained in:
Evan Debenham 2021-03-22 00:31:45 -04:00
parent e3e3757dbc
commit d9457bc01d

View File

@ -100,7 +100,7 @@ public class ScrollOfRemoveCurse extends InventoryScroll {
public static boolean uncursable( Item item ){
if (item.isEquipped(Dungeon.hero) && Dungeon.hero.buff(Degrade.class) != null) {
return true;
} if ((item instanceof EquipableItem || item instanceof Wand) && (!item.cursedKnown || item.cursed)){
} if ((item instanceof EquipableItem || item instanceof Wand) && ((!item.isIdentified() && !item.cursedKnown) || item.cursed)){
return true;
} else if (item instanceof Weapon){
return ((Weapon)item).hasCurseEnchant();