v0.4.0: fixed quickslot autotargeting not working as intended

This commit is contained in:
Evan Debenham
2016-06-20 16:07:02 -04:00
parent 3ce341092f
commit 380fc0e57a
@@ -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;
}
}