diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-09-25 21:13:05 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-09-25 21:13:05 +0000 |
commit | f912ff12a2e7b4df7cee5d2e91333083596945b8 (patch) | |
tree | b893f26ff903fb725a8ccd5c2f962c4451d3c06b /crawl-ref/source | |
parent | f327c6b8b5bf2f375204348f0d08858733748ac4 (diff) | |
download | crawl-ref-f912ff12a2e7b4df7cee5d2e91333083596945b8.tar.gz crawl-ref-f912ff12a2e7b4df7cee5d2e91333083596945b8.zip |
Implemented 1565247: flying/levitating PCs take half damage from static discharge.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@118 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/spells4.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index fd0a3bda20..9c92eb6ba9 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -1260,6 +1260,8 @@ static int discharge_monsters( int x, int y, int pow, int garbage ) mpr( "You are struck by lightning." ); damage = 3 + random2( 5 + pow / 10 ); damage = check_your_resists( damage, BEAM_ELECTRICITY ); + if ( player_is_levitating() ) + damage /= 2; ouch( damage, 0, KILLED_BY_WILD_MAGIC ); } else if (mon == NON_MONSTER) |