1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 15:00:26 +00:00

fixed allies evading Demons incorrectly

This commit is contained in:
Zeno Rogue 2019-07-28 11:09:06 +02:00
parent 17c9c751f6
commit 5f82d164cf

View File

@ -224,6 +224,10 @@ bool ignoresPlates(eMonster m) {
} }
bool isInactiveEnemy(cell *w, eMonster forwho) { bool isInactiveEnemy(cell *w, eMonster forwho) {
if(forwho != moPlayer) {
if(w->monst == moGreaterM || w->monst == moLesserM) return true;
if(w->monst == moGreater || w->monst == moLesser) return false;
}
if(isInactiveEnemyType(w->monst)) return true; if(isInactiveEnemyType(w->monst)) return true;
if(w->monst && ((forwho == moPlayer) ? realstuntime(w) : realstuntime(w) > 1) && !isFriendly(w)) if(w->monst && ((forwho == moPlayer) ? realstuntime(w) : realstuntime(w) > 1) && !isFriendly(w))
return true; return true;