Skip to content
Merged
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
10 changes: 10 additions & 0 deletions src/Modules/CalcOffence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3190,6 +3190,13 @@ function calcs.offence(env, actor, activeSkill)
end
end

-- address Weapon1H interaction with Ailment for nodes like Sleight of Hand
-- bit-and on cfg.flags confirms if the skill has the 1H flag
-- if so bit-or on the targetCfg (e.g. dotCfg) to guarantee for calculations like Sum("INC") and breakdown
local function checkWeapon1HFlags(targetCfg)
targetCfg.flags = bor(targetCfg.flags, band(cfg.flags, ModFlag.Weapon1H))
end

---Calculates normal and crit damage to be used in non-damaging ailment calculations
---@param ailment string
---@return number, number @average hit damage, average crit damage
Expand Down Expand Up @@ -3303,6 +3310,7 @@ function calcs.offence(env, actor, activeSkill)
skillDist = skillCfg.skillDist,
}
local dotCfg = pass.label ~= "Off Hand" and activeSkill.bleedCfg or activeSkill.OHbleedCfg
checkWeapon1HFlags(dotCfg)
local sourceHitDmg, sourceCritDmg
if breakdown then
breakdown.BleedPhysical = { damageTypes = { } }
Expand Down Expand Up @@ -3499,6 +3507,7 @@ function calcs.offence(env, actor, activeSkill)
skillDist = skillCfg.skillDist,
}
local dotCfg = pass.label ~= "Off Hand" and activeSkill.poisonCfg or activeSkill.OHpoisonCfg
checkWeapon1HFlags(dotCfg)
local sourceHitDmg, sourceCritDmg
if breakdown then
breakdown.PoisonPhysical = { damageTypes = { } }
Expand Down Expand Up @@ -3724,6 +3733,7 @@ function calcs.offence(env, actor, activeSkill)
skillDist = skillCfg.skillDist,
}
local dotCfg = pass.label ~= "Off Hand" and activeSkill.igniteCfg or activeSkill.OHigniteCfg
checkWeapon1HFlags(dotCfg)
local sourceHitDmg, sourceCritDmg
if breakdown then
breakdown.IgnitePhysical = { damageTypes = { } }
Expand Down