Skip to content
Snippets Groups Projects
Commit 20701851 authored by dg's avatar dg
Browse files

oups

git-svn-id: http://svn.net-core.org/repos/t-engine4@4967 51575b47-30f0-44d4-a5cc-537603b46e54
parent 9de125f1
No related branches found
No related tags found
No related merge requests found
......@@ -3295,7 +3295,7 @@ function _M:on_set_temporary_effect(eff_id, e, p)
end
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 - util.bound(t.getWoundReduction(self, t), 0, 1))
p.dur = math.ceil(p.dur * (1 - util.bound(t.getWoundReduction(self, t), 0, 1)))
end
if self:hasEffect(self.EFF_HAUNTED) and e.subtype and e.subtype.fear then
local e = self.tempeffect_def[self.EFF_HAUNTED]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment