Skip to content

Commit

Permalink
Fix Dual Strike of Ambidexterity and Cleave of Rage (#8304)
Browse files Browse the repository at this point in the history
* Fix Dual Strike of Ambidexterity and Cleave of Rage

* fix whitespace
  • Loading branch information
Regisle authored Sep 20, 2024
1 parent aef7a7e commit c7ae7ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Modules/CalcActiveSkill.lua
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,11 @@ function calcs.buildActiveSkillModList(env, activeSkill)
if not skillTypes[SkillType.MainHandOnly] and not skillFlags.forceMainHand then
local weapon2Flags, weapon2Info = getWeaponFlags(env, activeSkill.actor.weaponData2, weaponTypes)
if weapon2Flags then
if skillFlags.attack or skillFlags.dotFromAttack then
if skillTypes[SkillType.DualWieldRequiresDifferentTypes] and (activeSkill.actor.weaponData1.type == activeSkill.actor.weaponData2.type) then
-- Skill requires a different compatible off hand weapon to main hand weapon
skillFlags.disable = true
activeSkill.disableReason = activeSkill.disableReason or "Weapon Types Need to be Different"
elseif skillFlags.attack or skillFlags.dotFromAttack then
activeSkill.weapon2Flags = weapon2Flags
skillFlags.weapon2Attack = true
end
Expand Down

0 comments on commit c7ae7ee

Please sign in to comment.