Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
werdbrian committed Mar 4, 2016
1 parent 548053e commit 786a65e
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions Leblanc/Leblanc/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -570,22 +570,7 @@ public static void useQE()
private static void LaneClear()
{

/*if ( Q.IsReady())
{
var minionsQ = MinionManager.GetMinions(
ObjectManager.Player.ServerPosition, Q.Range, MinionTypes.All, MinionTeam.NotAlly);
foreach (Obj_AI_Base vMinion in
from vMinion in minionsQ
let vMinionQDamage = ObjectManager.Player.GetSpellDamage(vMinion, SpellSlot.Q)
where
vMinion.Health <= vMinionQDamage &&
vMinion.Health > ObjectManager.Player.GetAutoAttackDamage(vMinion)
select vMinion)
{
Q.CastOnUnit(vMinion);
}
}*/
if (W.IsReady())
if (W.IsReady() && Player.Spellbook.GetSpell(SpellSlot.W).Name.ToLower() == "leblancslide")
{
var canCastUlt = R.IsReady();
var minions = MinionManager.GetMinions(
Expand All @@ -594,7 +579,7 @@ from vMinion in minionsQ
ObjectManager.Player.ServerPosition, Q.Range, MinionTypes.All, MinionTeam.NotAlly).Select(m => m.ServerPosition.To2D()).ToList();
var minionPrediction = MinionManager.GetBestCircularFarmLocation(minionsQ, 200, W.Range+200);
var castPosition = minionPrediction.Position.To3D();
var EnoughHits = minionPrediction.MinionsHit < 3;
var EnoughHits = minionPrediction.MinionsHit < 4;
if (EnoughHits)
{
W.Cast(castPosition);
Expand Down

0 comments on commit 786a65e

Please sign in to comment.