steeds don't remember traps

<Someone> reported to the list that steeds didn't remember traps
encountered while mounted.  When not mounted, a monster will remember
traps, even when they don't damage the monster.  To that end, added code to
set the steed's mtrapseen mask.
This commit is contained in:
cohrs
2003-02-13 05:23:46 +00:00
parent 6cf5c60dcc
commit 6885f18bb1
2 changed files with 5 additions and 0 deletions

View File

@@ -552,6 +552,10 @@ unsigned trflags;
}
}
#ifdef STEED
if (u.usteed) u.usteed->mtrapseen |= (1 << (ttype-1));
#endif
switch(ttype) {
case ARROW_TRAP:
seetrap(trap);