Skip to content

Commit 514228e

Browse files
committed
logic fix, formatting for visibity
1 parent 518b4b3 commit 514228e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Modules/CalcActiveSkill.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,12 @@ local function getWeaponFlags(env, weaponData, weaponTypes, skillTypeDualWieldOn
216216
end
217217
if weaponTypes then
218218
for _, types in ipairs(weaponTypes) do
219-
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 weaponData.countsAsDualWielding) or
220-
(weaponData.countsAsDualWielding and (not (types["One Handed Axe"] or types["One Handed Sword"]) and not skillTypeDualWieldOnly)) then -- Wings of Entropy special case
219+
if (not skillTypeDualWieldOnly and (not types[weaponData.type] or ((weaponData.countsAsDualWielding and not types["One Handed "..info.flag]) or (not weaponData.countsAsDualWielding and not (types["Two Handed Axe"] or types["Two Handed Sword"] or types["Two Handed Mace"] or types["Staff"])))))
220+
and
221+
(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"]))
222+
and
223+
((weaponData.countsAsDualWielding and (not types["One Handed "..info.flag])) or (not weaponData.countsAsDualWielding and not (not weaponData.countsAsAll1H and (types["Two Handed Axe"] or types["Two Handed Sword"] or types["Two Handed Mace"] or types["Staff"]))))
224+
then
221225
return nil, info
222226
end
223227
end

0 commit comments

Comments
 (0)