component files 'poisonhealer' line 20:
target.components.poisonable:Cure(self.inst)
component files 'poisonable' line 322-399:
if give_immunity then if self.immunetask then self.immunetask:Cancel() end self.immune = true self:SpawnFX() self.immunetask = self.inst:DoTaskInTime(immunity_duration or TUNING.POISON_IMMUNE_DURATION, ImmunityOver) end
And in actions:
ACTIONS.CUREPOISON.fn = function(act)
if act.invobject and act.invobject.components.poisonhealer then
local target = act.target or act.doer
return act.invobject.components.poisonhealer:Cure(target)
end
end
Steps to Reproduce
1. c_give("antivenom")
2.c_spawn("snake_poison")
3.get attcked by snake_poison, let player get poisoned
4. far away from snake_poison
5. drink antivenom
6. Get attacked by snake_poison one more time.
7. You will be poisoned and die.
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