Commit 23e8cb041409ef4b07a8eed87e1ea6527739cc76

Authored by DarkGod
1 parent f9392d2b

Fixed Adrenaline Surge

... ... @@ -4724,7 +4724,7 @@ function _M:preUseTalent(ab, silent, fake)
4724 4724 rname = res_def.short_name
4725 4725 cost = ab[rname]
4726 4726 if cost then
4727   - cost = (util.getval(cost, self, ab) or 0) * (util.getval(res_def.cost_factor, self, ab) or 1)
  4727 + cost = (util.getval(cost, self, ab) or 0) * (util.getval(res_def.cost_factor, self, ab, true) or 1)
4728 4728 if cost ~= 0 then
4729 4729 rmin, rmax = self[res_def.getMinFunction](self), self[res_def.getMaxFunction](self)
4730 4730 if res_def.invert_values then
... ...
... ... @@ -38,7 +38,7 @@ ActorResource:defineResource("Air", "air", nil, "air_regen", "Air capacity in yo
38 38 })
39 39 ActorResource:defineResource("Stamina", "stamina", ActorTalents.T_STAMINA_POOL, "stamina_regen", "Stamina represents your physical fatigue. Most physical abilities consume it.", nil, nil, {
40 40 color = "#ffcc80#",
41   - cost_factor = function(self, ab, fake) return fake and self:hasEffect(self.EFF_ADRENALINE_SURGE) and 0 or (100 + self:combatFatigue()) / 100 end,
  41 + cost_factor = function(self, t, check) return (check and self:hasEffect(self.EFF_ADRENALINE_SURGE)) and 0 or (100 + self:combatFatigue()) / 100 end,
42 42 depleted_unsustain = true,
43 43 wait_on_rest = true,
44 44 randomboss_enhanced = true,
... ...