summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-miscast.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-03-06 06:56:41 +0000
committerChris Campbell <chriscampbell89@gmail.com>2014-03-06 08:00:39 +0000
commit12b0153de6c791cdc964519012ee819591b7a6f8 (patch)
treeccb71e904b93e72bb5d5254d40e36023c9b9bfbf /crawl-ref/source/spl-miscast.cc
parent5b7f6eae96c378469d126cd90760e1a6bf5f9e2c (diff)
downloadcrawl-ref-12b0153de6c791cdc964519012ee819591b7a6f8.tar.gz
crawl-ref-12b0153de6c791cdc964519012ee819591b7a6f8.zip
Reroll hell effect paralysis instead of doing nothing
Diffstat (limited to 'crawl-ref/source/spl-miscast.cc')
-rw-r--r--crawl-ref/source/spl-miscast.cc37
1 files changed, 22 insertions, 15 deletions
diff --git a/crawl-ref/source/spl-miscast.cc b/crawl-ref/source/spl-miscast.cc
index d58c0269cd..259f3b6c47 100644
--- a/crawl-ref/source/spl-miscast.cc
+++ b/crawl-ref/source/spl-miscast.cc
@@ -1053,22 +1053,29 @@ void MiscastEffect::_enchantment(int severity)
case 3: // potentially lethal
// Only use first two cases for monsters.
- switch (random2(target->is_player() ? 4 : 2))
+ bool reroll = true;
+ while (reroll)
{
- case 0:
- _paralyse(2 + random2(6));
- break;
- case 1:
- _potion_effect(POT_CONFUSION, 10);
- break;
- case 2:
- contaminate_player(random2avg(18000, 3), spell != SPELL_NO_SPELL);
- break;
- case 3:
- while (curse_an_item(true) && !one_chance_in(3))
- ;
- mpr("You sense an overwhelmingly malignant aura!");
- break;
+ switch (random2(target->is_player() ? 4 : 2))
+ {
+ case 0:
+ reroll = !_paralyse(2 + random2(6));
+ break;
+ case 1:
+ _potion_effect(POT_CONFUSION, 10);
+ reroll = false;
+ break;
+ case 2:
+ contaminate_player(random2avg(18000, 3), spell != SPELL_NO_SPELL);
+ reroll = false;
+ break;
+ case 3:
+ while (curse_an_item(true) && !one_chance_in(3))
+ ;
+ mpr("You sense an overwhelmingly malignant aura!");
+ reroll = false;
+ break;
+ }
}
break;
}