/// <summary> /// Potion Usage - Smart Usage /// </summary> public void PotionUsage() { if (Config.UseSmartPotion.GetValue <bool>()) { if (ObjectManager.Player.CountEnemiesInRange(800) == 0) { return; } } if (ObjectManager.Player.HasBuff("RegenerationPotion") || ObjectManager.Player.HasBuff("ItemMiniRegenPotion") || ObjectManager.Player.HasBuff("ItemCrystalFlaskJungle") || ObjectManager.Player.HasBuff("ItemDarkCrystalFlask") || ObjectManager.Player.HasBuff("ItemCrystalFlask")) { return; } if (ObjectManager.Player.HealthPercent <= Config.UsePotionsAtHPPercent.GetValue <Slider>().Value) { if (HPPotion.IsReady()) { HPPotion.Cast(); } else if (Biscuit.IsReady()) { Biscuit.Cast(); } else if (FlaskHunterJG.IsReady()) { FlaskHunterJG.Cast(); } else if (FlaskCorruptJG.IsReady()) { FlaskCorruptJG.Cast(); } else if (FlaskRef.IsReady()) { FlaskRef.Cast(); } } }
private static void PotionsCheck() { if (Menu.Item("UseSmartPotion").GetValue <bool>()) { if (Player.CountEnemiesInRange(800) == 0) { return; } } if (Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlaskJungle") || Player.HasBuff("ItemDarkCrystalFlask") || Player.HasBuff("ItemCrystalFlask")) { return; } if (Player.HealthPercent <= Menu.Item("UsePotionsAtHPPercent").GetValue <Slider>().Value) { if (HPPotion.IsReady()) { HPPotion.Cast(); } else if (Biscuit.IsReady()) { Biscuit.Cast(); } else if (FlaskHunterJG.IsReady()) { FlaskHunterJG.Cast(); } else if (FlaskCorruptJG.IsReady()) { FlaskCorruptJG.Cast(); } else if (FlaskRef.IsReady()) { FlaskRef.Cast(); } } }