mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 01:00:25 +00:00
fixed monster infighting due to treating monster as mounted
This commit is contained in:
parent
23a2a98893
commit
f8c83a694a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user