From 0822d05b5a0597c3521a9440997e37b217b2cdb0 Mon Sep 17 00:00:00 2001 From: Darshan Shaligram Date: Wed, 30 Dec 2009 00:29:14 +0530 Subject: Add extra check to prevent Ilsuiw using call tide outside Shoals. --- crawl-ref/source/mon-cast.cc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'crawl-ref/source/mon-cast.cc') diff --git a/crawl-ref/source/mon-cast.cc b/crawl-ref/source/mon-cast.cc index 5190625c61..895466f322 100644 --- a/crawl-ref/source/mon-cast.cc +++ b/crawl-ref/source/mon-cast.cc @@ -1680,16 +1680,17 @@ void mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast, return; case SPELL_CALL_TIDE: - { - const int tide_duration = random_range(18, 50, 2); - monster->add_ench(mon_enchant(ENCH_TIDE, 0, KC_OTHER, - tide_duration * 10)); - monster->props[TIDE_CALL_TURN] = you.num_turns; - simple_monster_message(monster, - " sings a water chant to call the tide!"); - flash_view_delay(ETC_WATER, 300); + if (player_in_branch(BRANCH_SHOALS)) + { + const int tide_duration = random_range(18, 50, 2); + monster->add_ench(mon_enchant(ENCH_TIDE, 0, KC_OTHER, + tide_duration * 10)); + monster->props[TIDE_CALL_TURN] = you.num_turns; + simple_monster_message(monster, + " sings a water chant to call the tide!"); + flash_view_delay(ETC_WATER, 300); + } return; - } case SPELL_SUMMON_SMALL_MAMMALS: case SPELL_VAMPIRE_SUMMON: -- cgit v1.2.3-54-g00ecf