summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index 0720b60d95..e24f6bf58f 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -673,7 +673,7 @@ bool cast_a_spell()
const bool staff_energy = player_energy();
if (you.duration[DUR_CONF])
- random_uselessness( 2 + random2(7), 0 );
+ random_uselessness();
else
{
const spret_type cast_result = your_spells( spell );
@@ -2297,7 +2297,7 @@ static void _miscast_enchantment(int severity, const char* cause)
potion_effect(POT_LEVITATION, 20);
break;
case 1:
- random_uselessness(2 + random2(7), 0);
+ random_uselessness();
break;
}
break;
@@ -2993,7 +2993,7 @@ static void _miscast_transmigration(int severity, const char* cause)
ouch(1 + random2avg(11, 2), 0, KILLED_BY_WILD_MAGIC, cause);
break;
case 1:
- random_uselessness(2 + random2(7), 0);
+ random_uselessness();
break;
}
break;