Skip to content

Commit 0dc91a1

Browse files
authored
Apply ChatGPT bug-fix corrections (#9603)
1 parent 57185ad commit 0dc91a1

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Classes/CalcsTab.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ function CalcsTabClass:PowerBuilder()
614614
end
615615

616616
function CalcsTabClass:CalculatePowerStat(selection, original, modified)
617-
if modified.Minion and not selection.stat == "FullDPS" then
617+
if modified.Minion and selection.stat ~= "FullDPS" then
618618
original = original.Minion
619619
modified = modified.Minion
620620
end

src/Classes/ModStore.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ function ModStoreClass:GetStat(stat, cfg)
300300
if stat == "ManaUnreserved" and self.actor.output[stat] ~= self.actor.output[stat] then
301301
-- 0% reserved = total mana
302302
return self.actor.output["Mana"]
303-
elseif stat == "ManaUnreserved" and not self.actor.output[stat] == nil and self.actor.output[stat] < 0 then
303+
elseif stat == "ManaUnreserved" and self.actor.output[stat] ~= nil and self.actor.output[stat] < 0 then
304304
-- This reverse engineers how much mana is unreserved before efficiency for accurate Arcane Cloak calcs
305305
local reservedPercentBeforeEfficiency = (math.abs(self.actor.output["ManaUnreservedPercent"]) + 100) * ((100 + self.actor["ManaEfficiency"]) / 100)
306306
return self.actor.output["Mana"] * (math.ceil(reservedPercentBeforeEfficiency) / 100);

src/Modules/CalcActiveSkill.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function calcs.copyActiveSkill(env, mode, skill)
173173
activeEffect.quality = skill.activeEffect.srcInstance.quality
174174
activeEffect.qualityId = skill.activeEffect.srcInstance.qualityId
175175
activeEffect.srcInstance = skill.activeEffect.srcInstance
176-
activeEffect.gemData = skill.activeEffect.srcInstance.gemDat
176+
activeEffect.gemData = skill.activeEffect.srcInstance.gemData
177177
end
178178

179179
local newSkill = calcs.createActiveSkill(activeEffect, skill.supportList, skill.actor, skill.socketGroup, skill.summonSkill)

src/Modules/CalcOffence.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3067,7 +3067,7 @@ function calcs.offence(env, actor, activeSkill)
30673067
elseif skillModList:Flag(cfg, "AllAddedDamageAsCold") then
30683068
addedDamageRedirectType = "Cold"
30693069
end
3070-
if addedDamageRedirectType and not activeSkill.activeEffect.grantedEffect.name == "Elemental Hit" then
3070+
if addedDamageRedirectType and activeSkill.activeEffect.grantedEffect.name ~= "Elemental Hit" then
30713071
for _, damageType in ipairs(dmgTypeList) do
30723072
if damageType ~= addedDamageRedirectType then
30733073
for _, value in ipairs(skillModList:Tabulate("BASE", cfg, damageType.."Min")) do

0 commit comments

Comments
 (0)