示例#1
0
        public static void UseCastables(Obj_AI_Base target)
        {
            if (Botrk.IsOwned() || Cutl.IsOwned())
            {
                if (target == null || !target.IsValidTarget())
                {
                    return;
                }

                if (Botrk.IsReady() || Cutl.IsReady())
                {
                    Botrk.Cast(target);
                    Cutl.Cast(target);
                }
            }
        }
示例#2
0
        public static void UseCastables()
        {
            if (BOTRK.IsOwned() || Cutl.IsOwned())
            {
                var t = TargetSelector2.GetTarget(BOTRK.Range, DamageType.Physical);
                if (t == null || !t.IsValidTarget())
                {
                    return;
                }

                if (BOTRK.IsReady() || Cutl.IsReady())
                {
                    BOTRK.Cast(t);
                    Cutl.Cast(t);
                }
            }
        }
示例#3
0
 public static void UseCastables(Obj_AI_Base t)
 {
     if (HexTech.IsOwned())
     {
         if (HexTech.IsReady())
         {
             HexTech.Cast(t);
         }
     }
     if (BOTRK.IsOwned() || Cutl.IsOwned())
     {
         if (BOTRK.IsReady() || Cutl.IsReady())
         {
             BOTRK.Cast(t);
             Cutl.Cast(t);
         }
     }
 }
示例#4
0
        public static void useItems()
        {
            var useBTRK = Misc.isChecked(ItemsMenu, "useBTRK");
            var myHP    = Misc.getSliderValue(ItemsMenu, "myHP");
            var enemyHP = Misc.getSliderValue(ItemsMenu, "enemyHP");
            var usePOT  = Misc.isChecked(ItemsMenu, "usePOT");

            if (Potion.IsReady() && !_Player.HasBuff("RegenerationPotion") && usePOT && !_Player.IsInShopRange())
            {
                if (_Player.CountEnemiesInRange(700) > 0 && _Player.Health + 200 < _Player.MaxHealth)
                {
                    Potion.Cast();
                }
                else if (_Player.Health < _Player.MaxHealth * 0.6)
                {
                    Potion.Cast();
                }
            }

            if (Btrk.IsOwned() || Cutl.IsOwned())
            {
                var t = TargetSelector.GetTarget(Btrk.Range, DamageType.Physical);
                if (t == null || !t.IsValidTarget())
                {
                    return;
                }
                if (useBTRK &&
                    _Player.HealthPercent <= myHP &&
                    t.HealthPercent <= enemyHP &&
                    (Btrk.IsReady() || Cutl.IsReady()))
                {
                    Btrk.Cast(t);
                    Cutl.Cast(t);
                }
            }
        }