mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-12 03:33:00 +00:00
fixed allies evading Demons incorrectly
This commit is contained in:
@@ -224,6 +224,10 @@ bool ignoresPlates(eMonster m) {
|
||||
}
|
||||
|
||||
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(w->monst && ((forwho == moPlayer) ? realstuntime(w) : realstuntime(w) > 1) && !isFriendly(w))
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user