cancellation, polymorphed and unchanging
<Someone> reported that a wand of cancellation would ignore Unchanging, noting the case of cancelling yourself while polymorphed into a stone golem. He thought the wand should win, killing the player. I felt otherwise, since the case he specified passes the flag allow_cancel_kill == FALSE.
This commit is contained in:
@@ -2213,7 +2213,11 @@ boolean youattack, allow_cancel_kill, self_cancel;
|
||||
if (Upolyd) {
|
||||
if ((u.umonnum == PM_CLAY_GOLEM) && !Blind)
|
||||
pline(writing_vanishes, your);
|
||||
rehumanize();
|
||||
|
||||
if (Unchanging)
|
||||
Your("amulet grows hot for a moment, then cools.");
|
||||
else
|
||||
rehumanize();
|
||||
}
|
||||
} else {
|
||||
mdef->mcan = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user