示例#1
0
        private void GameOnUpdate(EventArgs args)
        {
            if (Target == null ||
                heroInfo.HasSpellShield(Target) ||
                heroInfo.Unkillable(Target) ||
                gnarState.Mini ||
                !CheckGuardians())
            {
                return;
            }

            var wall = gnarWallDetection.Wall(Target.Position, Menu.Item("Range").GetValue <Slider>().Value);

            ObjectManager.Player.GetPath(wall);

            if (wall != Vector3.Zero && heroInfo.GetStunDuration(Target) < Spells.R2.Delay)
            {
                Spells.R2.Cast(wall);
            }
        }