From a50b58e687e0c14914c88dd455f5e95909e74c51 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 6 Oct 2014 19:48:19 -0400 Subject: [PATCH] V0.2.1 : Wand of Teleportation can no longer teleport NPCs. --- .../shatteredpixeldungeon/items/wands/WandOfTeleportation.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfTeleportation.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfTeleportation.java index bebe64d2c..89b280457 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfTeleportation.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfTeleportation.java @@ -17,6 +17,7 @@ */ package com.shatteredpixel.shatteredpixeldungeon.items.wands; +import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob; import com.watabou.noosa.audio.Sample; import com.shatteredpixel.shatteredpixeldungeon.Assets; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; @@ -43,7 +44,7 @@ public class WandOfTeleportation extends Wand { setKnown(); ScrollOfTeleportation.teleportHero( curUser ); - } else if (ch != null) { + } else if (ch != null && !(ch instanceof Mob.NPC)) { int count = 10; int pos;