V0.2.1 : Wand of Teleportation can no longer teleport NPCs.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user