public override bool castR(Core core) { if (GetR.IsReady()) { var rTarget = TargetSelector.GetTarget(GetR.Range, TargetSelector.DamageType.Magical); if (rTarget == null || !GetE.IsInRange(rTarget)) { return(false); } var killeable = core.GetMenu.getMenuBoolOption("CR"); if (getBlazedTargets(rTarget, core).Count() >= 2) { GetR.Cast(rTarget); } if (killeable && isKilleable(rTarget, getRDamage(rTarget, getEnemiesBlazedInRange(rTarget)))) // contar pasiva contar daƱo rebotando con enemigos y minions. esto es solo para 1 rebote. { if (notKilleableWithOthersSpells(rTarget)) { if (core.GetMenu.getMenuBoolOption("R" + rTarget.ChampionName)) { GetR.Cast(rTarget); } } } var min = core.GetMenu.GetMenu.Item("CRM").GetValue <Slider>().Value; if (getEnemiesBlazedInRange(rTarget) >= min) { GetR.Cast(rTarget); } } return(base.castR(core)); }
public override bool castE(Core core) { if (GetE.IsReady()) { var eTarget = TargetSelector.GetTarget(GetE.Range, TargetSelector.DamageType.Magical); if (eTarget == null || !GetE.IsInRange(eTarget)) { return(false); } GetE.Cast(eTarget); } return(base.castE(core)); }
public bool CastE(SyndraCore core) { if (!GetE.IsReady()) { return(false); } if (GetW.IsReady()) { return(false); } if (GetOrbs.WObject(false) != null) { return(false); } for (var index = 0; index < core.GetOrbs.Count; index++) { foreach (Obj_AI_Hero tar in HeroManager.Enemies) { if (!(tar.Distance(core.Hero) <= GetE.Range)) { continue; } var orb = core.GetOrbs[index]; if (orb.IsValid()) { if (!GetE.IsInRange(orb)) { continue; } } //500 extended range. var finalBallPos = HeroManager.Player.Position.Extend(orb, 500); if (CalcE(orb, finalBallPos, tar)) { GetE.Cast(orb); } } } return(false); }