1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

fixed monster infighting due to treating monster as mounted

This commit is contained in:
Zeno Rogue 2018-03-08 20:23:46 +01:00
parent 23a2a98893
commit f8c83a694a

View File

@ -138,7 +138,7 @@ bool isFriendlyOrPlayer(eMonster m) {
}
bool isMounted(cell *c) {
if(c && c->monst && c->monst != moTentacleGhost) {
if(c && c->monst && c->monst != moTentacleGhost && isMountable(c->monst)) {
for(int i=0; i<numplayers(); i++) {
if(playerpos(i)->monst && sameMonster(c, playerpos(i)))
return true;