Add helpless monster macro

This commit is contained in:
Pasi Kallinen
2022-03-18 10:19:04 +02:00
parent 480ba917a1
commit 39acd095b2
21 changed files with 66 additions and 68 deletions

View File

@@ -1848,7 +1848,7 @@ thitmonst(
and also treat gems or glass shot via sling as attacks */
if (obj->oclass == GEM_CLASS && is_unicorn(mon->data)
&& objects[obj->otyp].oc_material != MINERAL && !uslinging()) {
if (mon->msleeping || !mon->mcanmove) {
if (helpless(mon)) {
tmiss(obj, mon, FALSE);
return 0;
} else if (mon->mtame) {