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:
commit
14623af38d
2
game.cpp
2
game.cpp
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user