summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat/altar.des
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/dat/altar.des')
-rw-r--r--crawl-ref/source/dat/altar.des5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/dat/altar.des b/crawl-ref/source/dat/altar.des
index 513838d30d..b9205e08c9 100644
--- a/crawl-ref/source/dat/altar.des
+++ b/crawl-ref/source/dat/altar.des
@@ -1036,16 +1036,15 @@ function convert_book (data, triggerable, triggerer, marker, ev)
return
end
- local book = dgn.items_at(_x, _y)[1]
- if book ~= nil then
+ for book in iter.stash_iterator(_x, _y) do
if string.find(items.name(book), 'book') then
items.destroy(book)
dgn.place_cloud(_x, _y, "flame", 15)
crawl.god_speaks("Trog", "The book bursts into flames! "
.. "Trog roars with delight!")
- triggerable:remove(marker)
end
end
+ triggerable:remove(marker)
end
end