v0.9.3: fixed shadow ally spawning over pits and traps
This commit is contained in:
parent
44189726a4
commit
dd8a2700c7
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user