示例#1
0
 void AutoPotions()
 {
     if (TarickTheTrollMeNu.SpellsPotionsCheck() && !Player.IsInShopRange() &&
         Player.HealthPercent <= TarickTheTrollMeNu.SpellsPotionsHp() &&
         !(Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemCrystalFlaskJungle") ||
           Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlask") ||
           Player.HasBuff("ItemDarkCrystalFlask")))
     {
         if (Activator.HuntersPot.IsReady() && Activator.HuntersPot.IsOwned())
         {
             Activator.HuntersPot.Cast();
         }
         if (Activator.CorruptPot.IsReady() && Activator.CorruptPot.IsOwned())
         {
             Activator.CorruptPot.Cast();
         }
         if (Activator.Biscuit.IsReady() && Activator.Biscuit.IsOwned())
         {
             Activator.Biscuit.Cast();
         }
         if (Activator.HpPot.IsReady() && Activator.HpPot.IsOwned())
         {
             Activator.HpPot.Cast();
         }
         if (Activator.RefillPot.IsReady() && Activator.RefillPot.IsOwned())
         {
             Activator.RefillPot.Cast();
         }
     }
     if (TarickTheTrollMeNu.SpellsPotionsCheck() && !Player.IsInShopRange() &&
         Player.ManaPercent <= TarickTheTrollMeNu.SpellsPotionsM() &&
         !(Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemCrystalFlaskJungle") ||
           Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlask") ||
           Player.HasBuff("ItemDarkCrystalFlask")))
     {
         if (Activator.CorruptPot.IsReady() && Activator.CorruptPot.IsOwned())
         {
             Activator.CorruptPot.Cast();
         }
     }
 }