From cf298acb17bcbccc304d54f6ef0d358c01009a6d Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 12 Mar 2015 17:45:20 -0400 Subject: [PATCH] v0.2.4d: fixed quirks with wand targeting --- .../shatteredpixeldungeon/items/wands/Wand.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/Wand.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/Wand.java index a3fb7a7ab..42b20644f 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/Wand.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/Wand.java @@ -425,8 +425,9 @@ public abstract class Wand extends KindOfWeapon { final int cell = Ballistica.cast( curUser.pos, target, true, curWand.hitChars ); curUser.sprite.zap( cell ); - - QuickSlotButton.target(Actor.findChar(cell)); + + //targets the enemy hit for char-hitting wands, or the cell aimed at for other wands. + QuickSlotButton.target(Actor.findChar(curWand.hitChars ? cell : target)); if (curWand.curCharges > 0) {