Fix Elemental Overload applying to skills with 0 Crit Chance (#8772)

The elemental flag for "CritInPast8s" was only false when the "NeverCrit" flag was true instead of checking to see if the skill has any crit chance

Co-authored-by: LocalIdentity <localidentity2@gmail.com>
This commit is contained in:
LocalIdentity
2025-07-02 14:38:06 +10:00
committed by GitHub
parent 05c1941b88
commit 4fb62fa175
2 changed files with 3 additions and 3 deletions

View File

@@ -2921,6 +2921,9 @@ function calcs.offence(env, actor, activeSkill)
}
end
end
if output.CritChance ~= 0 then
skillModList.conditions["CritInPast8Sec"] = true
end
output.ScaledDamageEffect = 1

View File

@@ -236,9 +236,6 @@ local function doActorAttribsConditions(env, actor)
end
end
if env.mode_combat then
if not modDB:Flag(env.player.mainSkill.skillCfg, "NeverCrit") then
condList["CritInPast8Sec"] = true
end
if not actor.mainSkill.skillData.triggered and not actor.mainSkill.skillFlags.trap and not actor.mainSkill.skillFlags.mine and not actor.mainSkill.skillFlags.totem then
if actor.mainSkill.skillFlags.attack then
condList["AttackedRecently"] = true