1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-28 14:49:54 +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() { EX eMonster haveMount() {
for(cell *pc: player_positions()) { for(cell *pc: player_positions()) {
eMonster m = pc->monst; eMonster m = pc->monst;
if(m) return m; if(isWorm(m)) return m;
} }
return moNone; return moNone;
} }