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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user