v0.6.2: fixed fleeing chars knowing enemy position when they shouldn't
This commit is contained in:
parent
4368408c79
commit
ef058bbb71
|
@ -764,7 +764,9 @@ public abstract class Mob extends Char {
|
|||
//loses target when 0-dist rolls a 6 or greater.
|
||||
if (enemy == null || !enemyInFOV && 1 + Random.Int(Dungeon.level.distance(pos, target)) >= 6){
|
||||
target = -1;
|
||||
} else {
|
||||
|
||||
//if enemy isn't in FOV, keep running from their previous position.
|
||||
} else if (enemyInFOV) {
|
||||
target = enemy.pos;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user