ghosts prioritize attacking players over attacking allies

This commit is contained in:
Zeno Rogue 2022-06-17 10:56:31 +02:00
parent fe42b5e2ef
commit 9fbe770db9
1 changed files with 1 additions and 1 deletions

View File

@ -1528,7 +1528,7 @@ EX void moveghosts() {
vector<int> mdir;
for(int j=0; j<c->type; j++)
for(int p: {0, 1}) for(int j=0; j<c->type; j++) if(p == 1 || (c->move(j) && isPlayerOn(c->move(j))))
if(c->move(j) && canAttack(c, c->monst, c->move(j), c->move(j)->monst, AF_GETPLAYER | AF_ONLY_FBUG)) {
// XLATC ghost/greater shark