Skip to content
Snippets Groups Projects
Commit 55e58100 authored by DarkGod's avatar DarkGod
Browse files

Fixed Adrenaline Surge

parent 3d3711be
No related branches found
No related tags found
No related merge requests found
......@@ -4724,7 +4724,7 @@ function _M:preUseTalent(ab, silent, fake)
rname = res_def.short_name
cost = ab[rname]
if cost then
cost = (util.getval(cost, self, ab) or 0) * (util.getval(res_def.cost_factor, self, ab) or 1)
cost = (util.getval(cost, self, ab) or 0) * (util.getval(res_def.cost_factor, self, ab, true) or 1)
if cost ~= 0 then
rmin, rmax = self[res_def.getMinFunction](self), self[res_def.getMaxFunction](self)
if res_def.invert_values then
......
......@@ -38,7 +38,7 @@ ActorResource:defineResource("Air", "air", nil, "air_regen", "Air capacity in yo
})
ActorResource:defineResource("Stamina", "stamina", ActorTalents.T_STAMINA_POOL, "stamina_regen", "Stamina represents your physical fatigue. Most physical abilities consume it.", nil, nil, {
color = "#ffcc80#",
cost_factor = function(self, ab, fake) return fake and self:hasEffect(self.EFF_ADRENALINE_SURGE) and 0 or (100 + self:combatFatigue()) / 100 end,
cost_factor = function(self, t, check) return (check and self:hasEffect(self.EFF_ADRENALINE_SURGE)) and 0 or (100 + self:combatFatigue()) / 100 end,
depleted_unsustain = true,
wait_on_rest = true,
randomboss_enhanced = true,
......
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