Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/Data/Skills/sup_int.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5893,12 +5893,10 @@ skills["SupportSacrifice"] = {
statDescriptionScope = "gem_stat_descriptions",
statMap = {
["support_sacrifice_sacrifice_%_of_current_life"] = {
mod("Multiplier:SacrificePercent", "BASE", nil, 0, 0, { type = "PercentStat", stat = "LifeUnreserved", percent = 1, actor = "parent" }),
skill("sacrificeLifePercent", nil),
},
["support_sacrifice_gain_%_of_sacrificed_life_as_added_chaos_damage"] = {
mod("ChaosMin", "BASE", nil, 0, 0, { type = "Multiplier", var = "SacrificePercent" }),
mod("ChaosMax", "BASE", nil, 0, 0, { type = "Multiplier", var = "SacrificePercent" }),
div = 100,
skill("sacrificeLifeAsChaos", nil),
},
},
qualityStats = {
Expand Down
6 changes: 2 additions & 4 deletions src/Export/Skills/sup_int.txt
Original file line number Diff line number Diff line change
Expand Up @@ -814,12 +814,10 @@ return function(skills, mod, flag, skill)
#skill SupportSacrifice
statMap = {
["support_sacrifice_sacrifice_%_of_current_life"] = {
mod("Multiplier:SacrificePercent", "BASE", nil, 0, 0, { type = "PercentStat", stat = "LifeUnreserved", percent = 1, actor = "parent" }),
skill("sacrificeLifePercent", nil),
},
["support_sacrifice_gain_%_of_sacrificed_life_as_added_chaos_damage"] = {
mod("ChaosMin", "BASE", nil, 0, 0, { type = "Multiplier", var = "SacrificePercent" }),
mod("ChaosMax", "BASE", nil, 0, 0, { type = "Multiplier", var = "SacrificePercent" }),
div = 100,
skill("sacrificeLifeAsChaos", nil),
},
},
#mods
Expand Down
12 changes: 12 additions & 0 deletions src/Modules/CalcOffence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1905,6 +1905,18 @@ function calcs.offence(env, actor, activeSkill)
skillModList:NewMod("PhysicalMax", "BASE", m_floor(output.ManaCost * multiplier), "Sacrificial Zeal", ModFlag.Spell)
end

if skillData.sacrificeLifePercent then
local life
if skillFlags.totem then
life = output.TotemLife
else
life = output.LifeUnreserved
end
local add = m_floor(life * skillData.sacrificeLifePercent / 100 * (skillData.sacrificeLifeAsChaos / 100))
skillModList:NewMod("ChaosMin", "BASE", add, "Sacrifice Support")
skillModList:NewMod("ChaosMax", "BASE", add, "Sacrifice Support")
end

runSkillFunc("preDamageFunc")

if activeSkill.skillTypes[SkillType.Brand] then
Expand Down
Loading