summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-ench.cc
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-06-13 20:40:08 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-06-13 20:40:08 -0700
commit64ebc5910fabcb5ad9e9b1813df24c2ff9cb71c6 (patch)
tree9f0a0e6f2e9b8153ba2f6b7fac5bbd6485009c2d /crawl-ref/source/mon-ench.cc
parentd68dae0310a964cbd288c926be2c870d753994b0 (diff)
downloadcrawl-ref-64ebc5910fabcb5ad9e9b1813df24c2ff9cb71c6.tar.gz
crawl-ref-64ebc5910fabcb5ad9e9b1813df24c2ff9cb71c6.zip
Tidy up some web/net behaviour
Monsters should now try to escape from Arachne's ensnare immediately (on whatever incredibly rare occasions that is relevant), and shouldn't try to break out of net traps on the turn they get netted. This technically breaks save compat with the old newly_webbed prop, but in a harmless way.
Diffstat (limited to 'crawl-ref/source/mon-ench.cc')
-rw-r--r--crawl-ref/source/mon-ench.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-ench.cc b/crawl-ref/source/mon-ench.cc
index cff49f711e..d75b3afb8a 100644
--- a/crawl-ref/source/mon-ench.cc
+++ b/crawl-ref/source/mon-ench.cc
@@ -679,6 +679,9 @@ void monster::remove_enchantment_effect(const mon_enchant &me, bool quiet)
{
free_stationary_net(net);
+ if (props.exists(NEWLY_TRAPPED_KEY))
+ props.erase(NEWLY_TRAPPED_KEY);
+
if (!quiet)
simple_monster_message(this, " breaks free.");
}