v1.4.0: fixed an error with swarm duplication logic from earlier commit

This commit is contained in:
Evan Debenham
2022-08-04 17:36:02 -04:00
parent e84091249f
commit 2b78dce260
@@ -90,7 +90,7 @@ public class Swarm extends Mob {
for (int n : neighbours) {
if (!Dungeon.level.solid[n]
&& Actor.findChar( n ) == null
&& (Dungeon.level.passable[target] || Dungeon.level.avoid[target])
&& (Dungeon.level.passable[n] || Dungeon.level.avoid[n])
&& (!properties().contains(Property.LARGE) || Dungeon.level.openSpace[n])) {
candidates.add( n );
}