v0.2.4d: fixed quirks with wand targeting

This commit is contained in:
Evan Debenham 2015-03-12 17:45:20 -04:00
parent 60076db78c
commit cf298acb17

View File

@ -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) {