From 3024e4df29e35f23a3ecfe42d5801fa7c875be66 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 3 Oct 2022 13:24:51 -0400 Subject: [PATCH] v1.4.0: fixed giant enemies not being able to attack from solid cells --- .../shatteredpixeldungeon/actors/buffs/ChampionEnemy.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ChampionEnemy.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ChampionEnemy.java index 6e761bf2e..017c03665 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ChampionEnemy.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ChampionEnemy.java @@ -195,7 +195,8 @@ public abstract class ChampionEnemy extends Buff { } else { boolean[] passable = BArray.not(Dungeon.level.solid, null); for (Char ch : Actor.chars()) { - if (ch != target) passable[ch.pos] = false; + //our own tile is always passable + passable[ch.pos] = ch == target; } PathFinder.buildDistanceMap(enemy.pos, passable, 2);