static IncomingDamage() { Game.OnTick += Game_OnTick; Obj_AI_Base.OnBasicAttack += Obj_AI_Base_OnBasicAttack; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; AttackableUnit.OnDamage += Obj_AI_Base_OnDamage; ChampionTracker.Initialize(ChampionTrackerFlags.PostBasicAttackTracker); ChampionTracker.OnPostBasicAttack += ChampionTracker_OnPostBasicAttack; }
internal static Vector3 GetLastPath(this Obj_AI_Base source) { var output = ChampionTracker.GetLastPath(source.NetworkId); return(output == default(Vector3) ? source.ServerPosition : output); }
internal static Vector3 GetPathingDirection(this Obj_AI_Base source) { var output = ChampionTracker.GetPathingDirection(source.NetworkId); return(output == default(Vector3) ? source.ServerPosition : source.ServerPosition.Extend(output, 100).To3D()); }