cursed genocide of "none"

treat this as a creation of a random monster, which still meets the
goal of not violating genocide conduct
This commit is contained in:
cohrs
2002-02-09 17:38:43 +00:00
parent 5e2692fba5
commit 750a200e60

View File

@@ -1575,7 +1575,15 @@ int how;
buf);
(void)mungspaces(buf);
/* choosing "none" preserves genocideless conduct */
if (!strcmpi(buf, "none")) return;
if (!strcmpi(buf, "none")) {
/* ... but no free pass if cursed */
if (!(how & REALLY)) {
ptr = rndmonst();
if (!ptr) return; /* no message, like normal case */
mndx = monsndx(ptr);
break; /* remaining checks don't apply */
} else return;
}
mndx = name_to_mon(buf);
if (mndx == NON_PM || (mvitals[mndx].mvflags & G_GENOD)) {