Skip to content

Commit

Permalink
minor code fixes (#8267)
Browse files Browse the repository at this point in the history
  • Loading branch information
Regisle committed Aug 30, 2024
1 parent 3221e90 commit 5fc7e25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Modules/CalcPerform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2211,7 +2211,7 @@ function calcs.perform(env, skipEHP)
elseif buff.type == "Link" then
local linksApplyToMinions = env.minion and modDB:Flag(nil, "Condition:CanLinkToMinions") and modDB:Flag(nil, "Condition:LinkedToMinion")
and not env.minion.modDB:Flag(nil, "Condition:CannotBeDamaged") and not env.minion.mainSkill.summonSkill.skillTypes[SkillType.MinionsAreUndamageable]
if env.mode_buffs and (#linkSkills < 1) and (env.build.partyTab.enableExportBuffs or linksApplyToMinions) then
if env.mode_buffs and (#linkSkills < 1) and (partyTabEnableExportBuffs or linksApplyToMinions) then
-- Check for extra modifiers to apply to link skills
local extraLinkModList = { }
for _, value in ipairs(modDB:List(skillCfg, "ExtraLinkEffect")) do
Expand All @@ -2234,7 +2234,7 @@ function calcs.perform(env, skipEHP)
local inc = skillModList:Sum("INC", skillCfg, "LinkEffect", "BuffEffect")
local more = skillModList:More(skillCfg, "LinkEffect", "BuffEffect")
local mult = (1 + inc / 100) * more
if env.build.partyTab.enableExportBuffs then
if partyTabEnableExportBuffs then
local newModList = new("ModList")
newModList:AddList(buff.modList)
newModList:AddList(extraLinkModList)
Expand All @@ -2261,7 +2261,7 @@ function calcs.perform(env, skipEHP)
modDB:NewMod("WitherEffectStack", "MAX", effect)
end
--Handle combustion
if (activeSkill.skillTypes[SkillType.Damage] or activeSkill.skillTypes[SkillType.Attack]) and not appliedCombustion then
if enemyDB:Flag(nil, "Condition:Ignited") and (activeSkill.skillTypes[SkillType.Damage] or activeSkill.skillTypes[SkillType.Attack]) and not appliedCombustion then
for _, support in ipairs(activeSkill.supportList) do
if support.grantedEffect.name == "Combustion" then
if not activeSkill.skillModList:Flag(activeSkill.skillCfg, "CannotIgnite") then
Expand Down

0 comments on commit 5fc7e25

Please sign in to comment.