From 22b43df1aceccde8fafa1f4ea765d507e51505e2 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 16 Dec 2024 19:03:29 -0500 Subject: [PATCH] v3.0.0: fixed errors with flash targeting --- .../shatteredpixeldungeon/actors/hero/spells/Flash.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/Flash.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/Flash.java index e7358f2a8..c5a7930b9 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/Flash.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/Flash.java @@ -61,7 +61,7 @@ public class Flash extends TargetedClericSpell { return; } - if (Dungeon.level.solid[target] || !Dungeon.level.mapped[target] + if (Dungeon.level.solid[target] || (!Dungeon.level.mapped[target] && !Dungeon.level.visited[target]) || Dungeon.level.distance(hero.pos, target) > 2+hero.pointsInTalent(Talent.FLASH)){ GLog.w(Messages.get(this, "invalid_target")); return;