AkaCore.Features.Activator.AItems.Talis.OnExecute C# (CSharp) Method

OnExecute() public method

public OnExecute ( ) : void
return void
        public void OnExecute()
        {
            var unit = TargetSelector.GetTarget(2000, DamageType.Magical);

            if (unit != null && ObjectManager.Player.Position.Distance(unit.Position) >= AkaCore.Manager.MenuManager.TalisDistance)
            {
                AkaLib.Item.Talis.Cast();
            }
        }