internal void UseItems(Obj_AI_Base target) { var KhazixServerPosition = Khazix.ServerPosition.LSTo2D(); var targetServerPosition = target.ServerPosition.LSTo2D(); if (Hydra.IsReady() && Khazix.LSDistance(target) <= Hydra.Range) { Hydra.Cast(); } if (Tiamat.IsReady() && Khazix.LSDistance(target) <= Tiamat.Range) { Tiamat.Cast(); } if (Titanic.IsReady() && Khazix.LSDistance(target) <= Tiamat.Range) { Tiamat.Cast(); } if (Blade.IsReady() && Khazix.LSDistance(target) <= Blade.Range) { Blade.Cast(target); } if (Youmu.IsReady() && Khazix.LSDistance(target) <= Youmu.Range) { Youmu.Cast(target); } if (Bilgewater.IsReady() && Khazix.LSDistance(target) <= Bilgewater.Range) { Bilgewater.Cast(target); } }
private static void UseItems(Obj_AI_Base target) { var PlayerServerPosition = Player.ServerPosition.To2D(); var targetServerPosition = target.ServerPosition.To2D(); if (Hydra.IsReady() && Vector2.Distance(PlayerServerPosition, targetServerPosition) <= Hydra.Range) { Hydra.Cast(); } if (Tiamat.IsReady() && Vector2.Distance(PlayerServerPosition, targetServerPosition) <= Tiamat.Range) { Tiamat.Cast(); } if (Blade.IsReady() && Vector2.Distance(PlayerServerPosition, targetServerPosition) <= Blade.Range) { Blade.Cast(target); } if (Youmu.IsReady() && Vector2.Distance(PlayerServerPosition, targetServerPosition) <= Youmu.Range) { Youmu.Cast(target); } if (Bilgewater.IsReady() && Vector2.Distance(PlayerServerPosition, targetServerPosition) <= Bilgewater.Range) { Bilgewater.Cast(target); } }
public static void UseYomu() { var useYoumu = isChecked(ItemsMenu, "useYoumu"); if (Youmu.IsOwned() && Youmu.IsReady() && useYoumu) { Youmu.Cast(); } }