Skip to content

Commit 2fca8f4

Browse files
authored
Fix Cryogenesis disabling flat damage from other sources when using Elemental Hit (#9694)
1 parent b439e04 commit 2fca8f4

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/Modules/CalcOffence.lua

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3068,16 +3068,20 @@ function calcs.offence(env, actor, activeSkill)
30683068
elseif skillModList:Flag(cfg, "AllAddedDamageAsCold") then
30693069
addedDamageRedirectType = "Cold"
30703070
end
3071-
if addedDamageRedirectType and activeSkill.activeEffect.grantedEffect.name ~= "Elemental Hit" then
3071+
if addedDamageRedirectType then
30723072
for _, damageType in ipairs(dmgTypeList) do
30733073
if damageType ~= addedDamageRedirectType then
30743074
for _, value in ipairs(skillModList:Tabulate("BASE", cfg, damageType.."Min")) do
3075-
local mod = value.mod
3075+
if not value.mod.source:match("ElementalHit") then
3076+
local mod = value.mod
30763077
skillModList:ConvertMod(damageType.."Min", addedDamageRedirectType.."Min", "BASE", mod.value, mod.source, mod.flags, mod.keywordFlags, { type = "Cryogenesis Added Damage" }, unpack(mod))
3078+
end
30773079
end
30783080
for _, value in ipairs(skillModList:Tabulate("BASE", cfg, damageType.."Max")) do
3079-
local mod = value.mod
3081+
if not value.mod.source:match("ElementalHit") then
3082+
local mod = value.mod
30803083
skillModList:ConvertMod(damageType.."Max", addedDamageRedirectType.."Max", "BASE", mod.value, mod.source, mod.flags, mod.keywordFlags, { type = "Cryogenesis Added Damage" }, unpack(mod))
3084+
end
30813085
end
30823086
end
30833087
end

0 commit comments

Comments
 (0)