public void RefreshMeepoList() { // update selected meepo if (Utils.SleepCheck("SelectChecker")) { Variables.SelectedMeepo = ObjectManager.LocalPlayer.Selection.Where(x => x.ClassID == ClassID.CDOTA_Unit_Hero_Meepo).ToList(); } // update meepolist if (!Utils.SleepCheck("MeepoRefresh")) { return; } Utils.Sleep(500, "MeepoRefresh"); Variables.MeepoList = ObjectManager.GetEntities <Meepo>() .Where(x => x.IsValid && !x.IsIllusion() && x.Team == me.Team).ToList(); /*.OrderBy(x => x.Handle)*/ //if (MeepoList.Count >= 1 + me.Spellbook.Spell4.Level + (me.AghanimState() ? 1 : 0)) return; foreach (var meepo in MeepoList) { var handle = meepo.Handle; Variables.OrderState state; Variables.OrderState Laststate; if (!Variables.OrderStates.TryGetValue(handle, out state)) { Variables.OrderStates.Add(handle, Variables.OrderState.Idle); } if (!Variables.LastOrderStates.TryGetValue(handle, out Laststate)) { Variables.LastOrderStates.Add(handle, Variables.OrderState.Idle); } //Ability q, w; if (!Variables.earthBindList.TryGetValue(handle, out earthBind)) { Variables.earthBindList[handle] = new EarthBind(meepo.Spellbook.Spell1); } if (!Variables.poofList.TryGetValue(handle, out poof)) { Variables.poofList[handle] = new Poof(meepo.Spellbook.Spell2); } foreach (var m in MeepoList.Where(m => !Variables.MeepoSet.Any(x => Equals(x.Hero, meepo)))) { Variables.MeepoSet.Add(new MeepoSettings(m)); } } }