From 482e83bed28b6ff5fa70431ba3620bb626239c23 Mon Sep 17 00:00:00 2001 From: vaisest <4550061+vaisest@users.noreply.github.com> Date: Fri, 20 Nov 2026 02:07:34 +0200 Subject: [PATCH 1/2] Fix Hide of the Vendigo interactions --- spec/System/TestAttacks_spec.lua | 19 ++++++++++++++++--- src/Modules/CalcActiveSkill.lua | 10 +++++++--- src/Modules/CalcSetup.lua | 2 ++ 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/spec/System/TestAttacks_spec.lua b/spec/System/TestAttacks_spec.lua index d7671bb0090..bc4ca686872 100644 --- a/spec/System/TestAttacks_spec.lua +++ b/spec/System/TestAttacks_spec.lua @@ -107,6 +107,16 @@ describe("TestAttacks", function() assert.are.equals(0, bit.band(mainSkill.weapon1Flags, ModFlag.Claw)) end) + it("prevents using unarmed skills that can't be used with a Claw", function() + equipHide() + build.skillsTab:PasteSocketGroup("Smite 20/0 1") + build.mainSocketGroup = 1 + runCallback("OnFrame") + build.calcsTab:BuildOutput() + runCallback("OnFrame") + assert.is_true(build.calcsTab.mainEnv.player.mainSkill.skillFlags.disable) + end) + it("does not bypass weapon restrictions of supports", function() equipHide() -- Close Combat only allows Axes and Swords @@ -138,16 +148,19 @@ describe("TestAttacks", function() assert.is_true(build.calcsTab.mainOutput.MainHand.AverageHit > baseHit) end) - it("only applies to the main hand with Hollow Palm Technique", function() + it("works with Hollow Palm Technique", function() equipHide() build.configTab.input.customMods = "Hollow Palm Technique" build.configTab:BuildModList() runCallback("OnFrame") + local mainSkill = useFrostBlades() local player = build.calcsTab.mainEnv.player - -- Hollow Palm makes the off hand unarmed as well, but the Claw only applies to the main hand + -- Both hands are empty, so both hands attack as though using a Claw assert.are.equals("None", player.weaponData2.type) assert.is_true(player.weaponData1.asThoughUsing["Claw"]) - assert.is_nil(player.weaponData2.asThoughUsing) + assert.is_true(player.weaponData2.asThoughUsing["Claw"]) + assert.is_falsy(mainSkill.skillFlags.disable) + assert.is_true(mainSkill.skillFlags.bothWeaponAttack) end) it("gains attack speed if you've used a movement skill recently", function() diff --git a/src/Modules/CalcActiveSkill.lua b/src/Modules/CalcActiveSkill.lua index aa843854871..8e4efcd0f8e 100644 --- a/src/Modules/CalcActiveSkill.lua +++ b/src/Modules/CalcActiveSkill.lua @@ -216,9 +216,13 @@ local function getWeaponFlags(env, weaponData, weaponTypes) end if weaponTypes then for _, types in ipairs(weaponTypes) do - if not types[weaponData.type] and - (not weaponData.countsAsAll1H or not (types["Claw"] or types["Dagger"] or types["One Handed Axe"] or types["One Handed Mace"] or types["One Handed Sword"])) - and not checkAsThoughWeaponTypes(weaponData, types) then + -- Hide of the Vendigo replaces the weapon type when checking which skills can be used + if weaponData.asThoughUsing then + if not checkAsThoughWeaponTypes(weaponData, types) then + return nil, info + end + elseif not types[weaponData.type] and + (not weaponData.countsAsAll1H or not (types["Claw"] or types["Dagger"] or types["One Handed Axe"] or types["One Handed Mace"] or types["One Handed Sword"])) then return nil, info end end diff --git a/src/Modules/CalcSetup.lua b/src/Modules/CalcSetup.lua index 3cef9f2f351..e21dfa10faf 100644 --- a/src/Modules/CalcSetup.lua +++ b/src/Modules/CalcSetup.lua @@ -1633,6 +1633,8 @@ function calcs.initEnv(build, mode, override, specEnv) for _, keystone in ipairs(env.modDB.mods.Keystone) do if keystone.value == "Hollow Palm Technique" then env.player.weaponData2 = copyTable(env.data.unarmedWeaponData[env.classId]) + -- interaction with hide of the vendigo + env.player.weaponData2.asThoughUsing = env.player.weaponData1.asThoughUsing break end end From a24083e7f6a413b5bddd121ef2c5eecc5cbdbf24 Mon Sep 17 00:00:00 2001 From: vaisest <4550061+vaisest@users.noreply.github.com> Date: Fri, 20 Nov 2026 02:54:50 +0200 Subject: [PATCH 2/2] Fix Dual Strike working --- spec/System/TestAttacks_spec.lua | 17 +++++++++++++++-- src/Modules/CalcActiveSkill.lua | 5 +++++ src/Modules/CalcSetup.lua | 2 -- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/spec/System/TestAttacks_spec.lua b/spec/System/TestAttacks_spec.lua index bc4ca686872..fe02e9b25f3 100644 --- a/spec/System/TestAttacks_spec.lua +++ b/spec/System/TestAttacks_spec.lua @@ -155,12 +155,25 @@ describe("TestAttacks", function() runCallback("OnFrame") local mainSkill = useFrostBlades() local player = build.calcsTab.mainEnv.player - -- Both hands are empty, so both hands attack as though using a Claw + -- Only the main hand attacks as though using a Claw, but the unarmed off hand still attacks with the skill assert.are.equals("None", player.weaponData2.type) assert.is_true(player.weaponData1.asThoughUsing["Claw"]) - assert.is_true(player.weaponData2.asThoughUsing["Claw"]) + assert.is_nil(player.weaponData2.asThoughUsing) assert.is_falsy(mainSkill.skillFlags.disable) assert.is_true(mainSkill.skillFlags.bothWeaponAttack) + assert.is_true(bit.band(mainSkill.weapon2Flags, ModFlag.Unarmed) > 0) + end) + + it("does not allow dual wield only skills with Hollow Palm Technique", function() + equipHide() + build.configTab.input.customMods = "Hollow Palm Technique" + build.configTab:BuildModList() + build.skillsTab:PasteSocketGroup("Dual Strike 20/0 1") + build.mainSocketGroup = 1 + runCallback("OnFrame") + build.calcsTab:BuildOutput() + runCallback("OnFrame") + assert.is_true(build.calcsTab.mainEnv.player.mainSkill.skillFlags.disable) end) it("gains attack speed if you've used a movement skill recently", function() diff --git a/src/Modules/CalcActiveSkill.lua b/src/Modules/CalcActiveSkill.lua index 8e4efcd0f8e..a91a30dc112 100644 --- a/src/Modules/CalcActiveSkill.lua +++ b/src/Modules/CalcActiveSkill.lua @@ -346,6 +346,11 @@ function calcs.buildActiveSkillModList(env, activeSkill) end if not skillFlags.forceMainHand then local weapon2Flags, weapon2Info = getWeaponFlags(env, activeSkill.actor.weaponData2, weaponTypes) + if not weapon2Flags and weapon1Flags and activeSkill.actor.weaponData1.asThoughUsing and activeSkill.actor.weaponData2.type == "None" and not skillTypes[SkillType.DualWieldOnly] then + -- Hide of the Vendigo only decides which skills can be used, based on the main hand + -- The unarmed off hand from Hollow Palm Technique still attacks with skills the main hand can use + weapon2Flags, weapon2Info = getWeaponFlags(env, activeSkill.actor.weaponData2) + end if weapon2Flags then if skillTypes[SkillType.DualWieldRequiresDifferentTypes] and (activeSkill.actor.weaponData1.type == activeSkill.actor.weaponData2.type) and not (activeSkill.actor.weaponData2.countsAsAll1H or activeSkill.actor.weaponData1.countsAsAll1H) then -- Skill requires a different compatible off hand weapon to main hand weapon diff --git a/src/Modules/CalcSetup.lua b/src/Modules/CalcSetup.lua index e21dfa10faf..3cef9f2f351 100644 --- a/src/Modules/CalcSetup.lua +++ b/src/Modules/CalcSetup.lua @@ -1633,8 +1633,6 @@ function calcs.initEnv(build, mode, override, specEnv) for _, keystone in ipairs(env.modDB.mods.Keystone) do if keystone.value == "Hollow Palm Technique" then env.player.weaponData2 = copyTable(env.data.unarmedWeaponData[env.classId]) - -- interaction with hide of the vendigo - env.player.weaponData2.asThoughUsing = env.player.weaponData1.asThoughUsing break end end