Skip to content

Commit

Permalink
FIX: mana cost raw not being set to 0. Add breakdown line. (#8233)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paliak committed Aug 31, 2024
1 parent 6974f9f commit 5c7f49f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Modules/CalcOffence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1608,8 +1608,9 @@ function calcs.offence(env, actor, activeSkill)
val.baseCostNoMult = val.baseCostNoMult + costs[manaType].baseCostNoMult
val.finalBaseCost = val.finalBaseCost + costs[manaType].finalBaseCost
costs[manaType].baseCost = 0
costs[manaType].baseCostNoMult = 0
costs[manaType].baseCostRaw = 0
costs[manaType].finalBaseCost = 0
costs[manaType].baseCostNoMult = 0
elseif additionalLifeCost > 0 or hybridLifeCost > 0 then
val.baseCost = costs[manaType].baseCost
val.finalBaseCost = val.finalBaseCost + round(costs[manaType].finalBaseCost * (hybridLifeCost + additionalLifeCost))
Expand Down
3 changes: 3 additions & 0 deletions src/Modules/CalcTriggers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,9 @@ local function defaultTriggerHandler(env, config)
end
trigRate = trigRate / m_ceil(manaSpentThreshold / sourceManaCost)
else
if breakdown then
t_insert(breakdown.EffectiveSourceRate, s_format("Source skill has no mana cost", output.EffectiveSourceRate))
end
trigRate = 0
end
end
Expand Down

0 comments on commit 5c7f49f

Please sign in to comment.