Code: Select all
if self:knowTalent(self.T_VITALITY) and e.status == "detrimental" and (e.subtype.wound or e.subtype.poison or e.subtype.disease) then
- local t = self:getTalentFromId(self.T_VITALITY)
+ local t = util.bound(self:getTalentFromId(self.T_VITALITY), 0, 1)
p.dur = math.ceil(p.dur * (1 - t.getWoundReduction(self, t)))
end
Code: Select all
if self:knowTalent(self.T_VITALITY) and e.status == "detrimental" and (e.subtype.wound or e.subtype.poison or e.subtype.disease) then
local t = self:getTalentFromId(self.T_VITALITY)
- p.dur = math.ceil(p.dur * (1 - t.getWoundReduction(self, t)))
+ p.dur = math.ceil(p.dur * (1 - util.bound(t.getWoundReduction(self, t), 0, 1)))
end