Fix infinite throne looting when confused

This could be used to generate monsters ad infinitum.
This commit is contained in:
Pasi Kallinen
2015-11-24 11:16:03 +02:00
parent 6ed4f24d24
commit 3a1e9ccd80

View File

@@ -1818,10 +1818,13 @@ reverse_loot()
boxdummy = zeroobj, boxdummy.otyp = SPE_WIZARD_LOCK;
(void) boxlock(coffers, &boxdummy);
}
} else if ((mon = makemon(courtmon(), x, y, NO_MM_FLAGS)) != 0) {
} else if (levl[x][y].looted != T_LOOTED &&
(mon = makemon(courtmon(), x, y, NO_MM_FLAGS)) != 0) {
freeinv(goldob);
add_to_minv(mon, goldob);
pline("The exchequer accepts your contribution.");
if (!rn2(10))
levl[x][y].looted = T_LOOTED;
} else {
You("drop %s.", doname(goldob));
dropx(goldob);