From 57a1f11f0967279e63a73672bdfd3a46b34fdc8e Mon Sep 17 00:00:00 2001 From: LocalIdentity Date: Fri, 12 Sep 2025 22:49:54 +1000 Subject: [PATCH] Fix Dance with Death incorrectly working with Hollow Palm Technique We were applying weapon conditions even if a weapon didn't exist in the 2nd slot --- src/Modules/CalcPerform.lua | 52 +++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/src/Modules/CalcPerform.lua b/src/Modules/CalcPerform.lua index b71fd7f0e..628068519 100644 --- a/src/Modules/CalcPerform.lua +++ b/src/Modules/CalcPerform.lua @@ -194,31 +194,33 @@ local function doActorAttribsConditions(env, actor) end end if actor.weaponData2.type then - local info = env.data.weaponTypeInfo[actor.weaponData2.type] - condList["Using"..info.flag] = true - if actor.weaponData2.countsAsAll1H then - actor.weaponData2["AddedUsingAxe"] = not condList["UsingAxe"] - condList["UsingAxe"] = true - actor.weaponData2["AddedUsingSword"] = actor.weaponData2.name:match("Varunastra") or not condList["UsingSword"] --Varunastra is a sword - condList["UsingSword"] = true - actor.weaponData2["AddedUsingDagger"] = not condList["UsingDagger"] - condList["UsingDagger"] = true - actor.weaponData2["AddedUsingMace"] = not condList["UsingMace"] - condList["UsingMace"] = true - actor.weaponData2["AddedUsingClaw"] = not condList["UsingClaw"] - condList["UsingClaw"] = true - actor.weaponData2["AddedUsingSpear"] = not condList["UsingSpear"] - condList["UsingSpear"] = true - -- GGG stated that a single Varunastra satisfied requirement for wielding two different weapons - condList["WieldingDifferentWeaponTypes"] = true - end - if info.melee then - condList["UsingMeleeWeapon"] = true - end - if info.oneHand then - condList["UsingOneHandedWeapon"] = true - else - condList["UsingTwoHandedWeapon"] = true + if actor.weaponData2.type ~= "None" then + local info = env.data.weaponTypeInfo[actor.weaponData2.type] + condList["Using"..info.flag] = true + if actor.weaponData2.countsAsAll1H then + actor.weaponData2["AddedUsingAxe"] = not condList["UsingAxe"] + condList["UsingAxe"] = true + actor.weaponData2["AddedUsingSword"] = actor.weaponData2.name:match("Varunastra") or not condList["UsingSword"] --Varunastra is a sword + condList["UsingSword"] = true + actor.weaponData2["AddedUsingDagger"] = not condList["UsingDagger"] + condList["UsingDagger"] = true + actor.weaponData2["AddedUsingMace"] = not condList["UsingMace"] + condList["UsingMace"] = true + actor.weaponData2["AddedUsingClaw"] = not condList["UsingClaw"] + condList["UsingClaw"] = true + actor.weaponData2["AddedUsingSpear"] = not condList["UsingSpear"] + condList["UsingSpear"] = true + -- GGG stated that a single Varunastra satisfied requirement for wielding two different weapons + condList["WieldingDifferentWeaponTypes"] = true + end + if info.melee then + condList["UsingMeleeWeapon"] = true + end + if info.oneHand then + condList["UsingOneHandedWeapon"] = true + else + condList["UsingTwoHandedWeapon"] = true + end end end if actor.weaponData1.type and actor.weaponData2.type then