Elbereth on unoccupied locations

Pat recently forwarded a discussion that Elbereth was ignored unless there
was an object on its location.  Mostly.  It was also respected if the hero
was Displaced, no matter where the hero was.  No one commented on his
message, which I took for assent to address this.  Removed the qualifiers, so
now Elbereth is always respected, just like a scroll of scare monster.
This commit is contained in:
cohrs
2006-09-24 01:36:40 +00:00
parent 21eb6adf36
commit 13559f1ad8
2 changed files with 2 additions and 1 deletions

View File

@@ -1081,7 +1081,7 @@ nexttry: /* eels prefer the water, but if there is no water nearby,
}
info[cnt] = 0;
if ((checkobj || Displaced) && onscary(dispx, dispy, mon)) {
if (onscary(dispx, dispy, mon)) {
if(!(flag & ALLOW_SSM)) continue;
info[cnt] |= ALLOW_SSM;
}