v1.2.0: fixed player being able to self-target with prep blink

This commit is contained in:
Evan Debenham 2022-01-31 18:30:55 -05:00
parent 3f960088d0
commit 8b4b3686cd

View File

@ -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 {