AkaCore.Features.Activator.Pots.HpPot.OnExecute C# (CSharp) Method

OnExecute() public method

public OnExecute ( ) : void
return void
        public void OnExecute()
        {
            if (!ObjectManager.Player.IsInShopRange() && !(Player.HasBuff("RegenerationPotion")) && ObjectManager.Player.HealthPercent <= AkaCore.Manager.MenuManager.HPPotHp)
            {
                AkaLib.Item.HpPot.Cast();
            }
        }