From 637d6b62eee238080db6320b4e1fb8df154cc03d Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 19 Apr 2016 00:07:22 -0400 Subject: [PATCH] v0.3.5: fixed a bug with artifacts in heroes remains --- src/com/shatteredpixel/shatteredpixeldungeon/Bones.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/Bones.java b/src/com/shatteredpixel/shatteredpixeldungeon/Bones.java index 9bfe2c32b..007dbf053 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/Bones.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/Bones.java @@ -159,7 +159,7 @@ public class Bones { item.visiblyUpgraded(), 1 + ((Dungeon.depth * 3) / 10))); - return item; + return artifact; } catch (Exception e) { return new Gold(item.price()); } @@ -168,7 +168,7 @@ public class Bones { } } - if (item.isUpgradable() || item instanceof Artifact) { + if (item.isUpgradable()) { item.cursed = true; item.cursedKnown = true; if (item.isUpgradable()) {