protected void UpdateFilterList(string filterTerm)
        {
            FilteredList = PassiveList.Where(i =>
                                             i.Name.ToLower().Contains(filterTerm.ToLower()) ||
                                             i.Description.ToLower().Contains(filterTerm.ToLower()) ||
                                             i.Effects.ToLower().Contains(filterTerm.ToLower())
                                             ).ToList();

            filterPassives.RefreshTable();
        }
Exemple #2
0
        public override void Harass()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

            if (target == null || !target.IsKillable(Q.Range))
            {
                return;
            }

            if (Q.IsReady() && HarassMenu.CheckBoxValue(Q.Slot) && HarassMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
            {
                foreach (var passive in PassiveList.Where(p => p.Caster != null && p.Vital != null && p.Vital.IsValid && p.Caster.Equals(target)))
                {
                    var pos = target.ServerPosition.Extend(VitalPos(passive.Vital), 100).To3D();
                    Q.Cast(pos);
                }
            }
            if (target.IsKillable(E.Range) && E.IsReady() && HarassMenu.CheckBoxValue(E.Slot) && HarassMenu.CompareSlider(E.Slot + "mana", user.ManaPercent))
            {
                E.Cast();
            }
        }
Exemple #3
0
        public override void Combo()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

            if (target == null || !target.IsKillable(Q.Range))
            {
                return;
            }

            if (Q.IsReady() && ComboMenu.CheckBoxValue(Q.Slot))
            {
                foreach (var passive in PassiveList.Where(p => p.Caster.Equals(target)))
                {
                    var pos = target.ServerPosition.Extend(VitalPos(passive.Vital), 150).To3D();
                    Q.Cast(pos);
                }
            }
            if (target.PredictHealthPercent() <= 50 && target.IsKillable(R.Range) && R.IsReady() && ComboMenu.CheckBoxValue(R.Slot))
            {
                R.Cast(target);
            }
        }