From fb447c59ae6ecc9414f6e396b211b0af3f4c2265 Mon Sep 17 00:00:00 2001 From: Regisle <49933620+Regisle@users.noreply.github.com> Date: Sun, 20 Oct 2024 20:28:59 +1030 Subject: [PATCH] Hollow Palm Technique proper Dual Wielding (#8307) --- src/Modules/CalcSetup.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Modules/CalcSetup.lua b/src/Modules/CalcSetup.lua index b880ede279..33666081a6 100644 --- a/src/Modules/CalcSetup.lua +++ b/src/Modules/CalcSetup.lua @@ -1300,8 +1300,19 @@ function calcs.initEnv(build, mode, override, specEnv) env.player.weaponData1 = env.player.itemList["Weapon 1"] and env.player.itemList["Weapon 1"].weaponData and env.player.itemList["Weapon 1"].weaponData[1] or copyTable(env.data.unarmedWeaponData[env.classId]) if env.player.weaponData1.countsAsDualWielding then env.player.weaponData2 = env.player.itemList["Weapon 1"].weaponData[2] + elseif not env.player.itemList["Weapon 2"] then + -- Hollow Palm Technique + if (not env.player.itemList["Weapon 1"]) and (not env.player.itemList["Gloves"]) and env.modDB.mods.Keystone then + 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]) + break + end + end + end + env.player.weaponData2 = env.player.weaponData2 or { } else - env.player.weaponData2 = env.player.itemList["Weapon 2"] and env.player.itemList["Weapon 2"].weaponData and env.player.itemList["Weapon 2"].weaponData[2] or { } + env.player.weaponData2 = env.player.itemList["Weapon 2"].weaponData and env.player.itemList["Weapon 2"].weaponData[2] or { } end -- Determine main skill group