From f8efaa6d5d7a58c4d998eb8e065d36398e3e8ae1 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 7 Mar 2016 00:21:59 -0500 Subject: [PATCH] v0.3.5: fixed the mage's staff still charging after being thrown --- .../shatteredpixeldungeon/items/EquipableItem.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/EquipableItem.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/EquipableItem.java index 36c897e8c..e9b50a51e 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/EquipableItem.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/EquipableItem.java @@ -20,13 +20,13 @@ */ package com.shatteredpixel.shatteredpixeldungeon.items; +import com.shatteredpixel.shatteredpixeldungeon.Assets; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; +import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero; +import com.shatteredpixel.shatteredpixeldungeon.effects.particles.ShadowParticle; import com.shatteredpixel.shatteredpixeldungeon.messages.Messages; import com.shatteredpixel.shatteredpixeldungeon.utils.GLog; import com.watabou.noosa.audio.Sample; -import com.shatteredpixel.shatteredpixeldungeon.Assets; -import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero; -import com.shatteredpixel.shatteredpixeldungeon.effects.particles.ShadowParticle; import java.util.ArrayList; @@ -107,11 +107,11 @@ public abstract class EquipableItem extends Item { hero.spend( time2equip( hero ) ); } - if (collect && !collect( hero.belongings.backpack )) { + if (!collect || !collect( hero.belongings.backpack )) { onDetach(); Dungeon.quickslot.clearItem(this); updateQuickslot(); - Dungeon.level.drop( this, hero.pos ); + if (collect) Dungeon.level.drop( this, hero.pos ); } return true;