Exemplo n.º 1
0
        private static void Harrash()
        {
            if (oldPositionbool)
            {
                oldPosition     = Player.Position;
                oldPositionbool = false;
            }
            var target = TargetSelector.GetTarget(1300, TargetSelector.DamageType.Physical);

            if (target != null)
            {
                if (QHarrash.IsReady() && GetBool("QH") && ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Name == "BlindMonkQOne")
                {
                    QHarrash.CastIfHitchanceEquals(target, HitchanceCheck(menu.Item("seth").GetValue <Slider>().Value)); // Continue like that
                }
                if (GetBool("QH") && ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Name == "blindmonkqtwo")
                {
                    QHarrash.Cast(target);
                }
                if (E.IsReady() && GetBool("EH") && E.IsInRange(target))
                {
                    E.Cast();
                    if (Items.CanUseItem(3077) && Player.Distance(target.Position) < 350)
                    {
                        Items.UseItem(3077);
                    }
                    if (Items.CanUseItem(3074) && Player.Distance(target.Position) < 350)
                    {
                        Items.UseItem(3074);
                    }
                    if (Items.CanUseItem(3142) && Player.Distance(target.Position) < 350)
                    {
                        Items.UseItem(3142);
                    }
                    HarrashComplete = true;
                }
                if (GetBool("WH") && HarrashComplete)
                {
                    if (WardJump.Harrasjump(oldPosition))
                    {
                        HarrashComplete = false;
                        oldPositionbool = true;
                    }
                }
                //    oldPositionbool = true;
            }
        }