From 230f81473616cd16d5280a7cae035b6fae84d030 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 13 Aug 2014 00:24:59 -0400 Subject: [PATCH] V0.1.1: wand exploit fix (also in PD v1.7.2) --- .../shatteredpixeldungeon/items/wands/Wand.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/Wand.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/Wand.java index cf672a7e2..808736902 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/Wand.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/Wand.java @@ -194,7 +194,13 @@ public abstract class Wand extends KindOfWeapon { stopCharging(); return super.detach( container ); } - + + @Override + public Item detachAll( Bag container) { + stopCharging(); + return super.detachAll( container ); + } + public void stopCharging() { if (charger != null) { charger.detach();