From 6c05a8337e26b40f1cfebbf14cbc00ab0e2b6c8b Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Fri, 13 Nov 2009 14:51:31 +1000 Subject: New monster spell: Sleep. Give sleep to Aizul. Unlike Ensorcelled Hibernation, Sleep checks MR only, rather than MR and cold resistance. It also does not check monsters having SLEEP_WEARY. It will not act on something that is already sleep. --- crawl-ref/source/mon-util.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crawl-ref/source/mon-util.cc') diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index d070c47b98..d891ed2b50 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -2415,6 +2415,7 @@ bool ms_waste_of_time( const monsters *mon, spell_type monspell ) case SPELL_BANISHMENT: case SPELL_DISINTEGRATE: case SPELL_PARALYSE: + case SPELL_SLEEP: case SPELL_HIBERNATION: { if (monspell == SPELL_HIBERNATION && (!foe || foe->asleep())) @@ -2540,6 +2541,7 @@ static bool _ms_ranged_spell(spell_type monspell, bool attack_only = false, case SPELL_CONFUSE: case SPELL_SLOW: case SPELL_PARALYSE: + case SPELL_SLEEP: case SPELL_TELEPORT_OTHER: return (ench_too); -- cgit v1.2.3-54-g00ecf