\#wizkill tweak
If wizard mode player targets 'I' with #wizkill and there is no monster there, remove that 'I'.
This commit is contained in:
@@ -1281,8 +1281,9 @@ wiz_kill(void)
|
|||||||
isn't; note that if it triggers other kills, those might
|
isn't; note that if it triggers other kills, those might
|
||||||
be referred to as "it" */
|
be referred to as "it" */
|
||||||
int tame = !!mtmp->mtame, seen = canspotmon(mtmp),
|
int tame = !!mtmp->mtame, seen = canspotmon(mtmp),
|
||||||
flgs = SUPPRESS_IT | SUPPRESS_HALLUCINATION
|
flgs = (SUPPRESS_IT | SUPPRESS_HALLUCINATION
|
||||||
| ((tame && has_mgivenname(mtmp)) ? SUPPRESS_SADDLE : 0),
|
| ((tame && has_mgivenname(mtmp)) ? SUPPRESS_SADDLE
|
||||||
|
: 0)),
|
||||||
articl = tame ? ARTICLE_YOUR : seen ? ARTICLE_THE : ARTICLE_A;
|
articl = tame ? ARTICLE_YOUR : seen ? ARTICLE_THE : ARTICLE_A;
|
||||||
const char *adjs = tame ? (!seen ? "poor, unseen" : "poor")
|
const char *adjs = tame ? (!seen ? "poor, unseen" : "poor")
|
||||||
: (!seen ? "unseen" : (const char *) 0);
|
: (!seen ? "unseen" : (const char *) 0);
|
||||||
@@ -1307,6 +1308,7 @@ wiz_kill(void)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
There("is no monster there.");
|
There("is no monster there.");
|
||||||
|
(void) unmap_invisible(cc.x, cc.y);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user