From dc68785be1058b272a14e9899a89d8120a39bdde Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 30 Mar 2021 19:47:53 -0400 Subject: [PATCH] v0.9.3: fixed terrain like chasms blocking gladiator crush move --- .../shatteredpixeldungeon/actors/buffs/Combo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Combo.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Combo.java index bda3d0e86..09cecf6ef 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Combo.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Combo.java @@ -41,6 +41,7 @@ import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet; import com.shatteredpixel.shatteredpixeldungeon.ui.ActionIndicator; import com.shatteredpixel.shatteredpixeldungeon.ui.AttackIndicator; import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator; +import com.shatteredpixel.shatteredpixeldungeon.utils.BArray; import com.shatteredpixel.shatteredpixeldungeon.utils.GLog; import com.shatteredpixel.shatteredpixeldungeon.windows.WndCombo; import com.watabou.noosa.Image; @@ -346,7 +347,7 @@ public class Combo extends Buff implements ActionIndicator.Action { break; case CRUSH: WandOfBlastWave.BlastWave.blast(enemy.pos); - PathFinder.buildDistanceMap(target.pos, Dungeon.level.passable, 3); + PathFinder.buildDistanceMap(target.pos, BArray.not(Dungeon.level.solid, null), 3); for (Char ch : Actor.chars()){ if (ch != enemy && ch.alignment == Char.Alignment.ENEMY && PathFinder.distance[ch.pos] < Integer.MAX_VALUE){