summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-21 20:03:28 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-21 20:03:28 +0000
commit1dee1ada624931648ac37a7a7f175f6c9a4a63a3 (patch)
tree1c9d7fa02f4d92e68086c0c8304f4fcca1621901 /crawl-ref/source/effects.cc
parentea2e13d9dc897bbe45a55d7a58e544f2ef44c970 (diff)
downloadcrawl-ref-1dee1ada624931648ac37a7a7f175f6c9a4a63a3.tar.gz
crawl-ref-1dee1ada624931648ac37a7a7f175f6c9a4a63a3.zip
Fix 2121686: buggy net handling when returning to a level
FR 2029644: Some small tutorial improvements. Switch off autopickup if you see a monster turn invisible. (BR 2085502) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6970 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 522c6f0742..70e5843bf0 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -2863,6 +2863,10 @@ void update_level(double elapsedTime)
false);
}
+ // Handle nets specially to remove the trapping property of the net.
+ if (mons_is_caught(mon))
+ mon->del_ench(ENCH_HELD, true);
+
_catchup_monster_moves(mon, turns);
if (turns >= 10 && mon->alive())