private static void OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { if (sender.IsMe || sender.IsAlly || args.SData.IsAutoAttack()) { return; } var articunoPerfectCheck = Player.Position.PointOnLineSegment(args.Start, args.Start.Extend(args.End, args.SData.CastRangeDisplayOverride).To3D()); if (ProcessSpells.DB.Contains(args.SData.Name) && R.IsReady() && Player.HealthPercent <= FappadredMenu.UltiHP() && FappadredMenu.ComboR() && (articunoPerfectCheck || (args.Target != null && args.Target.IsMe))) { R.Cast(Player); } }