diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-28 17:36:36 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-28 17:36:36 +0000 |
commit | 5b8bbd1b34470c3690a5b38750425af1240877c0 (patch) | |
tree | d6b64a28d1b8a78db17125f80fda9697fd44d8ef /crawl-ref/source | |
parent | 597de1e8683a000ce4cbd3d8f341e102c966aa4c (diff) | |
download | crawl-ref-5b8bbd1b34470c3690a5b38750425af1240877c0.tar.gz crawl-ref-5b8bbd1b34470c3690a5b38750425af1240877c0.zip |
When doing spell miscasts, check directly for resistance to unholy pain
and torment instead of just undead status, so that vulnerable vampires
aren't left out.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4751 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index 039a13cfd8..c797a21d46 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -2768,7 +2768,7 @@ static void _miscast_necromancy(int severity, const char* cause) switch (random2(3)) { case 0: - if (you.is_undead) + if (player_res_torment()) { mpr("You feel weird for a moment."); break; @@ -2824,7 +2824,7 @@ static void _miscast_necromancy(int severity, const char* cause) } // otherwise it just flows through... case 2: - if (you.is_undead) + if (player_res_torment()) { mpr("You feel weird for a moment."); break; @@ -2839,7 +2839,7 @@ static void _miscast_necromancy(int severity, const char* cause) switch (random2(6)) { case 0: - if (you.is_undead) + if (player_res_torment()) { mpr("Something just walked over your grave. No, really!"); break; |