summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-cast.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-11-03 16:30:34 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-11-03 16:30:34 +0100
commit2cba7ec21c6dab38df61ee06c5dacc78c0b218c7 (patch)
tree4766f1552c31e1da45975299e4c2ea4fa3d5383e /crawl-ref/source/mon-cast.cc
parent41e35978a7f48612ef9d8017379f8b2536739e43 (diff)
downloadcrawl-ref-2cba7ec21c6dab38df61ee06c5dacc78c0b218c7.tar.gz
crawl-ref-2cba7ec21c6dab38df61ee06c5dacc78c0b218c7.zip
Make Chain Lightning a monster spell, add an user of it (Nikola).
Diffstat (limited to 'crawl-ref/source/mon-cast.cc')
-rw-r--r--crawl-ref/source/mon-cast.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-cast.cc b/crawl-ref/source/mon-cast.cc
index 619e719d2e..c621237be5 100644
--- a/crawl-ref/source/mon-cast.cc
+++ b/crawl-ref/source/mon-cast.cc
@@ -686,6 +686,7 @@ void setup_mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast)
case SPELL_BLINK:
case SPELL_CONTROLLED_BLINK:
case SPELL_TOMB_OF_DOROKLOHE:
+ case SPELL_CHAIN_LIGHTNING: // the only user is reckless
return;
default:
break;
@@ -1942,6 +1943,11 @@ void mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast,
monster->number = 1; // mark Khufu as entombed
return;
}
+ case SPELL_CHAIN_LIGHTNING:
+ if (!monsterNearby || mons_friendly(monster))
+ return;
+ cast_chain_lightning(4 * monster->hit_dice, monster);
+ return;
}
// If a monster just came into view and immediately cast a spell,