Skip to content

Instantly share code, notes, and snippets.

@GabeStah
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save GabeStah/5b791c294633321ca3f7 to your computer and use it in GitHub Desktop.

Select an option

Save GabeStah/5b791c294633321ca3f7 to your computer and use it in GitHub Desktop.
function() -- Trigger
return (UnitExists('target') and UnitCanAttack('player', 'target') and (UnitHealth('target') / UnitHealthMax('target')) <= 0.35)
end
function() -- Untrigger
return not (UnitExists('target') and UnitCanAttack('player', 'target') and (UnitHealth('target') / UnitHealthMax('target')) <= 0.35)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment