summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/spl-cast.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index 0b1ff598c1..83887a0464 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -342,10 +342,6 @@ int spell_fail(int spell)
default: chance += 750; break;
}
- //if (chance < 1 ) chance = 0;
- if (chance > 100)
- chance = 100;
-
chance2 = chance;
if (chance < 45)
@@ -409,14 +405,14 @@ int spell_fail(int spell)
chance2 += 10;
break;
}
-
- if (chance2 > 100)
- chance2 = 100;
}
// Apply the effects of Vehumet prayer and items of wizardry.
chance2 = apply_vehumet_wizardry_boost(spell, chance2);
+ if (chance2 > 100)
+ chance2 = 100;
+
return (chance2);
} // end spell_fail()