From b14348959a36def155121482e9ed08f05b354c1c Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 23 Aug 2017 02:07:11 -0400 Subject: [PATCH] v0.6.1b: adjusted error checking on sad ghost's dialog --- .../shatteredpixeldungeon/windows/WndSadGhost.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndSadGhost.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndSadGhost.java index 7a616671c..7912647fc 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndSadGhost.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndSadGhost.java @@ -21,7 +21,6 @@ package com.shatteredpixel.shatteredpixeldungeon.windows; -import com.shatteredpixel.shatteredpixeldungeon.Challenges; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs.Ghost; import com.shatteredpixel.shatteredpixeldungeon.items.Item; @@ -82,7 +81,7 @@ public class WndSadGhost extends Window { btnWeapon.setRect( 0, message.top() + message.height() + GAP, WIDTH, BTN_HEIGHT ); add( btnWeapon ); - if (!Dungeon.isChallenged( Challenges.NO_ARMOR )) { + if (Ghost.Quest.armor != null) { RedButton btnArmor = new RedButton( Messages.get(this, "armor") ) { @Override protected void onClick() {