1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-12 02:10:34 +00:00

moveghosts no longer stops completely if one of the ghosts is stunned

This commit is contained in:
Zeno Rogue 2019-03-23 16:29:42 +01:00
parent fbf73cd66b
commit 75fff87366

View File

@ -5099,7 +5099,8 @@ void moveghosts() {
for(int i=0; i<isize(ghosts); i++) { for(int i=0; i<isize(ghosts); i++) {
cell *c = ghosts[i]; cell *c = ghosts[i];
if(c->stuntime) return; if(c->stuntime) continue;
if(isPowerMonster(c) && !playerInPower()) continue;
if(isGhostMover(c->monst)) { if(isGhostMover(c->monst)) {
int goodmoves = 0; int goodmoves = 0;
@ -5114,7 +5115,9 @@ void moveghosts() {
for(int d=0; d<=MAX_EDGE; d++) for(int i=0; i<isize(movesofgood[d]); i++) { for(int d=0; d<=MAX_EDGE; d++) for(int i=0; i<isize(movesofgood[d]); i++) {
cell *c = movesofgood[d][i]; cell *c = movesofgood[d][i];
if(c->stuntime) return;
if(c->stuntime) continue;
if(isPowerMonster(c) && !playerInPower()) continue;
if(isGhostMover(c->monst) && c->cpdist >= 1) { if(isGhostMover(c->monst) && c->cpdist >= 1) {