webbing over stairs
Due to limitations in some interface's display capabilities, don't let polymorphed players web over stairs or ladders. As a side effect, this side-steps missing checks for webs when going up or down stairs and ladders.
This commit is contained in:
@@ -891,6 +891,13 @@ dospinweb()
|
||||
default:
|
||||
impossible("Webbing over trap type %d?", ttmp->ttyp);
|
||||
return(0);
|
||||
}
|
||||
else if (On_stairs(u.ux, u.uy)) {
|
||||
/* cop out: don't let them hide the stairs */
|
||||
Your("web fails to impede access to the %s.",
|
||||
(levl[u.ux][u.uy].typ == STAIRS) ? "stairs" : "ladder");
|
||||
return(1);
|
||||
|
||||
}
|
||||
ttmp = maketrap(u.ux, u.uy, WEB);
|
||||
if (ttmp) {
|
||||
|
||||
Reference in New Issue
Block a user