diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-27 12:46:08 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-27 12:46:08 +0000 |
commit | a86d2a52392ed50ba63ed9712c05f3574e45d695 (patch) | |
tree | 119721aaeb398f83686f783efcbf92ba5f3cd5f9 /crawl-ref/source/dungeon.cc | |
parent | 612b5c431864991b19105694131ba1314012e631 (diff) | |
download | crawl-ref-a86d2a52392ed50ba63ed9712c05f3574e45d695.tar.gz crawl-ref-a86d2a52392ed50ba63ed9712c05f3574e45d695.zip |
Fix 1974137: Stat-lowering transformations resulting in death by stat
loss. Now take to-be-removed equipment in account and don't transform
in the removed equipment or the stat loss or both in combination would
decrease one of your stats to (below) 0.
For the vampire bat transformation, this check only happens after the
ability failure check, so this could be improved. In any case, it's
better than dying.
Also, fix wrongly treating armour as worn when checking for stat loss
by wearing.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5294 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
0 files changed, 0 insertions, 0 deletions