From dde1abbfade408b6d808d5207d5f15e7da489f56 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 13 Aug 2014 02:28:25 -0400 Subject: fix message when the wizard is freed in trog_wizard (8756) --- crawl-ref/source/dat/des/altar/trog_wizard.des | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/crawl-ref/source/dat/des/altar/trog_wizard.des b/crawl-ref/source/dat/des/altar/trog_wizard.des index 9627fa6890..1f91c2f3fa 100644 --- a/crawl-ref/source/dat/des/altar/trog_wizard.des +++ b/crawl-ref/source/dat/des/altar/trog_wizard.des @@ -31,8 +31,16 @@ function callback.trog_wizard_convert_wizard(data, triggerable, end dgn.place_cloud(_x, _y, "flame", 15) - crawl.god_speaks("Trog", "Flames erupt from the bowels of the wizard! " - .. "Trog roars with satisfaction!") + local mons = dgn.mons_at(_x, _y) + if mons and mons.base_name == "wizard" then + crawl.god_speaks("Trog", "Flames erupt from the bowels of the wizard! " + .. "Trog roars with satisfaction!") + else + crawl.god_speaks("Trog", "Flames erupt from the wizard's " + .. (mons and "" or "empty ") + .. "cell! " + .. "Trog roars with frustration!") + end data.triggered = true end end -- cgit v1.2.3-54-g00ecf