mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
moveghosts no longer stops completely if one of the ghosts is stunned
This commit is contained in:
parent
fbf73cd66b
commit
75fff87366
7
game.cpp
7
game.cpp
@ -5099,7 +5099,8 @@ void moveghosts() {
|
||||
for(int i=0; i<isize(ghosts); i++) {
|
||||
cell *c = ghosts[i];
|
||||
|
||||
if(c->stuntime) return;
|
||||
if(c->stuntime) continue;
|
||||
if(isPowerMonster(c) && !playerInPower()) continue;
|
||||
|
||||
if(isGhostMover(c->monst)) {
|
||||
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++) {
|
||||
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) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user