Skip to content

Commit 5748f2b

Browse files
committed
fix: Add a warning when mine skills and Eternal Blessing support are used together
1 parent a51cdca commit 5748f2b

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

src/Modules/Build.lua

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,6 +1662,29 @@ function buildMode:AddDisplayStatList(statList, actor)
16621662
InsertIfNew(self.controls.warnings.lines, "Vixen's calculation mode for Doom Blast is selected but you do not have Vixen's Entrapment Embroidered Gloves equipped")
16631663
end
16641664

1665+
do
1666+
if actor == self.calcsTab.mainEnv.player and actor.activeSkillList then
1667+
local hasEternalBlessing = false
1668+
local hasMineSkill = false
1669+
1670+
for _, activeSkill in ipairs(actor.activeSkillList) do
1671+
hasMineSkill = hasMineSkill or activeSkill.skillFlags.mine
1672+
for _, supportEffect in ipairs(activeSkill.supportList) do
1673+
if supportEffect.grantedEffect and supportEffect.grantedEffect.id == "SupportEternalBlessing" then
1674+
hasEternalBlessing = true
1675+
break
1676+
end
1677+
end
1678+
if hasEternalBlessing and hasMineSkill then
1679+
break
1680+
end
1681+
end
1682+
if hasEternalBlessing and hasMineSkill then
1683+
InsertIfNew(self.controls.warnings.lines, "Eternal Blessing and mine skills cannot be used together")
1684+
end
1685+
end
1686+
end
1687+
16651688
do
16661689
local aspectCount = 0
16671690
aspectCount = aspectCount + (actor.output.CrabBarriersMax > 0 and actor.output.CrabBarriers > 0 and 1 or 0)

0 commit comments

Comments
 (0)