Can't swallow trapped monsters
Gulping can move the trapped monster to another location, while still being marked as trapped. I don't want to deal with this, so just say purple worms can't swallow trapped monsters...
This commit is contained in:
@@ -717,6 +717,10 @@ engulf_target(struct monst *magr, struct monst *mdef)
|
|||||||
if (mdef->data->msize >= MZ_HUGE)
|
if (mdef->data->msize >= MZ_HUGE)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
/* can't swallow trapped monsters. TODO: could do some? */
|
||||||
|
if (mdef->mtrapped)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
/* (hypothetical) engulfers who can pass through walls aren't
|
/* (hypothetical) engulfers who can pass through walls aren't
|
||||||
limited by rock|trees|bars */
|
limited by rock|trees|bars */
|
||||||
if ((magr == &g.youmonst) ? Passes_walls : passes_walls(magr->data))
|
if ((magr == &g.youmonst) ? Passes_walls : passes_walls(magr->data))
|
||||||
|
|||||||
Reference in New Issue
Block a user