Skip to content

Commit 4fb62fa

Browse files
LocalIdentityLocalIdentity
andauthored
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>
1 parent 05c1941 commit 4fb62fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Modules/CalcOffence.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2921,6 +2921,9 @@ function calcs.offence(env, actor, activeSkill)
29212921
}
29222922
end
29232923
end
2924+
if output.CritChance ~= 0 then
2925+
skillModList.conditions["CritInPast8Sec"] = true
2926+
end
29242927

29252928
output.ScaledDamageEffect = 1
29262929

src/Modules/CalcPerform.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,6 @@ local function doActorAttribsConditions(env, actor)
236236
end
237237
end
238238
if env.mode_combat then
239-
if not modDB:Flag(env.player.mainSkill.skillCfg, "NeverCrit") then
240-
condList["CritInPast8Sec"] = true
241-
end
242239
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
243240
if actor.mainSkill.skillFlags.attack then
244241
condList["AttackedRecently"] = true

0 commit comments

Comments
 (0)