v1.4.0: fixed an error with swarm duplication logic from earlier commit
This commit is contained in:
@@ -90,7 +90,7 @@ public class Swarm extends Mob {
|
|||||||
for (int n : neighbours) {
|
for (int n : neighbours) {
|
||||||
if (!Dungeon.level.solid[n]
|
if (!Dungeon.level.solid[n]
|
||||||
&& Actor.findChar( n ) == null
|
&& 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])) {
|
&& (!properties().contains(Property.LARGE) || Dungeon.level.openSpace[n])) {
|
||||||
candidates.add( n );
|
candidates.add( n );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user