v0.8.0a: hunting enemies now update their target position when attacking
This commit is contained in:
parent
8b40399aa7
commit
c10456c6a4
|
@ -850,6 +850,7 @@ public abstract class Mob extends Char {
|
||||||
enemySeen = enemyInFOV;
|
enemySeen = enemyInFOV;
|
||||||
if (enemyInFOV && !isCharmedBy( enemy ) && canAttack( enemy )) {
|
if (enemyInFOV && !isCharmedBy( enemy ) && canAttack( enemy )) {
|
||||||
|
|
||||||
|
target = enemy.pos;
|
||||||
return doAttack( enemy );
|
return doAttack( enemy );
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user