]> granicus.if.org Git - nethack/commit
fix #H108 - lost protection
authornethack.rankin <nethack.rankin>
Sat, 27 May 2006 01:58:22 +0000 (01:58 +0000)
committernethack.rankin <nethack.rankin>
Sat, 27 May 2006 01:58:22 +0000 (01:58 +0000)
commita58f2c59ebf93ee18514138a036f3bd3b28c7ec5
tree296d446f1fbb6d8a40af60d7a9da0bbec27cf772
parent3d40afff023d02335fdbad9326c26e2bc5faf51f
fix #H108 - lost protection

     Fix the problem From a bug report, where
giving a temple donation of the appropriate amount would fail to restore
protection previously stolen by gremlin attack iff the old protection amount
was big enough that the donation wouldn't have yielded a bonus in the normal
not-stolen case.  It shouldn't be checking the magnitude of u.ublessed at a
time when lack of the intrinsic renders that value inoperative.  After this
fix, the lost intrinsic will be granted and the old protection value will
be restored, same as happens when a prayer boon yields divine protection
(where no u.ublessed magnitude check is made) and as happened with donations
when the old protection was a more modest amount (magnitude test passed).
doc/fixes34.4
src/priest.c