Skip to content

Commit

Permalink
Only auto attack the current enemy target
Browse files Browse the repository at this point in the history
  • Loading branch information
Snakybo committed Oct 22, 2020
1 parent 63a6e9d commit 008ff9e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## [0.9,2] - 2020-10-22

### Changed

- Only try starting auto attacks on the current target if it's enemy and exists, will prevent "you cannot attack this target" messages and automatic target switching as melee

### Removed

- Removed manual option to start auto attacks

## [0.9.1] - 2020-10-21

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion Clicked.toc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#@end-non-retail@
## Title: Clicked
## Author: Snakybo
## Version: 0.9.1
## Version: 0.9.2
## Notes: Keybindings made easy.
## SavedVariables: ClickedDB
## OptionalDeps: Ace3
Expand Down
8 changes: 0 additions & 8 deletions Config/Bindings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -817,14 +817,6 @@ local function DrawAdditionalSpellItemOptions(container, action)

group:AddChild(widget)
end

-- start attack toggle
do
local widget = GUI:CheckBox(L["BINDING_UI_PAGE_ACTION_ADDITIONAL_OPTIONS_START_AUTO_ATTACK"], action, "startAutoAttack")
widget:SetFullWidth(true)

group:AddChild(widget)
end
end

local function DrawBindingActionPage(container, binding)
Expand Down
4 changes: 2 additions & 2 deletions Core/BindingProcessor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ local function GetMacroForBindings(bindings)
table.insert(extra, "/stopcasting")
end

if not startAutoAttack and data.startAutoAttack then
if not startAutoAttack then
startAutoAttack = true
table.insert(extra, "/startattack")
table.insert(extra, "/startattack [@target,harm,exists]")
end

for i = #extra, 1, - 1 do
Expand Down

0 comments on commit 008ff9e

Please sign in to comment.