From 380fc0e57aa2ba12ae55516cf38f65067281f70d Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 20 Jun 2016 16:07:02 -0400 Subject: [PATCH] v0.4.0: fixed quickslot autotargeting not working as intended --- .../shatteredpixeldungeon/ui/QuickSlotButton.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/ui/QuickSlotButton.java b/src/com/shatteredpixel/shatteredpixeldungeon/ui/QuickSlotButton.java index 2afe57f3c..f7866d433 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/ui/QuickSlotButton.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/ui/QuickSlotButton.java @@ -203,7 +203,7 @@ public class QuickSlotButton extends Button implements WndBag.Listener { //Otherwise pick nearby tiles to try and 'angle' the shot, auto-aim basically. for (int i : Level.NEIGHBOURS9DIST2) { - if (item.throwPos(Dungeon.hero, target.pos) == target.pos){ + if (item.throwPos(Dungeon.hero, target.pos+i) == target.pos){ return target.pos+i; } }