U189 - killing an engulfing monster over water allows waterwalking

- The code in xkilled failed to call spoteffects after killing the monster
that was engulfing you.  Being expelled already worked correctly.
- While testing this, I discovered that removing a ring of levitation or
similar while engulfed would call spoteffects when it shouldn't.  Fixed
that too.
This commit is contained in:
cohrs
2002-12-19 01:57:10 +00:00
parent 3c98250c96
commit aabc54549e
3 changed files with 11 additions and 2 deletions

View File

@@ -1759,8 +1759,9 @@ xkilled(mtmp, dest)
redisp = TRUE;
}
#endif
if(!accessible(x, y) && !is_pool(x, y)) {
/* might be mimic in wall or corpse in lava */
if((!accessible(x, y) && !is_pool(x, y)) ||
(x == u.ux && y == u.uy)) {
/* might be mimic in wall or corpse in lava or on player's spot */
redisp = TRUE;
if(wasinside) spoteffects(TRUE);
} else if(x != u.ux || y != u.uy) {