Skip to content

Commit

Permalink
Fix channeled melee or attacks halving trigger rate when dual wielding (
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilylicious authored Dec 3, 2023
1 parent 0cd80a4 commit 638a4dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modules/CalcTriggers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ local function defaultTriggerHandler(env, config)
end

--Dual wield
if trigRate and source and (source.skillTypes[SkillType.Melee] or source.skillTypes[SkillType.Attack]) and not actor.mainSkill.skillFlags.globalTrigger then
if trigRate and source and (source.skillTypes[SkillType.Melee] or source.skillTypes[SkillType.Attack]) and not source.skillTypes[SkillType.Channel] and not actor.mainSkill.skillFlags.globalTrigger then
local dualWield = env.player.weaponData1.type and env.player.weaponData2.type
trigRate = dualWield and source.skillData.doubleHitsWhenDualWielding and trigRate * 2 or dualWield and trigRate / 2 or trigRate
if dualWield and breakdown then
Expand Down

0 comments on commit 638a4dc

Please sign in to comment.