statue of stone golem animates as flesh golem

This commit is contained in:
nethack.allison
2003-03-09 18:39:26 +00:00
parent 56585d286f
commit 30d81e9097
2 changed files with 6 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ Never say "It moves only reluctantly"
expert fireball/cone of cold could not target a monster seen only with
infravision or ESP
display "lotus juice", not "lotu juice" for the fruit juice name
statue of Stone golem hit with stone-to-flesh spell animates as flesh golem
Platform- and/or Interface-Specific Fixes

View File

@@ -417,13 +417,17 @@ int *fail_reason;
if (mon && mon->mtame && !mon->isminion)
wary_dog(mon, TRUE);
} else {
/* statue of Stone golem hit with Stone-to-flesh becomes flesh golem */
if (statue->corpsenm == PM_STONE_GOLEM && cause == ANIMATE_SPELL)
mptr = &mons[PM_FLESH_GOLEM];
else
mptr = &mons[statue->corpsenm];
/*
* Guard against someone wishing for a statue of a unique monster
* (which is allowed in normal play) and then tossing it onto the
* [detected or guessed] location of a statue trap. Normally the
* uppermost statue is the one which would be activated.
*/
mptr = &mons[statue->corpsenm];
if (mptr->geno & G_UNIQ) {
if (fail_reason) *fail_reason = AS_MON_IS_UNIQUE;
return (struct monst *)0;