Skip to content

Commit

Permalink
System - Added option to target dynamic target on screen
Browse files Browse the repository at this point in the history
  • Loading branch information
kuukuukuatchu committed Apr 2, 2017
1 parent ba65f6f commit 2c05819
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions System/UI/Windows/Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function br.ui:createConfigWindow()
-- Enemies Engine
section = br.ui:createSection(br.ui.window.config, "Enemies Engine")
br.ui:createCheckbox(section, "Dynamic Targetting", "Check this to allow dynamic targetting. If unchecked, profile will only attack current target.")
br.ui:createCheckbox(section, "Target Dynamic Target", "Check this will target the current dynamic target.")
br.ui:createDropdown(section, "Wise Target", {"Highest", "Lowest", "abs Highest", "Nearest", "Furthest"}, 1, "|cffFFDD11Check if you want to use Wise Targetting, if unchecked there will be no priorisation from hp/range.")
br.ui:createCheckbox(section, "Forced Burn", "Check to allow forced Burn on specific whitelisted units.")
br.ui:createCheckbox(section, "Avoid Shields", "Check to avoid attacking shielded units.")
Expand Down
3 changes: 3 additions & 0 deletions System/engines/EnemiesEngine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ function dynamicTarget(range,facing)
end
end
br.debug.cpu.enemiesEngine.dynamicTarget = debugprofilestop()-startTime or 0
if isChecked("Target Dynamic Target") then
TargetUnit(bestUnit)
end
return bestUnit
end
br.debug.cpu.enemiesEngine.dynamicTarget = debugprofilestop()-startTime or 0
Expand Down

0 comments on commit 2c05819

Please sign in to comment.