Skip to content

Commit 5fc7e25

Browse files
authored
minor code fixes (#8267)
1 parent 3221e90 commit 5fc7e25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Modules/CalcPerform.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2211,7 +2211,7 @@ function calcs.perform(env, skipEHP)
22112211
elseif buff.type == "Link" then
22122212
local linksApplyToMinions = env.minion and modDB:Flag(nil, "Condition:CanLinkToMinions") and modDB:Flag(nil, "Condition:LinkedToMinion")
22132213
and not env.minion.modDB:Flag(nil, "Condition:CannotBeDamaged") and not env.minion.mainSkill.summonSkill.skillTypes[SkillType.MinionsAreUndamageable]
2214-
if env.mode_buffs and (#linkSkills < 1) and (env.build.partyTab.enableExportBuffs or linksApplyToMinions) then
2214+
if env.mode_buffs and (#linkSkills < 1) and (partyTabEnableExportBuffs or linksApplyToMinions) then
22152215
-- Check for extra modifiers to apply to link skills
22162216
local extraLinkModList = { }
22172217
for _, value in ipairs(modDB:List(skillCfg, "ExtraLinkEffect")) do
@@ -2234,7 +2234,7 @@ function calcs.perform(env, skipEHP)
22342234
local inc = skillModList:Sum("INC", skillCfg, "LinkEffect", "BuffEffect")
22352235
local more = skillModList:More(skillCfg, "LinkEffect", "BuffEffect")
22362236
local mult = (1 + inc / 100) * more
2237-
if env.build.partyTab.enableExportBuffs then
2237+
if partyTabEnableExportBuffs then
22382238
local newModList = new("ModList")
22392239
newModList:AddList(buff.modList)
22402240
newModList:AddList(extraLinkModList)
@@ -2261,7 +2261,7 @@ function calcs.perform(env, skipEHP)
22612261
modDB:NewMod("WitherEffectStack", "MAX", effect)
22622262
end
22632263
--Handle combustion
2264-
if (activeSkill.skillTypes[SkillType.Damage] or activeSkill.skillTypes[SkillType.Attack]) and not appliedCombustion then
2264+
if enemyDB:Flag(nil, "Condition:Ignited") and (activeSkill.skillTypes[SkillType.Damage] or activeSkill.skillTypes[SkillType.Attack]) and not appliedCombustion then
22652265
for _, support in ipairs(activeSkill.supportList) do
22662266
if support.grantedEffect.name == "Combustion" then
22672267
if not activeSkill.skillModList:Flag(activeSkill.skillCfg, "CannotIgnite") then

0 commit comments

Comments
 (0)