v0.7.4b: fixed wards being place-able within walls

This commit is contained in:
Evan Debenham 2019-08-05 15:01:42 -04:00
parent a3e04de98c
commit 214bba922f

View File

@ -75,7 +75,7 @@ public class WandOfWarding extends Wand {
protected void onZap(Ballistica bolt) { protected void onZap(Ballistica bolt) {
Char ch = Actor.findChar(bolt.collisionPos); Char ch = Actor.findChar(bolt.collisionPos);
if (!curUser.fieldOfView[bolt.collisionPos]){ if (!curUser.fieldOfView[bolt.collisionPos] || !Dungeon.level.passable[bolt.collisionPos]){
GLog.w( Messages.get(this, "bad_location")); GLog.w( Messages.get(this, "bad_location"));
} else if (ch != null){ } else if (ch != null){