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

OnExecute() public method

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

            if (unit != null && (ObjectManager.Player.Health / ObjectManager.Player.MaxHealth) * 100 <= 95)
            {
                AkaLib.Item.Botrk.Cast(unit);
            }
        }