diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-23 23:31:32 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-23 23:31:32 +0000 |
commit | eef6876fa455bad0e5cec08fd8b39a5d602328b7 (patch) | |
tree | 384fea57356d183314896d298ae91890d160603e /crawl-ref/source/monstuff.cc | |
parent | ebe2b790bd35753e29a47747b270f3782b587b60 (diff) | |
download | crawl-ref-eef6876fa455bad0e5cec08fd8b39a5d602328b7.tar.gz crawl-ref-eef6876fa455bad0e5cec08fd8b39a5d602328b7.zip |
Bug #2455248: open Slime:6 vaults if the Royal Jelly is polymorphed.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7925 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index b179065d2c..a86458916c 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -1821,6 +1821,11 @@ bool monster_polymorph(monsters *monster, monster_type targetc, // the monster is still a mermaid/siren. update_beholders(monster, true); + // Inform listenerns that the original monster is gone (and + // unlock the vaults on Slime:6 if it's the Royal Jelly which + // was changed). + _fire_monster_death_event(monster, KILL_MISC, NON_MONSTER); + // the actual polymorphing: const int old_hp = monster->hit_points; const int old_hp_max = monster->max_hit_points; |