Skip to content

Instantly share code, notes, and snippets.

@StinkyTwitch
Created December 3, 2014 05:44
Show Gist options
  • Save StinkyTwitch/7845a9350dd6fa73c7d8 to your computer and use it in GitHub Desktop.
Save StinkyTwitch/7845a9350dd6fa73c7d8 to your computer and use it in GitHub Desktop.
Auto Target PE Block
--[[--------------------------------------------------------------------------------------------
AUTOTARGET
* Will automatically target nearest enemy. If you accidentally select a friendly target it
clears your selection and reselects the nearest enemy. To override this press and hold Right
Control.
----------------------------------------------------------------------------------------------]]
{{
{ "/script TargetNearestEnemy(); if not UnitAffectingCombat('target') and not CheckSpecialTarget() then ClearTarget() end;", { "!target.exists", }, },
{ "/script TargetNearestEnemy(); if UnitIsDeadOrGhost('target') then ClearTarget() end;", { "target.exists", "target.dead", }, },
{ "/cleartarget", { "@LibPRA.ClearTarget()", "!modifier.rcontrol", }, },
}, "toggle.autotarget", },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment