diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-27 00:50:45 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-27 00:50:45 +0000 |
commit | 2cc5984b6657b5c1e92de96abda7fff2acedc559 (patch) | |
tree | e6a6a9cc83a85c64b45675b10754de922d3a44cf /crawl-ref/source/transfor.cc | |
parent | 1d361d6db0e0c340c865ed9bbf90f77b8f3b5934 (diff) | |
download | crawl-ref-2cc5984b6657b5c1e92de96abda7fff2acedc559.tar.gz crawl-ref-2cc5984b6657b5c1e92de96abda7fff2acedc559.zip |
Recheck the terrain after all transformations, not just dragons, to
handle other forms that fly, such as bats, as well as any future forms
that may place the player in inhospitable terrain when the
transformation wears off.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6161 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/transfor.cc')
-rw-r--r-- | crawl-ref/source/transfor.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/crawl-ref/source/transfor.cc b/crawl-ref/source/transfor.cc index df10d0562e..8e9887071b 100644 --- a/crawl-ref/source/transfor.cc +++ b/crawl-ref/source/transfor.cc @@ -712,12 +712,7 @@ void untransform(void) mpr( "Your transformation has ended.", MSGCH_DURATION ); modify_stat(STAT_STRENGTH, -10, true, "losing the dragon transformation" ); - - // Re-check terrain now that be may no longer be flying. - move_player_to_grid( you.x_pos, you.y_pos, false, true, true ); - hp_downscale = 16; - break; case TRAN_LICH: @@ -744,6 +739,9 @@ void untransform(void) break; } + // Re-check terrain now that be may no longer be flying. + move_player_to_grid(you.x_pos, you.y_pos, false, true, true); + if (transform_can_butcher_barehanded(old_form)) stop_butcher_delay(); |