Unit dies by healing
Unit dies by healing
I've created some dark unit, and it dies when healed by my unit. So, I want to get rid of that, but can't figure out what is causing that. I know I have to mess up with tags, but I can't see any flag that makes my unit die by healing. By the way, "Cannot be healed" flag doesn't seem to work.
I don't think that's exactly how it works - i.e. if you set a unit's healing fraction to .1 and heal it when at full health, it doesn't lose any (it doesn't go down to .1). It only seems to lose health if it's actually 0 - if it's higher that's the maximum amount of health a unit can have after healing, not the health it's set to after healing.Gleep wrote:A-Red is correct the heal fraction is what is doing it. It sets how much health a unit has after healing. If it is set to 0 then that is what it has after healing and hence it dies.
Last edited by Khadrelt on Mon Nov 26, 2007 2:52 pm, edited 2 times in total.
The cake is a lie.
Yeah, you're certainly right, because you would hurt your units while healing them when their health is fullKhadrelt wrote:I don't think that's exactly how it works - i.e. if you set a unit's healing fraction to .1 and heal it when at full health, it doesn't lose any (it doesn't go down to .1). It only seems to lose health if it's actually 0 - if it's higher that's the maximum amount of health a unit can have after healing, not the health it's set to after healing.Gleep wrote:A-Red is correct the heal fraction is what is doing it. It sets how much health a unit has after healing. If it is set to 0 then that is what it has after healing and hence it dies.