From 8b4b3686cd6f73e57388e87a22d7837462f381f2 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 31 Jan 2022 18:30:55 -0500 Subject: [PATCH] v1.2.0: fixed player being able to self-target with prep blink --- .../shatteredpixeldungeon/actors/buffs/Preparation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Preparation.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Preparation.java index 75b43a61b..5b2790934 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Preparation.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Preparation.java @@ -267,7 +267,7 @@ public class Preparation extends Buff implements ActionIndicator.Action { public void onSelect(Integer cell) { if (cell == null) return; final Char enemy = Actor.findChar( cell ); - if (enemy == null || Dungeon.hero.isCharmedBy(enemy) || enemy instanceof NPC || !Dungeon.level.heroFOV[cell]){ + if (enemy == null || Dungeon.hero.isCharmedBy(enemy) || enemy instanceof NPC || !Dungeon.level.heroFOV[cell] || enemy == Dungeon.hero){ GLog.w(Messages.get(Preparation.class, "no_target")); } else {