V0.2.1 : Wand of Teleportation can no longer teleport NPCs.

This commit is contained in:
Evan Debenham 2014-10-06 19:48:19 -04:00
parent c8bbeea53b
commit a50b58e687

View File

@ -17,6 +17,7 @@
*/ */
package com.shatteredpixel.shatteredpixeldungeon.items.wands; package com.shatteredpixel.shatteredpixeldungeon.items.wands;
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob;
import com.watabou.noosa.audio.Sample; import com.watabou.noosa.audio.Sample;
import com.shatteredpixel.shatteredpixeldungeon.Assets; import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
@ -43,7 +44,7 @@ public class WandOfTeleportation extends Wand {
setKnown(); setKnown();
ScrollOfTeleportation.teleportHero( curUser ); ScrollOfTeleportation.teleportHero( curUser );
} else if (ch != null) { } else if (ch != null && !(ch instanceof Mob.NPC)) {
int count = 10; int count = 10;
int pos; int pos;