1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-24 22:23:18 +00:00

Merge pull request #201 from jruderman/f9

haveMount: check specifically for worm-type monsters
This commit is contained in:
Zeno Rogue 2021-07-10 09:31:09 +02:00 committed by GitHub
commit 14623af38d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -503,7 +503,7 @@ EX bool sameMonster(cell *c1, cell *c2) {
EX eMonster haveMount() {
for(cell *pc: player_positions()) {
eMonster m = pc->monst;
if(m) return m;
if(isWorm(m)) return m;
}
return moNone;
}