# Commits

committed 6d201bc

[Bugfix] Negative status effects are now guaranteed to last at least one turn.

• Participants
• Parent commits fbe28dd

# Story of a Lost Sky/lostsky/battle/status_effects.py

`         roll = randint(0,100)`
`         `
`         # Probability of healing: 30+10*N% where N is number of turns that have passed`
`-        if roll <= (30+10*turns):`
`+        if roll <= (30+10*turns) and turns > 0:`
`             print "%s is naturally cured of %s" % (unit.name,self.name)`
`             return True`
`         else:`
`         roll = randint(0,100)`
`         `
`         # Probability of healing: 30+10*N% where N is number of turns that have passed`
`-        if roll <= (20+10*turns):`
`+        if roll <= (20+10*turns) and turns > 0:`
`             print "%s is naturally cured of %s" % (unit.name,self.name)`
`             return True`
`         else:`
`         roll = randint(0,100)`
`         `
`         # Probability of healing: 30+10*N% where N is number of turns that have passed`
`-        if roll <= (30+10*turns):`
`+        if roll <= (30+10*turns) and turns > 0:`
`             print "%s is naturally cured of %s" % (unit.name,self.name)`
`             return True`
`         else:`
`         roll = randint(0,100)`
`         `
`         # Probability of healing: 30+10*N% where N is number of turns that have passed`
`-        if roll <= (30+10*turns):`
`+        if roll <= (30+10*turns)  and turns > 0:`
`             print "%s is naturally cured of %s" % (unit.name,self.name)`
`             return True`
`         else:`
`         roll = randint(0,100)`
`         `
`         # Probability of healing: 30+10*N% where N is number of turns that have passed`
`-        if roll <= (30+10*turns):`
`+        if roll <= (30+10*turns)  and turns > 0:`
`             print "%s is naturally cured of %s" % (unit.name,self.name)`
`             return True`
`         else:`
`         roll = randint(0,100)`
`         `
`         # Probability of healing: 30+10*N% where N is number of turns that have passed`
`-        if roll <= (30+10*turns):`
`+        if roll <= (30+10*turns)  and turns > 0:`
`             print "%s is naturally cured of %s" % (unit.name,self.name)`
`             return True`
`         else:`