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:
parent
17c9c751f6
commit
5f82d164cf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user