github issue #1312 - prot from shape changers
Issue reported by youkan700: shape change anomalies. Shapechangers could change shape despite active protection-from-shape-changers if hero wore two rings of protection from shape changers and took one off. Shapechangers who migrated to a not-yet-visited level that eventually got visited with protection from shape changers in effect would be stuck in their current shape, even if the PfSC attribute got toggled off and back on. The issue included suggested fixes and those are what I've used. I noticed a third case that only applies to wizard mode: if player used #wizintrinsic to set a timed value for PfSC, monsters wouldn't resume changing shape after it timed out, unless/until it got toggled on and back off via a PfSC ring or hero left the level and returned. Fixes #1312
This commit is contained in:
@@ -4465,7 +4465,7 @@ get_iter_mons_xy(
|
||||
|
||||
/* force all chameleons and mimics to become themselves and werecreatures
|
||||
to revert to human form; called when Protection_from_shape_changers gets
|
||||
activated via wearing or eating ring or wizintrinsics */
|
||||
activated via wearing or eating ring or via #wizintrinsic */
|
||||
void
|
||||
rescham(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user