diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-21 07:04:54 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-21 07:04:54 +0000 |
commit | 4caf249f71150e9e083e9c3e5b0f0f046c5ef64f (patch) | |
tree | 6fc6b9b5bd50d0cc432af4e89051a19c52630ed6 /crawl-ref/source/fight.cc | |
parent | cf72d214ea56a4198e4fd9817cde7c7bef45622f (diff) | |
download | crawl-ref-4caf249f71150e9e083e9c3e5b0f0f046c5ef64f.tar.gz crawl-ref-4caf249f71150e9e083e9c3e5b0f0f046c5ef64f.zip |
You can now request that a spell miscast effect not directly kill the player
and leave him/her with at least N hp (it can still indirectly kill the player
by causing the death of a mummy, giant spore or ball lightning). Doesn't cover
the case of a level 3 transmigration miscast deleting the robust mutation or
giving the frail mutation before causing hp damage.
The Xom bad effects code now requests (unless Xom is being nasty) that spell
miscasts not directly kill the player, rather than avoiding miscasts
alltogether if the player has low HP (which didn't cover things like miscasts
leading to death via XP drain or stat loss, in addition to it avoiding spell
miscasts much too often).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7894 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r-- | crawl-ref/source/fight.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index 7187662e87..213110157d 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -2701,7 +2701,7 @@ void melee_attack::do_miscast() } MiscastEffect(miscast_target, source, (spschool_flag_type) miscast_type, - miscast_level, cause, NH_NEVER, hand_str, false); + miscast_level, cause, NH_NEVER, 0, hand_str, false); // Don't do miscast twice for one attack. miscast_level = -1; |