private void CastOracleAlteration(Vector3 position) { if (Config.Item("AutoWardPink").GetValue <bool>()) { if (OracleAlteration.IsReady()) { OracleAlteration.Cast(Player.Position.Extend(position, OracleAlteration.Range)); } } }
private void Obj_AI_Base_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { if (sender is AIHeroClient && sender.IsEnemy) { if (args.Target == null) { AddWard(args.SData.Name.ToLower(), args.End); } if ((OracleAlteration.IsReady() || ControlWard.IsReady()) && sender.Distance(Player.Position) < 1200) { switch (args.SData.Name.ToLower()) { case "akalismokebomb": CastOracleAlteration(sender.ServerPosition); break; case "deceive": CastOracleAlteration(sender.ServerPosition); break; case "khazixr": CastOracleAlteration(sender.ServerPosition); break; case "khazixrlong": CastOracleAlteration(sender.ServerPosition); break; case "talonshadowassault": CastOracleAlteration(sender.ServerPosition); break; case "monkeykingdecoy": CastOracleAlteration(sender.ServerPosition); break; case "rengarr": CastOracleAlterationAndControlWards(sender.ServerPosition); break; case "twitchhideinshadows": CastOracleAlterationAndControlWards(sender.ServerPosition); break; } } } }