fix github issue #111 - stone-to-flesh of statues
Fixes #111 Casting stone-to-flesh at a random statue animates it as a monster (created via direct call to makemon()) at an adjacent or nearby spot if there is already a monster at the statue's spot, but doing so on a statue of a petrified monster (create attempt via montraits() which called makemon() without the ADJACENTOK flag) turned it into a corpse instead. Pass an extra argument to montraits() so that it behaves the same normal statue animation for stone-to-flesh without changing how it behaves when reviving corpses for undead-turning.
This commit is contained in:
@@ -595,7 +595,7 @@ int *fail_reason;
|
||||
if (use_saved_traits) {
|
||||
/* restore a petrified monster */
|
||||
cc.x = x, cc.y = y;
|
||||
mon = montraits(statue, &cc);
|
||||
mon = montraits(statue, &cc, (cause == ANIMATE_SPELL));
|
||||
if (mon && mon->mtame && !mon->isminion)
|
||||
wary_dog(mon, TRUE);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user