v0.3.0: added mage's staff and rebalanced wand of magic magic, still needs some polish/tuning
This commit is contained in:
@@ -17,8 +17,7 @@
|
||||
*/
|
||||
package com.shatteredpixel.shatteredpixeldungeon.ui;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.wands.Wand;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.missiles.Boomerang;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.EquipableItem;
|
||||
import com.watabou.noosa.Image;
|
||||
import com.watabou.noosa.ui.Button;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
@@ -77,7 +76,7 @@ public class QuickSlotButton extends Button implements WndBag.Listener {
|
||||
GameScene.handleCell( lastTarget.pos );
|
||||
} else {
|
||||
Item item = select(slotNum);
|
||||
if (item.stackable || item instanceof Wand || item instanceof Boomerang)
|
||||
if (item instanceof EquipableItem)
|
||||
useTargeting();
|
||||
item.execute( Dungeon.hero );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user