From eef6876fa455bad0e5cec08fd8b39a5d602328b7 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Tue, 23 Dec 2008 23:31:32 +0000 Subject: 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 --- crawl-ref/source/monstuff.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref/source/monstuff.cc') 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; -- cgit v1.2.3-54-g00ecf