From 2cba7ec21c6dab38df61ee06c5dacc78c0b218c7 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Tue, 3 Nov 2009 16:30:34 +0100 Subject: Make Chain Lightning a monster spell, add an user of it (Nikola). --- crawl-ref/source/monster.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/monster.cc') diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc index fd448b8fee..67df8f42ab 100644 --- a/crawl-ref/source/monster.cc +++ b/crawl-ref/source/monster.cc @@ -1482,9 +1482,13 @@ bool monsters::pickup_armour(item_def &item, int near, bool force) eq = EQ_BODY_ARMOUR; break; case ARM_CLOAK: - if (this->type == MONS_MAURICE) + if (this->type == MONS_MAURICE || this->type == MONS_NIKOLA) eq = EQ_BODY_ARMOUR; break; + case ARM_GLOVES: + if (this->type == MONS_NIKOLA) + eq = EQ_SHIELD; + break; default: eq = get_armour_slot(item); } @@ -2708,7 +2712,7 @@ bool monsters::caught() const int monsters::shield_bonus() const { const item_def *shld = const_cast(this)->shield(); - if (shld) + if (shld && get_armour_slot(*shld) == EQ_SHIELD) { // Note that 0 is not quite no-blocking. if (incapacitated()) -- cgit v1.2.3-54-g00ecf