followup to fix for M63 - magic lamp wishes
This uses Michael's suggestion for keeping the display up to date when removing a djinni or water demon in advance of granting a wish (so that it won't be present in a bones file if the wish is fatal--problem with earlier fix was that player could notice monster was already gone while responding to the wish prompt). It's not quite as straightforward as I was hoping for and would get a lot messier if it needed to cope with Warning & Warn_of_mon.
This commit is contained in:
@@ -56,10 +56,8 @@ dowaterdemon() /* Water demon */
|
||||
if (rnd(100) > (80 + level_difficulty())) {
|
||||
pline("Grateful for %s release, %s grants you a wish!",
|
||||
mhis(mtmp), mhe(mtmp));
|
||||
/* bones prep: remove demon first in case the wish
|
||||
turns out to be fatal (artifact blast) */
|
||||
mongone(mtmp);
|
||||
makewish();
|
||||
/* give a wish and discard the monster (mtmp set to null) */
|
||||
mongrantswish(&mtmp);
|
||||
} else if (t_at(mtmp->mx, mtmp->my))
|
||||
(void) mintrap(mtmp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user