From 123d709dceadac62a76c2319dc355c59a5ffbd0c Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 2 Aug 2018 21:32:06 -0400 Subject: [PATCH] v0.7.0: various prismatic image bugfixes --- .../shatteredpixeldungeon/actors/buffs/PrismaticGuard.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/PrismaticGuard.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/PrismaticGuard.java index d3048146d..3319e263e 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/PrismaticGuard.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/PrismaticGuard.java @@ -51,7 +51,7 @@ public class PrismaticGuard extends Buff { int v = hero.visibleEnemies(); for (int i=0; i < v; i++) { Mob mob = hero.visibleEnemy( i ); - if ( mob.isAlive() && !hero.mindVisionEnemies.contains(mob) + if ( mob.isAlive() && mob.state != mob.PASSIVE && !hero.mindVisionEnemies.contains(mob) && (closest == null || Dungeon.level.distance(hero.pos, mob.pos) < Dungeon.level.distance(hero.pos, closest.pos))) { closest = mob; } @@ -72,7 +72,7 @@ public class PrismaticGuard extends Buff { PrismaticImage pris = new PrismaticImage(); pris.duplicate(hero, (int)Math.floor(HP) ); pris.state = pris.HUNTING; - GameScene.add(pris); + GameScene.add(pris, 1); ScrollOfTeleportation.appear(pris, bestPos); detach();