예제 #1
0
 private void UseItem(Obj_AI_Base Target, bool IsFarm = false)
 {
     if (Bilgewater.IsReady() && !IsFarm)
     {
         Bilgewater.Cast(Target);
     }
     if (HexGun.IsReady() && !IsFarm)
     {
         HexGun.Cast(Target);
     }
     if (BladeRuined.IsReady() && !IsFarm)
     {
         BladeRuined.Cast(Target);
     }
     if (Tiamat.IsReady() && IsFarm ? Player.Distance3D(Target) <= Tiamat.Range : Player.CountEnemysInRange((int)Tiamat.Range) >= 1)
     {
         Tiamat.Cast();
     }
     if (Hydra.IsReady() && IsFarm ? Player.Distance3D(Target) <= Hydra.Range : (Player.CountEnemysInRange((int)Hydra.Range) >= 2 || (Player.GetAutoAttackDamage(Target, true) < Target.Health && Player.CountEnemysInRange((int)Hydra.Range) == 1)))
     {
         Hydra.Cast();
     }
     if (RanduinOmen.IsReady() && Player.CountEnemysInRange((int)RanduinOmen.Range) >= 1 && !IsFarm)
     {
         RanduinOmen.Cast();
     }
 }
예제 #2
0
 private void UseItem(Obj_AI_Base Target)
 {
     if (Deathfire.IsReady())
     {
         Deathfire.Cast(targetObj);
     }
     if (Blackfire.IsReady())
     {
         Blackfire.Cast(targetObj);
     }
     if (Bilgewater.IsReady())
     {
         Bilgewater.Cast(Target);
     }
     if (HexGun.IsReady())
     {
         HexGun.Cast(Target);
     }
     if (BladeRuined.IsReady())
     {
         BladeRuined.Cast(Target);
     }
 }