diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua index f40e0b1638510c7037cab7da48088ce94c14b989..e62ededf3deb2ea47d7570cc5c5638d0eb179a03 100644 --- a/game/modules/tome/class/Actor.lua +++ b/game/modules/tome/class/Actor.lua @@ -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 diff --git a/game/modules/tome/data/resources.lua b/game/modules/tome/data/resources.lua index af699cc14508f0faf44d39369c728176bfe39ad7..6e5a37824bdea570742675f4bf632367c5549d3c 100644 --- a/game/modules/tome/data/resources.lua +++ b/game/modules/tome/data/resources.lua @@ -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,