Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0006193Dwarf FortressCombat -- Generalpublic2012-09-11 12:172015-06-16 12:01
Knight Otu 
 
lowminoralways
newopen 
0.34.11 
 
0006193: Temporary IMPAIR_FUNCTION syndromes targeting eyes don't end properly
Syndromes that impair the function of the eyes for a given time do not appear to end properly - the affected creature remains blind even after the syndrome should end. The creatures do seem to regain their vision however once they take damage from other sources, as if the impair_function syndrome checks for other wounds.
Have a creature that can use the following interaction:

[INTERACTION:KO_DF_FLASH]
    [I_TARGET:A:CREATURE]
        [IT_LOCATION:CONTEXT_CREATURE]
        [IT_MANUAL_INPUT:target]
        [IT_AFFECTED_CLASS:GENERAL_POISON]
        [IT_FORBIDDEN:NOT_LIVING]
        [IT_CANNOT_TARGET_IF_ALREADY_AFFECTED]
    [I_EFFECT:ADD_SYNDROME]
        [IE_TARGET:A]
        [IE_IMMEDIATE]
        [SYNDROME]
            [SYN_NAME:light flash]
            [CE_IMPAIR_FUNCTION:SEV:10000:PROB:100:BP:BY_CATEGORY:EYE:ALL:START:0:PEAK:0:END:50]

and place it on the wall in arena mode. Place another creature in the center of the arena, and have it blinded by the light flash. Wait for a while, and observe that its eyes remain impaired.

Then add a weaker creature to the arena to fight the blinded. After a while, the latter should fight back. Check its wounds, and observe that, in all likelihood, its eyes are no longer impaired.
This behavior probably also applies to other IMPAIR_FUNCTION syndromes, but I only examined it properly with eyes.
Fixed in 0.42.01?
child of 0007084new  CE_IMPAIR_FUNCTION doesn't update until you become injured 
Issue History
2012-09-11 12:17Knight OtuNew Issue
2014-07-11 16:37Knight OtuRelationship addedchild of 0007084
2015-06-16 12:01lethosorTag Attached: Fixed in 0.40.25?
2015-12-01 15:53lethosorTag RenamedFixed in 0.40.25? => Fixed in 0.42.01?

There are no notes attached to this issue.