SL-Aggro
Download:
https://raw.githubus...er/SL-Aggro.lua
features:
Tracks:
- aggrocount on a unit
- attacker
- target
API:
-Aggro(unit,team,IsTable):
- GetAggroCount()
- GetAttacker()
- GetTarget()
Examples:
Example 1:
require 'SL-Aggro' Aggro(minionManager.objects,MINION_ENEMY,true) local a = Aggro(minionManager.objects,MINION_ENEMY,true) OnTick(function() print(a:GetAttacker()) print(a:GetTarget()) print(a:GetAggroCount()) end)
Example 2:
require 'SL-Aggro' Aggro(myHero,myHero.team,false) local a = Aggro(myHero,myHero.team,false) OnTick(function() print(a:GetAttacker()) print(a:GetTarget()) print(a:GetAggroCount()) end)