summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 3c3fcb49b3..7088423fde 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -478,11 +478,8 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent)
return;
if (mons_is_caught(monster))
- {
- int net = get_trapping_net(monster->x,monster->y);
- if (net != NON_ITEM)
- remove_item_stationary(mitm[net]);
- }
+ mons_clear_trapping_net(monster);
+
// update list of monsters beholding player
update_beholders(monster, true);
@@ -1346,8 +1343,8 @@ bool monster_blink(monsters *monster)
false, false))
return (false);
- if (monster->has_ench(ENCH_HELD))
- monster->del_ench(ENCH_HELD, true);
+ if (mons_is_caught(monster))
+ mons_clear_trapping_net(monster);
mgrd[monster->x][monster->y] = NON_MONSTER;