Skip to content

Commit c7ae7ee

Browse files
authored
Fix Dual Strike of Ambidexterity and Cleave of Rage (#8304)
* Fix Dual Strike of Ambidexterity and Cleave of Rage * fix whitespace
1 parent aef7a7e commit c7ae7ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Modules/CalcActiveSkill.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,11 @@ function calcs.buildActiveSkillModList(env, activeSkill)
296296
if not skillTypes[SkillType.MainHandOnly] and not skillFlags.forceMainHand then
297297
local weapon2Flags, weapon2Info = getWeaponFlags(env, activeSkill.actor.weaponData2, weaponTypes)
298298
if weapon2Flags then
299-
if skillFlags.attack or skillFlags.dotFromAttack then
299+
if skillTypes[SkillType.DualWieldRequiresDifferentTypes] and (activeSkill.actor.weaponData1.type == activeSkill.actor.weaponData2.type) then
300+
-- Skill requires a different compatible off hand weapon to main hand weapon
301+
skillFlags.disable = true
302+
activeSkill.disableReason = activeSkill.disableReason or "Weapon Types Need to be Different"
303+
elseif skillFlags.attack or skillFlags.dotFromAttack then
300304
activeSkill.weapon2Flags = weapon2Flags
301305
skillFlags.weapon2Attack = true
302306
end

0 commit comments

Comments
 (0)