summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_spells.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2013-01-24 08:34:38 -0700
committerSteve Melenchuk <smelenchuk@gmail.com>2013-01-24 08:40:19 -0700
commitbd9d7a8fecc46bef40d884854d0cc567ce64d912 (patch)
tree426785def078b250e7d1bf6420ebe08f990594c7 /crawl-ref/source/l_spells.cc
parentca311d7dc6f2809218dc580760a9e5ad638e8d43 (diff)
downloadcrawl-ref-bd9d7a8fecc46bef40d884854d0cc567ce64d912.tar.gz
crawl-ref-bd9d7a8fecc46bef40d884854d0cc567ce64d912.zip
Revert "Prune duplicate code for LOS attack spells."
The new version of the code isn't particularly well written (though, apparently, better off than the code it replaces), exhibits problematic behaviour (#6566), and the original motivation for doing so (having monsters cast OTR) isn't as pressing due to the lack of monster designs that use it (there's still the rod of venom, but that can wait for someone to give this issue the attention it deserves). Fixes #6566. This reverts commit b4b189bfd0645a11f2c25c6fb702732516f5bb33.
Diffstat (limited to 'crawl-ref/source/l_spells.cc')
-rw-r--r--crawl-ref/source/l_spells.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/crawl-ref/source/l_spells.cc b/crawl-ref/source/l_spells.cc
index 2e522ae1c1..31336fd8f8 100644
--- a/crawl-ref/source/l_spells.cc
+++ b/crawl-ref/source/l_spells.cc
@@ -12,12 +12,8 @@
#include "env.h"
#include "spl-damage.h"
-LUAWRAP(_refrigeration,
- cast_los_attack_spell(SPELL_OZOCUBUS_REFRIGERATION,
- luaL_checkint(ls, 1), NULL, true))
-LUAWRAP(_toxic_radiance,
- cast_los_attack_spell(SPELL_OLGREBS_TOXIC_RADIANCE,
- luaL_checkint(ls, 1), NULL, true))
+LUAWRAP(_refrigeration, cast_refrigeration(luaL_checkint(ls, 1), true))
+LUAWRAP(_toxic_radiance, cast_toxic_radiance(true))
const struct luaL_reg spells_dlib[] =
{