private static void Obj_AI_Hero_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { if (sender.IsMe) { if (args.SData.Name.ToLower() == "overload") { LastCast = "Q"; } else if (args.SData.Name.ToLower() == "runeprison") { LastCast = "W"; } else if (args.SData.Name.ToLower() == "spellflux") { LastCast = "E"; } else if (args.SData.Name.ToLower() == "desperatepower") { LastCast = "R"; } else if (args.SData.Name.ToLower() == "summonerflash") { LastFlashTime = Environment.TickCount; } } if (sender.IsEnemy && (sender.Type == GameObjectType.obj_AI_Hero || sender.Type == GameObjectType.obj_AI_Turret)) { if (SpellData.SpellName.Any(Each => Each.Contains(args.SData.Name)) || (args.Target == myHero && myHero.Distance(sender) <= 700)) { UseShield = true; } } }
private static void Obj_AI_Hero_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { if (sender.IsEnemy && sender.Type == GameObjectType.obj_AI_Minion) { if (GetBool("FW") && W.IsReady() && GetActive("FarmActive") && args.Target.Name == Player.Name && Player.Mana / Player.MaxMana * 100 >= GetSlider("MP")) { if (GrabAlly() == null) { W.Cast(sender, GetBool("UsePacket")); } else { W.CastIfHitchanceEquals(GrabAlly(), HitC, GetBool("UsePacket")); } } } if (GetBool("AutoW") && W.IsReady() && sender.IsEnemy && (sender.Type == GameObjectType.obj_AI_Hero || sender.Type == GameObjectType.obj_AI_Turret)) { if (SpellData.SpellName.Any(Each => Each.Contains(args.SData.Name)) || (args.Target == Player && Player.Distance(sender) <= 450) || args.Target == Player && Utility.UnderTurret(Player, true)) { { if (GrabAlly() == null) { W.Cast(sender, GetBool("UsePacket")); } else { W.CastIfHitchanceEquals(GrabAlly(), HitC, GetBool("UsePacket")); } } } } }
private static void Obj_AI_Hero_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { var UseW = Config.Item("AutoW").GetValue <bool>(); var UsePacket = Config.Item("UsePacket").GetValue <bool>(); var ComboActive = Config.Item("ComboActive").GetValue <KeyBind>().Active; var FarmActive = Config.Item("FarmActive").GetValue <KeyBind>().Active; var FW = Config.Item("FW").GetValue <bool>(); var MP = Config.Item("FMP").GetValue <Slider>().Value; if (sender.IsEnemy && sender.Type == GameObjectType.obj_AI_Minion) { if (FW && W.IsReady() && FarmActive && args.Target.Name == myHero.Name && myHero.Mana / myHero.MaxMana * 100 >= MP) { if (Ally == null) { W.Cast(sender, UsePacket); } else { W.CastIfHitchanceEquals(Ally, HitC, UsePacket); } } } if (UseW && W.IsReady() && sender.IsEnemy && (sender.Type == GameObjectType.obj_AI_Hero || sender.Type == GameObjectType.obj_AI_Turret)) { if (SpellData.SpellName.Any(Each => Each.Contains(args.SData.Name)) || (args.Target == myHero && myHero.Distance(sender) <= 550)) { if (Ally == null) { W.Cast(sender, UsePacket); } else { W.CastIfHitchanceEquals(Ally, HitC, UsePacket); } } } }