v0.8.2b: fully allowed wraiths to spawn ontop of traps
This commit is contained in:
parent
1f06f09175
commit
5387559191
|
@ -95,10 +95,7 @@ public class Wraith extends Mob {
|
||||||
|
|
||||||
public static void spawnAround( int pos ) {
|
public static void spawnAround( int pos ) {
|
||||||
for (int n : PathFinder.NEIGHBOURS4) {
|
for (int n : PathFinder.NEIGHBOURS4) {
|
||||||
int cell = pos + n;
|
spawnAt( pos + n );
|
||||||
if (Dungeon.level.passable[cell] && Actor.findChar( cell ) == null) {
|
|
||||||
spawnAt( cell );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user