1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-23 15:36:59 +00:00

fixed allies handling Demons incorrectly

This commit is contained in:
Zeno Rogue 2020-03-02 02:37:47 +01:00
parent 4415db42c2
commit 62868fd752

View File

@ -213,8 +213,8 @@ EX bool ignoresPlates(eMonster m) {
EX bool isInactiveEnemy(cell *w, eMonster forwho) { EX bool isInactiveEnemy(cell *w, eMonster forwho) {
if(forwho != moPlayer) { if(forwho != moPlayer) {
if(w->monst == moGreaterM || w->monst == moLesserM) return true; if(w->monst == moGreaterM || w->monst == moLesserM) return false;
if(w->monst == moGreater || w->monst == moLesser) return false; if(w->monst == moGreater || w->monst == moLesser) return true;
} }
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))