Skip to content

Commit fa3106e

Browse files
author
justjuangui
committed
Grant Skill from Passive tree now can have support gems
1 parent 96c0f11 commit fa3106e

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/Classes/SkillsTab.lua

+6-2
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,9 @@ function SkillsTabClass:CreateGemSlot(index)
821821
self.build.buildFlag = true
822822
end)
823823
slot.count.shown = function()
824+
if index == 1 and self.displayGroup and (self.displayGroup.sourceItem or self.displayGroup.sourceNode) then
825+
return false
826+
end
824827
local gemInstance = self.displayGroup and self.displayGroup.gemList[index]
825828
if gemInstance then
826829
local grantedEffectList = gemInstance.gemData and gemInstance.gemData.grantedEffectList or { gemInstance.grantedEffect }
@@ -1062,8 +1065,9 @@ function SkillsTabClass:SetDisplayGroup(socketGroup)
10621065
self.controls.groupEnabled.state = socketGroup.enabled
10631066
self.controls.includeInFullDPS.state = socketGroup.includeInFullDPS and socketGroup.enabled
10641067
if socketGroup.sourceItem then
1065-
socketGroup.set1 = true
1066-
socketGroup.set2 = false
1068+
local swap = not not socketGroup.slot:find("Swap")
1069+
socketGroup.set1 = not swap
1070+
socketGroup.set2 = swap
10671071
elseif socketGroup.sourceNode then
10681072
socketGroup.set1 = true
10691073
socketGroup.set2 = true

src/Modules/CalcSetup.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function calcs.buildModListForNode(env, node, incSmallPassiveSkill)
174174
t_insert(node.grantedSkills, {
175175
skillId = skill.skillId,
176176
level = skill.level,
177-
noSupports = true,
177+
noSupports = skill.noSupports ~= nil and skill.noSupports,
178178
source = "Tree:"..node.id
179179
})
180180
end

src/Modules/ModParser.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -2993,8 +2993,8 @@ local specialModList = {
29932993
mod("ScoldsBridleSelfDamage", "LIST", {dmgMult = dmgMult, damageType = dmgType})
29942994
}end,
29952995
-- Extra skill/support
2996-
["grants skill: (%D+)"] = function(_, skill) return grantedExtraSkill(skill, 1) end,
2997-
["grants skill: level (%d+) (.+)"] = function(num, _, skill) return grantedExtraSkill(skill, num) end,
2996+
["grants skill: (%D+)"] = function(_, skill) return grantedExtraSkill(skill, 1, false) end,
2997+
["grants skill: level (%d+) (.+)"] = function(num, _, skill) return grantedExtraSkill(skill, num, false) end,
29982998
["[ct][ar][si][tg]g?e?r?s? level (%d+) (.+) when equipped"] = function(num, _, skill) return triggerExtraSkill(skill, num) end,
29992999
["[ct][ar][si][tg]g?e?r?s? level (%d+) (.+) on %a+"] = function(num, _, skill) return triggerExtraSkill(skill, num) end,
30003000
["use level (%d+) (.+) on %a+"] = function(num, _, skill) return triggerExtraSkill(skill, num) end,

0 commit comments

Comments
 (0)