Player reported that a cat which was asleep in a treasure zoo would catch and eat thrown food, becoming tamed in the process, without waking up. Temporary sleep was handled (via checking for !mon->mcanmove) but indefinite sleep wasn't. Make a monster hit by taming effect (either magic or thrown food) wake up from indefinite sleep. For temporary sleep, the remaining duration is cut in half. The timeout isn't dropped all the way to 0 because a monster with mon->mfrozen set isn't necessarily asleep. That timeout is shared by timed sleep, timed paralysis, and busy time when donning armor.
153 KiB
153 KiB