v0.9.3: fixed terrain like chasms blocking gladiator crush move
This commit is contained in:
parent
13471a3ffd
commit
dc68785be1
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue
Block a user