v0.9.3: fixed shadow ally spawning over pits and traps

This commit is contained in:
Evan Debenham 2021-06-02 15:53:22 -04:00
parent 44189726a4
commit dd8a2700c7

View File

@ -96,7 +96,7 @@ public class ShadowClone extends ArmorAbility {
ArrayList<Integer> spawnPoints = new ArrayList<>();
for (int i = 0; i < PathFinder.NEIGHBOURS8.length; i++) {
int p = hero.pos + PathFinder.NEIGHBOURS8[i];
if (Actor.findChar(p) == null && (Dungeon.level.passable[p] || Dungeon.level.avoid[p])) {
if (Actor.findChar(p) == null && Dungeon.level.passable[p]) {
spawnPoints.add(p);
}
}