Skip to content

Commit 99996ec

Browse files
committed
Change "Hollow Palm" processing in CalcSetup
TODO: This uses "Eternal Youth" as a placeholder Keystone for testing because "Hollow Palm" is not yet available in 0.2.
1 parent 8823194 commit 99996ec

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/Modules/CalcSetup.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,10 +1386,15 @@ function calcs.initEnv(build, mode, override, specEnv)
13861386
env.player.weaponData2 = env.player.itemList["Weapon 1"].weaponData[2]
13871387
elseif not env.player.itemList["Weapon 2"] then
13881388
-- Hollow Palm Technique
1389-
if (not env.player.itemList["Weapon 1"]) and (not env.player.itemList["Gloves"]) and env.modDB.mods.Keystone then
1389+
if (not env.player.itemList["Weapon 1"]) and env.modDB.mods.Keystone then
13901390
for _, keystone in ipairs(env.modDB.mods.Keystone) do
1391-
if keystone.value == "Hollow Palm Technique" then
1391+
if keystone.value == "Eternal Youth" then -- TODO Update to correct Keystone value "Hollow Palm"
13921392
env.player.weaponData2 = copyTable(env.data.unarmedWeaponData[env.classId])
1393+
for i = 1, 2 do
1394+
env.player["weaponData" .. tostring(i)].asThoughUsing = env.player["weaponData" .. tostring(i)].asThoughUsing or { }
1395+
env.player["weaponData" .. tostring(i)].asThoughUsing["Staff"] = true
1396+
end
1397+
env.player.modDB.conditions["HollowPalm"] = true -- Had to add condition here because it was otherwise not recognized correctly when "DisableSkill" is processed
13931398
break
13941399
end
13951400
end

0 commit comments

Comments
 (0)