From eb679ffc5f670e4ba47d1da2e75081d200ca79f7 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 18 May 2017 16:14:09 -0400 Subject: [PATCH] v0.6.0: adjusted cursed wand crash window to not close if tapped outside --- .../shatteredpixeldungeon/items/wands/CursedWand.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java index 070a5c5c3..35d66a31a 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java @@ -409,10 +409,16 @@ public class CursedWand { } else { GameScene.show( new WndOptions("CURSED WAND ERROR", "this application will now self-destruct", "abort", "retry", "fail") { + @Override - public void hide() { + protected void onSelect(int index) { throw new RuntimeException("critical wand exception"); } + + @Override + public void onBackPressed() { + //do nothing + } } ); }