From a6442bbb7e7c549209e06c06a2708324976d2e0e Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 24 Mar 2018 10:46:06 -0400 Subject: [PATCH] v0.6.4: fixed detach issues with the magical holster --- .../shatteredpixeldungeon/items/bags/MagicalHolster.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/bags/MagicalHolster.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/bags/MagicalHolster.java index 90eb91ca5..4a1e16804 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/bags/MagicalHolster.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/bags/MagicalHolster.java @@ -64,7 +64,11 @@ public class MagicalHolster extends Bag { public void onDetach( ) { super.onDetach(); for (Item item : items) { - ((Wand)item).stopCharging(); + if (item instanceof Wand) { + ((Wand)item).stopCharging(); + } else if (item instanceof MissileWeapon){ + ((MissileWeapon) item).holster = false; + } } }