v0.9.2b: fixed cases where items known to not be cursed could be RCed
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ public class ScrollOfRemoveCurse extends InventoryScroll {
|
|||||||
public static boolean uncursable( Item item ){
|
public static boolean uncursable( Item item ){
|
||||||
if (item.isEquipped(Dungeon.hero) && Dungeon.hero.buff(Degrade.class) != null) {
|
if (item.isEquipped(Dungeon.hero) && Dungeon.hero.buff(Degrade.class) != null) {
|
||||||
return true;
|
return true;
|
||||||
} if ((item instanceof EquipableItem || item instanceof Wand) && (!item.isIdentified() || item.cursed)){
|
} if ((item instanceof EquipableItem || item instanceof Wand) && (!item.cursedKnown || item.cursed)){
|
||||||
return true;
|
return true;
|
||||||
} else if (item instanceof Weapon){
|
} else if (item instanceof Weapon){
|
||||||
return ((Weapon)item).hasCurseEnchant();
|
return ((Weapon)item).hasCurseEnchant();
|
||||||
|
|||||||
Reference in New Issue
Block a user