diff options
author | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2009-12-30 00:29:14 +0530 |
---|---|---|
committer | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2009-12-30 00:29:14 +0530 |
commit | 0822d05b5a0597c3521a9440997e37b217b2cdb0 (patch) | |
tree | f45e0c729c7773d46de37ddcd4633d5e9cf2ccc5 /crawl-ref/source/mon-cast.cc | |
parent | 7152c75c893858061d13bf55f96d1c1f4ca416c5 (diff) | |
download | crawl-ref-0822d05b5a0597c3521a9440997e37b217b2cdb0.tar.gz crawl-ref-0822d05b5a0597c3521a9440997e37b217b2cdb0.zip |
Add extra check to prevent Ilsuiw using call tide outside Shoals.
Diffstat (limited to 'crawl-ref/source/mon-cast.cc')
-rw-r--r-- | crawl-ref/source/mon-cast.cc | 19 |
1 files changed, 10 insertions, 9 deletions
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: |