diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-17 09:44:27 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-17 09:44:27 +0000 |
commit | 7e4d7e95e692aa3fa32430cd9ddaece5ad96e2fa (patch) | |
tree | c475fb6b51eb8ac2165cbca4342da3a6e2aa0d13 | |
parent | c2864252f1c893a9ce7422e9b1fbe43073d6dac9 (diff) | |
download | crawl-ref-7e4d7e95e692aa3fa32430cd9ddaece5ad96e2fa.tar.gz crawl-ref-7e4d7e95e692aa3fa32430cd9ddaece5ad96e2fa.zip |
Fix casting Ball Lightning asserting. The Ball Lightning spell manually sets
the "short-lived" duration on the summoned monsters, so it doesn't need to
supply an abjuration longevity.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8502 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/monplace.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/monplace.h b/crawl-ref/source/monplace.h index c71f9252f7..b92ae4bd60 100644 --- a/crawl-ref/source/monplace.h +++ b/crawl-ref/source/monplace.h @@ -200,7 +200,8 @@ struct mgen_data flags(monflags), god(which_god), number(monnumber), colour(moncolour), power(monpower), proximity(prox), level_type(ltype), map_mask(0) { - ASSERT(summon_type == 0 || (abj >= 1 && abj <= 6)); + ASSERT(summon_type == 0 || (abj >= 1 && abj <= 6) + || mt == MONS_BALL_LIGHTNING); } bool permit_bands() const { return (flags & MG_PERMIT_BANDS); } |