sleeping steeds (trunk only)
From the newsgroup: it was possible to saddle, mount, and ride on a sleeping jabberwork without it ever waking up. Movement was checking for timed sleep (!mon->mcanmove, set when mon->mfrozen contains a timer count for either sleep or paralysis) but not indefinite sleep (mon->msleeping). This moves the checking into its own routine which handles both types. And it gives monsters a chance to wake up when they get saddled or mounted.
This commit is contained in:
@@ -1221,11 +1221,10 @@ domove()
|
||||
}
|
||||
/* not attacking an animal, so we try to move */
|
||||
#ifdef STEED
|
||||
if (u.usteed && !u.usteed->mcanmove && (u.dx || u.dy)) {
|
||||
pline("%s won't move!", upstart(y_monnam(u.usteed)));
|
||||
if ((u.dx || u.dy) && stucksteed(FALSE)) {
|
||||
nomul(0);
|
||||
return;
|
||||
} else
|
||||
}
|
||||
#endif
|
||||
if(!youmonst.data->mmove) {
|
||||
You("are rooted %s.",
|
||||
|
||||
Reference in New Issue
Block a user