Пример #1
0
 public RecallInfo(EnemyInfo enemyInfo)
 {
     this.enemyInfo = enemyInfo;
     this.recall    = new RecallInf(
         this.enemyInfo.Player.NetworkId,
         TeleportStatus.Unknown,
         TeleportType.Unknown,
         0);
 }
Пример #2
0
        private void Obj_AI_Base_OnTeleport(GameObject sender, EloBuddy.SDK.Events.Teleport.TeleportEventArgs args)
        {
            var unit = sender as AIHeroClient;

            if (unit == null || !unit.IsValid || unit.IsAlly)
            {
                return;
            }

            var recallinfo = new RecallInf(unit.NetworkId, args.Status, args.Type, args.Duration, args.Start);
            var enemyInfo  = this.EnemyInfo.Find(x => x.Player.NetworkId == unit.NetworkId).RecallInfo.UpdateRecall(recallinfo);

            if (args.Type == TeleportType.Recall)
            {
                switch (args.Status)
                {
                case TeleportStatus.Abort:
                    if (this.Menu.Item("notifRecAborted").GetValue <bool>())
                    {
                        this.ShowNotification(
                            enemyInfo.Player.ChampionName + ": Recall ABORTED",
                            Color.Orange,
                            4000);
                    }

                    break;

                case TeleportStatus.Finish:
                    if (this.Menu.Item("notifRecFinished").GetValue <bool>())
                    {
                        this.ShowNotification(
                            enemyInfo.Player.ChampionName + ": Recall FINISHED",
                            Color.White,
                            4000);
                    }
                    break;

                case TeleportStatus.Start:
                    if (this.Menu.Item("notifRecFinished").GetValue <bool>())
                    {
                        this.ShowNotification(
                            enemyInfo.Player.ChampionName + ": Recall STARTED",
                            Color.White,
                            4000);
                    }

                    break;
                }
            }
        }
Пример #3
0
        public EnemyInfo UpdateRecall(RecallInf newRecall)
        {
            this.EstimatedShootT = 0;

            if (newRecall.Type == TeleportType.Recall && newRecall.Status == TeleportStatus.Abort)
            {
                this.abortedRecall = this.recall;
                this.abortedT      = Utils.TickCount;
            }
            else
            {
                this.abortedT = 0;
            }

            this.recall = newRecall;
            return(this.enemyInfo);
        }