Since Wigfrid has:
inst.components.health:SetAbsorptionAmount(TUNING.WATHGRITHR_ABSORPTION)
scripts/components/health.lua:273-277::
function Health:Kill() if self.currenthealth > 0 then self:DoDelta(-self.currenthealth) end end
Should be:
function Health:Kill() if self.currenthealth > 0 then self:DoDelta(-self.currenthealth, nil, nil, nil, nil, true) end end
To ignore absorption.
I'm letting invincible entities not die because you can't kill the invulnerable.
Steps to Reproduce
1. Spawn as Wigfrid. 2. Run: ThePlayer.components.health:Kill() 3. Not die and have 50hp left.
1. Spawn as Wigfrid. 2. Run: ThePlayer.components.health:Kill() 3. Not die and have 50hp left.
A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now