Skip to content

Commit

Permalink
Only /startattack if the primary target is TARGET
Browse files Browse the repository at this point in the history
  • Loading branch information
Snakybo committed Oct 22, 2020
1 parent 008ff9e commit 89ea801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/BindingProcessor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ local function GetMacroForBindings(bindings)
table.insert(extra, "/stopcasting")
end

if not startAutoAttack then
if not startAutoAttack and binding.primaryTarget.unit == Clicked.TargetUnits.TARGET then
startAutoAttack = true
table.insert(extra, "/startattack [@target,harm,exists]")
end
Expand Down

0 comments on commit 89ea801

Please sign in to comment.